note recent updates
[freeradius.git] / doc / ChangeLog
1 FreeRADIUS 3.0.14 Mon 06 Mar 2017 13:00:00 EDT urgency=medium
2         Feature improvements
3         * Enforce TLS client certificate expiration on
4           session resumption, and Session-Timeout.
5           See CVE-2017-9148.
6         * Updated dictionary.cisco.vpn3000, dictionary.patton
7         * Added dictionary.dellemc
8         * Lowered the log output for failed PEAP sessions.
9         * ALlow utc in rlm_date.  Patch from
10           Peter Lambrechtsen.
11         * The internal OpenSSL session cache has been
12           disabled.  Please see mods-available/eap
13         * Update detail reader documentation.
14           Patch from Matthew Newton.  Fixes #1973.
15         * Make outgoing RadSec connections non-blocking.
16         * Add SQL backing to Moonshot-*-TargetedId
17           generation.  Patch from Stefan Paetow.
18
19         Bug fixes
20         * radtest uses Cleartext-Password for EAP, not
21           User-Password.
22         * Update documentation for mods-enabled/ linking.
23         * Enhanced checks for moonshot salt.  Fixes #1933.
24         * Allow session resumption for RadSec connections.
25           Fixes #1936.
26         * Update "huntgroups" file to note that port ranges
27           are not supported.
28         * Fix OpenSSL permissions issues on default key files.
29           Fixes #1941.
30         * Certificates are not required when PSK is used.
31         * Allow SubjectAltName as first extension in cert.
32           Fixes #1946.
33         * Fixed talloc issue with TLS session resumption.
34           Fixes #1980.
35         * "&Attr-26 := 0x01" now produces useful error messages.
36         * Handle connection error in rlm_ldap_cacheable_groupobj.
37           Fixes #1951.
38         * Fix endian issues in DHCP.
39         * Multiple minor fixes for Coverity complaints.
40         * Handle unexpected regex.  Fixes #1959.
41         * Fix minor issues in dictionaries.
42         * Fix typos and grammar.  Patches from Alan Buxey.
43         * Fix erroneous VP creation in rlm_preproces.
44         * Fix MIB.  Patch from Jeff Gehlbach.
45         * Trust router updates from Alejandro Perez.
46         * Allow build with LibreSSL.  Fixes #1989
47         * Use correct packet for channel bindings.  Fixes #1990.
48         * Many fixes found by PVS-Studio.  Thanks to PVS-Studio
49           for giving us a test license.  Please see the git commit
50           history for more information.
51         * Fix incorrect length check in EAP-PWD.  This may
52           be exploitable.
53
54 FreeRADIUS 3.0.13 Mon 06 Mar 2017 13:00:00 EDT urgency=medium
55         Feature improvements
56         * Add dictionary.rfc7930.  Note that we do not implement
57           the RFC.
58         * Added 'cipher_server_preference' to mods-available/eap
59           Patch from #1797.
60         * OpenSSL 1.1.0 compatibility fixes.
61         * rlm_perl: radiusd::xlat to evaluate xlat string
62           within perl script
63         * Allow authentication retry in winbind. Patch from
64           Herwin Weststrate. See raddb/mods-available/mschap.
65         * Added "recv-coa" method to rlm_rest.  It behaves the
66           same as "authorize".
67         * Document Trust Router tr_port option.  Patch from
68           Stefan Paetow.
69         * Update elasticsearch/logstash examples so that they work
70           with elastic stack v5.  Patch from Matthew Newton.
71         * Print information about packets, replies, and contents
72           in the detail file reader.
73         * Update abfab-tr policy.  Pull request #1893
74           from Stefan Paetow.
75         * Reject packets which contain User-Password and
76           EAP-Message.
77         * Add example for filtering Access-Challenge.
78           See sites-enabled/default.
79         * Pull symlink fixes from v4.0.x.  Fixes #1859.
80         * Add systemd reload.  Not everything is reloaded, but
81           some is.  Fixes #1662.
82         * Better documentation for listen "ipaddr".  Fixes #1921
83         * Add dictionary.cnergee, updated dictionary.nomadix.
84         * radclient no longer needs -x to print statistics with -s.
85
86         Bug fixes
87         * Minor typos.  Fixes #1763
88         * Fix typo in RPM build.  Closes #1767.
89         * rlm_mschap check for password expiry only
90           if password was correct.  Fixes #1762.
91         * Update debian build.
92         * update rlm_counter "man" page.  Fixes #1775.
93         * Remove erroneous assert.  Fixes #1778.
94         * fix mschap password change test.  Fixes #1792.
95         * Cleanup config file on data remove.  Fixes #1795.
96         * passwd module returns "notfound" if not found.
97         * Check for old OpenSSL, and don't build rlm_eap_fast
98           if it necessary.  Fixes #1803
99         * Cleanup memory better after ldap version query.
100           Patch from Aleksey Katargin.
101         * Rename lt_* functions to avoid linker issues with
102           libtool.  Fixes #1277
103         * Many miscellaneous fixes and typos.
104         * Allow long strings in %{%{foo} bar:-%{baz} blah".
105           Fixes #1866
106         * Fix filtering operators, along with more documentation and
107           more tests for them.
108         * Fix OpenSSL fixes.  Fixes #1876.
109         * Finish SQL select queries even when SELECT returns no rows.
110           Fixes #1879.
111         * Set Module-Failure-Message for more EAP errors.
112         * Correct typo in dictionary.rfc5580.  Fixes #1882
113         * Remove obselete systemd syslog.target.
114         * Client-Port-Balance load-balancing now uses client port.
115         * Radrelay examples fixed from Alex Clouter.
116         * Update systemd target.  Pull request #1896.
117         * Trim starting whitespace in xlat strings.
118         * Get MySQL result lengths using normal API.
119         * suid down after fchown().  Fixes #1914.
120         * Fix cases of comparing pointer to NUL character.  Fixes #1915.
121         * OpenSSL v1.1 fixes.  Pull request #1921.
122         * Better Handle v4/v6 host names.  Pull request #1919.
123         * Remove "Auth-Type = System" from docs and examples.
124         * Don't crash on malformed %{home_server}.  Fixes #1922
125         * fix erroneous use of talloc destructor in rlm_eap
126         * Issue trigger modules.sql.fail.  Fixes #1923
127         * Document python_path gotcha's.  Fixes #1845
128         * dlopen() the specific version of Python.  Fixes #1592
129
130 FreeRADIUS 3.0.12 Thur 29 Sep 2016 13:00:00 EDT urgency=medium
131         Feature improvements
132         * Add support for =~ and !~ in update sections.
133           See "man unlang"
134         * Add dictionary.checkpoint.
135         * Simultaneous-Use prints out more information.
136         * Print WARNING in debug mode when packets may be
137           truncated.
138         * Added expansions %{home_server:state} and
139           %{home_server_pool:state}, which show the
140           state of the server / pool.
141         * Mark rlm_sql_freetds as stable.
142         * Make rlm_perl less fragile.  Patch from
143           Herwin Weststrate.
144         * Allow extended attributes to have "encrypt=2"
145         * Update dictionary.aruba.
146         * Add support for EAP-FAST.  This is an isolated
147           feature which does not affect anything else.
148         * Update OpenSSL vulnerability list.  Use a version
149           of OpenSSL released after September 20, 2016.
150         * EAP certificate verification is now done when
151           "verify" is enabled and "ocsp" is disabled.
152         * New dhcpclient and rlm_rad_counter man pages.
153         * Minor abfab and moonshot additions.
154         * Pass CFLAGS through from environment in RPM builds.
155           Allows more custom builds.
156         * Build with Heimdal in addition to libkrb5.
157
158         Bug fixes
159         * Use correct typedef for older versions of sqlite.
160         * Update mssql schema to add priority
161         * Don't complain on /dev/urandom in ldap
162         * Fix == operator in update sections
163         * Don't create DHCP strings with many trailing zeros.
164           Patch from Nicolas C.  Fixes #1526.
165         * Allow MS-CHAP change passwords instead of complaining
166           on large buffer.
167         * Allow assignment or equality operator on SQL.
168         * Update aclocal tests for FreeBSD 10.  Patches from
169           Mathieu Simon.
170         * Remove occasional hang in rlm_linelog.
171         * Copy VSAs to inner tunnel for TTLS and PEAP.
172           Fixes #1544
173         * A few minor bugfixes caught in v3.1.x cleanup, and
174           back-ported to v3.0.x.
175         * do_not_respond again works in post-proxy
176         * Allow realm "~^.*$" {} and User-Name with no realm.
177         * Fix leak when creating unknown attributes
178         * Fix Debian / logrotate.
179         * Make OpenSSL error functions thread-safe.
180         * Fix crash with rlm_sql and updating SQL-User-Name.
181         * Debian build updates.
182         * Allow regular expression comparisons in radclient
183           fixes #1574.
184         * Fix memory leak on unknown attributes in detail file
185           reader.
186         * Update example paths in "man" pages when installing
187           them
188         * Build fixes for rlm_mschap.  Fixes #1489.
189         * BSD build fixes.  Patch from issue #1583.
190         * Be more careful about /lib/ when building.
191           Fixes #1585.
192         * Correct ifdef placement error.  Fixes #1572.
193         * Allow for more files in internal "exfile" API
194           So it will be possible to open more than 64
195           "detail" files at the same time.
196         * Remove support for statically built EAP modules.
197           Fixes #1591.
198         * Many fixes to rlm_python from Guillaume Pannatier.
199         * Use correct week adjustment in SQLcounter.
200           Fixes #1608
201         * Minor fixes to allow compilation without DHCP,
202           VMPS, or TCP.
203         * Fix checks for module / config file change on HUP.
204         * Compile regex comparisons when sent via
205           "debug condition".  Fixes #1632.
206         * Update filenames in documentation and examples.
207           Patch from Alan Buxey, #1655.
208         * Don't crash if SQL connection becomes unavailable.
209           Fixes #1640.
210         * Disallow originate_coa when proxy_requests = no
211           Fixes #1684.
212         * Free rad_perlconf_hv in correct perl context.
213           Fixes #1675.
214         * Multiple fixes for Debian builds.  #1510, among
215           others.
216         * Set OpenSSL FIPS compatibility flag when necessary.
217         * Pulled fixes for the build system over from other
218           branches.
219         * Fix OCSP for RADIUS over TLS.
220         * Fix skip_if_ocsp_ok behavior.
221         * Better fixes for systems without closefrom() but
222           which have /proc.  Fixes #1757.
223         * Minor build fixes back-ported from v4.0.x.
224         * build --whout-ascend-binary.  Fixes #1761.
225         * Be more aggressive about not opening new connections
226           in debug mode after CTRL-C.  Address #1604.
227
228 FreeRADIUS 3.0.11 Mon 25 Jan 2016 14:00:00 EST urgency=medium
229         Feature improvements
230         * "unlang" comparisons of IP addresses to IP prefixes
231           are now detected, and types automatically cast.
232         * Allow shorthand form of ipv4prefix values e.g. 127/8.
233         * Add "auto_chain" to raddb/mods-available/eap, tls
234           subsection.  This allows the disabling of OpenSSL
235           auto-chaining of certificates.  Which might be wrong.
236         * Added printing of coa and disconnect stats (radmin).
237         * radclient defaults to expecting Access-Accept responses
238           to Status-Server.
239         * Updated dictionary.lancom, dictionary.starent.
240         * Portability fixes for Solaris.
241         * More errors from ntlm_auth gets passed to MS-CHAP.
242         * Update abfab-tr-idp virtual server.
243         * Added "filter_password" in policy.d/filter.  This
244           removes embedded zero bytes in User-Password, for
245           compatibility with broken clients.
246         * The server now issues a WARNING message if duplicate
247           configuration items are found.
248         * TLS can skip the "verify" section if OCSP returns OK.
249           See raddb/mods-available/eap, "skip_if_ocsp_ok".
250         * Set TLS-OCSP-Cert-Valid = yes / no / skipped, which
251           is the result from the OCSP check.
252         * Interoperate with AD and "LmCompatibiltyLevel = 5",
253           by always setting WBC_MSV1_0_ALLOW_MSVCHAPV2 for
254           native winbind in rlm_mschap.
255         * TTLS and PEAP now require "virtual_server" to be a real server.
256         * Print WARNING when TTLS or PEAP identities are spoofed
257           or not properly anonymized.  See RFC 7542 for requirements.
258         * Various rlm_python fixes from Herwin Weststrate.
259         * Allow setting Response-Packet-Type in "Post-Proxy-Type Fail",
260           which is useful when the home server does not respond.
261         * elasticsearch updates from Matthew Newton
262
263         Bug fixes
264         * Fix issue where field nas_type would not be accessible via
265           the %{client:} xlat, for clients loaded from SQL.
266         * Fix compatiblity issues with OpenSSL 1.0.2.  Ignore
267           calls to msg_callback with 'pseudo' content types.
268         * Data type "ipv4prefix" is parsed correctly.
269         * Use correct talloc context in rlm_exec.  Fixes #1338.
270         * Complain in unlang if "else" is used with no previous
271           "if" or "elsif".
272         * Send accounting status packets to the accounting port.
273           Fixes #1364.
274         * Print out CFLAGS when doing "radiusd -Xxv"
275         * Fixed bug with coa/acct stats value #1339. Based on patch from
276           Jorge Pereira.
277         * Fixes for LEAP proxying.  Don't use LEAP!
278         * Fix issue with "directory already exists" seen when doing
279           "make install".
280         * Fixed bug with radmin related to the option "stats detail <filename>"
281         * Complain if the detail file reader does not have permission
282           to read the "detail.work" file.  Fixes #1398
283         * Fixed SoH. Attributes were not being copied to the virtual server.
284         * Used a wrong list to global statistics in "stats".
285         * Create EAP-PWD identity correctly.  Prevents segfaults.
286         * Dynamically validate authentication types for PEAP and EAP-MSCHAPv2.
287         * Fix includes in installed headers.
288         * OpenSSL 1.0.1f and 1.0.1g do NOT calculate TLS 1.2 keys correctly.
289           See raddb/mods-available/eap, "disable_tlsv1_2"
290         * Allow password change to work for MS-CHAP.  This requires 'r=0',
291           because password changes are not retries.
292         * Fix home server fail-over for home servers using TCP and/or RadSec.
293         * Special characters in expanded regexes are now escaped
294           e.g. User-Name containing '.', and comparing /%{User-Name}/,
295           the '.' will now be escaped.  See src/tests/keywords/regex-escape.
296         * Use correct authentication vector when sending Access-Reject replies
297           for RadSec.
298         * Set FreeRADIUS-Proxied-To in TTLS again.  You should use the
299           "inner-tunnel" virtual server, instead of relying on this attribute.
300         * Fix debugging constants in rlm_perl.  Patch from Herwin Weststrate.
301         * Add samba-dev / samba4-dev to debian builds so that rlm_mschap can
302           automatically use the new winbind API.
303         * Automatically skip zero-length attributes when sending packets,
304           instead of erroring out.
305
306 FreeRADIUS 3.0.10 Mon 05 Oct 2015 15:00:00 EDT urgency=medium
307         Feature improvements
308         * Do more optimization of unlang policies.  This makes
309           run-time a bit faster.
310         * Re-name most of the functions in src/lib.  Third-party
311           module authors will have to do the same.
312         * More documentation on contributing and how to write
313           modules.
314         * Update radiusd.service for systemd.
315         * Open IPv6 proxy socket if the server is listening on IPV6
316           auth / acct / coa packets.
317         * Create debian packages for DHCP.  Fixes #1125.
318         * Add more tests for "update" section parsing.
319         * Update "man" pages.
320         * Update attributes for Alcatel 7750
321         * Add dictionary for Boingo Wi-Fi
322         * Add support for DHCP lease queries.
323           See raddb/sites-available/dhcp
324         * On HUP, check all modules for config files which have
325           changed.  And only re-load those modules.
326         * Allow FreeRADIUS-Response-Delay(-USec) to be set for
327           RADIUS packets.  Patch from Herwin Weststrate.
328         * Documentation fixes from Alan Buxey and Matthew Newton.
329         * Update "logrotate" script.
330         * Added more RFCs to doc/rfc for new standards implemented
331           by FreeRADIUS.
332         * Don't crash when doing "radmin -e "help hup".
333           Patch from Matthew Newton.
334         * The dictionary parser now does more sanity checks, which
335           prevents run-time problems with invalid attributes.
336         * Update debian packages.  Patches from Christopher Hoskin.
337         * Many other debian packaging fixes from Matthew Netwon
338           and Herwin Weststrate.
339         * Add "session-state" to Perl.  Patch from Herwin Weststrate.
340
341         Bug fixes
342         * Fix rlm_files so that there are no collisions when loading
343           10's of 1000's of users.
344         * Fix radclient to use our internal v4/v6 parsing functions.
345           v6 addresses with ports now work correctly.
346         * Fix sending/receiving packet messages to wrap v6 addresses
347           in square brackets '[]'.
348         * Check for sasl/sasl.h when building rlm_ldap, and disable
349           SASL functionality if unavailable.
350         * Fix issue which caused a non \0 terminated buffer to be
351           assigned to attributes if the value being assigned contained
352           an invalid escape sequence.
353         * Fix deadlock when reconnecting connections in the connection
354           pool.
355         * Fix potential overrun in functions that used fr_utf8_char
356           with a non nul terminated buffer.
357         * Fix decoding issue for Tunnel-Password type attributes
358           which were very long.  Found by Denis Andzakovic.
359         * Fix radclient issue with TCP sockets on FreeBSD.
360         * The server now creates ${run_dir} and ${logdir} directories
361           in daemon mode, when running as "root".
362         * Handle tags when using maps.  Fixes #1191.
363         * Fix crash when CoA packets time out.
364         * Fix parse error in rediswho
365         * Fix regex support in SQL radcheck the "users" file and radsniff.
366         * Register listen xlat earlier, so that it's available when the
367           virtual servers are being parsed.
368         * Parse Ascend-Data-Filter when given as "0x..."
369         * Print Ascend-Data-Filter correctly.  Add test cases for both.
370         * Allow old-style clients again.  They will be disallowed for
371           3.1.0 and following.
372         * Complain instead of crash when "else" and "elsif" are in
373           the wrong place.
374         * Clean up memory more aggressively.  This lowers the
375           maximum memory used, most typically for TLS based EAP methods.
376         * Prevent the server from unlinking the control socket of an
377           already running instance.
378         * Fallback to using the configured OCSP URL if one exists, and
379           no URL is provided in the certificate.
380         * Return CoA-NAK if proxying CoA fails.  Based on patch from
381           Jorge Pereira.
382         * Lower peak memory usage by decreasing size of internal
383           memory pools.
384         * The control socket is now left in place if a second copy
385           of the server is accidentally started.
386         * Allow virtual attributes in "switch", "case", etc.
387           Fixes #1240 and #1265.
388         * Many spell check / typo fixes in comments and example
389           configuration files.
390         * Better handle multiple DHCP listeners.
391         * Don't print secrets for old-style realms.  Fixes #1267.
392         * Don't fall through in empty "case" statements.
393           Fixes #1274.
394         * Update EAP-TTLS so that MPPE keys are correctly calculated with TLSv1.2.
395         * Always delete MS-MPPE-* from the TTLS inner tunnel. This allows
396           TTLS / EAP-MSCHAPv2 to work. Fixes #1206.
397         * Fix off by one error that caused some MSCHAP-Error messages to
398           be sent without the password change version (V=3) and the textual
399           message component (M=).
400         * Always include C= V= and M= in MSCHAPv2 errors.  RFC 2759 does not say
401           that any of these fields are optional, and not including V= caused
402           errors with wpa_supplicant.
403         * Do not include M= in MSCHAPv1 errors.  It's not supported.
404
405 FreeRADIUS 3.0.9 Wed 08 Jul 2015 12:00:00 EDT urgency=medium
406         Feature improvements
407         * Make "pool" configurations more consistent, and
408           update documentation for them.
409         * Move connection pool logic to "most recently started",
410           instead of MRU.  This should help with pool stability.
411         * More VSAs for 3GPP2
412         * Added examples of multi-value attributes to rlm_perl.
413         * LDAP-Group and SQL-Group attributes are now dynamically
414           allocated.
415         * Only the "sql" module registers SQL-Group.  Other instances
416           register "instance-name-SQL-Group", similarly to "ldap".
417         * Unknown attributes are now complained about more often
418           when used in unlang statements.  e.g. if (Foo-Bar == 3)
419           used to be a string to string comparison.  It is now a
420           parse error.
421         * Rename RLM_COMPONENT_* to MOD_* in the code.
422           This makes many things easier.
423         * Move to C99 initializers for modules.
424         * Load modules in raddb/mods-enabled.  This allows attributes
425           like "LDAP-Group" to be used in the "files" module,
426           without explicit ordering or listing in "instantiate".
427         * Added 'bootstrap' section to modules.  Third-party modules
428           will need to be updated.
429         * When adding clients from a DB, add them to a virtual server
430           if that virtual server has a "listen" section.  Otherwise,
431           add the clients to the global list.
432         * When reading dynamic clients from a file, don't expire them
433           if the underlying file is unchanged.
434         * Allow the server to originate CoA requests from the post-auth
435           stage.
436         * The server creates ${run_dir} and ${logdir} in daemon mode,
437           if they do not already exist.
438         * Add dictionary for Wi-Fi Alliance Hotspot 2.0.  The server
439           now supports all mandatory and optional attributes for this
440           specification.
441         * HUP now re-loads the configuration only if the files have
442           changed.  If all files are unchanged, HUP re-opens the
443           log file, and does nothing else.
444         * Much better debug messages for EAP-TLS, including which
445           attributes are cached, and when they are retrieved.
446         * Increase default max_requests to 16384.  Memory is cheap now.
447         * Added "stats memory" commands to radmin.  Debug build only.
448         * Aptilo controller dictionary updates.
449         * SQL modules now use Acct-Unique-Session-Id everywhere.
450         * The redis modules are now stable.
451         * The LDAP module now supports SASL "interactive bind" method.
452           This allows Kerberos based administrator and user binds.
453         * DHCP code is now in libfreeradius-dhcp.
454         * More DHCP encoding / decoding unit tests.
455         * rlm_replicate can now be listed in the "accounting" section.
456         * Better sqlite debugging output.
457         * Remove "required" option from many sql_ippool directives.
458         * Set default CA "basic constraints" to "critical".  Fixes #1073
459         * Updates to help / man pages from Jorge Pereira.
460         * Added more tests.
461
462         Bug fixes
463         * Be more careful about unused config item warnings
464           when using -Xx.
465         * Move more defines to be auto-generated.
466         * Allow virtual servers in proxy fallback.
467         * Allow %{module:} to work.
468         * Don't crash in RadSec.  Closes #980.
469         * Return better errors when a unix group / user
470           is not found.
471         * Re-enable detail module "locking" parameter.
472         * Don't crash when logging replies from Status-Server packets.
473         * The couchbase module now uses "update" instead of "map",
474           for consistent with the rest of the server.  See
475           raddb/mods-available/couchbase
476         * Don't require NT-Password for MS-CHAP password changes.
477         * Be a bit more careful about decrypting MS-CHAP-MPPE-Key
478           attributes. Closes #1013.  There is no perfect fix, tho.
479         * Fix security issues with EAP-PWD.
480           See http://freeradius.org/security.html#eap-pwd-2015
481         * Fix dynamic clients read from SQL in non-debug mode
482         * MS-CHAP now allows retries (i.e. password change) when
483           passwords are expired.
484         * Allow "user=radiusd" when the server is already user
485           "radiusd"
486         * suid up/down works on non-Linux systems.  This means
487           that the control socket should have the correct
488           ownership.
489         * Fix issue which caused the server to sometimes have problems
490           when a home server was marked zombie.
491         * Fix format.pl because Perl is now more picky.
492         * Fix proxy to Packet-Dst-IP-Address, so that it uses the
493           correct destination port.
494         * Fix corner case with cursor functions and removal.
495         * OpenDirectory fixes and documentation.
496         * Fix leaks in rlm_redis.
497         * RFC 6929 "evs" attributes are now encoded / decoded
498           properly.
499         * Fix talloc pool leaks when receiving malformed or
500           retransmitted Accounting/CoA requests.
501         * Printed attributes again use double quotes instead of
502           single quotes.
503         * Set X509_V_FLAG_CRL_CHECK_ALL, and add "check_all_crl"
504           to eap.conf.  Fixes oCert CVE-2015-4680.
505         * rlm_expr now errors out correctly on malformed attribute
506           references instead of triggering an assert.
507         * Make "break" work in "foreach" loops
508         * Allow dynamic expansions to work again in the "hints" file.
509         * Correct minor typos in comments and examples from Alan Buxy.
510         * Re-urlencode the path portion of ldapi:// urls before
511           passing it to ldap_initialise.
512
513 FreeRADIUS 3.0.8 Wed 22 Apr 2015 13:30:00 EDT urgency=medium
514         Feature improvements
515         * Allow syslog_severity to be set in rlm_linelog.
516         * Allow defaults to be set for bulk clients in LDAP and couchbase.
517         * Updates to dhcpclient.  Patches from Nicolas C.
518         * rlm_mschap now supports direct connections to winbind, which
519           is faster than ntlm_auth.  See raddb/mods-available/mschap.
520           Patch from Matthew Newton.
521         * Recommend /dev/urandom for TLS randomness, instead of
522           ${certdir}/random
523         * Allow TLSv1 to be disabled via "disable_tlsv1" in tls{}.
524         * Allow Expanded EAP types where vendor is 0 (IETF) and
525           type is normal EAP type.  Supplicants sending Expanded
526           EAP types like this are broken.
527         * Add support for server side sort controls when searching for
528           user objects in rlm_ldap.
529
530         Bug fixes
531         * Don't complain about "authorize" in "server {}" blocks, but
532           only if there's no "server" block.
533         * Fix cosmetic issue where debug from the first packet read by
534           a detail reader thread would be emited during config parsing.
535         * Fix ASSERT on truncated detail packets.
536         * Don't use main server log functions from within panic_action,
537           as in the case of syslog this would cause deadlocks if the
538           fault was triggered from within a malloc.
539         * Fix issue in "switch" when "correct_escapes = false".
540           Fixes #911.
541         * Fix sqlcounter configuration to use "%%b" instead of "%b",
542           otherwise the new syntax validation will fail.
543         * Allow forward references in configuration items.  Modules
544           aren't always loaded in a sane order.
545         * Fix more escaping issues.  Closes #912.
546         * Decode MAC addresses correctly for VMPS.
547         * Fix memory leak with TLS connections.
548         * Fix state machine threading issues for conflicting packets.
549         * Fix copy_request_to_tunnel issues for tagged attributes.
550         * Allow "ok" to over-ride "updated" inside of Auth-Type sections.
551         * Update state machine so that post-proxy is run though child
552           threads for performance, instead of blocking the main thread.
553         * Allow "netmask" to work again in client definitions.
554         * Relax restrictions on SQL group queries.
555         * track outgoing proxy sockets and clean them up more aggressively.
556         * track proxy statistics, including CoA and Disconnect.
557         * If radmin has a connection failure when running a command,
558           it re-connects and runs the command again.
559         * mark home servers "unknown" less aggressively.
560         * Fix potential SEGV in PostgreSQL driver on error.
561         * Fix issue where fields like nas_type would not be accessible via
562           the %{client:} xlat, for dynamic clients.
563         * Set default busy_timeout (of 200ms) in the sqlite driver, so writes
564           don't cause selects to fail in multithreaded mode. This is user
565           configurable, and may be increased if required.
566         * Convert Password-With-Header attributes to binary (from hex or
567           base64), in the authorize method of rlm_pap.
568         * Fix invalid assert in state.c, that could cause abort in
569           post-auth.
570         * Fix double free when -m flag is used, and connection pools are
571           referenced by multiple modules.
572         * RADIUS over TLS accounting uses the same port as authentication.
573         * Regularized return codes from radmin commands.
574         * Fix RHEL spec file so it works correctly for Centos7 which uses
575           systemd, and didn't like the SystemV init script.
576         * radwho and radlast now have a -D option to load dictionaries
577         * DHCP packets are no longer checked for duplicates.
578         * Don't crash in sql module group comparisons in corner case.
579         * Calculate MPPE keys correctly when using TLS 1.2.
580         * Fix load-balance sections.  Closes #945
581         * TLS certificates are available again in the post-auth section.
582           They are not available for session resumption.
583         * radclient encodes CHAP-Password properly when using -c.
584           Closes #955.
585         * Fix issue in rlm_cache_memcached driver that caused variable
586           length values to be truncated.
587         * Fix track functionality in detail reader, so it no longer
588           fails with a "Failed marking detail request as done: Bad file
589           descriptor" error.
590         * Actually add the peer identity (as User-Name) to the inner
591           tunnel in EAP-PWD requests, so it's available for lookups.
592         * Fixes to PostgreSQL queries.  Patches from Santiago Gimeno.
593
594 FreeRADIUS 3.0.7 Thu 19 Feb 2015 12:00:00 EDT urgency=medium
595         Feature improvements
596         * Allow coa home_servers to be derived from client
597           sections if a coa_server section is provided.
598         * Automatically determine the correct port if no port is
599           provided for a home server.
600         * Allow foreach to operate over lists.
601         * Add compile time features to ${feature.*} and versions
602           of core libraries to ${version.*}.  Feature and version
603           names match output of radiud -xv. %v is now deprecated.
604         * Add support for PATCH method in rlm_rest.
605         * Validate more module xlats on startup, and warn if an
606           xlat expansion is found in a double quoted config item
607           which will not be expanded.
608         * Add support for sub-second timeouts in rlm_rest.
609         * Add support for connection timeouts in rlm_rest.
610         * Add %{jsonquote:<str>} xlat to escape strings for insertion
611           into json documents.
612         * Add %{ldapquote:<str>} xlat to escape strings for insertion
613           into ldap DNs.
614         * Add %{explode:&ref <char>}, splits value of &ref on
615           <char> and creates new &ref type attributes with the
616           fragments.
617         * Allow rlm_ldap to use attribute references for base_dn and
618           filter config items. The attribute references are not
619           escaped, allowing DNs and filters to be created dynamically.
620         * Add %{nexttime:[<int>]h|d|w|y} to calculate the number of
621           seconds before the next <int> hour(s), day(s), week(s),
622           or year(s).
623         * Allow the left side of update sections to be xlat expansions.
624           The result of the expansion is then used to reference the
625           attribute to be modified.
626         * Added %{lpad:&Attribute-Name 7 x} and rpad.  These produce
627           fixed-width output strings, with padding to the left (lpad)
628           or the right (rpad).
629         * For some SQL drivers (MySQL, sqlite) distinguish between
630           constraints violations (on insert), invalid queries, and
631           server errors, and return noop, invalid, and error respectively.
632         * Call SHOW WARNINGS in the MySQL driver and write them to
633           the request log, if libmysqlclient indicates warnings are
634           available on the server.
635         * Forbid the creation of Vendor-Specific for non-standard
636           VSAs.  Use Attr-26 = 0x... instead.
637         * Make dhcpclient work with raw sockets and various other
638           improvements - Contributed by nchaigne
639         * Add support for SSHA2 - Contributed by PDD.
640         * Add perle dictionary - Contributed by Hachmer
641         * Modernise init scripts for RHEL, SUSE and Debian.
642         * radmin now tracks the return code of commands, and exits
643           with status "1" if any command failed to execute.
644         * radmin now sends error messages from the server to
645           stderr, instead of to stdout.
646         * radmin now looks for sockets matching it's UID and GID,
647           rather than just always using the first one it finds.
648         * radmin can how delete clients which are tied to a listener.
649         * Moved RADIUS attribute definitions to src/include/rfc*.h
650         * Move to talloc pools for requests.  For in-memory tests
651           (default config, 'users' file), performance increases by 30%.
652         * In rlm_ldap allow sasl_mech to be specified for admin and
653           user binds. Only non-interactive mechs (like EXTERNAL)
654           are currently supported.
655         * Remove support for ephemeral RSA keys.  They were "export only",
656           and should not be used by anyone.
657         * Syntax errors in the "users" file now produce better
658           error messages.
659
660         Bug fixes
661         * Fix issues parsing LDAP hostnames with non-standard ports.
662         * Fix issues with realms containing regular expressions.
663         * Allow unary negation before parantheses in rlm_expr.
664         * Fix infinite loop in kevent event loop code. Issue only
665           presented on FreeBSD.
666         * Be more careful to define Auth-Types before loading modules.
667         * Link libfreeradius-radius against OpenSSL too, to avoid
668           multi-version symbols in SSL libraries.
669         * When rlm_ldap rebinds a connection, it should use bind
670           credentials from the module that created the connection
671           pool, not credentials from the module referencing it.
672         * Empty server config pairs should be allowed in rlm_ldap
673           instances that reference another module's connection pool.
674         * Mark rlm_always as huppable, so its rcode can be changed
675           via radmin (allows policy toggles).
676         * Emit warnings when ignoring user configured pool values.
677         * Fix issue that would cause radclient to complain
678           intermittently about differing numbers of filters and
679           requests.
680         * Fix cosmetic issues in connection pool logging, that made
681           it appear as if the same connection was being opened
682           multiple times.
683         * Fix threadsafety issues in SQL drivers, where a static
684           buffer was used to store error messages.
685         * Log RERROR, RWARN, RINFO to the global log if request
686           logging is not enabled.
687         * Link to libldap instead of libldap_r. libldap_r
688           is not supported for use by projects outside of OpenLDAP.
689         * Set connection timeout correctly in rlm_sql_mysql.
690         * Build with older versions of libcurl, and use CFLAGS from
691           curl-config.
692         * Honour Packet-Src-Port and Packet-Src-IP-address in radclient.
693         * Initialise ldapai_info_version field, so libldap will report
694           its vendor and version.
695         * Fix log rotation scripts by using the copyrotate option.
696         * Fix issue that caused opening control sockets to always
697           fail on non-Linux systems, if a user or group was set.
698         * Save Session-State after proxying.
699         * Additional fixes for reading CoA/DM requests from detail
700           files.
701         * Create dynamic clients if the dynamic clients virtual server
702           returns ok *or* updated. Emit useful messages for other codes.
703         * Compile bare "authorize" statements, and issue errors saying
704           using them isn't a good idea.
705
706 FreeRADIUS 3.0.6 Wed 17 Dec 2014 16:00:00 EDT urgency=medium
707         Feature improvements
708         * radmin / raddebug conditional errors are printed
709           to the output, instead of being discarded.
710         * raddebug will exit if condition set with -c was invalid.
711         * radmin auto-reconnects if the connection to the server
712           has gone away.
713         * rlm_cache now has submodule support.  See
714           raddb/mods-available/cache
715         * New memcached driver for rlm_cache. See
716           raddb/mods-available/cache
717         * Add support for &Attribute-Name[*] in conditions.
718           See "man unlang" for details.
719         * Add &Attribute-Name[n] which gets the last instance
720           of an attribute e.g. Module-Failure-Message[n].
721         * Allow for redundant string expansions.  See the
722           "instantiate" section of radiusd.conf.
723         * When checking IP addresses in conditions, make the
724           right side be parsed as an IP prefix.
725         * Support JIT compilation of compiled regular expressions
726           when built with libpcre.
727         * Support named capture groups with "%{regex:<name>}"
728           when built with libpcre.
729         * Increase regular expression capture groups from 8 to 32.
730         * Emit error markers for badly formed regular expressions.
731         * Allow 'm' flag to enable multiline mode in regular
732           expressions.
733         * Support limited implicit attribute conversion in update
734           sections.
735         * Support casting between IPv6 and IPv4 where the IPv6
736           address has the v4/v6 mapping prefix (::ffff:).
737
738         Bug fixes
739         * PEAP works again.  As does proxying EAP-MSCHAPv2
740           from inside of a PEAP tunnel.
741         * "group" is allowed inside of "instantiate" sections.
742         * update disconnect {} with
743           disconnect:Packet-Dst-IP-Address now works correctly.
744         * Regular expression comparisons of non string attributes
745           are now disallowed in the files module.  Previously
746           they would silently fail or produce undefined behaviour.
747         * Fix parsing of old regular expressions.  Closes #842
748         * Fix off by one error in ascend filters.  Closes #843.
749         * Handle NT-Hash in rlm_pap.  This allows passwords to
750           have backslashes in them.
751         * Fix infinite loop on "Fall-Through = yes" when
752           processing SQL groups.
753         * Correct the check of SQL query return code.
754         * Run "Post-Auth-Type Reject" if the request was rejected
755           in post-auth
756         * Write "Login OK" only if the post-auth section passed.
757         * Create TLS-Cert-* certificates, even when EAP session
758           caching is disabled.
759         * Finalize the "correct_escapes" with many more tests.
760         * Move to the new OpenLDAP libldap API, fixes more issues
761           with binary values.
762         * Fix potential memory corruption in rlm_ldap if start
763           connections were set to 0, and the server was running
764           in threaded mode. The fix is a workaround for an issue
765           in libldap and was suggested by Howard Chu.
766         * Give parse errors on "%{...", without the closing brace.
767         * Allow spaces in certificate passwords for build rules
768           in raddb/certs//
769         * Make all regular expression evaluation binary safe.
770           Where that's not possible, emit an error if the pattern
771           or subject contains an embedded null byte.
772         * Fix various issues around masking IPv6 addresses.
773         * Give descriptive error if unknown attributes are used
774           in "update" sections.
775         * Deal with cases where ldap_initialize isn't available
776           gracefully, and use it exclusively when it's available.
777
778 FreeRADIUS 3.0.5 Fri 21 Nov 2014 15:30:00 EDT urgency=medium
779         Feature improvements
780         * Large update to Huawei dictionary.
781         * Added dictionary.rfc7155
782         * Regular expressions like /%{User-Name}/ are now parsed
783           and validated when the server starts.
784         * All configuration items which are dynamically expanded
785           are now parsed and validated when the server starts.
786         * %{expr:...} expressions can now do bit shifting and more.
787           See raddb/mods-available/expr.
788         * The detail file reader can now track packets which have
789           had replies, so they are never re-transmitted.  See
790           raddb/sites-available/buffered-sql, the "track" config item.
791         * CoA and Disconnect packets can now be sent to a specific
792           home server by setting control:Packet-Dst-IP-Address and
793           (optionally) control:Packet-Dst-Port.
794         * Allow CoA and Disconnect packets to be read from the
795           detail file.
796         * Allow LDAP to specify arbitrary attributes for dynamic
797           clients.
798         * Convert all unused attributes in the control: list to config
799           pairs in dynamic clients. This allows arbitrary client
800           attributes to be set for dynamic clients too.
801         * rlm_couchbase now supports bulk loading of clients on startup
802           in a similar way to rlm_ldap. Contributed by Aaron Hurt.
803         * Allow one level of backslashes (finally).  See radiusd.conf,
804           "correct_escapes" setting.
805         * Rename dictionary.redback to dictionary.ericsson.ab
806         * Add --disable-openssl-version-check option to configure.
807           So vendors can disable the check.  Patch from
808           Nikolai Kondrashov.
809         * Do context-specific indenting in debug messages.  This makes
810           the debug output easier to read.
811         * Make configuration a separate RPM, just like for Debian.
812         * better decoding of unknown VSAs
813         * When supported by OpenSSL, allow TLS 1.1 and TLS 1.2
814           in EAP methods.
815         * Allow multiple new connections to be spawned simultaneously
816           in the connection pool, to cope with spikes in traffic.
817         * Document retry_delay in connection pools.
818         * Allow checksimul in rlm_couchbase.
819         * Use kqueue on systems which support it.  This allows for
820           better scaling when using many sockets.
821
822         Bug fixes
823         * Parse list qualifiers in generic LDAP 'valuepair_attribute'
824           attributes correctly.
825         * Fix issue where prefix length would be ignored for dynamic
826           or static clients if the address matched INADDR_ANY
827           (0.0.0.0).
828         * Allow null user object filter in rlm_ldap, it's valid to
829           specify a complete object DN and use the base scope.
830         * Don't SEGV if a received attribute value in a JSON structure
831           is null, or a value can't be stringified.
832         * Don't assert if the server returns a JSON content-type and
833           the server hasn't been built with support for JSON.
834           Closes #808.
835         * Set CURLOPT_NOSIGNAL to prevent curl from handling signals
836           and causing a longjmp error when the server was running with
837           threads.
838         * Allow tabs after attribute names in the "users" file.
839           Closes #796.
840         * Free unknown DICT_ATTRs.  Closes #795
841         * Handle unknown attributes in the conditions and "update"
842           sections.  e.g. Attr-1.2.3.4 = foo.
843         * Use correct array size for MS-CHAP new password.
844         * In rlm_rest, check for older versions of libraries at start
845           time, rather than when a packet comes in.
846         * Don't call detach on parse error in rlm_perl.  Closes #802.
847         * Integer fixes for big-endian systems.  Closes #803.
848         * Don't optimize %{Packet-Src-IP-Address}.  Closes #804.
849         * dhcpclient loads dictionaries correclty.  Closes #805.
850         * double quotes are no longer escaped in single-quoted
851           strings.  e.g. 'foo "hello" bar'.
852         * Fixes for proxying to virtual servers broke the detail file
853           reader.  Now they both work.
854         * Typos and fixes from Nikolai Kondrashov.
855         * Fixes to OpenSSL version checks, for cross-platform issues.
856         * cppcheck fixes from Herwin Weststrate.
857         * Fix build for OSX Yosemite
858         * Merge DHCP sub-options.  Closes #812.
859         * Fix decoding of Starent attributes.
860         * When a module asks for a connection, don't return idle
861           connections.
862         * LDAP connection timeouts will now retry, instead of failing.
863         * Prevent race conditions between fork and wait for child.
864           Patch from James Rouzier.
865         * Fix triggers for connection pools.  Patches from
866           Nikolai Kondrashov.
867         * Fix SEGV when comparing non string type check items.
868         * Build with newer versions of libmysqlclient.
869         * make the %{escape:} and %{unescape:} xlat functions UTF8
870           safe.
871         * Don't escape UTF8 chars in SQL query strings.
872         * Fix issue in cached LDAP group comparisons, which caused
873           checks to sometimes fail.
874         * Fix use after free issue in unlang switch evaluation.
875         * Respect operators in rlm_cache when merging into the current
876           request.
877         * Update Cache-Entry-Hits each time rlm_cache is called.
878         * Produce WARN messages if SQL queries are empty strings.
879         * Fix invalid assertion when proxying CoA requests.
880         * Allow empty strings in "case" statements.  Closes #836.
881         * Normalize escaping for string expansions.  i.e. don't do
882           double escaping in rare situations.
883         * Normalize LDAP escaping.  LDAP servers have multiple ways
884           to escape things, so the data has to be normalized before
885           we can compare two LDAP DNs.
886         * Don't go to high debug level if we're proxying inner EAP
887           as EAP.  Closes #839.
888         * Fix rlm_rest state handling.  Closes #835.
889
890 FreeRADIUS 3.0.4 Wed 10 Sep 2014 12:00:00 EDT urgency=medium
891         Feature improvements
892         * Home server "response_window" can now take fractions of a
893           second.  See proxy.conf.
894         * radmin now supports "show module status", as thee counterpart
895           to "set module status"
896         * Added dictionary ericsson.packet.ccore.networks, bluecoat,
897           citrix, compatible, riverbed, ruckus, and RFC 7268.
898         * Add %{tag:} expansion to get the tag value of an attribute.
899         * Report 'application_name' in connections to PostgreSQL servers.
900           FreeRADIUS connections will now appear as
901           'FreeRADIUS <version> - <name>' in pg_stat_activity.
902         * All config item fields are now type checked at compile time
903           to prevent issues similar to #634 occuring again.
904         * Modify pairparsevalue to deal with embedded NULLs better,
905           and use the binary versions of attribute values in rlm_ldap.
906         * "ipaddr" will now use v6 if no v4 address is present.  You should
907           use "ipv4addr" or "ipv6addr" to force v4/v6 addresses.
908         * The above applies to "listen", "home_server", and "client" sections.
909         * "client" sections will allow "ipaddr = 192.192.0/24".  The old
910           "netmask" is still accepted, but the new format is preferred.
911         * Allow custom HTTP headers to be set for rlm_rest requests using
912           control:REST-HTTP-Header (attributes consumed after use).
913         * Extend format of %{rest:} expansion to allow HTTP method and POST
914           data to be specified
915           e.g. %{rest:POST http://example.org/api foo=bar&baz=boink}.
916         * Add %{hmacsha1:&data &key} and %{hmacmd5:&data &key} expansions
917           for signing data in requests.
918         * rlm_cache now consumes its control attributes to make runtime
919           configuration easier.
920         * Add control:Cache-Read-Only which when set to 'yes' will make the
921           cache module merge existing cache data, but not create new entries.
922         * Add %{unescape:} and %{urlunquote:} expansions to reverse escaping
923           and urlquoting.
924         * Add support for aliases in rlm_ldap.
925         * Add support for connection pool sharing to all modules that use
926           the connection pool (pool = <instance>).
927         * "tls" sections now have a "psk_query" configuration item, for dynamic
928           queries to discover a key from a PSK identity.
929         * Preliminary support for EAP channel bindings.
930         * Foundational work for dynamic home servers.  They do not yet work,
931           but this is now only a matter of updating the "realm" module in
932           a future release.
933         * Support &attr[*] syntax to copy all instances of an attribute when
934           used with the += operator in an update section. May be qualified with
935           a tag.
936         * The logintime and expiration modules can now be listed in the
937           post-auth section.  This makes some configurations simpler.
938         * Allow comparison of integer attributes of different sizes,
939           without requiring a cast.
940         * rlm_sqlippool is now IPV6 capable.  Set "ipv6 = yes" to get
941           Framed-IPv6-Prefix returned.  The SQL queries have NOT been updated.
942           Please submit patches.
943         * The debian build now checks for the OpenSSL package with the heartbleed
944           fix, and if found, sets: allow_vulnerable_openssl = 'CVE-2014-0160'
945         * allow bootstrap from multiple files in sqlite driver.
946
947         Bug fixes
948         * make case-insensitive regular expressions work again, and add tests
949           for them.
950         * A few more talloc parenting issues
951         * Fix delayed proxy reply handling.  Closes #637
952         * Fix OpenSSL initialization order when using
953           RADIUS/TLS.  Fixes #646
954         * Don't double-quote strings in debugging messages
955         * Fix foreach / break.  Fixes #639
956         * Chargeable-User-Identifier, ADSL-Agent-Circuit-Id and
957           ADSL-Agent-Remote-Id should be "octets" types in the default
958           dictionary.
959         * Fix typo in mainconfig.  Fixes #634
960         * More rlm_perl fixes.  Fixes #635
961         * Free OpenSSL memory on clean exit.
962         * Fix <attr>[0] !* ANY - Was removing all instances of <attr>
963         * Fix case where multiple attributes were returned from RHS of
964           mapping, as with rlm_ldap. Fixes #652
965         * Fix corner case in cursor where using fr_cursor_next_by_da
966           after calling fr_cursor_remove may of resulted in a read of
967           uninitialised memory.
968         * Don't SEGV if all connections to a database server go away.
969           Fixes #651.
970         * Fix issue where <attr> -= <value> was not removing tagged
971           instances of <attr> equal to <value> (only untagged).
972         * Fix issue where tag values were not being set on attributes
973           created with unlang/ldap update blocks.
974         * Create rlm_sqlcounter attributes as integer64 types instead
975           of integer types, so large counter values can be specified.
976         * Fix issue where specifying a dynamic client IP addresss using
977           FreeRADIUS-Client-IPv6-Prefix or FreeRADIUS-Client-IP-Prefix
978           may have caused a validation error.
979         * Don't print two "&" for messages about attribute or list
980           references in debug output.
981         * Fix urlquote and escape to encode Unicode characters correctly.
982         * Fix redundant-load-balance blocks to try other modules in
983           the group if one fails.
984         * Fix issue with rlm_pap password normalisation where
985           'known good' password strings stored in octets type attributes,
986           would be sometimes misnormalised as base64.
987         * Don't stop processing DHCP options if we find a 0x00 padding
988           option.
989         * Fix issue where modifying the value of an attribute created
990           from a template with a literal value, may have resulted in the
991           template literal being freed.
992         * Fix parenting issues in tls code which may have resulted in
993           memory corruption and crashes.
994         * Fix issue in radsniff where writing to PCAP files and using
995           -R response filters, where the requests would still be written
996           to the PCAP for non matching responses.
997         * Define __APPLE_USE_RFC_2292 so that the server builds with IPv6
998           support on OSX.
999         * Fix LDAP group lookups for named rlm_ldap instances.
1000           Note that attribute references should be used when
1001           checking LDAP-Group attributes. e.g. if (&LDAP-Group == 'foo').
1002         * Delayed attribute references can now be used in unlang
1003           existence checks.  i.e. if (&Attribute-Name) { ... }
1004         * Fix issues in EAP-PWD.  CVE-2014-4731, CVE-2014-4732, and
1005           CVE-2014-4733.  There is no external authentication bypass.
1006         * Fix a number of uses of the talloc parent/child reference.
1007         * Release connection used for reading bulk clients in rlm_ldap.
1008         * rlm_rest is now fail-safe if it's used without any configuration
1009         * Pull in build fixes for FreeBSD from ports.
1010         * Fix error in sqlite postauth query
1011         * Evaluate argument to "switch" statements once, instead of for each
1012           "case" statement.
1013         * Define sig_t on systems without it.  Closes #765.
1014         * Fix boundary issue with rlm_rest.  Closes #768
1015         * Optimize "%{Attribute-Name}" in comparisons only if the dictionary
1016           types match.
1017         * Don't do chmod() in rad_mkdir() if the directory already exists.
1018           We might not have permission to change it.
1019         * Use getpwnam_r() and getgrnam_r() on systems which support it.
1020           Closes #775.
1021         * Clients loaded from SQL are now tied to the "listen" section
1022           of a virtual server, instead of being global.
1023         * Check for -lpcre.  The system might have pcre.h without -lpcre.
1024         * When proxying to a virtual server, use the proxy_reply instead
1025           of ignoring it.
1026         * Fixed typos in DHCP SQL IPPool.
1027         * Fix crash when passing multiple arguments to Perl xlat.
1028
1029 FreeRADIUS 3.0.3 Mon 12 May 2014 15:30:00 EDT urgency=medium
1030         Feature improvements
1031         * Everything now builds with no warnings from the C compiler,
1032           clang static analyzer, or cppcheck.
1033         * rlm_ldap now supports defining the LDAP attribute name via
1034           backticked expansion (i.e. shell command) in
1035           RADIUS <-> LDAP mappings.
1036         * rlm_ldap now supports older style generic attributes.
1037         * dynamic expansions (e.g. "%{expr:1 + 2}" are now parsed
1038           when the server starts.  Syntax errors in the strings
1039           are caught, and a descriptive error is printed.
1040         * Static regular expressions (e.g. /a*b/) are now parsed
1041           when the server starts.  Syntax errors in the strings
1042           are caught, and a descriptive error is printed.
1043         * dynamic expansions are cached after being parsed.  They are
1044           no longer re-parsed at run-time for every request.
1045         * regular expressions are now parsed and cached when the server
1046           starts.
1047         * Added the %{rest:} expansion to rlm_rest, which will send
1048           a GET request to the URL passed as the format string.
1049           Any body text will be written to the expansion buffer.
1050         * rlm_rest now available as a debian package.
1051         * When an 'if' condition statically evaluates to true/false,
1052           unlang does more static optimization.  For examples, see
1053           src/tests/keywords/if-skip
1054         * All modules are marked as safe for '-C', which lets the
1055           dynamic expansion checks work in more situations.
1056         * Added 'none' and 'custom' rlm_rest body types. 'custom'
1057           allows sending of arbitrary expanded text and content-type
1058           headers.
1059         * Added "config" section to Perl.  See mods-available/perl
1060         * Added '%v' which expands to the server version - Patch
1061           from Alan Buxey.
1062         * more mis-matched casts are caught in "if" conditions,
1063           and descriptive errors are printed.
1064         * Support basic response validation in radclient. This allows
1065           administrators to write local test cases for their
1066           site-specific configurations.
1067         * Removed radconf2xml and radmin "show client config" and
1068           "show home_server config".
1069         * Forbid running with vulnerable versions of OpenSSL.
1070           See "allow_vulnerable_openssl" in the "security"
1071           subsection of "radiusd.conf"
1072         * Catch underlying "heartbleed" problem, so that nothing bad
1073           happens even when using a vulnerable version of OpenSSL.
1074         * Add locking API for sql_null, linelog, and detail modules,
1075           which should improve performance and work around issues
1076           on platforms with bad file locking.
1077         * Allow DHCP NAKs to be delayed, via setting
1078           reply:FreeRADIUS-Response-Delay = 1
1079         * Allow tag and array references anywhere attributes
1080           are allowed in "unlang".
1081         * many enhancements to radsniff, including output
1082           to collectd, ipv6 support and packet loss statistics.
1083         * Many dictionary updates (ZTE, Brocade, Motorola).
1084         * rlm_yubikey now automatically splits passwords from OTP
1085           strings.
1086         * The detail file reader is now threaded by default.
1087           This should improve performance reading the files.
1088
1089         Bug fixes
1090         * Fix xlat expression %{attribute[n]} so that it actually
1091           returns the n'th attribute instead of the first one.
1092         * Don't parse string on RHS of update {} when using unary
1093           operators (!*).  The RHS should always be ignored.
1094         * Check for more optional functions in json-c so we can
1095           Build with libjson0, which is the name of the json-c package
1096           on debian/ubuntu.
1097         * Fix issue in radmin where the main dictionaries would
1098           not be loaded which, depending on the configuration, may
1099           have caused validation errors.
1100         * Fix handling of "%{reply:3GPP-*}"
1101         * Fix rlm_perl garbage attributes
1102         * Fix oracle SQL queries, which amongst other things still
1103           used the old expansion format, which is no longer
1104           supported/parsed.
1105         * Truncate long format strings and error markers instead of
1106           omitting them.
1107         * Fix multiple attribute parsing in rlm_rest JSON.
1108         * Don't crash in rlm_rest if connect_uri is commented out
1109           in the configuration.
1110         * Don't double-escape strings to / from Perl.  You may need
1111           to double-check your Perl scripts if they use "\" characters.
1112           See mods-available/perl for documentation.
1113         * Don't re-run "authorize" if a home server fails to respond.
1114         * Don't append "0x" to hex output of octets types, for xlat
1115           expansions.  This is the same as v2, and makes it easier
1116           to concatenate multiple attributes of type "octets"
1117         * FreeBSD fixes for execinfo linking.
1118         * Make some of the module configurations more consistent.
1119         * Fix corner cases where STDOUT wouldn't be closed in
1120           daemon mode.
1121         * Re-enable "update coa" and originating CoA requests.
1122         * Prevent multiple threads writing to the sql query logs.
1123         * Fix zombie period calculation.  Closes #579
1124         * Properly parent VPs for talloc, when moving them in map2request.
1125         * Various fixes for talloc parent / child relationships
1126         * Allow rlm_counter to support VSAs.
1127         * Normalize return codes for many modules. "do nothing" is noop,
1128           not "ok".
1129         * Run Post-Proxy-Type Fail.  Closes #576
1130         * Fix DHCP destination port for replies to relays.  Closes #591
1131         * Do-Not-Respond policy works again  Closes #593
1132         * Proxy-To-Virtual-Server works again.  Closes #596
1133         * Build fixes for ancient systems.  Closes #607, #608, #609.
1134         * %{Module-Return-Code} works again.  Closes #610.
1135         * Don't increment statistics for Status-Server responses.
1136           Closes #612.
1137         * A duplicate request isn't a duplicate if the original one
1138           is marked "done".  This should lower retransmissions from
1139           clients.
1140         * Fix multiple regular expression and glob memory leaks.
1141         * Don't allocate any memory in fr_fault() as it can cause malloc
1142           to deadlock.
1143         * Temporarily set dumpable flag before calling system in fr_fault()
1144           else the debugger may not be able to attach.
1145         * Set nonblock on all TCP client sockets.
1146         * Fix minor buffer overrun in mschapv2 where some attribute strings
1147           were not correctly \0 terminated.
1148         * Fix crash on authentication failure with MIT kerberos.
1149         * Fix code so that octal escape sequences aren't prematurely unescaped
1150           in rlm_sql, radclient, preprocess, and other places. This may
1151           require configuration changes, as these sequences will no longer
1152           need double escaping (\\) of the backslash.
1153         * The connection pools no longer have one connection used twice
1154           in certain rare conditions.
1155         * Use self pipes for internal signals.  The code was there, but was
1156           unused.
1157         * Don't crash if there are outstanding EAP sessions and were told to
1158           exit gracefully.
1159         * Fix typo in dictionary.rfc4072
1160
1161 FreeRADIUS 3.0.2 Fri 21 Mar 2014 08:30:00 EDT urgency=medium
1162         Feature improvements
1163         * secret keys and LDAP / SQL passwords are now printed as
1164           '<<< secret >>>' in debugging mode.  Use -Xx to see the
1165           actual passwords.
1166         * Print out more information about passwords in -Xx,
1167           including hashes, comparisons, etc.
1168         * Allow cast (and implicit conversion) of integers to IPv4 addresses
1169         * More xlats allow attribute references.  This means they can
1170           operate on binary data.  e.g. expr, base64, md5, sha1.
1171         * Added more tests.
1172         * The dictionaries are now auto-loaded.  raddb/dictionary
1173           should no longer have $INCLUDE ${prefix}/share/dictionary
1174         * A "panic_action" can be set to have the server dump a gdb
1175           log on SEGV or other fatal error.  See radiusd.conf
1176         * Add support for SHA-224, SHA-256, SHA-384, SHA-512 to rlm_pap.
1177         * Add "%{sha256:}" and "%{sha512:}" xlat functions.
1178         * Cache CUI in EAP session resumption.
1179         * templates can now have sub-sections, which will be included
1180           in the section referencing the template.
1181         * Update more dictionaries.
1182         * Added more instances of the "always" module, for all return
1183           codes.
1184         * Suppress broken NASes when proxying.  Retransmits which occur
1185           more than once per second are rate-limited to once per second.
1186         * Allow '&' in more xlat expansions.
1187         * Update PostgreSQL schema and queries to record last updated
1188           time, and accounting interim.
1189         * Optimize more "if" conditions when the server loads.  This will
1190           avoid work at run time.  e.g. ("foo" == "bar") --> FALSE.
1191         * Allow removal of all attributes within a list with !* operator.
1192         * Allow list to list copies with request qualifiers (outer.).
1193         * Add support for ipv4 prefixes and ipv6 addresses and prefixes to
1194           %{integer:}.
1195         * allow radmin command "set module status <module> <code>"
1196           which can be used to forcibly enable/disable modules.
1197         * pap module now assumes Cleartext-Password if Password-With-Header
1198           doesn't have a {...} header.
1199         * Added "unpack" module.  It can unpack binary data from horrible
1200           VSA formats.  See raddb/mods-available/unpack
1201         * Added example IP Pool for DHCP, using sqlite.  From Matthew Newton
1202           See raddb/mods-config/sql/ippool-dhcp/
1203
1204         Bug fixes
1205         * Fix SQL groups.
1206         * Fix operation of fr_strerror() with RE*() macros.
1207         * Don't assert if the connection we're trying to reconnect
1208           is not in_use.
1209         * Fix %{mschap:User-Name} xlat.
1210         * Allow comparisons of signed integers and of ethernet addresses.
1211         * Fix parsing of text-based ascend binary filters.
1212         * Fix a few minor Coverity and clang analyzer issues.
1213         * Log WARNING and ERROR prefixes only once, not twice.
1214         * Fix attribute truncation seen in Perl and other places.
1215         * Use correct port when DHCP relaying.
1216         * Fix behaviour on FreeBSD where sending packets from an interface
1217           bound to an IP address would fail when the server was built with
1218           udpfromto.
1219         * Don't abort() when freeing home servers on exit.
1220         * Fix edge case in pairmove() when some attributes could be over-
1221           written.
1222         * Do checks for individual sqlite v2 functions so rlm_sqlite builds
1223           correctly with more versions of the library.
1224         * In heimdal kerberos, create MEMORY ccaches on a per context basis.
1225           This prevents issues with the root ccache being used.
1226         * Fix corner case with proxying, where home server goes down.
1227         * Rate-limit "max_requests" complaint.  We don't want to fill the
1228           logs when something goes wrong.
1229         * Use /dev/urandom for raddb/certs/random, if it exists.
1230         * Issue WARNING that old-style clients should no longer be used.
1231         * Auto-set secret to "radsec" for tcp+tls home servers.
1232         * Fix double free in home_server_add when there is a parse error
1233           on startup.
1234         * rlm_unix checks if the dictionaries are broken, instead of crashing
1235         * Fix potential memory corruption when normalising salted password
1236           hashes from hex, where the combined hash and salt was > 64 bytes.
1237         * Register sqlcounter attributes correctly, and other issues with it
1238         * treat 127.0.0.1/32 as being identical to 127.0.0.1
1239         * Don't mangle error output of SQL drivers like PostgreSQL
1240         * Fix usage of "tls = ${tls}".  It could previously cause problems
1241           when the reference was used multiple times.
1242         * Fix TLS session leak for incoming sockets.
1243         * Try harder to clean up memory on exit when using "-mM"
1244         * Fix memory leak when home server is down for RadSec connections
1245         * rate-limit outgoing connection attempts when the home server
1246           is down.  It will retry no more than once per second.
1247         * When parsing ipv6 address prefixes, always mask off the host
1248           portion.
1249         * Fix rlm_counter so that it does not create two reply
1250           attributes.
1251         * Fix issues with DHCP Sub-TLVs where the value of the first
1252           Sub-TLV would appear corrupted, and subsequent TLVs would
1253           not appear in debug output.
1254         * Initialize scope in IP address parsing
1255         * Prevent vendor attributes and RFC space attributes from clashing
1256           in rlm_attr_filter.
1257         * Set source IP address for DHCP packets from DHCP-Server-IP-Address,
1258           or DHCP-DHCP-Server-Identifier, if we're unable to otherwise
1259           determine the source IP.
1260         * Fix POST attribute parsing in rlm_rest.
1261         * Fix JSON attribute parsing in rlm_rest.
1262         * Don't append trailing & to POST options in rlm_rest (minor).
1263         * Process HTTP 100 Continue messages correctly in rlm_rest
1264         * Fix generation of long > 512 byte POST payloads, where attribute
1265           values on the chunk boundary may have been omitted in rlm_rest.
1266         * Remove duplicate escape sequence parsing in rlm_sqlippool and
1267           rlm_sqlcounter which caused issues with escaping %. Escape
1268           sequence parsing is now handled purely by the xlat functions.
1269         * Ensure %% is treated as a string literal, and so not passed to any
1270           xlat escape functions for processing.
1271         * Correct calculation of Message-Authenticator
1272           for CoA packets.  Closes #556
1273
1274 FreeRADIUS 3.0.1 Mon 13 Jan 2014 14:30:00 EDT urgency=medium
1275         Feature improvements
1276         * Add "timeout" to exec, and "ntlm_auth_timeout" to mschap.
1277           So that run-away child processes are caught earlier.
1278         * Allow TLS clients to use "proto = tls", in which case
1279           TLS is required.  The shared secret is then set to "radsec".
1280         * More documentation in the tls virtual server.
1281         * Add "date" module for date formatting.
1282           See raddb/mods-available/date.
1283         * Added unit test suite for internal server functionality
1284         * When loading "update" sections, check if the RHS is a literal
1285           value.  If so, syntax check it immediately.
1286         * Update LDAP module documentation and functionality.
1287           The generic attribute can now update lists.
1288         * Updated dictionary.extreme.
1289         * Update sqlippool to do clears as a separate transaction,
1290           and at most once per second.  This should help MySQL.
1291         * Respect control:Response-Packet-Type for all types of
1292           requests.
1293         * Add support for SSL encryption to the MySQL driver.
1294         * Allow arbitrary connection parameters to be used with the
1295           PostgreSQL driver.
1296         * Changes to the OpenLDAP schema to fully expose functionality
1297           of the new LDAP module.
1298         * Update debian packaging to include a freeradius-config
1299           package. This package may be provided as a site local
1300           package to avoid fighting with the preinstalled config
1301           files.
1302
1303         Bug fixes
1304         * Use correct field for ARP setting in DHCP.
1305         * Fix crash on debug condition (#454).
1306         * Fix a number of minor issues caught by the clang
1307           analyzer.
1308         * Set WARNING messages to yellow instead of normal text.
1309         * Correct debug colorise logic.  Patch from Phil Mayers.
1310         * Encode attributes of type "ethernet".  No one uses them,
1311           but it makes sense.
1312         * Work around regex initialization issues.
1313         * Fix build when linking against OpenSSL.
1314         * Print IDs as positive numbers, which helps for large DHCP
1315           XIDs.
1316         * Fix issue with sql_ippool.
1317         * sqlcounter now uses 64-bit counters, to deal with 4G overflow.
1318         * Fix issues with DHCP subsystem.
1319         * Don't build / install disabled modules, or their config
1320           files.
1321         * Fix build for OSX Mavericks, which hid the header files
1322           in a magical place.
1323         * Fix LEAP buffer issue.  You should still avoid LEAP.
1324         * Mark "unknown" WiMAX attributes as being WiMAX.
1325         * Fix typo in packet decoder for fragmented extended attrs
1326         * RPM spec fixes.
1327         * Fix rlm_perl build issues when not using threads.
1328         * Enable %{Response-Packet-Type} again.
1329         * Update configuration file parser to handle "bool"
1330           consistently.
1331         * Update declarations of global boolean variables to use
1332           "bool" consistently. This fixes an issue where some
1333           modules were instantiated in "config check" mode and
1334           did not work correctly.
1335         * Make more messages debug instead of info, to avoid
1336           polluting the logs with messages that can't be fixed.
1337         * Set operator in internal unlang code to suppress spurious
1338           warning messages.
1339         * Fix debian packaging.
1340         * Added "status" to Debian init script.
1341         * Fix "update outer.request" to update the outer request.
1342         * Don't print TLS debugging messages when not in debug mode.
1343         * Correctly manage counters for "limit" sections of TCP / TLS
1344           "listen" sockets.
1345         * Fix libldap debug output.
1346         * Fix rlm_ldap tls functionality.
1347         * Initialise OpenSSL globals early to avoid issues with the
1348           PostgreSQL library.
1349         * Fix typo in sqlcounter expansion code.  Fixes #463
1350         * Overwrite previous instances of SQL-User-Name when adding
1351           it to the request.
1352         * Work around bugs in both MIT and heimdal versions of
1353           krb5_copy_context(), which caused segfaults in
1354           multithreaded mode.
1355         * Provide meaningful error messages if Heimdal krb5 is used.
1356         * Fix attribute supression in rlm_detail.
1357         * Exit with error code if child fails to complete server
1358           initialisation after forking.  This allows init scripts to
1359           correctly report whether the server started ok.
1360
1361 FreeRADIUS 3.0.0 Mon  7 Oct 2013 15:48:14 EDT urgency=medium
1362         Feature improvements
1363         * Documentation for upgrading from 2.x is in raddb/README.rst
1364           Please follow it.  It will make the upgrade easier.
1365         * Moved configuration entries in radiusd.conf to make more sense.
1366         * Added the "integer64" and "ipv4prefix" data types.
1367         * Added RADIUS over TLS (i.e. RadSec). See raddb/sites-available/tls
1368         * Updated internal API to support new attributes and formats
1369         * Added code to send SNMP Traps.  See raddb/trigger.conf.
1370         * Added preliminary support for Apple's Grand Central Dispatch
1371         * Added provisions for raddb/dictionary.local, for local changes.
1372           See raddb/dictionary for more details.
1373         * Added packet/s tracking. See max_pps in the "listen" section.
1374         * The %{} expansions and "unlang" conditions are now parsed at server
1375           start. Descriptive errors are produced for syntax and format errors.
1376         * Casting is now supported for "unlang" comparisons.  See "man unlang"
1377           e.g. <ipaddr>127.0.0.1 == Framed-IP-Address.
1378         * Direct comparison of attribute references is now supported.
1379           e.g. &Foo == &Bar.  This avoids stringification of the attributes.
1380         * Direct assignment of attributes is now supported.
1381           e.g. Foo := &Bar.  It also works for "octets" data types.
1382         * Comparisons of IPv4 and IPv6 prefixes are now supported.
1383           The "<" operator means "within the prefix" for comparisons.
1384         * New sha1 xlat expansion (thanks to Alan Buxey)
1385         * Colourised log messages when logging to stdout.  Look for yellow
1386           warnings and red errors.  Doing this will save you a LOT of grief.
1387         * If the PCRE library is available, use it (insted of the POSIX
1388           functions) to process regular expressions (thanks to Phil Mayers).
1389         * -xv now displays all the features the server was built with, and
1390           the versions of the core libraries (libtalloc, libssl).
1391
1392         Module Changes
1393         * Moved raddb/modules/ to raddb/mods-available/, and raddb/mods-enabled/,
1394           following the examples of other projects.
1395         * Additional files for each module are now in raddb/mods-config/.
1396           See raddb/mods-config/README.rst for documentation.
1397         * Moved "users" to raddb/mods-config/files/authorize
1398         * Moved "hints" and "huntgroups" to raddb/mods-config/preprocess/
1399         * Moved eap.conf to mods-available/eap
1400         * Moved sql.conf to mods-available/sql
1401         * Moved TLS configuration for EAP into a common subsection.
1402           See raddb/mods-available/eap, "tls-config" section.
1403         * Added for MS-CHAP Change Password from Phil Mayers.
1404           See raddb/mods-available/mschap, "passchange" subsection.
1405         * Added EAP-PWD implementation from Dan Harkins
1406         * Added connection pools for modules. This unifies connection
1407           management which was previously different for different modules.
1408         * SQL now uses the connection pool.  See mods-available/sql
1409         * SQL now supports arbitrary Acct-Status-Types.
1410           These changes are not compatible with 2.x.
1411         * SQL now has full support for SQLite.  See raddb/sql/main/sqlite/
1412         * SQLite supports auto-creation of new databases on server startup for
1413           bootstrapping purposes.
1414         * LDAP now uses the connection pool.  The LDAP module has been
1415           completely re-written for performance and simplicity.
1416         * LDAP now caches groups.  This makes multiple group checks MUCH
1417           faster.
1418         * Removed all limitations on 253 octet attributes.  RFC 6929 allows
1419           for attributes up to 4K in length.
1420         * New rlm_idn module providing an expansion for performing IDNA encoding
1421         of internationalized domain names.  Thanks to 'skids'.
1422         * New rlm_yubikey module to validate yubikey OTP tokens.
1423           See raddb/modules/yubikey
1424
1425         Bug fixes
1426         * All known bug fixes from 2.2.x are included.
1427         * Removed "addport" functionality.
1428         * Removed many unused or duplicate modules.  See raddb/README.rst.
1429
1430         Internal / API changes:
1431         * All traces of the old build system have been removed.
1432           The new build system is faster and simpler.
1433         * clang is fully supported.
1434         * We now use "talloc" for memory management.  A number of new
1435           features required this change.  Thanks to the Samba people!
1436         * Many internal APIs have been updated to use talloc.
1437         * New API for iterating over VALUE_PAIRs.  This is in preparation
1438           for attributes, in version 3.1.
1439         * No new code should directly modify any field of a VALUE_PAIR.
1440         * VALUE_PAIRs contain pointers to DICT_ATTR instead of containing
1441           attribute and vendor fields.  This will allow nested attributes.
1442         * Some protocol specific code has been moved out into proto_* modules.
1443           More will come in subsequent versions.  See proto_dhcp and proto_vmps.
1444         * Standardised internal logging macros.  radlog() should not be used.
1445           See src/include/log.h
1446         * Use OpenSSL hashing functions when available.
1447         * The server now builds with no warnings on most platforms.
1448         * New RADIUS encoder/decoder, to support new formats.
1449         * Added RFC 6929 "extended attributes", via the new encoder/decoder.
1450         * Added full WiMAX support, via the new encoder/decoder.  The old
1451           code could not handle some unusual corner cases.