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