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