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