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