Note recent changes
[freeradius.git] / doc / ChangeLog
1 FreeRADIUS 3.0.3 Mon 12 May 2014 15:30:00 EDT urgency=medium
2         Feature improvements
3         * Everything now builds with no warnings from the C compiler,
4           clang static analyzer, or cppcheck.
5         * rlm_ldap now supports defining the LDAP attribute name via
6           backticked expansion (i.e. shell command) in
7           RADIUS <-> LDAP mappings.
8         * rlm_ldap now supports older style generic attributes.
9         * dynamic expansions (e.g. "%{expr:1 + 2}" are now parsed
10           when the server starts.  Syntax errors in the strings
11           are caught, and a descriptive error is printed.
12         * Static regular expressions (e.g. /a*b/) are now parsed
13           when the server starts.  Syntax errors in the strings
14           are caught, and a descriptive error is printed.
15         * dynamic expansions are cached after being parsed.  They are
16           no longer re-parsed at run-time for every request.
17         * regular expressions are now parsed and cached when the server
18           starts.
19         * Added the %{rest:} expansion to rlm_rest, which will send
20           a GET request to the URL passed as the format string.
21           Any body text will be written to the expansion buffer.
22         * rlm_rest now available as a debian package.
23         * When an 'if' condition statically evaluates to true/false,
24           unlang does more static optimization.  For examples, see
25           src/tests/keywords/if-skip
26         * All modules are marked as safe for '-C', which lets the
27           dynamic expansion checks work in more situations.
28         * Added 'none' and 'custom' rlm_rest body types. 'custom'
29           allows sending of arbitrary expanded text and content-type
30           headers.
31         * Added "config" section to Perl.  See mods-available/perl
32         * Added '%v' which expands to the server version - Patch
33           from Alan Buxey.
34         * more mis-matched casts are caught in "if" conditions,
35           and descriptive errors are printed.
36         * Support basic response validation in radclient. This allows
37           administrators to write local test cases for their
38           site-specific configurations.
39         * Removed radconf2xml and radmin "show client config" and
40           "show home_server config".
41         * Forbid running with vulnerable versions of OpenSSL.
42           See "allow_vulnerable_openssl" in the "security"
43           subsection of "radiusd.conf"
44         * Catch underlying "heartbleed" problem, so that nothing bad
45           happens even when using a vulnerable version of OpenSSL.
46         * Add locking API for sql_null, linelog, and detail modules,
47           which should improve performance and work around issues
48           on platforms with bad file locking.
49         * Allow DHCP NAKs to be delayed, via setting
50           reply:FreeRADIUS-Response-Delay = 1
51         * Allow tag and array references anywhere attributes
52           are allowed in "unlang".
53         * many enhancements to radsniff, including output
54           to collectd, ipv6 support and packet loss statistics.
55         * Many dictionary updates (ZTE, Brocade, Motorola).
56         * rlm_yubikey now automatically splits passwords from OTP
57           strings.
58         * The detail file reader is now threaded by default.
59           This should improve performance reading the files.
60
61         Bug fixes
62         * Fix xlat expression %{attribute[n]} so that it actually
63           returns the n'th attribute instead of the first one.
64         * Don't parse string on RHS of update {} when using unary
65           operators (!*).  The RHS should always be ignored.
66         * Check for more optional functions in json-c so we can
67           Build with libjson0, which is the name of the json-c package
68           on debian/ubuntu.
69         * Fix issue in radmin where the main dictionaries would
70           not be loaded which, depending on the configuration, may
71           have caused validation errors.
72         * Fix handling of "%{reply:3GPP-*}"
73         * Fix rlm_perl garbage attributes
74         * Fix oracle SQL queries, which amongst other things still
75           used the old expansion format, which is no longer
76           supported/parsed.
77         * Truncate long format strings and error markers instead of
78           omitting them.
79         * Fix multiple attribute parsing in rlm_rest JSON.
80         * Don't crash in rlm_rest if connect_uri is commented out
81           in the configuration.
82         * Don't double-escape strings to / from Perl.  You may need
83           to double-check your Perl scripts if they use "\" characters.
84           See mods-available/perl for documentation.
85         * Don't re-run "authorize" if a home server fails to respond.
86         * Don't append "0x" to hex output of octets types, for xlat
87           expansions.  This is the same as v2, and makes it easier
88           to concatenate multiple attributes of type "octets"
89         * FreeBSD fixes for execinfo linking.
90         * Make some of the module configurations more consistent.
91         * Fix corner cases where STDOUT wouldn't be closed in
92           daemon mode.
93         * Re-enable "update coa" and originating CoA requests.
94         * Prevent multiple threads writing to the sql query logs.
95         * Fix zombie period calculation.  Closes #579
96         * Properly parent VPs for talloc, when moving them in map2request.
97         * Various fixes for talloc parent / child relationships
98         * Allow rlm_counter to support VSAs.
99         * Normalize return codes for many modules. "do nothing" is noop,
100           not "ok".
101         * Run Post-Proxy-Type Fail.  Closes #576
102         * Fix DHCP destination port for replies to relays.  Closes #591
103         * Do-Not-Respond policy works again  Closes #593
104         * Proxy-To-Virtual-Server works again.  Closes #596
105         * Build fixes for ancient systems.  Closes #607, #608, #609.
106         * %{Module-Return-Code} works again.  Closes #610.
107         * Don't increment statistics for Status-Server responses.
108           Closes #612.
109         * A duplicate request isn't a duplicate if the original one
110           is marked "done".  This should lower retransmissions from
111           clients.
112         * Fix multiple regular expression and glob memory leaks.
113         * Don't allocate any memory in fr_fault() as it can cause malloc
114           to deadlock.
115         * Temporarily set dumpable flag before calling system in fr_fault()
116           else the debugger may not be able to attach.
117         * Set nonblock on all TCP client sockets.
118         * Fix minor buffer overrun in mschapv2 where some attribute strings
119           were not correctly \0 terminated.
120         * Fix crash on authentication failure with MIT kerberos.
121         * Fix code so that octal escape sequences aren't prematurely unescaped
122           in rlm_sql, radclient, preprocess, and other places. This may
123           require configuration changes, as these sequences will no longer
124           need double escaping (\\) of the backslash.
125         * The connection pools no longer have one connection used twice
126           in certain rare conditions.
127         * Use self pipes for internal signals.  The code was there, but was
128           unused.
129         * Don't crash if there are outstanding EAP sessions and were told to
130           exit gracefully.
131         * Fix typo in dictionary.rfc4072
132
133 FreeRADIUS 3.0.2 Fri 21 Mar 2014 08:30:00 EDT urgency=medium
134         Feature improvements
135         * secret keys and LDAP / SQL passwords are now printed as
136           '<<< secret >>>' in debugging mode.  Use -Xx to see the
137           actual passwords.
138         * Print out more information about passwords in -Xx,
139           including hashes, comparisons, etc.
140         * Allow cast (and implicit conversion) of integers to IPv4 addresses
141         * More xlats allow attribute references.  This means they can
142           operate on binary data.  e.g. expr, base64, md5, sha1.
143         * Added more tests.
144         * The dictionaries are now auto-loaded.  raddb/dictionary
145           should no longer have $INCLUDE ${prefix}/share/dictionary
146         * A "panic_action" can be set to have the server dump a gdb
147           log on SEGV or other fatal error.  See radiusd.conf
148         * Add support for SHA-224, SHA-256, SHA-384, SHA-512 to rlm_pap.
149         * Add "%{sha256:}" and "%{sha512:}" xlat functions.
150         * Cache CUI in EAP session resumption.
151         * templates can now have sub-sections, which will be included
152           in the section referencing the template.
153         * Update more dictionaries.
154         * Added more instances of the "always" module, for all return
155           codes.
156         * Suppress broken NASes when proxying.  Retransmits which occur
157           more than once per second are rate-limited to once per second.
158         * Allow '&' in more xlat expansions.
159         * Update PostgreSQL schema and queries to record last updated
160           time, and accounting interim.
161         * Optimize more "if" conditions when the server loads.  This will
162           avoid work at run time.  e.g. ("foo" == "bar") --> FALSE.
163         * Allow removal of all attributes within a list with !* operator.
164         * Allow list to list copies with request qualifiers (outer.).
165         * Add support for ipv4 prefixes and ipv6 addresses and prefixes to
166           %{integer:}.
167         * allow radmin command "set module status <module> <code>"
168           which can be used to forcibly enable/disable modules.
169         * pap module now assumes Cleartext-Password if Password-With-Header
170           doesn't have a {...} header.
171         * Added "unpack" module.  It can unpack binary data from horrible
172           VSA formats.  See raddb/mods-available/unpack
173         * Added example IP Pool for DHCP, using sqlite.  From Matthew Newton
174           See raddb/mods-config/sql/ippool-dhcp/
175
176         Bug fixes
177         * Fix SQL groups.
178         * Fix operation of fr_strerror() with RE*() macros.
179         * Don't assert if the connection we're trying to reconnect
180           is not in_use.
181         * Fix %{mschap:User-Name} xlat.
182         * Allow comparisons of signed integers and of ethernet addresses.
183         * Fix parsing of text-based ascend binary filters.
184         * Fix a few minor Coverity and clang analyzer issues.
185         * Log WARNING and ERROR prefixes only once, not twice.
186         * Fix attribute truncation seen in Perl and other places.
187         * Use correct port when DHCP relaying.
188         * Fix behaviour on FreeBSD where sending packets from an interface
189           bound to an IP address would fail when the server was built with
190           udpfromto.
191         * Don't abort() when freeing home servers on exit.
192         * Fix edge case in pairmove() when some attributes could be over-
193           written.
194         * Do checks for individual sqlite v2 functions so rlm_sqlite builds
195           correctly with more versions of the library.
196         * In heimdal kerberos, create MEMORY ccaches on a per context basis.
197           This prevents issues with the root ccache being used.
198         * Fix corner case with proxying, where home server goes down.
199         * Rate-limit "max_requests" complaint.  We don't want to fill the
200           logs when something goes wrong.
201         * Use /dev/urandom for raddb/certs/random, if it exists.
202         * Issue WARNING that old-style clients should no longer be used.
203         * Auto-set secret to "radsec" for tcp+tls home servers.
204         * Fix double free in home_server_add when there is a parse error
205           on startup.
206         * rlm_unix checks if the dictionaries are broken, instead of crashing
207         * Fix potential memory corruption when normalising salted password
208           hashes from hex, where the combined hash and salt was > 64 bytes.
209         * Register sqlcounter attributes correctly, and other issues with it
210         * treat 127.0.0.1/32 as being identical to 127.0.0.1
211         * Don't mangle error output of SQL drivers like PostgreSQL
212         * Fix usage of "tls = ${tls}".  It could previously cause problems
213           when the reference was used multiple times.
214         * Fix TLS session leak for incoming sockets.
215         * Try harder to clean up memory on exit when using "-mM"
216         * Fix memory leak when home server is down for RadSec connections
217         * rate-limit outgoing connection attempts when the home server
218           is down.  It will retry no more than once per second.
219         * When parsing ipv6 address prefixes, always mask off the host
220           portion.
221         * Fix rlm_counter so that it does not create two reply
222           attributes.
223         * Fix issues with DHCP Sub-TLVs where the value of the first
224           Sub-TLV would appear corrupted, and subsequent TLVs would
225           not appear in debug output.
226         * Initialize scope in IP address parsing
227         * Prevent vendor attributes and RFC space attributes from clashing
228           in rlm_attr_filter.
229         * Set source IP address for DHCP packets from DHCP-Server-IP-Address,
230           or DHCP-DHCP-Server-Identifier, if we're unable to otherwise
231           determine the source IP.
232         * Fix POST attribute parsing in rlm_rest.
233         * Fix JSON attribute parsing in rlm_rest.
234         * Don't append trailing & to POST options in rlm_rest (minor).
235         * Process HTTP 100 Continue messages correctly in rlm_rest
236         * Fix generation of long > 512 byte POST payloads, where attribute
237           values on the chunk boundary may have been omitted in rlm_rest.
238         * Remove duplicate escape sequence parsing in rlm_sqlippool and
239           rlm_sqlcounter which caused issues with escaping %. Escape
240           sequence parsing is now handled purely by the xlat functions.
241         * Ensure %% is treated as a string literal, and so not passed to any
242           xlat escape functions for processing.
243         * Correct calculation of Message-Authenticator
244           for CoA packets.  Closes #556
245
246 FreeRADIUS 3.0.1 Mon 13 Jan 2014 14:30:00 EDT urgency=medium
247         Feature improvements
248         * Add "timeout" to exec, and "ntlm_auth_timeout" to mschap.
249           So that run-away child processes are caught earlier.
250         * Allow TLS clients to use "proto = tls", in which case
251           TLS is required.  The shared secret is then set to "radsec".
252         * More documentation in the tls virtual server.
253         * Add "date" module for date formatting.
254           See raddb/mods-available/date.
255         * Added unit test suite for internal server functionality
256         * When loading "update" sections, check if the RHS is a literal
257           value.  If so, syntax check it immediately.
258         * Update LDAP module documentation and functionality.
259           The generic attribute can now update lists.
260         * Updated dictionary.extreme.
261         * Update sqlippool to do clears as a separate transaction,
262           and at most once per second.  This should help MySQL.
263         * Respect control:Response-Packet-Type for all types of
264           requests.
265         * Add support for SSL encryption to the MySQL driver.
266         * Allow arbitrary connection parameters to be used with the
267           PostgreSQL driver.
268         * Changes to the OpenLDAP schema to fully expose functionality
269           of the new LDAP module.
270         * Update debian packaging to include a freeradius-config
271           package. This package may be provided as a site local
272           package to avoid fighting with the preinstalled config
273           files.
274
275         Bug fixes
276         * Use correct field for ARP setting in DHCP.
277         * Fix crash on debug condition (#454).
278         * Fix a number of minor issues caught by the clang
279           analyzer.
280         * Set WARNING messages to yellow instead of normal text.
281         * Correct debug colorise logic.  Patch from Phil Mayers.
282         * Encode attributes of type "ethernet".  No one uses them,
283           but it makes sense.
284         * Work around regex initialization issues.
285         * Fix build when linking against OpenSSL.
286         * Print IDs as positive numbers, which helps for large DHCP
287           XIDs.
288         * Fix issue with sql_ippool.
289         * sqlcounter now uses 64-bit counters, to deal with 4G overflow.
290         * Fix issues with DHCP subsystem.
291         * Don't build / install disabled modules, or their config
292           files.
293         * Fix build for OSX Mavericks, which hid the header files
294           in a magical place.
295         * Fix LEAP buffer issue.  You should still avoid LEAP.
296         * Mark "unknown" WiMAX attributes as being WiMAX.
297         * Fix typo in packet decoder for fragmented extended attrs
298         * RPM spec fixes.
299         * Fix rlm_perl build issues when not using threads.
300         * Enable %{Response-Packet-Type} again.
301         * Update configuration file parser to handle "bool"
302           consistently.
303         * Update declarations of global boolean variables to use
304           "bool" consistently. This fixes an issue where some
305           modules were instantiated in "config check" mode and
306           did not work correctly.
307         * Make more messages debug instead of info, to avoid
308           polluting the logs with messages that can't be fixed.
309         * Set operator in internal unlang code to suppress spurious
310           warning messages.
311         * Fix debian packaging.
312         * Added "status" to Debian init script.
313         * Fix "update outer.request" to update the outer request.
314         * Don't print TLS debugging messages when not in debug mode.
315         * Correctly manage counters for "limit" sections of TCP / TLS
316           "listen" sockets.
317         * Fix libldap debug output.
318         * Fix rlm_ldap tls functionality.
319         * Initialise OpenSSL globals early to avoid issues with the
320           PostgreSQL library.
321         * Fix typo in sqlcounter expansion code.  Fixes #463
322         * Overwrite previous instances of SQL-User-Name when adding
323           it to the request.
324         * Work around bugs in both MIT and heimdal versions of
325           krb5_copy_context(), which caused segfaults in
326           multithreaded mode.
327         * Provide meaningful error messages if Heimdal krb5 is used.
328         * Fix attribute supression in rlm_detail.
329         * Exit with error code if child fails to complete server
330           initialisation after forking.  This allows init scripts to
331           correctly report whether the server started ok.
332
333 FreeRADIUS 3.0.0 Mon  7 Oct 2013 15:48:14 EDT urgency=medium
334         Feature improvements
335         * Documentation for upgrading from 2.x is in raddb/README.rst
336           Please follow it.  It will make the upgrade easier.
337         * Moved configuration entries in radiusd.conf to make more sense.
338         * Added the "integer64" and "ipv4prefix" data types.
339         * Added RADIUS over TLS (i.e. RadSec). See raddb/sites-available/tls
340         * Updated internal API to support new attributes and formats
341         * Added code to send SNMP Traps.  See raddb/trigger.conf.
342         * Added preliminary support for Apple's Grand Central Dispatch
343         * Added provisions for raddb/dictionary.local, for local changes.
344           See raddb/dictionary for more details.
345         * Added packet/s tracking. See max_pps in the "listen" section.
346         * The %{} expansions and "unlang" conditions are now parsed at server
347           start. Descriptive errors are produced for syntax and format errors.
348         * Casting is now supported for "unlang" comparisons.  See "man unlang"
349           e.g. <ipaddr>127.0.0.1 == Framed-IP-Address.
350         * Direct comparison of attribute references is now supported.
351           e.g. &Foo == &Bar.  This avoids stringification of the attributes.
352         * Direct assignment of attributes is now supported.
353           e.g. Foo := &Bar.  It also works for "octets" data types.
354         * Comparisons of IPv4 and IPv6 prefixes are now supported.
355           The "<" operator means "within the prefix" for comparisons.
356         * New sha1 xlat expansion (thanks to Alan Buxey)
357         * Colourised log messages when logging to stdout.  Look for yellow
358           warnings and red errors.  Doing this will save you a LOT of grief.
359         * If the PCRE library is available, use it (insted of the POSIX
360           functions) to process regular expressions (thanks to Phil Mayers).
361         * -xv now displays all the features the server was built with, and
362           the versions of the core libraries (libtalloc, libssl).
363
364         Module Changes
365         * Moved raddb/modules/ to raddb/mods-available/, and raddb/mods-enabled/,
366           following the examples of other projects.
367         * Additional files for each module are now in raddb/mods-config/.
368           See raddb/mods-config/README.rst for documentation.
369         * Moved "users" to raddb/mods-config/files/authorize
370         * Moved "hints" and "huntgroups" to raddb/mods-config/preprocess/
371         * Moved eap.conf to mods-available/eap
372         * Moved sql.conf to mods-available/sql
373         * Moved TLS configuration for EAP into a common subsection.
374           See raddb/mods-available/eap, "tls-config" section.
375         * Added for MS-CHAP Change Password from Phil Mayers.
376           See raddb/mods-available/mschap, "passchange" subsection.
377         * Added EAP-PWD implementation from Dan Harkins
378         * Added connection pools for modules. This unifies connection
379           management which was previously different for different modules.
380         * SQL now uses the connection pool.  See mods-available/sql
381         * SQL now supports arbitrary Acct-Status-Types.
382           These changes are not compatible with 2.x.
383         * SQL now has full support for SQLite.  See raddb/sql/main/sqlite/
384         * SQLite supports auto-creation of new databases on server startup for
385           bootstrapping purposes.
386         * LDAP now uses the connection pool.  The LDAP module has been
387           completely re-written for performance and simplicity.
388         * LDAP now caches groups.  This makes multiple group checks MUCH
389           faster.
390         * Removed all limitations on 253 octet attributes.  RFC 6929 allows
391           for attributes up to 4K in length.
392         * New rlm_idn module providing an expansion for performing IDNA encoding
393         of internationalized domain names.  Thanks to 'skids'.
394         * New rlm_yubikey module to validate yubikey OTP tokens.
395           See raddb/modules/yubikey
396
397         Bug fixes
398         * All known bug fixes from 2.2.x are included.
399         * Removed "addport" functionality.
400         * Removed many unused or duplicate modules.  See raddb/README.rst.
401
402         Internal / API changes:
403         * All traces of the old build system have been removed.
404           The new build system is faster and simpler.
405         * clang is fully supported.
406         * We now use "talloc" for memory management.  A number of new
407           features required this change.  Thanks to the Samba people!
408         * Many internal APIs have been updated to use talloc.
409         * New API for iterating over VALUE_PAIRs.  This is in preparation
410           for attributes, in version 3.1.
411         * No new code should directly modify any field of a VALUE_PAIR.
412         * VALUE_PAIRs contain pointers to DICT_ATTR instead of containing
413           attribute and vendor fields.  This will allow nested attributes.
414         * Some protocol specific code has been moved out into proto_* modules.
415           More will come in subsequent versions.  See proto_dhcp and proto_vmps.
416         * Standardised internal logging macros.  radlog() should not be used.
417           See src/include/log.h
418         * Use OpenSSL hashing functions when available.
419         * The server now builds with no warnings on most platforms.
420         * New RADIUS encoder/decoder, to support new formats.
421         * Added RFC 6929 "extended attributes", via the new encoder/decoder.
422         * Added full WiMAX support, via the new encoder/decoder.  The old
423           code could not handle some unusual corner cases.