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