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