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