]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
15 years agoAdded more sample policies
Alan T. DeKok [Tue, 11 Jan 2011 12:22:09 +0000 (13:22 +0100)] 
Added more sample policies

15 years agoFixed typo
Alan T. DeKok [Tue, 11 Jan 2011 10:56:54 +0000 (11:56 +0100)] 
Fixed typo

15 years agoAllow hints && huntgroup files to be NULL
Alan T. DeKok [Tue, 11 Jan 2011 08:54:40 +0000 (09:54 +0100)] 
Allow hints && huntgroup files to be NULL

15 years agoRemoved notes on CVS
Alan T. DeKok [Sat, 8 Jan 2011 08:55:52 +0000 (09:55 +0100)] 
Removed notes on CVS

15 years agoFixes as posted by Stefan Winter
Alan T. DeKok [Fri, 7 Jan 2011 11:28:56 +0000 (12:28 +0100)] 
Fixes as posted by Stefan Winter

just now I have had to upgrade my dialup_admin installation to a machine running PHP5.3, and also noticed numerous PHP errors.

I have fixed the code, see attached patch. It solves the following bugs/deprecated code warnings:

* replace ereg -> preg_match, ereg_replace -> preg_replace, split -> preg_split for PHP5.3 compatibility
* fix LIMIT not working when using MySQL
* add configuration item "timezone" to make PHP 5.1+ happy

and adds one (trivial, one-liner) feature:

* add comparison operators "!=" and "not like" to Accounting

Now, I have an almost error/warning/notice free installation. There is still something bogus around the use of mktime() someplace, but I don't use that part of dialup_admin, so I'll leave that alone.

15 years agoFixed typo
Alan T. DeKok [Fri, 7 Jan 2011 10:14:06 +0000 (11:14 +0100)] 
Fixed typo

15 years agoBe less aggressive about printing message
Alan T. DeKok [Thu, 6 Jan 2011 10:49:18 +0000 (11:49 +0100)] 
Be less aggressive about printing message

If the client re-uses the same RADIUS Id, the "check_handler" callback
will be called.  However, it's *not* being called because the RADIUS packet
timed out, so we should *not* print the warning message that the EAP
session didn't finish

15 years agoFix compile warnings
Alan T. DeKok [Thu, 6 Jan 2011 10:49:04 +0000 (11:49 +0100)] 
Fix compile warnings

15 years agoFix fd leak
Alan T. DeKok [Mon, 3 Jan 2011 20:25:21 +0000 (21:25 +0100)] 
Fix fd leak

15 years agoFixed printing of attributes
Alan T. DeKok [Thu, 30 Dec 2010 10:04:47 +0000 (11:04 +0100)] 
Fixed printing of attributes

15 years agoPrint error when foo=`..` is invalid
Alan T. DeKok [Thu, 30 Dec 2010 09:36:59 +0000 (10:36 +0100)] 
Print error when foo=`..` is invalid

It can't occur in the main configuration sections, but it can occur
in an "update" section

15 years agoAdded "one shot" configuration
Alan T. DeKok [Wed, 29 Dec 2010 07:34:37 +0000 (08:34 +0100)] 
Added "one shot" configuration

15 years agoMore log messages
Alan T. DeKok [Wed, 29 Dec 2010 07:34:02 +0000 (08:34 +0100)] 
More log messages

15 years agoAdded %{listen:} to mirror %{client:}
Alan T. DeKok [Sun, 26 Dec 2010 12:36:22 +0000 (13:36 +0100)] 
Added %{listen:} to mirror %{client:}

15 years agoCorrected example
Alan T. DeKok [Fri, 24 Dec 2010 10:23:52 +0000 (11:23 +0100)] 
Corrected example

It belongs in the eap2{} module, not in the eap{} module

15 years agoPatches for EAP-FAST as posted to the list 2010-01-19
Alan T. DeKok [Wed, 7 Jul 2010 14:50:47 +0000 (16:50 +0200)] 
Patches for EAP-FAST as posted to the list 2010-01-19

by Maja Wolniewicz

15 years agoGroup names can be empty.
Alan T. DeKok [Thu, 23 Dec 2010 10:21:48 +0000 (11:21 +0100)] 
Group names can be empty.

15 years agoMade calculations use "int64_t"
Alan T. DeKok [Thu, 23 Dec 2010 08:59:31 +0000 (09:59 +0100)] 
Made calculations use "int64_t"

15 years agoFix typo
Alan T. DeKok [Thu, 23 Dec 2010 08:50:51 +0000 (09:50 +0100)] 
Fix typo

15 years agoHack for !*
Alan T. DeKok [Wed, 22 Dec 2010 13:38:51 +0000 (14:38 +0100)] 
Hack for !*

15 years agoFixed accounting_onoff_query
Alan T. DeKok [Tue, 21 Dec 2010 10:41:14 +0000 (11:41 +0100)] 
Fixed accounting_onoff_query

15 years agoFinal checked write for printing the VP
Alan T. DeKok [Tue, 21 Dec 2010 09:08:00 +0000 (10:08 +0100)] 
Final checked write for printing the VP

15 years agoAdded %{integer:...}
Alan T. DeKok [Tue, 21 Dec 2010 09:01:16 +0000 (10:01 +0100)] 
Added %{integer:...}

Which takes an argument like %{integer:Event-Timestamp}, and prints
it as an integer, bypassing all of the named enumeration and date/time
expansion

15 years agoNote "-f" for debugging
Alan T. DeKok [Mon, 20 Dec 2010 08:46:21 +0000 (09:46 +0100)] 
Note "-f" for debugging

15 years agoLook for, and use Event-Timestamp
Alan T. DeKok [Sun, 19 Dec 2010 11:03:47 +0000 (12:03 +0100)] 
Look for, and use Event-Timestamp

To calculate Acct-Delay-Time

15 years agoRelease group list on error
Alan T. DeKok [Fri, 17 Dec 2010 13:28:03 +0000 (14:28 +0100)] 
Release group list on error

15 years agoTry to get it working for v6, too
Alan T. DeKok [Thu, 16 Dec 2010 13:57:12 +0000 (14:57 +0100)] 
Try to get it working for v6, too

15 years agoRemoved extraneous nonsense
Alan T. DeKok [Wed, 15 Dec 2010 09:25:52 +0000 (10:25 +0100)] 
Removed extraneous nonsense

Text was accidentally committed, now deleted.

15 years agoFix "checked_write" function
Alan T. DeKok [Tue, 14 Dec 2010 15:29:54 +0000 (16:29 +0100)] 
Fix "checked_write" function

- call va_end(args)
- call fwrite(), not fputs()

15 years agoTry to work around v6 PKTINFO compatibility
Alan T. DeKok [Tue, 14 Dec 2010 09:29:29 +0000 (10:29 +0100)] 
Try to work around v6 PKTINFO compatibility

Also try to make it simpler to build && use...

15 years agoReturn error code, not success
Alan T. DeKok [Thu, 9 Dec 2010 11:10:17 +0000 (12:10 +0100)] 
Return error code, not success

15 years agoAdded dictionary from vendor.
Alan T. DeKok [Thu, 9 Dec 2010 10:16:50 +0000 (11:16 +0100)] 
Added dictionary from vendor.

Closes bug #122

15 years agoAllow workstation trust accounts, too
Alan T. DeKok [Thu, 9 Dec 2010 10:13:36 +0000 (11:13 +0100)] 
Allow workstation trust accounts, too

Closes bug #123

15 years agoFix minor typo
Alan T. DeKok [Thu, 9 Dec 2010 10:09:44 +0000 (11:09 +0100)] 
Fix minor typo

Closes bug #124

15 years ago=NULL for UODATE, "IS NULL" for SELECT
Alan T. DeKok [Thu, 9 Dec 2010 10:08:46 +0000 (11:08 +0100)] 
=NULL for UODATE, "IS NULL" for SELECT

Closes bug #129

15 years agoUndocumented command to allow expired CRLs
Alan T. DeKok [Wed, 8 Dec 2010 15:34:54 +0000 (16:34 +0100)] 
Undocumented command to allow expired CRLs

15 years agoAdded a few default variables with values
Alan T. DeKok [Wed, 8 Dec 2010 11:23:30 +0000 (12:23 +0100)] 
Added a few default variables with values

So that the server can start up with minimal config file, and no
warnings

15 years agoNot finding "modules" is a WARNING
Alan T. DeKok [Wed, 8 Dec 2010 11:22:56 +0000 (12:22 +0100)] 
Not finding "modules" is a WARNING

If there are no modules to use, we don't need a "modules" section

15 years agoCheck for truncated writes. Closes bug #130
Alan T. DeKok [Tue, 7 Dec 2010 14:11:02 +0000 (15:11 +0100)] 
Check for truncated writes.  Closes bug #130

15 years agoUse fnmatch(), if it exists.
Alan T. DeKok [Tue, 7 Dec 2010 13:53:57 +0000 (14:53 +0100)] 
Use fnmatch(), if it exists.

The detail file reader reads a glob(), so we should check the writer
filename against that glob(), rather than using a string comparison

Closes bug #128

15 years agoRead the dictionaries if we're printing text output
Alan T. DeKok [Thu, 2 Dec 2010 15:09:20 +0000 (16:09 +0100)] 
Read the dictionaries if we're printing text output

15 years agoHuawei updates
Alan T. DeKok [Thu, 2 Dec 2010 08:29:45 +0000 (09:29 +0100)] 
Huawei updates

15 years agoMore ocsp build cleanups
Alan T. DeKok [Wed, 24 Nov 2010 13:25:40 +0000 (14:25 +0100)] 
More ocsp build cleanups

15 years agoAvoid pointer comparison overflows
Alan T. DeKok [Tue, 23 Nov 2010 15:54:23 +0000 (16:54 +0100)] 
Avoid pointer comparison overflows

15 years agoAdded "ocsp enable" functionality back
Alan T. DeKok [Mon, 22 Nov 2010 15:40:27 +0000 (16:40 +0100)] 
Added "ocsp enable" functionality back

15 years agoCheck for <openssl/ocsp.h>
Alan T. DeKok [Mon, 22 Nov 2010 08:55:27 +0000 (09:55 +0100)] 
Check for <openssl/ocsp.h>

15 years agoCleanups for OCSP support
Alan T. DeKok [Mon, 22 Nov 2010 08:54:18 +0000 (09:54 +0100)] 
Cleanups for OCSP support

15 years agoOCSP Support
Alex Bergmann [Mon, 22 Nov 2010 08:42:54 +0000 (09:42 +0100)] 
OCSP Support

15 years agoMore descriptive error messages
Alan T. DeKok [Fri, 19 Nov 2010 08:28:37 +0000 (09:28 +0100)] 
More descriptive error messages

15 years agoFixes for Libtool 2.6 and Autoconf 2.67
Alan T. DeKok [Tue, 16 Nov 2010 17:26:37 +0000 (18:26 +0100)] 
Fixes for Libtool 2.6 and Autoconf 2.67

They require an additional substitution so LIBLTDL is set correctly

15 years agoFixes for autoconf2.67
Alan T. DeKok [Tue, 16 Nov 2010 17:25:03 +0000 (18:25 +0100)] 
Fixes for autoconf2.67

The symptom of not including this is strange; with autoconf 2.67, some
of the libtool variables in config.status are incorrectly quoted and
configure crashes.

15 years agoNAS-Port is a text field. Don't cast it to integer
Alan T. DeKok [Thu, 11 Nov 2010 08:42:51 +0000 (09:42 +0100)] 
NAS-Port is a text field.  Don't cast it to integer

This solves the 2^31+1 problem.  Closes bug #112

15 years agoAdd group membership query
Alan T. DeKok [Thu, 11 Nov 2010 08:37:04 +0000 (09:37 +0100)] 
Add group membership query

Closes bug #120

15 years agoInclude Mikrotik dictionary
Alan T. DeKok [Thu, 11 Nov 2010 08:35:02 +0000 (09:35 +0100)] 
Include Mikrotik dictionary

Closes bug #121

15 years agoPrint out *which* socket could not be opened.
Alan T. DeKok [Wed, 10 Nov 2010 16:19:12 +0000 (17:19 +0100)] 
Print out *which* socket could not be opened.

15 years agoPrint out when we're adding a new proxy socket.
Alan T. DeKok [Wed, 10 Nov 2010 16:15:58 +0000 (17:15 +0100)] 
Print out when we're adding a new proxy socket.

15 years agoThe NAS generates the MN-FA key, not the AAA
Alan T. DeKok [Wed, 10 Nov 2010 15:59:34 +0000 (16:59 +0100)] 
The NAS generates the MN-FA key, not the AAA

Patch from Ben Weichman

15 years agoRemoved extra calls to HMAC_CTX_init()
Alan T. DeKok [Wed, 10 Nov 2010 14:13:20 +0000 (15:13 +0100)] 
Removed extra calls to HMAC_CTX_init()

Noticed by James Ballantine

15 years agoAllow spaces in shared secret, as posted to the list.
Alan T. DeKok [Wed, 10 Nov 2010 13:06:35 +0000 (14:06 +0100)] 
Allow spaces in shared secret, as posted to the list.

15 years agoAdd support for xlat'd challenge in rlm_eap_gtc
Alexander Clouter [Mon, 8 Nov 2010 18:29:30 +0000 (18:29 +0000)] 
Add support for xlat'd challenge in rlm_eap_gtc

The FIXME in rlm_eap_gtc.c has gone on so long unloved.  God said, let
there be xlat'ing and so there was...

This patch shamelessly steals the xlat functionality in
rlm_eap_tls.c and slaps it into rlm_eap_gtc.c, thus lettings
you do handy things such as:
----
challenge = "%{reply:Reply-Message}"
----

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
15 years agoKeep track of "last in list" properly.
Alan T. DeKok [Mon, 8 Nov 2010 11:43:04 +0000 (12:43 +0100)] 
Keep track of "last in list" properly.

Patch from James Ballantine.

Every other instance of "continue" in this function sets "tailfrom".
This one should, too.

15 years agoUse shift for VSAs instead of OR
Alan T. DeKok [Fri, 29 Oct 2010 17:48:53 +0000 (13:48 -0400)] 
Use shift for VSAs instead of OR

15 years agoFix typo in zombie period start time
Alan T. DeKok [Mon, 25 Oct 2010 10:34:55 +0000 (12:34 +0200)] 
Fix typo in zombie period start time

15 years agoThe cert "bootstrap" code now checks certs for validity
Alan T. DeKok [Sat, 23 Oct 2010 06:57:58 +0000 (08:57 +0200)] 
The cert "bootstrap" code now checks certs for validity

Otherwise, the server can load expired certificates.  The clients will
refuse to connect, via the usual "access-challenge followed by nothing"
issue.  A better approach is for the server to print an error message
on startup, and refuse to run.

15 years agoMoved illegal attributes to the new dictionary
Alan T. DeKok [Thu, 1 Oct 2009 08:39:22 +0000 (10:39 +0200)] 
Moved illegal attributes to the new dictionary

15 years agoMoved Ascends illegal attributes to their own file
Alan T. DeKok [Tue, 29 Sep 2009 08:10:59 +0000 (10:10 +0200)] 
Moved Ascends illegal attributes to their own file

15 years agoMore checks on handler_tree
Alan T. DeKok [Thu, 21 Oct 2010 13:09:11 +0000 (15:09 +0200)] 
More checks on handler_tree

Use the pointer if it exists, not if debug_flag is set

15 years agoFix child state on corner case
Alan T. DeKok [Sun, 17 Oct 2010 16:21:25 +0000 (18:21 +0200)] 
Fix child state on corner case

15 years agoAdd all home_servers in the configuration.
Alan T. DeKok [Fri, 15 Oct 2010 13:19:30 +0000 (15:19 +0200)] 
Add all home_servers in the configuration.

Previously, the realms were added, then pools, then home servers.
This works, but it is awkward for dynamically adding home servers.

Instead, we should add home servers, then pools, and then realms.

15 years agoLink with libradius, too
Alan T. DeKok [Fri, 15 Oct 2010 00:21:33 +0000 (02:21 +0200)] 
Link with libradius, too

15 years agoFix corner case when not threaded.
Alan T. DeKok [Fri, 15 Oct 2010 00:10:18 +0000 (02:10 +0200)] 
Fix corner case when not threaded.

If the request is still running after 30s, it's probably because
it was proxied, and the home server didn't bother to respond.

15 years agoCheck data_len for internal TLVs
Alan T. DeKok [Wed, 13 Oct 2010 20:59:59 +0000 (22:59 +0200)] 
Check data_len for internal TLVs

15 years agoFixes to build without PTHREADs
Alan T. DeKok [Wed, 13 Oct 2010 20:58:48 +0000 (22:58 +0200)] 
Fixes to build without PTHREADs

15 years agouse RDEBUG
Phil Mayers [Tue, 12 Oct 2010 16:20:08 +0000 (17:20 +0100)] 
use RDEBUG

15 years agoAdded REQUEST to soh_verify() parameters
Alan T. DeKok [Tue, 12 Oct 2010 11:12:13 +0000 (13:12 +0200)] 
Added REQUEST to soh_verify() parameters

In preparation for DEBUG -> RDEBUG changes.

Also made rlm_soh return FAIL on bad SoH packets.

15 years agoProtect SoH server messages
Alan T. DeKok [Tue, 12 Oct 2010 11:07:12 +0000 (13:07 +0200)] 
Protect SoH server messages

15 years agoMove the SoH code to the server directory
Alan T. DeKok [Tue, 12 Oct 2010 11:04:15 +0000 (13:04 +0200)] 
Move the SoH code to the server directory

The code is suitable only for servers, not clients.  So it doesn't need
to be in the client library.

15 years agoUse handler mutex for checks, not session mutex
Alan T. DeKok [Tue, 12 Oct 2010 10:10:34 +0000 (12:10 +0200)] 
Use handler mutex for checks, not session mutex

15 years agoFix parameters to soh_verify
Alan T. DeKok [Sat, 9 Oct 2010 15:52:56 +0000 (17:52 +0200)] 
Fix parameters to soh_verify

15 years agoAdd "extern C {...} to header files for C++ builds.
Alan T. DeKok [Sat, 9 Oct 2010 11:53:44 +0000 (13:53 +0200)] 
Add "extern C {...} to header files for C++ builds.

Also renamed "operator" to "op_token" for C++ builds.  This doesn't affect
the server core, but it should allow C++ modules to build.  It should
also allow C++ applications to use libfreeradius-radius

15 years agoSlightly better debugging
Alan T. DeKok [Sat, 9 Oct 2010 06:05:36 +0000 (08:05 +0200)] 
Slightly better debugging

15 years agoCode in src/lib shouldn't reference the REQUEST structure
Alan T. DeKok [Fri, 8 Oct 2010 15:31:54 +0000 (17:31 +0200)] 
Code in src/lib shouldn't reference the REQUEST structure

15 years agoShouldn't include <radiusd.h>
Alan T. DeKok [Fri, 8 Oct 2010 15:23:57 +0000 (17:23 +0200)] 
Shouldn't include <radiusd.h>

15 years agoMarked SoH module as "stable"
Alan T. DeKok [Fri, 8 Oct 2010 10:02:15 +0000 (12:02 +0200)] 
Marked SoH module as "stable"

15 years agoAdded SoH functionality to the PEAP module
Phil Mayers [Fri, 8 Oct 2010 10:01:40 +0000 (12:01 +0200)] 
Added SoH functionality to the PEAP module

15 years agoMoved "fake request" code into its own function
Phil Mayers [Fri, 8 Oct 2010 09:45:07 +0000 (11:45 +0200)] 
Moved "fake request" code into its own function

15 years agoSoH docs & example
Phil Mayers [Fri, 8 Oct 2010 09:30:43 +0000 (11:30 +0200)] 
SoH docs & example

15 years agoFix compiler warnings
Alan T. DeKok [Fri, 8 Oct 2010 09:29:15 +0000 (11:29 +0200)] 
Fix compiler warnings

15 years agook, working SoH standalone module
Phil Mayers [Fri, 8 Oct 2010 09:26:15 +0000 (11:26 +0200)] 
ok, working SoH standalone module

15 years agoBase SoH code for Microsoft NAP.
Phil Mayers [Fri, 8 Oct 2010 07:36:15 +0000 (09:36 +0200)] 
Base SoH code for Microsoft NAP.

This code will be used by other protocols (PEAP, DHCP) to encode/decode
the SoH information.

15 years agoUpdates for 2.1.11
Alan T. DeKok [Fri, 8 Oct 2010 07:29:45 +0000 (09:29 +0200)] 
Updates for 2.1.11

15 years agoFix call to otp_write
Alan T. DeKok [Fri, 8 Oct 2010 07:28:08 +0000 (09:28 +0200)] 
Fix call to otp_write

15 years agoProtect pcap_fopen calls
Alan T. DeKok [Fri, 1 Oct 2010 13:35:28 +0000 (15:35 +0200)] 
Protect pcap_fopen calls

Apparently not all versions of pcap have this <sigh>

15 years agoIgnore post-proxy type if proxy is disabled
Alan T. DeKok [Wed, 29 Sep 2010 13:47:28 +0000 (15:47 +0200)] 
Ignore post-proxy type if proxy is disabled

15 years agoBetter way of updating cf_data_add release_2_1_10
Alan T. DeKok [Tue, 28 Sep 2010 11:03:56 +0000 (13:03 +0200)] 
Better way of updating cf_data_add

15 years agoDisable example config in default build
Alan T. DeKok [Tue, 28 Sep 2010 10:07:30 +0000 (12:07 +0200)] 
Disable example config in default build

15 years agoNote TLS-Client-Cert-* attributes
Alan T. DeKok [Mon, 27 Sep 2010 12:02:05 +0000 (14:02 +0200)] 
Note TLS-Client-Cert-* attributes

15 years agoNoted recent changes
Alan T. DeKok [Mon, 27 Sep 2010 11:44:08 +0000 (13:44 +0200)] 
Noted recent changes

15 years agoAdded '-F' to filter RADIUS from input to output
Alan T. DeKok [Sun, 26 Sep 2010 08:24:54 +0000 (10:24 +0200)] 
Added '-F' to filter RADIUS from input to output

This can be used to "clean up" horrible pcap files that people create.
i.e. when asked for a RADIUS pcap file, they just capture *everything*
on the interface for a period of time.  This makes it harder to track
down the real RADIUS issues.

Adding -F makes it easy to filter the packets.

15 years agoFix long-standing bug where unix Groupcmp didn't work
Alan T. DeKok [Sat, 25 Sep 2010 15:57:09 +0000 (17:57 +0200)] 
Fix long-standing bug where unix Groupcmp didn't work

It was looking in the wrong list for the user name.