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