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