Update ChangeLog
[freeradius.git] / doc / ChangeLog
1 FreeRADIUS 3.0.8 Thu 19 Feb 2015 12:00:00 EDT urgency=medium
2         Feature improvements
3         * Allow syslog_severity to be set in rlm_linelog.
4         * Allow defaults to be set for bulk clients in LDAP and couchbase.
5         * Updates to dhcpclient.  Patches from Nicolas C.
6         * rlm_mschap now supports direct connections to winbind, which
7           is faster than ntlm_auth.  See raddb/mods-available/mschap.
8           Patch from Matthew Newton.
9         * Recommend /dev/urandom for TLS randomness, instead of
10           ${certdir}/random
11         * Allow TLSv1 to be disabled via "disable_tlsv1" in tls{}.
12
13         Bug fixes
14         * Don't complain about "authorize" in "server {}" blocks, but
15           only if there's no "server" block.
16         * Fix cosmetic issue where debug from the first packet read by
17           a detail reader thread would be emited during config parsing.
18         * Fix ASSERT on truncated detail packets.
19         * Don't use main server log functions from within panic_action,
20           as in the case of syslog this would cause deadlocks if the
21           fault was triggered from within a malloc.
22         * Fix issue in "switch" when "correct_escapes = false".
23           Fixes #911.
24         * Fix sqlcounter configuration to use "%%b" instead of "%b",
25           otherwise the new syntax validation will fail.
26         * Allow forward references in configuration items.  Modules
27           aren't always loaded in a sane order.
28         * Fix more escaping issues.  Closes #912.
29         * Decode MAC addresses correctly for VMPS.
30         * Fix memory leak with TLS connections.
31         * Fix state machine threading issues for conflicting packets.
32         * Fix copy_request_to_tunnel issues for tagged attributes.
33         * Allow "ok" to over-ride "updated" inside of Auth-Type sections.
34         * Update state machine so that post-proxy is run though child
35           threads for performance, instead of blocking the main thread.
36         * Allow "netmask" to work again in client definitions.
37         * Relax restrictions on SQL group queries.
38         * track outgoing proxy sockets and clean them up more aggressively.
39         * track proxy statistics, including CoA and Disconnect.
40         * If radmin has a connection failure when running a command,
41           it re-connects and runs the command again.
42         * mark home servers "unknown" less aggressively.
43         * Fix potential SEGV in PostgreSQL driver on error.
44         * Fix issue where fields like nas_type would not be accessible via
45           the %{client:} xlat, for dynamic clients.
46         * Set default busy_timeout (of 200ms) in the sqlite driver, so writes
47           don't cause selects to fail in multithreaded mode. This is user
48           configurable, and may be increased if required.
49         * Convert Password-With-Header attributes to binary (from hex or
50           base64), in the authorize method of rlm_pap.
51         * Fix invalid assert in state.c, that could cause abort in
52           post-auth.
53         * Fix double free when -m flag is used, and connection pools are
54           referenced by multiple modules.
55         * RADIUS over TLS accounting uses the same port as authentication.
56         * Regularized return codes from radmin commands.
57         * Fix RHEL spec file so it works correctly for Centos7 which uses
58           systemd, and didn't like the SystemV init script.
59         * radwho and radlast now have a -D option to load dictionaries
60         * DHCP packets are no longer checked for duplicates.
61         * Don't crash in sql module group comparisons in corner case.
62         * Calculate MPPE keys correctly when using TLS 1.2.
63
64 FreeRADIUS 3.0.7 Thu 19 Feb 2015 12:00:00 EDT urgency=medium
65         Feature improvements
66         * Allow coa home_servers to be derived from client
67           sections if a coa_server section is provided.
68         * Automatically determine the correct port if no port is
69           provided for a home server.
70         * Allow foreach to operate over lists.
71         * Add compile time features to ${feature.*} and versions
72           of core libraries to ${version.*}.  Feature and version
73           names match output of radiud -xv. %v is now deprecated.
74         * Add support for PATCH method in rlm_rest.
75         * Validate more module xlats on startup, and warn if an
76           xlat expansion is found in a double quoted config item
77           which will not be expanded.
78         * Add support for sub-second timeouts in rlm_rest.
79         * Add support for connection timeouts in rlm_rest.
80         * Add %{jsonquote:<str>} xlat to escape strings for insertion
81           into json documents.
82         * Add %{ldapquote:<str>} xlat to escape strings for insertion
83           into ldap DNs.
84         * Add %{explode:&ref <char>}, splits value of &ref on
85           <char> and creates new &ref type attributes with the
86           fragments.
87         * Allow rlm_ldap to use attribute references for base_dn and
88           filter config items. The attribute references are not
89           escaped, allowing DNs and filters to be created dynamically.
90         * Add %{nexttime:[<int>]h|d|w|y} to calculate the number of
91           seconds before the next <int> hour(s), day(s), week(s),
92           or year(s).
93         * Allow the left side of update sections to be xlat expansions.
94           The result of the expansion is then used to reference the
95           attribute to be modified.
96         * Added %{lpad:&Attribute-Name 7 x} and rpad.  These produce
97           fixed-width output strings, with padding to the left (lpad)
98           or the right (rpad).
99         * For some SQL drivers (MySQL, sqlite) distinguish between
100           constraints violations (on insert), invalid queries, and
101           server errors, and return noop, invalid, and error respectively.
102         * Call SHOW WARNINGS in the MySQL driver and write them to
103           the request log, if libmysqlclient indicates warnings are
104           available on the server.
105         * Forbid the creation of Vendor-Specific for non-standard
106           VSAs.  Use Attr-26 = 0x... instead.
107         * Make dhcpclient work with raw sockets and various other
108           improvements - Contributed by nchaigne
109         * Add support for SSHA2 - Contributed by PDD.
110         * Add perle dictionary - Contributed by Hachmer
111         * Modernise init scripts for RHEL, SUSE and Debian.
112         * radmin now tracks the return code of commands, and exits
113           with status "1" if any command failed to execute.
114         * radmin now sends error messages from the server to
115           stderr, instead of to stdout.
116         * radmin now looks for sockets matching it's UID and GID,
117           rather than just always using the first one it finds.
118         * radmin can how delete clients which are tied to a listener.
119         * Moved RADIUS attribute definitions to src/include/rfc*.h
120         * Move to talloc pools for requests.  For in-memory tests
121           (default config, 'users' file), performance increases by 30%.
122         * In rlm_ldap allow sasl_mech to be specified for admin and
123           user binds. Only non-interactive mechs (like EXTERNAL)
124           are currently supported.
125         * Remove support for ephemeral RSA keys.  They were "export only",
126           and should not be used by anyone.
127         * Syntax errors in the "users" file now produce better
128           error messages.
129
130         Bug fixes
131         * Fix issues parsing LDAP hostnames with non-standard ports.
132         * Fix issues with realms containing regular expressions.
133         * Allow unary negation before parantheses in rlm_expr.
134         * Fix infinite loop in kevent event loop code. Issue only
135           presented on FreeBSD.
136         * Be more careful to define Auth-Types before loading modules.
137         * Link libfreeradius-radius against OpenSSL too, to avoid
138           multi-version symbols in SSL libraries.
139         * When rlm_ldap rebinds a connection, it should use bind
140           credentials from the module that created the connection
141           pool, not credentials from the module referencing it.
142         * Empty server config pairs should be allowed in rlm_ldap
143           instances that reference another module's connection pool.
144         * Mark rlm_always as huppable, so its rcode can be changed
145           via radmin (allows policy toggles).
146         * Emit warnings when ignoring user configured pool values.
147         * Fix issue that would cause radclient to complain
148           intermittently about differing numbers of filters and
149           requests.
150         * Fix cosmetic issues in connection pool logging, that made
151           it appear as if the same connection was being opened
152           multiple times.
153         * Fix threadsafety issues in SQL drivers, where a static
154           buffer was used to store error messages.
155         * Log RERROR, RWARN, RINFO to the global log if request
156           logging is not enabled.
157         * Link to libldap instead of libldap_r. libldap_r
158           is not supported for use by projects outside of OpenLDAP.
159         * Set connection timeout correctly in rlm_sql_mysql.
160         * Build with older versions of libcurl, and use CFLAGS from
161           curl-config.
162         * Honour Packet-Src-Port and Packet-Src-IP-address in radclient.
163         * Initialise ldapai_info_version field, so libldap will report
164           its vendor and version.
165         * Fix log rotation scripts by using the copyrotate option.
166         * Fix issue that caused opening control sockets to always
167           fail on non-Linux systems, if a user or group was set.
168         * Save Session-State after proxying.
169         * Additional fixes for reading CoA/DM requests from detail
170           files.
171         * Create dynamic clients if the dynamic clients virtual server
172           returns ok *or* updated. Emit useful messages for other codes.
173         * Compile bare "authorize" statements, and issue errors saying
174           using them isn't a good idea.
175
176 FreeRADIUS 3.0.6 Wed 17 Dec 2014 16:00:00 EDT urgency=medium
177         Feature improvements
178         * radmin / raddebug conditional errors are printed
179           to the output, instead of being discarded.
180         * raddebug will exit if condition set with -c was invalid.
181         * radmin auto-reconnects if the connection to the server
182           has gone away.
183         * rlm_cache now has submodule support.  See
184           raddb/mods-available/cache
185         * New memcached driver for rlm_cache. See
186           raddb/mods-available/cache
187         * Add support for &Attribute-Name[*] in conditions.
188           See "man unlang" for details.
189         * Add &Attribute-Name[n] which gets the last instance
190           of an attribute e.g. Module-Failure-Message[n].
191         * Allow for redundant string expansions.  See the
192           "instantiate" section of radiusd.conf.
193         * When checking IP addresses in conditions, make the
194           right side be parsed as an IP prefix.
195         * Support JIT compilation of compiled regular expressions
196           when built with libpcre.
197         * Support named capture groups with "%{regex:<name>}"
198           when built with libpcre.
199         * Increase regular expression capture groups from 8 to 32.
200         * Emit error markers for badly formed regular expressions.
201         * Allow 'm' flag to enable multiline mode in regular
202           expressions.
203         * Support limited implicit attribute conversion in update
204           sections.
205         * Support casting between IPv6 and IPv4 where the IPv6
206           address has the v4/v6 mapping prefix (::ffff:).
207
208         Bug fixes
209         * PEAP works again.  As does proxying EAP-MSCHAPv2
210           from inside of a PEAP tunnel.
211         * "group" is allowed inside of "instantiate" sections.
212         * update disconnect {} with
213           disconnect:Packet-Dst-IP-Address now works correctly.
214         * Regular expression comparisons of non string attributes
215           are now disallowed in the files module.  Previously
216           they would silently fail or produce undefined behaviour.
217         * Fix parsing of old regular expressions.  Closes #842
218         * Fix off by one error in ascend filters.  Closes #843.
219         * Handle NT-Hash in rlm_pap.  This allows passwords to
220           have backslashes in them.
221         * Fix infinite loop on "Fall-Through = yes" when
222           processing SQL groups.
223         * Correct the check of SQL query return code.
224         * Run "Post-Auth-Type Reject" if the request was rejected
225           in post-auth
226         * Write "Login OK" only if the post-auth section passed.
227         * Create TLS-Cert-* certificates, even when EAP session
228           caching is disabled.
229         * Finalize the "correct_escapes" with many more tests.
230         * Move to the new OpenLDAP libldap API, fixes more issues
231           with binary values.
232         * Fix potential memory corruption in rlm_ldap if start
233           connections were set to 0, and the server was running
234           in threaded mode. The fix is a workaround for an issue
235           in libldap and was suggested by Howard Chu.
236         * Give parse errors on "%{...", without the closing brace.
237         * Allow spaces in certificate passwords for build rules
238           in raddb/certs//
239         * Make all regular expression evaluation binary safe.
240           Where that's not possible, emit an error if the pattern
241           or subject contains an embedded null byte.
242         * Fix various issues around masking IPv6 addresses.
243         * Give descriptive error if unknown attributes are used
244           in "update" sections.
245         * Deal with cases where ldap_initialize isn't available
246           gracefully, and use it exclusively when it's available.
247
248 FreeRADIUS 3.0.5 Fri 21 Nov 2014 15:30:00 EDT urgency=medium
249         Feature improvements
250         * Large update to Huawei dictionary.
251         * Added dictionary.rfc7155
252         * Regular expressions like /%{User-Name}/ are now parsed
253           and validated when the server starts.
254         * All configuration items which are dynamically expanded
255           are now parsed and validated when the server starts.
256         * %{expr:...} expressions can now do bit shifting and more.
257           See raddb/mods-available/expr.
258         * The detail file reader can now track packets which have
259           had replies, so they are never re-transmitted.  See
260           raddb/sites-available/buffered-sql, the "track" config item.
261         * CoA and Disconnect packets can now be sent to a specific
262           home server by setting control:Packet-Dst-IP-Address and
263           (optionally) control:Packet-Dst-Port.
264         * Allow CoA and Disconnect packets to be read from the
265           detail file.
266         * Allow LDAP to specify arbitrary attributes for dynamic
267           clients.
268         * Convert all unused attributes in the control: list to config
269           pairs in dynamic clients. This allows arbitrary client
270           attributes to be set for dynamic clients too.
271         * rlm_couchbase now supports bulk loading of clients on startup
272           in a similar way to rlm_ldap. Contributed by Aaron Hurt.
273         * Allow one level of backslashes (finally).  See radiusd.conf,
274           "correct_escapes" setting.
275         * Rename dictionary.redback to dictionary.ericsson.ab
276         * Add --disable-openssl-version-check option to configure.
277           So vendors can disable the check.  Patch from
278           Nikolai Kondrashov.
279         * Do context-specific indenting in debug messages.  This makes
280           the debug output easier to read.
281         * Make configuration a separate RPM, just like for Debian.
282         * better decoding of unknown VSAs
283         * When supported by OpenSSL, allow TLS 1.1 and TLS 1.2
284           in EAP methods.
285         * Allow multiple new connections to be spawned simultaneously
286           in the connection pool, to cope with spikes in traffic.
287         * Document retry_delay in connection pools.
288         * Allow checksimul in rlm_couchbase.
289         * Use kqueue on systems which support it.  This allows for
290           better scaling when using many sockets.
291
292         Bug fixes
293         * Parse list qualifiers in generic LDAP 'valuepair_attribute'
294           attributes correctly.
295         * Fix issue where prefix length would be ignored for dynamic
296           or static clients if the address matched INADDR_ANY
297           (0.0.0.0).
298         * Allow null user object filter in rlm_ldap, it's valid to
299           specify a complete object DN and use the base scope.
300         * Don't SEGV if a received attribute value in a JSON structure
301           is null, or a value can't be stringified.
302         * Don't assert if the server returns a JSON content-type and
303           the server hasn't been built with support for JSON.
304           Closes #808.
305         * Set CURLOPT_NOSIGNAL to prevent curl from handling signals
306           and causing a longjmp error when the server was running with
307           threads.
308         * Allow tabs after attribute names in the "users" file.
309           Closes #796.
310         * Free unknown DICT_ATTRs.  Closes #795
311         * Handle unknown attributes in the conditions and "update"
312           sections.  e.g. Attr-1.2.3.4 = foo.
313         * Use correct array size for MS-CHAP new password.
314         * In rlm_rest, check for older versions of libraries at start
315           time, rather than when a packet comes in.
316         * Don't call detach on parse error in rlm_perl.  Closes #802.
317         * Integer fixes for big-endian systems.  Closes #803.
318         * Don't optimize %{Packet-Src-IP-Address}.  Closes #804.
319         * dhcpclient loads dictionaries correclty.  Closes #805.
320         * double quotes are no longer escaped in single-quoted
321           strings.  e.g. 'foo "hello" bar'.
322         * Fixes for proxying to virtual servers broke the detail file
323           reader.  Now they both work.
324         * Typos and fixes from Nikolai Kondrashov.
325         * Fixes to OpenSSL version checks, for cross-platform issues.
326         * cppcheck fixes from Herwin Weststrate.
327         * Fix build for OSX Yosemite
328         * Merge DHCP sub-options.  Closes #812.
329         * Fix decoding of Starent attributes.
330         * When a module asks for a connection, don't return idle
331           connections.
332         * LDAP connection timeouts will now retry, instead of failing.
333         * Prevent race conditions between fork and wait for child.
334           Patch from James Rouzier.
335         * Fix triggers for connection pools.  Patches from
336           Nikolai Kondrashov.
337         * Fix SEGV when comparing non string type check items.
338         * Build with newer versions of libmysqlclient.
339         * make the %{escape:} and %{unescape:} xlat functions UTF8
340           safe.
341         * Don't escape UTF8 chars in SQL query strings.
342         * Fix issue in cached LDAP group comparisons, which caused
343           checks to sometimes fail.
344         * Fix use after free issue in unlang switch evaluation.
345         * Respect operators in rlm_cache when merging into the current
346           request.
347         * Update Cache-Entry-Hits each time rlm_cache is called.
348         * Produce WARN messages if SQL queries are empty strings.
349         * Fix invalid assertion when proxying CoA requests.
350         * Allow empty strings in "case" statements.  Closes #836.
351         * Normalize escaping for string expansions.  i.e. don't do
352           double escaping in rare situations.
353         * Normalize LDAP escaping.  LDAP servers have multiple ways
354           to escape things, so the data has to be normalized before
355           we can compare two LDAP DNs.
356         * Don't go to high debug level if we're proxying inner EAP
357           as EAP.  Closes #839.
358         * Fix rlm_rest state handling.  Closes #835.
359
360 FreeRADIUS 3.0.4 Wed 10 Sep 2014 12:00:00 EDT urgency=medium
361         Feature improvements
362         * Home server "response_window" can now take fractions of a
363           second.  See proxy.conf.
364         * radmin now supports "show module status", as thee counterpart
365           to "set module status"
366         * Added dictionary ericsson.packet.ccore.networks, bluecoat,
367           citrix, compatible, riverbed, ruckus, and RFC 7268.
368         * Add %{tag:} expansion to get the tag value of an attribute.
369         * Report 'application_name' in connections to PostgreSQL servers.
370           FreeRADIUS connections will now appear as
371           'FreeRADIUS <version> - <name>' in pg_stat_activity.
372         * All config item fields are now type checked at compile time
373           to prevent issues similar to #634 occuring again.
374         * Modify pairparsevalue to deal with embedded NULLs better,
375           and use the binary versions of attribute values in rlm_ldap.
376         * "ipaddr" will now use v6 if no v4 address is present.  You should
377           use "ipv4addr" or "ipv6addr" to force v4/v6 addresses.
378         * The above applies to "listen", "home_server", and "client" sections.
379         * "client" sections will allow "ipaddr = 192.192.0/24".  The old
380           "netmask" is still accepted, but the new format is preferred.
381         * Allow custom HTTP headers to be set for rlm_rest requests using
382           control:REST-HTTP-Header (attributes consumed after use).
383         * Extend format of %{rest:} expansion to allow HTTP method and POST
384           data to be specified
385           e.g. %{rest:POST http://example.org/api foo=bar&baz=boink}.
386         * Add %{hmacsha1:&data &key} and %{hmacmd5:&data &key} expansions
387           for signing data in requests.
388         * rlm_cache now consumes its control attributes to make runtime
389           configuration easier.
390         * Add control:Cache-Read-Only which when set to 'yes' will make the
391           cache module merge existing cache data, but not create new entries.
392         * Add %{unescape:} and %{urlunquote:} expansions to reverse escaping
393           and urlquoting.
394         * Add support for aliases in rlm_ldap.
395         * Add support for connection pool sharing to all modules that use
396           the connection pool (pool = <instance>).
397         * "tls" sections now have a "psk_query" configuration item, for dynamic
398           queries to discover a key from a PSK identity.
399         * Preliminary support for EAP channel bindings.
400         * Foundational work for dynamic home servers.  They do not yet work,
401           but this is now only a matter of updating the "realm" module in
402           a future release.
403         * Support &attr[*] syntax to copy all instances of an attribute when
404           used with the += operator in an update section. May be qualified with
405           a tag.
406         * The logintime and expiration modules can now be listed in the
407           post-auth section.  This makes some configurations simpler.
408         * Allow comparison of integer attributes of different sizes,
409           without requiring a cast.
410         * rlm_sqlippool is now IPV6 capable.  Set "ipv6 = yes" to get
411           Framed-IPv6-Prefix returned.  The SQL queries have NOT been updated.
412           Please submit patches.
413         * The debian build now checks for the OpenSSL package with the heartbleed
414           fix, and if found, sets: allow_vulnerable_openssl = 'CVE-2014-0160'
415         * allow bootstrap from multiple files in sqlite driver.
416
417         Bug fixes
418         * make case-insensitive regular expressions work again, and add tests
419           for them.
420         * A few more talloc parenting issues
421         * Fix delayed proxy reply handling.  Closes #637
422         * Fix OpenSSL initialization order when using
423           RADIUS/TLS.  Fixes #646
424         * Don't double-quote strings in debugging messages
425         * Fix foreach / break.  Fixes #639
426         * Chargeable-User-Identifier, ADSL-Agent-Circuit-Id and
427           ADSL-Agent-Remote-Id should be "octets" types in the default
428           dictionary.
429         * Fix typo in mainconfig.  Fixes #634
430         * More rlm_perl fixes.  Fixes #635
431         * Free OpenSSL memory on clean exit.
432         * Fix <attr>[0] !* ANY - Was removing all instances of <attr>
433         * Fix case where multiple attributes were returned from RHS of
434           mapping, as with rlm_ldap. Fixes #652
435         * Fix corner case in cursor where using fr_cursor_next_by_da
436           after calling fr_cursor_remove may of resulted in a read of
437           uninitialised memory.
438         * Don't SEGV if all connections to a database server go away.
439           Fixes #651.
440         * Fix issue where <attr> -= <value> was not removing tagged
441           instances of <attr> equal to <value> (only untagged).
442         * Fix issue where tag values were not being set on attributes
443           created with unlang/ldap update blocks.
444         * Create rlm_sqlcounter attributes as integer64 types instead
445           of integer types, so large counter values can be specified.
446         * Fix issue where specifying a dynamic client IP addresss using
447           FreeRADIUS-Client-IPv6-Prefix or FreeRADIUS-Client-IP-Prefix
448           may have caused a validation error.
449         * Don't print two "&" for messages about attribute or list
450           references in debug output.
451         * Fix urlquote and escape to encode Unicode characters correctly.
452         * Fix redundant-load-balance blocks to try other modules in
453           the group if one fails.
454         * Fix issue with rlm_pap password normalisation where
455           'known good' password strings stored in octets type attributes,
456           would be sometimes misnormalised as base64.
457         * Don't stop processing DHCP options if we find a 0x00 padding
458           option.
459         * Fix issue where modifying the value of an attribute created
460           from a template with a literal value, may have resulted in the
461           template literal being freed.
462         * Fix parenting issues in tls code which may have resulted in
463           memory corruption and crashes.
464         * Fix issue in radsniff where writing to PCAP files and using
465           -R response filters, where the requests would still be written
466           to the PCAP for non matching responses.
467         * Define __APPLE_USE_RFC_2292 so that the server builds with IPv6
468           support on OSX.
469         * Fix LDAP group lookups for named rlm_ldap instances.
470           Note that attribute references should be used when
471           checking LDAP-Group attributes. e.g. if (&LDAP-Group == 'foo').
472         * Delayed attribute references can now be used in unlang
473           existence checks.  i.e. if (&Attribute-Name) { ... }
474         * Fix issues in EAP-PWD.  CVE-2014-4731, CVE-2014-4732, and
475           CVE-2014-4733.  There is no external authentication bypass.
476         * Fix a number of uses of the talloc parent/child reference.
477         * Release connection used for reading bulk clients in rlm_ldap.
478         * rlm_rest is now fail-safe if it's used without any configuration
479         * Pull in build fixes for FreeBSD from ports.
480         * Fix error in sqlite postauth query
481         * Evaluate argument to "switch" statements once, instead of for each
482           "case" statement.
483         * Define sig_t on systems without it.  Closes #765.
484         * Fix boundary issue with rlm_rest.  Closes #768
485         * Optimize "%{Attribute-Name}" in comparisons only if the dictionary
486           types match.
487         * Don't do chmod() in rad_mkdir() if the directory already exists.
488           We might not have permission to change it.
489         * Use getpwnam_r() and getgrnam_r() on systems which support it.
490           Closes #775.
491         * Clients loaded from SQL are now tied to the "listen" section
492           of a virtual server, instead of being global.
493         * Check for -lpcre.  The system might have pcre.h without -lpcre.
494         * When proxying to a virtual server, use the proxy_reply instead
495           of ignoring it.
496         * Fixed typos in DHCP SQL IPPool.
497         * Fix crash when passing multiple arguments to Perl xlat.
498
499 FreeRADIUS 3.0.3 Mon 12 May 2014 15:30:00 EDT urgency=medium
500         Feature improvements
501         * Everything now builds with no warnings from the C compiler,
502           clang static analyzer, or cppcheck.
503         * rlm_ldap now supports defining the LDAP attribute name via
504           backticked expansion (i.e. shell command) in
505           RADIUS <-> LDAP mappings.
506         * rlm_ldap now supports older style generic attributes.
507         * dynamic expansions (e.g. "%{expr:1 + 2}" are now parsed
508           when the server starts.  Syntax errors in the strings
509           are caught, and a descriptive error is printed.
510         * Static regular expressions (e.g. /a*b/) are now parsed
511           when the server starts.  Syntax errors in the strings
512           are caught, and a descriptive error is printed.
513         * dynamic expansions are cached after being parsed.  They are
514           no longer re-parsed at run-time for every request.
515         * regular expressions are now parsed and cached when the server
516           starts.
517         * Added the %{rest:} expansion to rlm_rest, which will send
518           a GET request to the URL passed as the format string.
519           Any body text will be written to the expansion buffer.
520         * rlm_rest now available as a debian package.
521         * When an 'if' condition statically evaluates to true/false,
522           unlang does more static optimization.  For examples, see
523           src/tests/keywords/if-skip
524         * All modules are marked as safe for '-C', which lets the
525           dynamic expansion checks work in more situations.
526         * Added 'none' and 'custom' rlm_rest body types. 'custom'
527           allows sending of arbitrary expanded text and content-type
528           headers.
529         * Added "config" section to Perl.  See mods-available/perl
530         * Added '%v' which expands to the server version - Patch
531           from Alan Buxey.
532         * more mis-matched casts are caught in "if" conditions,
533           and descriptive errors are printed.
534         * Support basic response validation in radclient. This allows
535           administrators to write local test cases for their
536           site-specific configurations.
537         * Removed radconf2xml and radmin "show client config" and
538           "show home_server config".
539         * Forbid running with vulnerable versions of OpenSSL.
540           See "allow_vulnerable_openssl" in the "security"
541           subsection of "radiusd.conf"
542         * Catch underlying "heartbleed" problem, so that nothing bad
543           happens even when using a vulnerable version of OpenSSL.
544         * Add locking API for sql_null, linelog, and detail modules,
545           which should improve performance and work around issues
546           on platforms with bad file locking.
547         * Allow DHCP NAKs to be delayed, via setting
548           reply:FreeRADIUS-Response-Delay = 1
549         * Allow tag and array references anywhere attributes
550           are allowed in "unlang".
551         * many enhancements to radsniff, including output
552           to collectd, ipv6 support and packet loss statistics.
553         * Many dictionary updates (ZTE, Brocade, Motorola).
554         * rlm_yubikey now automatically splits passwords from OTP
555           strings.
556         * The detail file reader is now threaded by default.
557           This should improve performance reading the files.
558
559         Bug fixes
560         * Fix xlat expression %{attribute[n]} so that it actually
561           returns the n'th attribute instead of the first one.
562         * Don't parse string on RHS of update {} when using unary
563           operators (!*).  The RHS should always be ignored.
564         * Check for more optional functions in json-c so we can
565           Build with libjson0, which is the name of the json-c package
566           on debian/ubuntu.
567         * Fix issue in radmin where the main dictionaries would
568           not be loaded which, depending on the configuration, may
569           have caused validation errors.
570         * Fix handling of "%{reply:3GPP-*}"
571         * Fix rlm_perl garbage attributes
572         * Fix oracle SQL queries, which amongst other things still
573           used the old expansion format, which is no longer
574           supported/parsed.
575         * Truncate long format strings and error markers instead of
576           omitting them.
577         * Fix multiple attribute parsing in rlm_rest JSON.
578         * Don't crash in rlm_rest if connect_uri is commented out
579           in the configuration.
580         * Don't double-escape strings to / from Perl.  You may need
581           to double-check your Perl scripts if they use "\" characters.
582           See mods-available/perl for documentation.
583         * Don't re-run "authorize" if a home server fails to respond.
584         * Don't append "0x" to hex output of octets types, for xlat
585           expansions.  This is the same as v2, and makes it easier
586           to concatenate multiple attributes of type "octets"
587         * FreeBSD fixes for execinfo linking.
588         * Make some of the module configurations more consistent.
589         * Fix corner cases where STDOUT wouldn't be closed in
590           daemon mode.
591         * Re-enable "update coa" and originating CoA requests.
592         * Prevent multiple threads writing to the sql query logs.
593         * Fix zombie period calculation.  Closes #579
594         * Properly parent VPs for talloc, when moving them in map2request.
595         * Various fixes for talloc parent / child relationships
596         * Allow rlm_counter to support VSAs.
597         * Normalize return codes for many modules. "do nothing" is noop,
598           not "ok".
599         * Run Post-Proxy-Type Fail.  Closes #576
600         * Fix DHCP destination port for replies to relays.  Closes #591
601         * Do-Not-Respond policy works again  Closes #593
602         * Proxy-To-Virtual-Server works again.  Closes #596
603         * Build fixes for ancient systems.  Closes #607, #608, #609.
604         * %{Module-Return-Code} works again.  Closes #610.
605         * Don't increment statistics for Status-Server responses.
606           Closes #612.
607         * A duplicate request isn't a duplicate if the original one
608           is marked "done".  This should lower retransmissions from
609           clients.
610         * Fix multiple regular expression and glob memory leaks.
611         * Don't allocate any memory in fr_fault() as it can cause malloc
612           to deadlock.
613         * Temporarily set dumpable flag before calling system in fr_fault()
614           else the debugger may not be able to attach.
615         * Set nonblock on all TCP client sockets.
616         * Fix minor buffer overrun in mschapv2 where some attribute strings
617           were not correctly \0 terminated.
618         * Fix crash on authentication failure with MIT kerberos.
619         * Fix code so that octal escape sequences aren't prematurely unescaped
620           in rlm_sql, radclient, preprocess, and other places. This may
621           require configuration changes, as these sequences will no longer
622           need double escaping (\\) of the backslash.
623         * The connection pools no longer have one connection used twice
624           in certain rare conditions.
625         * Use self pipes for internal signals.  The code was there, but was
626           unused.
627         * Don't crash if there are outstanding EAP sessions and were told to
628           exit gracefully.
629         * Fix typo in dictionary.rfc4072
630
631 FreeRADIUS 3.0.2 Fri 21 Mar 2014 08:30:00 EDT urgency=medium
632         Feature improvements
633         * secret keys and LDAP / SQL passwords are now printed as
634           '<<< secret >>>' in debugging mode.  Use -Xx to see the
635           actual passwords.
636         * Print out more information about passwords in -Xx,
637           including hashes, comparisons, etc.
638         * Allow cast (and implicit conversion) of integers to IPv4 addresses
639         * More xlats allow attribute references.  This means they can
640           operate on binary data.  e.g. expr, base64, md5, sha1.
641         * Added more tests.
642         * The dictionaries are now auto-loaded.  raddb/dictionary
643           should no longer have $INCLUDE ${prefix}/share/dictionary
644         * A "panic_action" can be set to have the server dump a gdb
645           log on SEGV or other fatal error.  See radiusd.conf
646         * Add support for SHA-224, SHA-256, SHA-384, SHA-512 to rlm_pap.
647         * Add "%{sha256:}" and "%{sha512:}" xlat functions.
648         * Cache CUI in EAP session resumption.
649         * templates can now have sub-sections, which will be included
650           in the section referencing the template.
651         * Update more dictionaries.
652         * Added more instances of the "always" module, for all return
653           codes.
654         * Suppress broken NASes when proxying.  Retransmits which occur
655           more than once per second are rate-limited to once per second.
656         * Allow '&' in more xlat expansions.
657         * Update PostgreSQL schema and queries to record last updated
658           time, and accounting interim.
659         * Optimize more "if" conditions when the server loads.  This will
660           avoid work at run time.  e.g. ("foo" == "bar") --> FALSE.
661         * Allow removal of all attributes within a list with !* operator.
662         * Allow list to list copies with request qualifiers (outer.).
663         * Add support for ipv4 prefixes and ipv6 addresses and prefixes to
664           %{integer:}.
665         * allow radmin command "set module status <module> <code>"
666           which can be used to forcibly enable/disable modules.
667         * pap module now assumes Cleartext-Password if Password-With-Header
668           doesn't have a {...} header.
669         * Added "unpack" module.  It can unpack binary data from horrible
670           VSA formats.  See raddb/mods-available/unpack
671         * Added example IP Pool for DHCP, using sqlite.  From Matthew Newton
672           See raddb/mods-config/sql/ippool-dhcp/
673
674         Bug fixes
675         * Fix SQL groups.
676         * Fix operation of fr_strerror() with RE*() macros.
677         * Don't assert if the connection we're trying to reconnect
678           is not in_use.
679         * Fix %{mschap:User-Name} xlat.
680         * Allow comparisons of signed integers and of ethernet addresses.
681         * Fix parsing of text-based ascend binary filters.
682         * Fix a few minor Coverity and clang analyzer issues.
683         * Log WARNING and ERROR prefixes only once, not twice.
684         * Fix attribute truncation seen in Perl and other places.
685         * Use correct port when DHCP relaying.
686         * Fix behaviour on FreeBSD where sending packets from an interface
687           bound to an IP address would fail when the server was built with
688           udpfromto.
689         * Don't abort() when freeing home servers on exit.
690         * Fix edge case in pairmove() when some attributes could be over-
691           written.
692         * Do checks for individual sqlite v2 functions so rlm_sqlite builds
693           correctly with more versions of the library.
694         * In heimdal kerberos, create MEMORY ccaches on a per context basis.
695           This prevents issues with the root ccache being used.
696         * Fix corner case with proxying, where home server goes down.
697         * Rate-limit "max_requests" complaint.  We don't want to fill the
698           logs when something goes wrong.
699         * Use /dev/urandom for raddb/certs/random, if it exists.
700         * Issue WARNING that old-style clients should no longer be used.
701         * Auto-set secret to "radsec" for tcp+tls home servers.
702         * Fix double free in home_server_add when there is a parse error
703           on startup.
704         * rlm_unix checks if the dictionaries are broken, instead of crashing
705         * Fix potential memory corruption when normalising salted password
706           hashes from hex, where the combined hash and salt was > 64 bytes.
707         * Register sqlcounter attributes correctly, and other issues with it
708         * treat 127.0.0.1/32 as being identical to 127.0.0.1
709         * Don't mangle error output of SQL drivers like PostgreSQL
710         * Fix usage of "tls = ${tls}".  It could previously cause problems
711           when the reference was used multiple times.
712         * Fix TLS session leak for incoming sockets.
713         * Try harder to clean up memory on exit when using "-mM"
714         * Fix memory leak when home server is down for RadSec connections
715         * rate-limit outgoing connection attempts when the home server
716           is down.  It will retry no more than once per second.
717         * When parsing ipv6 address prefixes, always mask off the host
718           portion.
719         * Fix rlm_counter so that it does not create two reply
720           attributes.
721         * Fix issues with DHCP Sub-TLVs where the value of the first
722           Sub-TLV would appear corrupted, and subsequent TLVs would
723           not appear in debug output.
724         * Initialize scope in IP address parsing
725         * Prevent vendor attributes and RFC space attributes from clashing
726           in rlm_attr_filter.
727         * Set source IP address for DHCP packets from DHCP-Server-IP-Address,
728           or DHCP-DHCP-Server-Identifier, if we're unable to otherwise
729           determine the source IP.
730         * Fix POST attribute parsing in rlm_rest.
731         * Fix JSON attribute parsing in rlm_rest.
732         * Don't append trailing & to POST options in rlm_rest (minor).
733         * Process HTTP 100 Continue messages correctly in rlm_rest
734         * Fix generation of long > 512 byte POST payloads, where attribute
735           values on the chunk boundary may have been omitted in rlm_rest.
736         * Remove duplicate escape sequence parsing in rlm_sqlippool and
737           rlm_sqlcounter which caused issues with escaping %. Escape
738           sequence parsing is now handled purely by the xlat functions.
739         * Ensure %% is treated as a string literal, and so not passed to any
740           xlat escape functions for processing.
741         * Correct calculation of Message-Authenticator
742           for CoA packets.  Closes #556
743
744 FreeRADIUS 3.0.1 Mon 13 Jan 2014 14:30:00 EDT urgency=medium
745         Feature improvements
746         * Add "timeout" to exec, and "ntlm_auth_timeout" to mschap.
747           So that run-away child processes are caught earlier.
748         * Allow TLS clients to use "proto = tls", in which case
749           TLS is required.  The shared secret is then set to "radsec".
750         * More documentation in the tls virtual server.
751         * Add "date" module for date formatting.
752           See raddb/mods-available/date.
753         * Added unit test suite for internal server functionality
754         * When loading "update" sections, check if the RHS is a literal
755           value.  If so, syntax check it immediately.
756         * Update LDAP module documentation and functionality.
757           The generic attribute can now update lists.
758         * Updated dictionary.extreme.
759         * Update sqlippool to do clears as a separate transaction,
760           and at most once per second.  This should help MySQL.
761         * Respect control:Response-Packet-Type for all types of
762           requests.
763         * Add support for SSL encryption to the MySQL driver.
764         * Allow arbitrary connection parameters to be used with the
765           PostgreSQL driver.
766         * Changes to the OpenLDAP schema to fully expose functionality
767           of the new LDAP module.
768         * Update debian packaging to include a freeradius-config
769           package. This package may be provided as a site local
770           package to avoid fighting with the preinstalled config
771           files.
772
773         Bug fixes
774         * Use correct field for ARP setting in DHCP.
775         * Fix crash on debug condition (#454).
776         * Fix a number of minor issues caught by the clang
777           analyzer.
778         * Set WARNING messages to yellow instead of normal text.
779         * Correct debug colorise logic.  Patch from Phil Mayers.
780         * Encode attributes of type "ethernet".  No one uses them,
781           but it makes sense.
782         * Work around regex initialization issues.
783         * Fix build when linking against OpenSSL.
784         * Print IDs as positive numbers, which helps for large DHCP
785           XIDs.
786         * Fix issue with sql_ippool.
787         * sqlcounter now uses 64-bit counters, to deal with 4G overflow.
788         * Fix issues with DHCP subsystem.
789         * Don't build / install disabled modules, or their config
790           files.
791         * Fix build for OSX Mavericks, which hid the header files
792           in a magical place.
793         * Fix LEAP buffer issue.  You should still avoid LEAP.
794         * Mark "unknown" WiMAX attributes as being WiMAX.
795         * Fix typo in packet decoder for fragmented extended attrs
796         * RPM spec fixes.
797         * Fix rlm_perl build issues when not using threads.
798         * Enable %{Response-Packet-Type} again.
799         * Update configuration file parser to handle "bool"
800           consistently.
801         * Update declarations of global boolean variables to use
802           "bool" consistently. This fixes an issue where some
803           modules were instantiated in "config check" mode and
804           did not work correctly.
805         * Make more messages debug instead of info, to avoid
806           polluting the logs with messages that can't be fixed.
807         * Set operator in internal unlang code to suppress spurious
808           warning messages.
809         * Fix debian packaging.
810         * Added "status" to Debian init script.
811         * Fix "update outer.request" to update the outer request.
812         * Don't print TLS debugging messages when not in debug mode.
813         * Correctly manage counters for "limit" sections of TCP / TLS
814           "listen" sockets.
815         * Fix libldap debug output.
816         * Fix rlm_ldap tls functionality.
817         * Initialise OpenSSL globals early to avoid issues with the
818           PostgreSQL library.
819         * Fix typo in sqlcounter expansion code.  Fixes #463
820         * Overwrite previous instances of SQL-User-Name when adding
821           it to the request.
822         * Work around bugs in both MIT and heimdal versions of
823           krb5_copy_context(), which caused segfaults in
824           multithreaded mode.
825         * Provide meaningful error messages if Heimdal krb5 is used.
826         * Fix attribute supression in rlm_detail.
827         * Exit with error code if child fails to complete server
828           initialisation after forking.  This allows init scripts to
829           correctly report whether the server started ok.
830
831 FreeRADIUS 3.0.0 Mon  7 Oct 2013 15:48:14 EDT urgency=medium
832         Feature improvements
833         * Documentation for upgrading from 2.x is in raddb/README.rst
834           Please follow it.  It will make the upgrade easier.
835         * Moved configuration entries in radiusd.conf to make more sense.
836         * Added the "integer64" and "ipv4prefix" data types.
837         * Added RADIUS over TLS (i.e. RadSec). See raddb/sites-available/tls
838         * Updated internal API to support new attributes and formats
839         * Added code to send SNMP Traps.  See raddb/trigger.conf.
840         * Added preliminary support for Apple's Grand Central Dispatch
841         * Added provisions for raddb/dictionary.local, for local changes.
842           See raddb/dictionary for more details.
843         * Added packet/s tracking. See max_pps in the "listen" section.
844         * The %{} expansions and "unlang" conditions are now parsed at server
845           start. Descriptive errors are produced for syntax and format errors.
846         * Casting is now supported for "unlang" comparisons.  See "man unlang"
847           e.g. <ipaddr>127.0.0.1 == Framed-IP-Address.
848         * Direct comparison of attribute references is now supported.
849           e.g. &Foo == &Bar.  This avoids stringification of the attributes.
850         * Direct assignment of attributes is now supported.
851           e.g. Foo := &Bar.  It also works for "octets" data types.
852         * Comparisons of IPv4 and IPv6 prefixes are now supported.
853           The "<" operator means "within the prefix" for comparisons.
854         * New sha1 xlat expansion (thanks to Alan Buxey)
855         * Colourised log messages when logging to stdout.  Look for yellow
856           warnings and red errors.  Doing this will save you a LOT of grief.
857         * If the PCRE library is available, use it (insted of the POSIX
858           functions) to process regular expressions (thanks to Phil Mayers).
859         * -xv now displays all the features the server was built with, and
860           the versions of the core libraries (libtalloc, libssl).
861
862         Module Changes
863         * Moved raddb/modules/ to raddb/mods-available/, and raddb/mods-enabled/,
864           following the examples of other projects.
865         * Additional files for each module are now in raddb/mods-config/.
866           See raddb/mods-config/README.rst for documentation.
867         * Moved "users" to raddb/mods-config/files/authorize
868         * Moved "hints" and "huntgroups" to raddb/mods-config/preprocess/
869         * Moved eap.conf to mods-available/eap
870         * Moved sql.conf to mods-available/sql
871         * Moved TLS configuration for EAP into a common subsection.
872           See raddb/mods-available/eap, "tls-config" section.
873         * Added for MS-CHAP Change Password from Phil Mayers.
874           See raddb/mods-available/mschap, "passchange" subsection.
875         * Added EAP-PWD implementation from Dan Harkins
876         * Added connection pools for modules. This unifies connection
877           management which was previously different for different modules.
878         * SQL now uses the connection pool.  See mods-available/sql
879         * SQL now supports arbitrary Acct-Status-Types.
880           These changes are not compatible with 2.x.
881         * SQL now has full support for SQLite.  See raddb/sql/main/sqlite/
882         * SQLite supports auto-creation of new databases on server startup for
883           bootstrapping purposes.
884         * LDAP now uses the connection pool.  The LDAP module has been
885           completely re-written for performance and simplicity.
886         * LDAP now caches groups.  This makes multiple group checks MUCH
887           faster.
888         * Removed all limitations on 253 octet attributes.  RFC 6929 allows
889           for attributes up to 4K in length.
890         * New rlm_idn module providing an expansion for performing IDNA encoding
891         of internationalized domain names.  Thanks to 'skids'.
892         * New rlm_yubikey module to validate yubikey OTP tokens.
893           See raddb/modules/yubikey
894
895         Bug fixes
896         * All known bug fixes from 2.2.x are included.
897         * Removed "addport" functionality.
898         * Removed many unused or duplicate modules.  See raddb/README.rst.
899
900         Internal / API changes:
901         * All traces of the old build system have been removed.
902           The new build system is faster and simpler.
903         * clang is fully supported.
904         * We now use "talloc" for memory management.  A number of new
905           features required this change.  Thanks to the Samba people!
906         * Many internal APIs have been updated to use talloc.
907         * New API for iterating over VALUE_PAIRs.  This is in preparation
908           for attributes, in version 3.1.
909         * No new code should directly modify any field of a VALUE_PAIR.
910         * VALUE_PAIRs contain pointers to DICT_ATTR instead of containing
911           attribute and vendor fields.  This will allow nested attributes.
912         * Some protocol specific code has been moved out into proto_* modules.
913           More will come in subsequent versions.  See proto_dhcp and proto_vmps.
914         * Standardised internal logging macros.  radlog() should not be used.
915           See src/include/log.h
916         * Use OpenSSL hashing functions when available.
917         * The server now builds with no warnings on most platforms.
918         * New RADIUS encoder/decoder, to support new formats.
919         * Added RFC 6929 "extended attributes", via the new encoder/decoder.
920         * Added full WiMAX support, via the new encoder/decoder.  The old
921           code could not handle some unusual corner cases.