]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
14 years agoUnix group setting for detail log files 42/head
Matthew Newton [Wed, 11 Jan 2012 12:33:03 +0000 (12:33 +0000)] 
Unix group setting for detail log files

Patch to allow the group to be set when updating detail logs, rather
than being limited to just the group of the running daemon.

14 years ago"username" and "password" cannot be non-empty for status_check=request
Alan T. DeKok [Fri, 6 Jan 2012 13:54:56 +0000 (14:54 +0100)] 
"username" and "password" cannot be non-empty for status_check=request

Because some people misconfigure the server.

14 years agoNote recent changes
Alan T. DeKok [Thu, 29 Dec 2011 22:56:46 +0000 (17:56 -0500)] 
Note recent changes

14 years agoUse correct method of recursing into subdirs
Alan T. DeKok [Thu, 29 Dec 2011 22:50:18 +0000 (17:50 -0500)] 
Use correct method of recursing into subdirs

Since commit 0347cacfe0f470353, we have a better way of recursing
into subdirs.  Having an explicit test for $(RLM_SUBDIRS), and
then manually recursing into them is wrong.  It causes modules
like rlm_eap to be built twice.

Instead, remove the test for $(RLM_SUBDIRS), and make
$(TARGET).la depend on $(RLM_SUBDIRS)

14 years agoAdd EXEEXT to binaries
Alan T. DeKok [Thu, 29 Dec 2011 21:49:05 +0000 (16:49 -0500)] 
Add EXEEXT to binaries

Closes bug #188

14 years agoAdd and document -F radutmp_file
Alan T. DeKok [Mon, 26 Dec 2011 17:37:38 +0000 (12:37 -0500)] 
Add and document -F radutmp_file

14 years agoUse new dict_valnamebyattr function
Alan T. DeKok [Fri, 23 Dec 2011 14:33:57 +0000 (09:33 -0500)] 
Use new dict_valnamebyattr function

14 years agoAdded 'interface_ipaddr' configuration parameter to help freeradius send the DHCP...
Renaud Métrich [Mon, 26 Dec 2011 16:43:22 +0000 (17:43 +0100)] 
Added 'interface_ipaddr' configuration parameter to help freeradius send the DHCP reply packet using interface's IP address as source, and not 'ipaddr' which may be 255.255.255.255 when listening for broadcasts

14 years agoRemove compiler warning
Alan T. DeKok [Fri, 23 Dec 2011 14:28:40 +0000 (09:28 -0500)] 
Remove compiler warning

14 years agoUse new dict_valnamebyattr function
Alan T. DeKok [Fri, 23 Dec 2011 14:28:01 +0000 (09:28 -0500)] 
Use new dict_valnamebyattr function

14 years agoUse new functions for getting enum name
Alan T. DeKok [Fri, 23 Dec 2011 14:16:37 +0000 (09:16 -0500)] 
Use new functions for getting enum name

14 years agoAdded new method to get name of enum from values
Alan T. DeKok [Fri, 23 Dec 2011 14:15:53 +0000 (09:15 -0500)] 
Added new method to get name of enum from values

This is simpler than having duplicate code throughout the
source.

14 years agoFix for latest set of arguments
Alan T. DeKok [Wed, 21 Dec 2011 13:47:48 +0000 (08:47 -0500)] 
Fix for latest set of arguments

14 years agoInitialize authentication vector.
Alan T. DeKok [Tue, 20 Dec 2011 14:38:22 +0000 (09:38 -0500)] 
Initialize authentication vector.

Otherwise proxied packets can have a zero authentication
vector.

14 years agoNote recent changes
Alan T. DeKok [Tue, 20 Dec 2011 13:16:05 +0000 (08:16 -0500)] 
Note recent changes

14 years agoNote that "hashsize=0" is a bad idea
Alan T. DeKok [Tue, 20 Dec 2011 13:14:40 +0000 (08:14 -0500)] 
Note that "hashsize=0" is a bad idea

14 years agoUse "last_found" in a thread-safe manner
Alan T. DeKok [Mon, 19 Dec 2011 20:44:37 +0000 (15:44 -0500)] 
Use "last_found" in a thread-safe manner

It's a thread-local variable, not a variable global to the
configuration.

Note also that much of the rest of the module is poor.
Re-reading the files for every packet is HORRIBLE.  It causes
more threading issues.
Fixed-size hash tables are similarly poor practice.

14 years agoAs posted to the list
Alan T. DeKok [Fri, 16 Dec 2011 18:40:22 +0000 (13:40 -0500)] 
As posted to the list

14 years agoAccount for EAP header and EAP-MSCHAPv2 opcode
Alan T. DeKok [Tue, 13 Dec 2011 20:07:07 +0000 (21:07 +0100)] 
Account for EAP header and EAP-MSCHAPv2 opcode

Found by Matt Dayman.

14 years agoAdded "log { use_utc = yes/no }" configuration
Alan T. DeKok [Thu, 8 Dec 2011 13:48:55 +0000 (14:48 +0100)] 
Added "log { use_utc = yes/no }" configuration

14 years agoMore strlen fixes
Alan T. DeKok [Sun, 4 Dec 2011 09:00:57 +0000 (10:00 +0100)] 
More strlen fixes

14 years agoMore strlen fixes
Alan T. DeKok [Sun, 4 Dec 2011 08:59:50 +0000 (09:59 +0100)] 
More strlen fixes

14 years agoFixed bad strlen
Alan T. DeKok [Sun, 4 Dec 2011 08:53:52 +0000 (09:53 +0100)] 
Fixed bad strlen

14 years agoMore strlen fixes
Alan T. DeKok [Fri, 2 Dec 2011 16:53:11 +0000 (17:53 +0100)] 
More strlen fixes

14 years agoReplace strlen with more efficient check
Alan T. DeKok [Fri, 2 Dec 2011 16:52:11 +0000 (17:52 +0100)] 
Replace strlen with more efficient check

14 years agoReplace strlen with simpler check
Alan T. DeKok [Fri, 2 Dec 2011 16:48:33 +0000 (17:48 +0100)] 
Replace strlen with simpler check

14 years agoPerl clone should be called sequentially, not in parallel.
Alan T. DeKok [Thu, 1 Dec 2011 13:21:03 +0000 (14:21 +0100)] 
Perl clone should be called sequentially, not in parallel.

Adding a mutex fixes this.

Patch from Eike Dehling

14 years agoPrint out real password, not username
Alan T. DeKok [Tue, 29 Nov 2011 19:40:39 +0000 (20:40 +0100)] 
Print out real password, not username

14 years agoMinor rewording of configuration
Alan T. DeKok [Mon, 28 Nov 2011 16:27:11 +0000 (17:27 +0100)] 
Minor rewording of configuration

14 years agoNote recent changes
Alan T. DeKok [Mon, 28 Nov 2011 12:45:16 +0000 (13:45 +0100)] 
Note recent changes

14 years agoBetter fix for previous debian bug
Alan T. DeKok [Mon, 28 Nov 2011 12:44:46 +0000 (13:44 +0100)] 
Better fix for previous debian bug

14 years agonitialize data pointer before setting it
Alan T. DeKok [Mon, 28 Nov 2011 12:36:22 +0000 (13:36 +0100)] 
nitialize data pointer before setting it

So that if there's an error setting it, we can free it without
the system blowing up.

Closes Debian bug #606450

14 years agoRemove old text
Alan T. DeKok [Sun, 27 Nov 2011 09:03:43 +0000 (10:03 +0100)] 
Remove old text

Because it confuses people who don't read eap.conf, or
the rest of the file.

14 years agoPass sizeof buffer to cf_expand_variables
Alan T. DeKok [Fri, 25 Nov 2011 14:27:01 +0000 (15:27 +0100)] 
Pass sizeof buffer to cf_expand_variables

14 years agoIgnore local cache directory
Alan T. DeKok [Thu, 24 Nov 2011 07:56:05 +0000 (08:56 +0100)] 
Ignore local cache directory

14 years agoIgnore tar files, sig files, patches
Alan T. DeKok [Thu, 24 Nov 2011 07:55:15 +0000 (08:55 +0100)] 
Ignore tar files, sig files, patches

14 years agoIgnore the doxygen _build directory
Alan T. DeKok [Thu, 24 Nov 2011 07:53:32 +0000 (08:53 +0100)] 
Ignore the doxygen _build directory

14 years agoUpdated DHCP configuration template to be able to act as a DHCP server when on a...
Renaud Métrich [Thu, 24 Nov 2011 09:42:57 +0000 (10:42 +0100)] 
Updated DHCP configuration template to be able to act as a DHCP server when on a gateway on Linux

14 years agoFixed DHCP relay when residing on a gateway on Linux
Renaud Métrich [Wed, 23 Nov 2011 15:17:26 +0000 (16:17 +0100)] 
Fixed DHCP relay when residing on a gateway on Linux
Updated template to reflect the changes

14 years agoMerge branch 'v2.1.x' of git://git.freeradius.org/freeradius-server into v2.1.x
Renaud Métrich [Tue, 22 Nov 2011 09:17:46 +0000 (10:17 +0100)] 
Merge branch 'v2.1.x' of git://git.freeradius.org/freeradius-server into v2.1.x

14 years agoFixed DHCP server badly replying to DHCP DISCOVER using broadcast IP address as sourc...
Renaud Métrich [Tue, 22 Nov 2011 09:14:43 +0000 (10:14 +0100)] 
Fixed DHCP server badly replying to DHCP DISCOVER using broadcast IP address as source for packet

14 years agoMajor cleanups and reorganization
Alan T. DeKok [Mon, 21 Nov 2011 16:50:50 +0000 (17:50 +0100)] 
Major cleanups and reorganization

14 years agoCorrect typo in error message
Alan T. DeKok [Mon, 21 Nov 2011 16:47:27 +0000 (17:47 +0100)] 
Correct typo in error message

ascend secret is "encrypt=3", not "encrypt=2"

14 years agosurface RFC822 subject alt name
Luke Howard [Sat, 19 Nov 2011 03:32:07 +0000 (14:32 +1100)] 
surface RFC822 subject alt name

14 years agoDocument net admin capabilities
Alan T. DeKok [Fri, 18 Nov 2011 14:24:02 +0000 (15:24 +0100)] 
Document net admin capabilities

So that the server can set arp table entries as non-root

14 years agostrlcpy, not strcpy
Alan T. DeKok [Fri, 18 Nov 2011 10:32:36 +0000 (11:32 +0100)] 
strlcpy, not strcpy

14 years agoFixed compilation break + use of uninitialized value
Renaud Métrich [Fri, 18 Nov 2011 08:37:37 +0000 (09:37 +0100)] 
Fixed compilation break + use of uninitialized value

14 years agoFixed typo
Alan T. DeKok [Thu, 17 Nov 2011 15:59:32 +0000 (16:59 +0100)] 
Fixed typo

14 years agoNote recent changes
Alan T. DeKok [Thu, 17 Nov 2011 14:18:53 +0000 (15:18 +0100)] 
Note recent changes

14 years agoRewrite DHCP functionality
Alan T. DeKok [Thu, 17 Nov 2011 14:18:06 +0000 (15:18 +0100)] 
Rewrite DHCP functionality

This code makes a lot more sense.  And it supports relaying

14 years agoAdded DHCP relay functions
Alan T. DeKok [Thu, 17 Nov 2011 14:04:25 +0000 (15:04 +0100)] 
Added DHCP relay functions

For processing client request -> server and server reply -> client

The code is unused for now, but will be used shortly

14 years agoAdded sample virtual server for DHCP relaying
Alan T. DeKok [Thu, 17 Nov 2011 14:03:01 +0000 (15:03 +0100)] 
Added sample virtual server for DHCP relaying

14 years agoAdded fr_dhcp_add_arp_entry
Alan T. DeKok [Thu, 17 Nov 2011 13:36:46 +0000 (14:36 +0100)] 
Added fr_dhcp_add_arp_entry

This will later be used for the updated DHCP code

14 years agoRemoved extraneous "extern"
Alan T. DeKok [Thu, 17 Nov 2011 13:35:21 +0000 (14:35 +0100)] 
Removed extraneous "extern"

14 years agoAdd max hop count for relays
Alan T. DeKok [Thu, 17 Nov 2011 13:26:59 +0000 (14:26 +0100)] 
Add max hop count for relays

This is a control attribute which will enforce a maximum
hop count when relaying

14 years agoInclude copyright lines
Alan T. DeKok [Thu, 17 Nov 2011 11:00:42 +0000 (12:00 +0100)] 
Include copyright lines

This is for people who can't be bothered to give attribution
where it's due.  The dictionary files we have here give authors,
origins, web pages, etc. where possible.  It's only reasonable
for others to do the same.

Sadly, that's asking too much of some people.  So we've added
explicit copyright statements so that people have no excuse.

14 years agoAdded minor debug message
Alan T. DeKok [Fri, 11 Nov 2011 08:26:15 +0000 (09:26 +0100)] 
Added minor debug message

14 years agoUpdated the NAI document
Alan T. DeKok [Mon, 7 Nov 2011 15:19:29 +0000 (16:19 +0100)] 
Updated the NAI document

14 years agoFixed typo
Alan T. DeKok [Sun, 6 Nov 2011 09:36:10 +0000 (10:36 +0100)] 
Fixed typo

14 years agoNote more changes
Alan T. DeKok [Sun, 6 Nov 2011 08:42:35 +0000 (09:42 +0100)] 
Note more changes

14 years agoWhat appears to be the definitive fix to libltl nonsense
Alan T. DeKok [Fri, 4 Nov 2011 14:18:57 +0000 (15:18 +0100)] 
What appears to be the definitive fix to libltl nonsense

FORCE the compiler to use out libltdl, rather than the system
one.  This gets rid of the _lt__PROGRAM__LTX_preloaded_symbols
nonsense.

14 years agoFix typo
Alan T. DeKok [Fri, 4 Nov 2011 14:18:26 +0000 (15:18 +0100)] 
Fix typo

14 years agoAdd additional attributes and values for Netbotz Rack Access PX - HID.
Dave Duchscher [Wed, 2 Nov 2011 19:58:41 +0000 (14:58 -0500)] 
Add additional attributes and values for Netbotz Rack Access PX - HID.

See: http://nam-en.apc.com/app/answers/detail/a_id/8570/~/how-do-i-configure-radius-authentication-for-my-card-reader-on-the-netbotz-rack

14 years agoMkae it build on FreeBSD. Fixes bug #177
Alan T. DeKok [Tue, 1 Nov 2011 14:00:57 +0000 (15:00 +0100)] 
Mkae it build on FreeBSD.  Fixes bug #177

14 years agoMake dict_attr_types available from libradius.h so we can do integer to string type...
Arran Cudbard-Bell [Fri, 28 Oct 2011 14:10:06 +0000 (16:10 +0200)] 
Make dict_attr_types available from libradius.h so we can do integer to string type conversions

14 years agoFix code to use more standard API
Alan T. DeKok [Thu, 27 Oct 2011 07:30:56 +0000 (09:30 +0200)] 
Fix code to use more standard API

Cache DICT_ATTR*, not "int attr"

14 years agoClean upo logic See bug #181
Alan T. DeKok [Thu, 27 Oct 2011 07:24:29 +0000 (09:24 +0200)] 
Clean upo logic  See bug #181

If we're almost at the expiry time, add the next time period ONLY
if the reply is Session-Timeoout.

14 years agoConvert error messages to debug messages.
Alan T. DeKok [Wed, 26 Oct 2011 09:49:20 +0000 (11:49 +0200)] 
Convert error messages to debug messages.

If a module returns NOOP, it's not an error

14 years agoNote changes
Alan T. DeKok [Tue, 25 Oct 2011 12:01:47 +0000 (14:01 +0200)] 
Note changes

14 years agoMerge pull request #29 from philmayers/fix-sessid-len
Alan DeKok [Tue, 25 Oct 2011 12:02:24 +0000 (05:02 -0700)] 
Merge pull request #29 from philmayers/fix-sessid-len

Fix sessid len

14 years agouse correct length for session_context_id and write a shorter value, to fit into it 29/head
Phil Mayers [Tue, 25 Oct 2011 11:49:10 +0000 (12:49 +0100)] 
use correct length for session_context_id and write a shorter value, to fit into it

14 years agoRestrict dictionary names to ones that make sense
Alan T. DeKok [Mon, 24 Oct 2011 09:52:36 +0000 (11:52 +0200)] 
Restrict dictionary names to ones that make sense

No control characters, etc.
The old code allowed ANYTHING as dictionary names, which is bad.

14 years agoVPs should be cached to an index on the SSL_SESSION not SSL object
Phil Mayers [Thu, 20 Oct 2011 21:07:23 +0000 (22:07 +0100)] 
VPs should be cached to an index on the SSL_SESSION not SSL object

Don't free VPs in the session free callback since they might
still be refcount > 0, and the ex_data callback will do it for us

14 years agoNote changes from Coverity
Alan T. DeKok [Thu, 20 Oct 2011 21:27:17 +0000 (23:27 +0200)] 
Note changes from Coverity

14 years agoTell OpenSSL that the data is gone
Alan T. DeKok [Thu, 20 Oct 2011 12:22:24 +0000 (14:22 +0200)] 
Tell OpenSSL that the data is gone

14 years agoQuiet compiler warning
Alan T. DeKok [Wed, 19 Oct 2011 15:46:17 +0000 (17:46 +0200)] 
Quiet compiler warning

14 years agoReorder error message so we don't have use after free
Alan T. DeKok [Wed, 19 Oct 2011 15:44:47 +0000 (17:44 +0200)] 
Reorder error message so we don't have use after free

14 years agoInitialize the structure
Alan T. DeKok [Wed, 19 Oct 2011 15:43:28 +0000 (17:43 +0200)] 
Initialize the structure

14 years agoInitialize all of the structure
Alan T. DeKok [Wed, 19 Oct 2011 15:43:15 +0000 (17:43 +0200)] 
Initialize all of the structure

14 years agoFree memory on error
Alan T. DeKok [Wed, 19 Oct 2011 15:39:45 +0000 (17:39 +0200)] 
Free memory on error

14 years agoFree memory on instantiation error
Alan T. DeKok [Wed, 19 Oct 2011 15:38:56 +0000 (17:38 +0200)] 
Free memory on instantiation error

14 years agoFree memory on error
Alan T. DeKok [Wed, 19 Oct 2011 15:37:16 +0000 (17:37 +0200)] 
Free memory on error

14 years agoClose fp on error
Alan T. DeKok [Wed, 19 Oct 2011 15:35:56 +0000 (17:35 +0200)] 
Close fp on error

14 years agoCall closedir() on error
Alan T. DeKok [Wed, 19 Oct 2011 15:34:01 +0000 (17:34 +0200)] 
Call closedir() on error

14 years agoDon't leak on malformed packets
Alan T. DeKok [Wed, 19 Oct 2011 15:30:35 +0000 (17:30 +0200)] 
Don't leak on malformed packets

14 years agoCatch case where User-Name may be > 250 octets
Alan T. DeKok [Wed, 19 Oct 2011 15:26:36 +0000 (17:26 +0200)] 
Catch case where User-Name may be > 250 octets

14 years agoOnly "string" can have "encrypt=2"
Alan T. DeKok [Wed, 19 Oct 2011 15:20:37 +0000 (17:20 +0200)] 
Only "string" can have "encrypt=2"

14 years agoAdd FALL-THROUGH for 'case' without 'break'
Alan T. DeKok [Wed, 19 Oct 2011 15:10:12 +0000 (17:10 +0200)] 
Add FALL-THROUGH for 'case' without 'break'

14 years agoAdd FALL-THROUGH for 'case' without 'break'
Alan T. DeKok [Wed, 19 Oct 2011 15:08:58 +0000 (17:08 +0200)] 
Add FALL-THROUGH for 'case' without 'break'

14 years agoUnlink file only if it exists
Alan T. DeKok [Wed, 19 Oct 2011 15:05:25 +0000 (17:05 +0200)] 
Unlink file only if it exists

14 years agoCheck auth_pool_name
Alan T. DeKok [Wed, 19 Oct 2011 15:04:05 +0000 (17:04 +0200)] 
Check auth_pool_name

14 years agoAdd port if it's available
Alan T. DeKok [Wed, 19 Oct 2011 15:02:06 +0000 (17:02 +0200)] 
Add port if it's available

14 years agoCheck passed parameter
Alan T. DeKok [Wed, 19 Oct 2011 15:01:54 +0000 (17:01 +0200)] 
Check passed parameter

14 years agoError if there is no detail file listener
Alan T. DeKok [Wed, 19 Oct 2011 14:59:52 +0000 (16:59 +0200)] 
Error if there is no detail file listener

14 years agoFix sizeof() checks found by coverity
Alan T. DeKok [Wed, 19 Oct 2011 14:54:40 +0000 (16:54 +0200)] 
Fix sizeof() checks found by coverity

14 years agoClean up error message so it makes more sense
Alan T. DeKok [Wed, 19 Oct 2011 12:04:47 +0000 (14:04 +0200)] 
Clean up error message so it makes more sense

14 years agoUpdate to version 2.2.0
Alan T. DeKok [Wed, 19 Oct 2011 08:43:23 +0000 (10:43 +0200)] 
Update to version 2.2.0

We don't want to release a 2.1.13 :)

14 years agoFree cached VPs when SSL says that the session is freed
Alan T. DeKok [Wed, 19 Oct 2011 08:42:05 +0000 (10:42 +0200)] 
Free cached VPs when SSL says that the session is freed

14 years agoAdded example for radrelay
Alan T. DeKok [Tue, 18 Oct 2011 15:07:31 +0000 (17:07 +0200)] 
Added example for radrelay

14 years agoSwitch to SHA1 for message digest
Alan T. DeKok [Tue, 18 Oct 2011 06:37:21 +0000 (08:37 +0200)] 
Switch to SHA1 for message digest

MD5 has been attacked.  We shouldn't use it