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