freeradius.git
14 years agoMove definition so that it doesn't cause issues
Alan T. DeKok [Sun, 22 Nov 2009 08:16:22 +0000 (09:16 +0100)]
Move definition so that it doesn't cause issues

Use the RFC definitions for the name

14 years agoRevert "errormsg may be NULL"
Alan T. DeKok [Sun, 22 Nov 2009 08:12:15 +0000 (09:12 +0100)]
Revert "errormsg may be NULL"

This reverts commit 45877bf44b02d418b6fb263a39e5de07ced58b6e.

It doesn't fix the problem, and it seems to cause issues for
other people

14 years agoAs posted to the list
Alan T. DeKok [Wed, 18 Nov 2009 17:34:17 +0000 (18:34 +0100)]
As posted to the list

14 years agoMove user/group/chroot/core to bootstrap config
Alan T. DeKok [Tue, 17 Nov 2009 10:19:17 +0000 (11:19 +0100)]
Move user/group/chroot/core to bootstrap config

It adds some extra stuff when starting in debug mode as root, but it
also means that "allow_core_dumps" works again.

14 years agoMake templates work again
Alan T. DeKok [Sat, 14 Nov 2009 09:29:40 +0000 (10:29 +0100)]
Make templates work again

14 years agoAllow !* to work
Alan T. DeKok [Fri, 13 Nov 2009 13:15:51 +0000 (14:15 +0100)]
Allow !* to work

The code to delete all attributes (as documented in unlang) was
previously added in evaluate.c.  But the parser hadn't been updated,
so it was impossible to actually use that functionality.

14 years agoPrint commands from radmin when in debug mode
Alan T. DeKok [Thu, 12 Nov 2009 15:19:25 +0000 (16:19 +0100)]
Print commands from radmin when in debug mode

14 years agoFix WiMAX encoding bug introduced in 326a68b90a1a
Alan T. DeKok [Thu, 12 Nov 2009 11:25:03 +0000 (12:25 +0100)]
Fix WiMAX encoding bug introduced in 326a68b90a1a

14 years agoAs posted to the list
Alan T. DeKok [Fri, 6 Nov 2009 13:16:42 +0000 (08:16 -0500)]
As posted to the list

14 years agoFrom bug #45
Alan T. DeKok [Tue, 3 Nov 2009 21:40:03 +0000 (16:40 -0500)]
From bug #45

14 years agoerrormsg may be NULL
Alan T. DeKok [Wed, 28 Oct 2009 13:44:38 +0000 (09:44 -0400)]
errormsg may be NULL

14 years agoAs posted to the list
Alan T. DeKok [Fri, 23 Oct 2009 09:37:44 +0000 (11:37 +0200)]
As posted to the list

14 years agoRemoved recursive mutexes.
Alan T. DeKok [Wed, 21 Oct 2009 13:15:28 +0000 (15:15 +0200)]
Removed recursive mutexes.

Some systems don't support recursive mutexes.  Instead, they hang.
So... we've got to re-write the code so that it doesn't depend on
recursive mutexes.

14 years agoConf for debugging
Alan T. DeKok [Tue, 20 Oct 2009 14:28:58 +0000 (16:28 +0200)]
Conf for debugging

14 years agoFix openssl checks
Alan T. DeKok [Tue, 20 Oct 2009 14:07:18 +0000 (16:07 +0200)]
Fix openssl checks

14 years agoCheck src_port, not dst_port
Alan T. DeKok [Tue, 20 Oct 2009 13:05:05 +0000 (15:05 +0200)]
Check src_port, not dst_port

14 years agoAlways initialize proto
Alan T. DeKok [Tue, 20 Oct 2009 13:03:54 +0000 (15:03 +0200)]
Always initialize proto

14 years agoInitialize proto for old-style realms
Alan T. DeKok [Tue, 20 Oct 2009 13:03:20 +0000 (15:03 +0200)]
Initialize proto for old-style realms

14 years agoInitialize via attr
Alan T. DeKok [Tue, 20 Oct 2009 12:53:38 +0000 (14:53 +0200)]
Initialize via attr

14 years agoRetry if there was no response to the packet.
Alan T. DeKok [Tue, 20 Oct 2009 10:14:36 +0000 (12:14 +0200)]
Retry if there was no response to the packet.

14 years agoPrint env vars in parent, not child
Alan T. DeKok [Sun, 18 Oct 2009 15:19:22 +0000 (17:19 +0200)]
Print env vars in parent, not child

14 years agoChanged stop packet msg to debug rather than error
Alan T. DeKok [Sun, 18 Oct 2009 11:47:06 +0000 (13:47 +0200)]
Changed stop packet msg to debug rather than error

14 years agoDefine names
Alan T. DeKok [Sun, 18 Oct 2009 07:04:36 +0000 (09:04 +0200)]
Define names

14 years agoCall detach only if function exists
Alan T. DeKok [Fri, 16 Oct 2009 16:53:49 +0000 (18:53 +0200)]
Call detach only if function exists

14 years agoAs posted to the list
Alan T. DeKok [Thu, 15 Oct 2009 09:23:30 +0000 (11:23 +0200)]
As posted to the list

14 years agoFixed typo
Alan T. DeKok [Thu, 15 Oct 2009 08:08:40 +0000 (10:08 +0200)]
Fixed typo

14 years agoFix to prevent compiler optimizations
Alan T. DeKok [Wed, 14 Oct 2009 12:09:41 +0000 (14:09 +0200)]
Fix to prevent compiler optimizations

from bug #30

14 years agoWrite the PID file as late as possible
Alan T. DeKok [Tue, 13 Oct 2009 10:53:49 +0000 (12:53 +0200)]
Write the PID file as late as possible

i.e. after checking the config, and after opening any sockets

14 years agoFix typo
Alan T. DeKok [Tue, 13 Oct 2009 10:52:12 +0000 (12:52 +0200)]
Fix typo

14 years agofix debian/rules to honour CFLAGS
Alexander Clouter [Sat, 10 Oct 2009 12:25:29 +0000 (13:25 +0100)]
fix debian/rules to honour CFLAGS

Fixed up debian/rules to allow CFLAGS to be honoured.

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
14 years agoFix typo
Alan T. DeKok [Mon, 12 Oct 2009 11:56:49 +0000 (13:56 +0200)]
Fix typo

14 years agoDon't use source IP for EAP packets.
Alan T. DeKok [Mon, 12 Oct 2009 11:17:26 +0000 (13:17 +0200)]
Don't use source IP for EAP packets.

We control State, so it should be unique, too

14 years agoMake client/port/key-balance more like fail-over
Alan T. DeKok [Mon, 12 Oct 2009 11:14:09 +0000 (13:14 +0200)]
Make client/port/key-balance more like fail-over

Previously, they would default to load-balancing across all
found servers.  Now they don't.  This makes keyed-balance proxying
more robust with EAP

14 years agoReturn rather than use the same ptr twice
Alan T. DeKok [Mon, 12 Oct 2009 10:14:09 +0000 (12:14 +0200)]
Return rather than use the same ptr twice

14 years agoFix typo
Alan T. DeKok [Wed, 7 Oct 2009 13:08:55 +0000 (15:08 +0200)]
Fix typo

14 years agoForgot to include this...
Alan T. DeKok [Tue, 6 Oct 2009 09:28:36 +0000 (11:28 +0200)]
Forgot to include this...

14 years agoNote changes
Alan T. DeKok [Tue, 6 Oct 2009 09:28:19 +0000 (11:28 +0200)]
Note changes

14 years agoEnsure that there is a cleanup event for proxied packets
Alan T. DeKok [Tue, 6 Oct 2009 08:21:45 +0000 (10:21 +0200)]
Ensure that there is a cleanup event for proxied packets

If there was no reply, clean up, reject, etc. the request.

This doesn't matter so much for normal clients, as they will retransmit
and cause the old request to be deleted from the request hash.
But detail requests have random ports (for other reasons), so
they won't be cleaned up by new packets.  Therefore, we need to clean
them up...

14 years agoAdded more debugging messages
Alan T. DeKok [Tue, 6 Oct 2009 08:21:17 +0000 (10:21 +0200)]
Added more debugging messages

14 years agoMark home server dead if it doesn't respond to pings
Alan T. DeKok [Tue, 6 Oct 2009 06:48:02 +0000 (08:48 +0200)]
Mark home server dead if it doesn't respond to pings

14 years agoCheck for undefined types, too
Alan T. DeKok [Mon, 5 Oct 2009 15:32:39 +0000 (17:32 +0200)]
Check for undefined types, too

14 years agoSet broadcast && reuseaddr before binding to socket
Alan T. DeKok [Mon, 5 Oct 2009 15:12:33 +0000 (17:12 +0200)]
Set broadcast && reuseaddr before binding to socket

14 years agoSimplify the code
Alan T. DeKok [Sun, 4 Oct 2009 16:12:12 +0000 (18:12 +0200)]
Simplify the code

14 years agoMore detailed debugging for detail
Alan T. DeKok [Sat, 3 Oct 2009 18:07:53 +0000 (20:07 +0200)]
More detailed debugging for detail

14 years agoBe more restrictive on bad input
Alan T. DeKok [Sat, 3 Oct 2009 18:07:22 +0000 (20:07 +0200)]
Be more restrictive on bad input

Addresses bug #27

14 years agoStart simplifying the code that encodes attributes
Alan T. DeKok [Sat, 3 Oct 2009 17:58:17 +0000 (19:58 +0200)]
Start simplifying the code that encodes attributes

14 years agoFix passwords to have even length
Alan T. DeKok [Fri, 2 Oct 2009 08:52:44 +0000 (10:52 +0200)]
Fix passwords to have even length

14 years agoIncrease max_sessions
Alan T. DeKok [Thu, 1 Oct 2009 13:07:51 +0000 (15:07 +0200)]
Increase max_sessions

14 years agoPrint more descriptive error message for too many EAP sessions
Alan T. DeKok [Thu, 1 Oct 2009 13:06:59 +0000 (15:06 +0200)]
Print more descriptive error message for too many EAP sessions

14 years agoevent.c frees the listener, so we don't need to
Alan T. DeKok [Thu, 1 Oct 2009 09:15:55 +0000 (11:15 +0200)]
event.c frees the listener, so we don't need to

14 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

14 years agoAllow old-style dictionary formats, too
Alan T. DeKok [Wed, 30 Sep 2009 07:54:25 +0000 (09:54 +0200)]
Allow old-style dictionary formats, too

14 years agoUse packet codes from libradius
Alan T. DeKok [Tue, 29 Sep 2009 18:24:40 +0000 (20:24 +0200)]
Use packet codes from libradius

14 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

14 years agoAssign variable before using it
Alan T. DeKok [Sun, 27 Sep 2009 17:45:20 +0000 (19:45 +0200)]
Assign variable before using it

14 years agoUse new API
Alan T. DeKok [Sun, 27 Sep 2009 16:28:17 +0000 (18:28 +0200)]
Use new API

14 years agoInclude proto in API, no matter what build options
Alan T. DeKok [Sun, 27 Sep 2009 16:23:18 +0000 (18:23 +0200)]
Include proto in API, no matter what build options

It's too hardware to have proto as a compile-time option
for the API.  Instead, we add it everywhere.  This slows down the
UDP-only case, but ensures that we can distinguish between a
home server of (ip,port) udp, and a home server of the same (ip,port)
and tcp

14 years agoRemoved unnecessary line
Alan T. DeKok [Fri, 25 Sep 2009 09:46:06 +0000 (11:46 +0200)]
Removed unnecessary line

14 years agoBe more flexible about parsing detail files
Alan T. DeKok [Fri, 25 Sep 2009 09:21:50 +0000 (11:21 +0200)]
Be more flexible about parsing detail files

Allow any operator, not just '='

14 years agoClean up state machine so it's more forgiving
Alan T. DeKok [Fri, 25 Sep 2009 09:01:27 +0000 (11:01 +0200)]
Clean up state machine so it's more forgiving

14 years agoFixed typo && include attrs.access_challenge in build
Alan T. DeKok [Thu, 24 Sep 2009 20:01:54 +0000 (22:01 +0200)]
Fixed typo && include attrs.access_challenge in build

14 years agoFixed compile error
Alan T. DeKok [Thu, 24 Sep 2009 15:37:07 +0000 (17:37 +0200)]
Fixed compile error

14 years ago64-bit fixes.
bduncan [Tue, 22 Sep 2009 16:24:57 +0000 (09:24 -0700)]
64-bit fixes.

14 years agoCheck for NOOP from opendir.c
bduncan [Tue, 22 Sep 2009 16:23:47 +0000 (09:23 -0700)]
Check for NOOP from opendir.c

14 years ago64-bit fixes and return NOOP for AD users.
bduncan [Tue, 22 Sep 2009 16:22:49 +0000 (09:22 -0700)]
64-bit fixes and return NOOP for AD users.

14 years agoGet private key passphrase from keychain using certadmin command.
bduncan [Tue, 22 Sep 2009 16:20:02 +0000 (09:20 -0700)]
Get private key passphrase from keychain using certadmin command.

14 years agoJumbo patch to clean up socket handling
Alan T. DeKok [Thu, 24 Sep 2009 15:28:56 +0000 (17:28 +0200)]
Jumbo patch to clean up socket handling

The transport protocol code is now more merged, and the "fr_tcp_radius_t"
structure and API are deleted.  The resulting code is simpler and smaller.

Cleaned up how the listeners and even handlers deal with sockets.
The proxy sockets are now pushed into the proxy packet list, and are
not used in the main listener list.

The proxy packet list now deals with src/dst, and not just destination.

14 years agoChanged order of code to avoid race conditions
Alan T. DeKok [Thu, 24 Sep 2009 15:12:53 +0000 (17:12 +0200)]
Changed order of code to avoid race conditions

14 years agoEnsure that cached SSL sessions have data
Alan T. DeKok [Thu, 24 Sep 2009 15:12:33 +0000 (17:12 +0200)]
Ensure that cached SSL sessions have data

14 years agoFix arguments to client_find
Alan T. DeKok [Thu, 17 Sep 2009 10:03:36 +0000 (12:03 +0200)]
Fix arguments to client_find

14 years agoBump to version 2.1.8
Alan T. DeKok [Wed, 16 Sep 2009 15:14:55 +0000 (17:14 +0200)]
Bump to version 2.1.8

14 years agoMore plumbing to get the server to listen on TCP sockets.
Dante [Wed, 16 Sep 2009 12:12:47 +0000 (14:12 +0200)]
More plumbing to get the server to listen on TCP sockets.

The last two functions are in a separate patch to make the merge easier.

Signed-off-by: Alan T. DeKok <aland@freeradius.org>
14 years agoMore plumbing to get to home servers via TCP
Dante [Wed, 16 Sep 2009 12:06:17 +0000 (14:06 +0200)]
More plumbing to get to home servers via TCP

Signed-off-by: Alan T. DeKok <aland@freeradius.org>
14 years agoFree tcp structure, too
Dante [Wed, 16 Sep 2009 11:57:40 +0000 (13:57 +0200)]
Free tcp structure, too

Signed-off-by: Alan T. DeKok <aland@freeradius.org>
14 years agoAllow outgoing TCP connections to home servers.
Dante [Wed, 16 Sep 2009 10:24:44 +0000 (12:24 +0200)]
Allow outgoing TCP connections to home servers.

Signed-off-by: Alan T. DeKok <aland@freeradius.org>
14 years agoAdd scaffolding for proxy listeners.
Dante [Wed, 16 Sep 2009 10:17:34 +0000 (12:17 +0200)]
Add scaffolding for proxy listeners.

The functions exist, but aren't called by anyone.

Signed-off-by: Alan T. DeKok <aland@freeradius.org>
14 years agoMore ifdef's and assertions for checkign TCP != UDP
Dante [Tue, 15 Sep 2009 21:11:47 +0000 (23:11 +0200)]
More ifdef's and assertions for checkign TCP != UDP

Signed-off-by: Alan T. DeKok <aland@freeradius.org>
14 years agoTrack the number of outstanding packets on a TCP connection.
Dante [Tue, 15 Sep 2009 21:08:29 +0000 (23:08 +0200)]
Track the number of outstanding packets on a TCP connection.

This allows us to free the connection when all packets are
accounted for, and the connection is to be marked "closed"

Signed-off-by: Alan T. DeKok <aland@freeradius.org>
14 years agoStop processing packets when the socket is closed.
Dante [Tue, 15 Sep 2009 21:03:21 +0000 (23:03 +0200)]
Stop processing packets when the socket is closed.

If the socket from the client, or to the proxy is closed,
then handle that situation.

Signed-off-by: Alan T. DeKok <aland@freeradius.org>
14 years agoDocument TCP options for clients and home servers.
Dante [Tue, 15 Sep 2009 15:57:53 +0000 (17:57 +0200)]
Document TCP options for clients and home servers.

Signed-off-by: Alan T. DeKok <aland@freeradius.org>
14 years agoAllow radclient to send/receive RADIUS over TCP
Dante [Tue, 15 Sep 2009 15:46:15 +0000 (17:46 +0200)]
Allow radclient to send/receive RADIUS over TCP

Signed-off-by: Alan T. DeKok <aland@freeradius.org>
14 years agoAllow the packet API to auto-discover TCP
Dante [Tue, 15 Sep 2009 15:44:34 +0000 (17:44 +0200)]
Allow the packet API to auto-discover TCP

It will now call the udp/tcp "receive packet" function
as appropriate, so that the callers do not need to be changed
in order to handle TCP.

Signed-off-by: Alan T. DeKok <aland@freeradius.org>
14 years agoAllow clients to use TCP
Dante [Tue, 15 Sep 2009 15:43:17 +0000 (17:43 +0200)]
Allow clients to use TCP

Signed-off-by: Alan T. DeKok <aland@freeradius.org>
14 years agoAllow home servers to use TCP
Dante [Tue, 15 Sep 2009 15:34:34 +0000 (17:34 +0200)]
Allow home servers to use TCP

Signed-off-by: Alan T. DeKok <aland@freeradius.org>
14 years agoAllow TCP code to build if WITH_TCP is defined
Dante [Tue, 15 Sep 2009 15:33:49 +0000 (17:33 +0200)]
Allow TCP code to build if WITH_TCP is defined

Signed-off-by: Alan T. DeKok <aland@freeradius.org>
14 years agoHeader file and protocol handler for RADIUS over TCP
Dante [Tue, 15 Sep 2009 15:17:40 +0000 (17:17 +0200)]
Header file and protocol handler for RADIUS over TCP

This is the first step to getting full support for RADIUS
over TCP into the server.

Signed-off-by: Alan T. DeKok <aland@freeradius.org>
14 years agoUpdate change logs before 2.1.7 release_2_1_7
Alan T. DeKok [Mon, 14 Sep 2009 14:43:29 +0000 (16:43 +0200)]
Update change logs before 2.1.7

14 years agoPrint out a little more information
Alan T. DeKok [Mon, 14 Sep 2009 12:29:23 +0000 (14:29 +0200)]
Print out a little more information

14 years agoMove "set state" to before log message
Alan T. DeKok [Mon, 14 Sep 2009 12:26:15 +0000 (14:26 +0200)]
Move "set state" to before log message

To avoid race conditions... though I'm not sure why this would
happen

14 years agoAs posted to the list.
Alan T. DeKok [Sun, 13 Sep 2009 15:07:22 +0000 (17:07 +0200)]
As posted to the list.

It isn't made live yet, because we have no idea if it works or not

14 years agoRemoved redundant code
Alan T. DeKok [Sun, 13 Sep 2009 14:01:51 +0000 (16:01 +0200)]
Removed redundant code

14 years agoMake a better name
Alan T. DeKok [Fri, 11 Sep 2009 15:14:09 +0000 (17:14 +0200)]
Make a better name

14 years agoWrap crap with more crap
Alan T. DeKok [Fri, 11 Sep 2009 15:12:06 +0000 (17:12 +0200)]
Wrap crap with more crap

14 years agoMore updates
Alan T. DeKok [Thu, 10 Sep 2009 13:16:40 +0000 (15:16 +0200)]
More updates

14 years agoAdded sample configs for MySQL cluster
Alan T. DeKok [Thu, 10 Sep 2009 13:02:39 +0000 (15:02 +0200)]
Added sample configs for MySQL cluster

14 years agoUpdate to new syntax
Alan T. DeKok [Wed, 9 Sep 2009 14:27:16 +0000 (16:27 +0200)]
Update to new syntax

14 years agoCheck value of Fall-Through, too
Alan T. DeKok [Wed, 9 Sep 2009 12:12:35 +0000 (14:12 +0200)]
Check value of Fall-Through, too

14 years agoBe less forgiving about the allowed operators.
Alan T. DeKok [Tue, 8 Sep 2009 11:56:54 +0000 (13:56 +0200)]
Be less forgiving about the allowed operators.

If they're not a "foo = bar" type of operator, then return
an error

14 years agoWrap header file in protective #ifdef
Alan T. DeKok [Mon, 7 Sep 2009 05:49:34 +0000 (07:49 +0200)]
Wrap header file in protective #ifdef

14 years agoNo need to include modules.h twice
Alan T. DeKok [Mon, 7 Sep 2009 05:48:57 +0000 (07:48 +0200)]
No need to include modules.h twice