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