freeradius.git
13 years agoBe less agressive about marking home servers as zombie.
Alan T. DeKok [Wed, 4 Aug 2010 12:17:37 +0000 (14:17 +0200)]
Be less agressive about marking home servers as zombie.

Instead of marking them as zombie as soon as ONE packet doesn't
receive a response, mark then as zombie when we have received NO
responses for (zombie_period / 4)

13 years agoManual merge of commits
Alan T. DeKok [Wed, 4 Aug 2010 13:29:48 +0000 (15:29 +0200)]
Manual merge of commits

3d7e1b2a3f26d3d15617a86d2f663d0b435e88a3
1d980e559d842f5e3561b692672fa1feb8b936e8

13 years agoNotes on SHOULD set "require_message_authenticator"
Alan T. DeKok [Wed, 4 Aug 2010 08:34:59 +0000 (10:34 +0200)]
Notes on SHOULD set "require_message_authenticator"

13 years agoSet "component" and "module" to more descriptive values
Alan T. DeKok [Wed, 4 Aug 2010 08:13:10 +0000 (10:13 +0200)]
Set "component" and "module" to more descriptive values

So that when something goes wrong, we know where / why

13 years agoEnabled "digest" in the default configuration.
Alan T. DeKok [Tue, 3 Aug 2010 15:25:27 +0000 (17:25 +0200)]
Enabled "digest" in the default configuration.

Now that the "digest" module is more forgiving, it's probably best
to allow it here.

13 years agoBe moe forgiving about the Digest attributes.
Alan T. DeKok [Tue, 3 Aug 2010 12:37:36 +0000 (14:37 +0200)]
Be moe forgiving about the Digest attributes.

In the "authorize" section, check if the attributes exist, and are
properly formatted.  If not, return NOOP.  If so, decode them,
and set Auth-Type := digest

If they don't list "digest" in "authorize", decode the attributes
in the "authenticate" section, too.

13 years agoAdded -t option
Alan T. DeKok [Tue, 3 Aug 2010 09:41:24 +0000 (11:41 +0200)]
Added -t option

This lets people use radtest for CHAP and MS-CHAP authentication,
without worrying too much about the internals of what's going on.y

13 years agoAdded more notes on FreeBSD with multiple LANs
Alan T. DeKok [Mon, 2 Aug 2010 14:54:07 +0000 (16:54 +0200)]
Added more notes on FreeBSD with multiple LANs

13 years agoRemoved extraneous fprintf
Alan T. DeKok [Mon, 2 Aug 2010 14:34:15 +0000 (16:34 +0200)]
Removed extraneous fprintf

13 years agoManual merge of aec08bce7f
Alan T. DeKok [Mon, 2 Aug 2010 13:54:46 +0000 (15:54 +0200)]
Manual merge of aec08bce7f

Better handle a "known" attribute with invalid length

If we receive an "integer" attribute with length "10", don't
leave the name as "Foo-Bar".  Instead, make it clear that the
attribute is unknown, and print it as "Attr-%d"

13 years agostrcpy to a NULL pointer is bad.
Alan T. DeKok [Mon, 2 Aug 2010 06:41:34 +0000 (08:41 +0200)]
strcpy to a NULL pointer is bad.

Closes bug #98

13 years agoNotes on binding to interfaces for DHCP
Alan T. DeKok [Sun, 1 Aug 2010 07:29:59 +0000 (09:29 +0200)]
Notes on binding to interfaces for DHCP

13 years agoMore descriptive error messages.
Alan T. DeKok [Sat, 31 Jul 2010 06:57:10 +0000 (08:57 +0200)]
More descriptive error messages.

If the thread pool queue is full, or if the packets are stuck in it for
a long time, it's usually because someone has a DB with 10 million rows
and no index.  Or, they're running long-lived queries against a MyISAM
database.  Either way, there's little that the RADIUS server can do
to fix it.

When that happens, produce a descriptive error message suggesting
that they focus the blame in the right place.

13 years agoAdded attributes from recent RFCs
Alan T. DeKok [Fri, 30 Jul 2010 13:27:00 +0000 (15:27 +0200)]
Added attributes from recent RFCs

13 years agoAPI fixes for 2.2.0
Alan T. DeKok [Fri, 30 Jul 2010 12:43:49 +0000 (14:43 +0200)]
API fixes for 2.2.0

13 years agoCheck sockets against home servers for proxy loops
Alan T. DeKok [Thu, 29 Jul 2010 15:24:42 +0000 (17:24 +0200)]
Check sockets against home servers for proxy loops

This only works when using -C.  It only prints messages with -XC

13 years agoFix typos n default configution. Closes bug #11
Alan T. DeKok [Thu, 29 Jul 2010 12:29:04 +0000 (14:29 +0200)]
Fix typos n default configution.  Closes bug #11

13 years agoUpdates as from jlockie
Alan T. DeKok [Thu, 29 Jul 2010 12:21:06 +0000 (14:21 +0200)]
Updates as from jlockie

13 years agoRenamed in preparation for RST
Alan T. DeKok [Thu, 29 Jul 2010 12:12:15 +0000 (14:12 +0200)]
Renamed in preparation for RST

13 years agoAdded real DESC fields.
Alan T. DeKok [Thu, 29 Jul 2010 12:08:15 +0000 (14:08 +0200)]
Added real DESC fields.

Patch from Turbo Fredriksson

13 years agoUpdate Oracle Autoconf scripts. Closes bug #57
Alan T. DeKok [Thu, 29 Jul 2010 12:03:31 +0000 (14:03 +0200)]
Update Oracle Autoconf scripts.  Closes bug #57

13 years agoPut SSL errors into Module-Failure-Message
Alan T. DeKok [Thu, 29 Jul 2010 07:45:11 +0000 (09:45 +0200)]
Put SSL errors into Module-Failure-Message

13 years agoFix for 2.2.0 API
Alan T. DeKok [Tue, 27 Jul 2010 10:24:55 +0000 (12:24 +0200)]
Fix for 2.2.0 API

13 years agoFixed typo
Alan T. DeKok [Tue, 27 Jul 2010 06:48:34 +0000 (08:48 +0200)]
Fixed typo

13 years agoUse MS-CHAP-User-Name in MS-CHAP module.
Alan T. DeKok [Mon, 26 Jul 2010 16:09:11 +0000 (18:09 +0200)]
Use MS-CHAP-User-Name in MS-CHAP module.

If available, we prefer it to User-Name.  If it's NOT the same
(case-insensitive) as User-Name, we reject the request.

Closes bug #17

13 years agoCreate MS-CHAP-User-Name, which is taken from the MS-CHAP packet.
Alan T. DeKok [Mon, 26 Jul 2010 15:03:35 +0000 (17:03 +0200)]
Create MS-CHAP-User-Name, which is taken from the MS-CHAP packet.

Taken from bug #17

13 years agoFix changes pulled from v2.1.x for new API
Alan T. DeKok [Mon, 26 Jul 2010 15:02:04 +0000 (17:02 +0200)]
Fix changes pulled from v2.1.x for new API

13 years agoBetter fix for unlinking control sockets
Alan T. DeKok [Mon, 26 Jul 2010 14:59:27 +0000 (16:59 +0200)]
Better fix for unlinking control sockets

13 years agoRevert "Delete control socket when the server exits."
Alan T. DeKok [Mon, 26 Jul 2010 14:53:00 +0000 (16:53 +0200)]
Revert "Delete control socket when the server exits."

This reverts commit 061916989a6328f5d725d4085d58adfc49d5940c.

13 years agoBe more careful freeing memory in detail reader
Alan T. DeKok [Mon, 26 Jul 2010 14:50:50 +0000 (16:50 +0200)]
Be more careful freeing memory in detail reader

13 years agoDelete control socket when the server exits.
Alan T. DeKok [Mon, 26 Jul 2010 11:30:56 +0000 (13:30 +0200)]
Delete control socket when the server exits.

This prevents permission errors

13 years agoAdded CLIENT_MULTI_STATEMENTS
Alan T. DeKok [Thu, 22 Jul 2010 13:41:19 +0000 (15:41 +0200)]
Added CLIENT_MULTI_STATEMENTS

Closes bug #94

13 years agoUpdated as per Cisco web site.
Alan T. DeKok [Wed, 21 Jul 2010 12:32:06 +0000 (14:32 +0200)]
Updated as per Cisco web site.

Closes #92

13 years agoAllow for spaces to be escaped in exec program.
Alan T. DeKok [Wed, 21 Jul 2010 12:25:30 +0000 (14:25 +0200)]
Allow for spaces to be escaped in exec program.

Closes #93

13 years agoFix parameters passed by Novell code in post-auth.
Alan T. DeKok [Wed, 21 Jul 2010 12:16:54 +0000 (14:16 +0200)]
Fix parameters passed by Novell code in post-auth.

The "close connection" function takes an "ldap inst" variable,
not a pointer to a list of connections (sigh)

13 years agoAdd undocumented keepalive configuration
Alan T. DeKok [Wed, 21 Jul 2010 10:08:54 +0000 (12:08 +0200)]
Add undocumented keepalive configuration

13 years agoUse new format for the attributes
Alan T. DeKok [Tue, 20 Jul 2010 15:27:05 +0000 (17:27 +0200)]
Use new format for the attributes

13 years agoPrint all decoded TLVs, not just the first one.
Alan T. DeKok [Tue, 20 Jul 2010 14:29:13 +0000 (16:29 +0200)]
Print all decoded TLVs, not just the first one.

13 years agoUse correct return code
Alan T. DeKok [Mon, 19 Jul 2010 21:52:39 +0000 (23:52 +0200)]
Use correct return code

13 years agoFixed a few bugs using tests posted to the list.
Alan T. DeKok [Mon, 19 Jul 2010 21:48:32 +0000 (23:48 +0200)]
Fixed a few bugs using tests posted to the list.

for discover, add the following to the reply:

DHCP-Agent-Circuit-Id = 0x000401e30420
        DHCP-Agent-Remote-Id = 0x000600FFFFFFFF00

Both server && client code crash.

13 years agoDon't "originate" CoA requests if the packet is a CoA request.
Alan T. DeKok [Mon, 19 Jul 2010 19:49:38 +0000 (21:49 +0200)]
Don't "originate" CoA requests if the packet is a CoA request.

Instead, the user should *proxy* the CoA request.

13 years agoMPPE Key deriviation documentation
Alan T. DeKok [Mon, 19 Jul 2010 19:31:47 +0000 (21:31 +0200)]
MPPE Key deriviation documentation

13 years agoUpdated documentation
Alan T. DeKok [Mon, 19 Jul 2010 18:14:39 +0000 (20:14 +0200)]
Updated documentation

13 years agoUpdated Password-With-Header handling to make it more robust.
Alan T. DeKok [Mon, 19 Jul 2010 13:24:58 +0000 (15:24 +0200)]
Updated Password-With-Header handling to make it more robust.

* Added "Password-With-Header == userPassword" to raddb/ldap.attrmap
  This will automatically convert more passwords.
* Updated rlm_pap to decode Password-With-Header, if it was base64
  encoded, and to treat the contents as potentially binary data.

13 years agoFix long-standing memory leak as found by Jerry Nichols
Alan T. DeKok [Fri, 16 Jul 2010 15:30:24 +0000 (17:30 +0200)]
Fix long-standing memory leak as found by Jerry Nichols

bob Cleartext-Password := "hello"
Tunnel-Server-Endpoint := 1.2.3.4,
        Tunnel-Server-Endpoint := 1.2.3.5,
        Tunnel-Type            := 3,
        Tunnel-Server-Endpoint := 1.2.3.2,
        Tunnel-Medium-Type     := 1,
        Tunnel-Server-Endpoint := 1.2.3.1

Where there are multiple copies of
the same attribute with a := operator in the 'from' list, and the only
operators in the 'from' list are :=, then all the repeated attributes
after the first and before the last non-repeated attribute are lost. In
the example above that would result in the VALUE_PAIRS :

        Tunnel-Server-Endpoint := 1.2.3.5
        Tunnel-Server-Endpoint := 1.2.3.2

being orphaned.

13 years agoMore documentation
Alan T. DeKok [Thu, 15 Jul 2010 08:39:56 +0000 (10:39 +0200)]
More documentation

13 years agoRe-enabled Exec-Program and Exec-Program-Wait for accounting packets
Alan T. DeKok [Fri, 9 Jul 2010 10:21:16 +0000 (12:21 +0200)]
Re-enabled Exec-Program and Exec-Program-Wait for accounting packets

It's just too useful to live without

13 years agoUpdated documentation
Alan T. DeKok [Fri, 9 Jul 2010 08:27:36 +0000 (10:27 +0200)]
Updated documentation

13 years agoUpdates to use new octets[#] code, and added VALUEs for some attributes
Alan T. DeKok [Thu, 15 Jul 2010 12:13:17 +0000 (14:13 +0200)]
Updates to use new octets[#] code, and added VALUEs for some attributes

13 years agoAllow 'octet' attributes to have a fixed length.
Alan T. DeKok [Thu, 15 Jul 2010 09:48:56 +0000 (11:48 +0200)]
Allow 'octet' attributes to have a fixed length.

This is currently only for a few old attributes (ARAP-*), but the
same framework is leveraged for other attributes, too.  e.g. int, ipaddr

13 years agoFix arguments to paircreate
Alan T. DeKok [Thu, 15 Jul 2010 09:30:01 +0000 (11:30 +0200)]
Fix arguments to paircreate

13 years agoerrorcode may be NULL. Ignore it if so.
Alan T. DeKok [Thu, 8 Jul 2010 13:44:13 +0000 (15:44 +0200)]
errorcode may be NULL.  Ignore it if so.

Closes bug #39

13 years agoCertificates do not depend on index / serial
Alan T. DeKok [Thu, 8 Jul 2010 13:28:45 +0000 (15:28 +0200)]
Certificates do not depend on index / serial

Closes bug #64

13 years agoPack DHCP-BootFilename into header
Alan T. DeKok [Thu, 8 Jul 2010 11:06:15 +0000 (13:06 +0200)]
Pack DHCP-BootFilename into header

13 years agoAdded Motorola WimMAX dictionary
Alan T. DeKok [Wed, 7 Jul 2010 19:14:21 +0000 (21:14 +0200)]
Added Motorola WimMAX dictionary

13 years agoRe-worked PEAP state machine to be clearer
Alan T. DeKok [Wed, 7 Jul 2010 11:51:03 +0000 (13:51 +0200)]
Re-worked PEAP state machine to be clearer

13 years agoMoved eappeap_identity to its own function.
Alan T. DeKok [Wed, 7 Jul 2010 11:33:05 +0000 (13:33 +0200)]
Moved eappeap_identity to its own function.

13 years agoChanged multiple "if" statements to switch.
Alan T. DeKok [Wed, 7 Jul 2010 11:30:39 +0000 (13:30 +0200)]
Changed multiple "if" statements to switch.

13 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

13 years agoEnable passwd in coa send/recv
Alan T. DeKok [Tue, 6 Jul 2010 08:30:58 +0000 (10:30 +0200)]
Enable passwd in coa send/recv

13 years agoMap all types of attrs, not just int/string
Alan T. DeKok [Tue, 6 Jul 2010 08:30:11 +0000 (10:30 +0200)]
Map all types of attrs, not just int/string

13 years agoReturn on error
Alan T. DeKok [Mon, 5 Jul 2010 09:00:26 +0000 (11:00 +0200)]
Return on error

13 years agoNote that "password_attribute" is deprecated
Alan T. DeKok [Mon, 5 Jul 2010 09:00:11 +0000 (11:00 +0200)]
Note that "password_attribute" is deprecated

13 years agoRemoved "password_header" configuration
Alan T. DeKok [Mon, 5 Jul 2010 08:50:21 +0000 (10:50 +0200)]
Removed "password_header" configuration

13 years agoRemove "auto_header" flag.
Alan T. DeKok [Mon, 5 Jul 2010 08:49:10 +0000 (10:49 +0200)]
Remove "auto_header" flag.

13 years agoHandle detail files differently.
Alan T. DeKok [Fri, 2 Jul 2010 08:22:50 +0000 (10:22 +0200)]
Handle detail files differently.

13 years agoDon't use libltdl if we're using dlopen()
Alan T. DeKok [Thu, 1 Jul 2010 13:43:10 +0000 (15:43 +0200)]
Don't use libltdl if we're using dlopen()

13 years agoMore provisions for dlopen'ing self.
Alan T. DeKok [Thu, 1 Jul 2010 13:09:08 +0000 (15:09 +0200)]
More provisions for dlopen'ing self.

13 years agoRemove restrictions on TLVs must be WiMAX. It's not in 2.1.x
Alan T. DeKok [Thu, 1 Jul 2010 13:08:38 +0000 (15:08 +0200)]
Remove restrictions on TLVs must be WiMAX.  It's not in 2.1.x

13 years agoProvisions for RTLD_SELF, when all of the modules are statically linked in
Alan T. DeKok [Thu, 1 Jul 2010 12:54:22 +0000 (14:54 +0200)]
Provisions for RTLD_SELF, when all of the modules are statically linked in

13 years agoAllow exec in recv/send coa sections
Alan T. DeKok [Thu, 1 Jul 2010 10:47:25 +0000 (12:47 +0200)]
Allow exec in recv/send coa sections

13 years agoDo not delete "old" requests until they are free.
Alan T. DeKok [Wed, 30 Jun 2010 19:58:27 +0000 (21:58 +0200)]
Do not delete "old" requests until they are free.

If the request is in the queue for 30+ seconds, do NOT delete it.
Instead, mark it as "STOP PROCESSING", and do "wait_for_child_to_die",
which waits for a child thread to pick it up, and acknowledge that it's
done.  Once it's marked done, we can finally clean it up.

This may be the underlying issue behind bug #35

13 years agoChange default lifetime for dynamic clients from 1d to 1h
Alan T. DeKok [Wed, 30 Jun 2010 14:17:55 +0000 (16:17 +0200)]
Change default lifetime for dynamic clients from 1d to 1h

13 years agoRefer to the correct packet type.
Alan T. DeKok [Wed, 30 Jun 2010 09:00:39 +0000 (11:00 +0200)]
Refer to the correct packet type.

The CoA response is in the proxy reply, not in the main reply

13 years agoScan the number, not the leading \
Alan T. DeKok [Wed, 30 Jun 2010 08:57:27 +0000 (10:57 +0200)]
Scan the number, not the leading \

Fix for bug #89

13 years agoALWAYS save the MPPE keys for later.
Alan T. DeKok [Wed, 30 Jun 2010 08:05:56 +0000 (10:05 +0200)]
ALWAYS save the MPPE keys for later.

The TTLS && PEAP modules should take care of deleting the MPPE keys
if they don't want them.  The previous code would delete the keys
if an EAP-MSCHAPv2 request was proxied to a virtual server.  That was wrong...

13 years agoMore NAS-Port-Type values defined in random places
Alan T. DeKok [Tue, 29 Jun 2010 10:38:02 +0000 (12:38 +0200)]
More NAS-Port-Type values defined in random places

13 years agoAdded NAS-Port-Type values from RFC 4603
Alan T. DeKok [Tue, 29 Jun 2010 10:36:40 +0000 (12:36 +0200)]
Added NAS-Port-Type values from RFC 4603

13 years agoAs posted to the list
Alan T. DeKok [Tue, 29 Jun 2010 07:33:42 +0000 (09:33 +0200)]
As posted to the list

13 years agoRegister SQL-Group only if the query is defined
Alan T. DeKok [Mon, 28 Jun 2010 13:54:28 +0000 (15:54 +0200)]
Register SQL-Group only if the query is defined

13 years agoFix debug messages for incorrect shared secret
Alan T. DeKok [Sun, 27 Jun 2010 20:55:35 +0000 (22:55 +0200)]
Fix debug messages for incorrect shared secret

13 years agoWrap commands in "if ! output_file, then run command"
Alan T. DeKok [Sun, 27 Jun 2010 16:40:45 +0000 (18:40 +0200)]
Wrap commands in "if ! output_file, then run command"

This lets people run "./bootstrap" multiple times without problems.

13 years agoCheck for a working make before running it.
Alan T. DeKok [Sun, 27 Jun 2010 16:14:45 +0000 (18:14 +0200)]
Check for a working make before running it.

This lets us tell the difference between a non-existent make, and one
which exists, but failed the "make all" stage

13 years agoEnable 127.0.0.1:18120 for inner-tunnel testing
Alan T. DeKok [Sun, 27 Jun 2010 15:59:52 +0000 (17:59 +0200)]
Enable 127.0.0.1:18120 for inner-tunnel testing

13 years agoAdded more eapol_test tests
Alan T. DeKok [Sat, 26 Jun 2010 16:54:13 +0000 (18:54 +0200)]
Added more eapol_test tests

13 years agoBuild on systems without setuid
Alan T. DeKok [Tue, 22 Jun 2010 14:41:53 +0000 (16:41 +0200)]
Build on systems without setuid

13 years agoBuild on systems without fcntl
Alan T. DeKok [Tue, 22 Jun 2010 14:41:13 +0000 (16:41 +0200)]
Build on systems without fcntl

13 years agoBuild on systems without sys/un.h
Alan T. DeKok [Tue, 22 Jun 2010 14:40:27 +0000 (16:40 +0200)]
Build on systems without sys/un.h

13 years agoBuild on systems without fcntl
Alan T. DeKok [Tue, 22 Jun 2010 14:39:26 +0000 (16:39 +0200)]
Build on systems without fcntl

13 years agointerface is a #define on Mingw
Alan T. DeKok [Tue, 22 Jun 2010 14:37:54 +0000 (16:37 +0200)]
interface is a #define on Mingw

13 years agoAdd <instance>-SQL-Group, just like the LDAP module
Alan T. DeKok [Tue, 22 Jun 2010 12:19:56 +0000 (14:19 +0200)]
Add <instance>-SQL-Group, just like the LDAP module

13 years agoCorrect logic in pairmove2 now that we have vendor separate from attr
Alan T. DeKok [Sat, 26 Jun 2010 16:56:59 +0000 (18:56 +0200)]
Correct logic in pairmove2 now that we have vendor separate from attr

13 years agoMore descriptive error messages
Alan T. DeKok [Tue, 15 Jun 2010 10:12:12 +0000 (12:12 +0200)]
More descriptive error messages

13 years agoSimple rules to build HTML files if we don't have sphinx
Alan T. DeKok [Mon, 14 Jun 2010 08:50:06 +0000 (10:50 +0200)]
Simple rules to build HTML files if we don't have sphinx

13 years agoMakefile / index for Sphinx builds
Alan T. DeKok [Mon, 14 Jun 2010 08:44:58 +0000 (10:44 +0200)]
Makefile / index for Sphinx builds

We don't change the existing build, as we're in a "stable" release,
and we don't want to change functionality.

13 years agoMinor cleanups
Alan T. DeKok [Mon, 14 Jun 2010 08:44:46 +0000 (10:44 +0200)]
Minor cleanups

13 years agoManually pull from git "old-dev" branch
Alan T. DeKok [Mon, 14 Jun 2010 08:42:31 +0000 (10:42 +0200)]
Manually pull from git "old-dev" branch

13 years agoNew RST versions from bjlockie
Alan T. DeKok [Mon, 14 Jun 2010 08:42:09 +0000 (10:42 +0200)]
New RST versions from bjlockie

13 years agoMoved files without changing contents
Alan T. DeKok [Mon, 14 Jun 2010 08:41:15 +0000 (10:41 +0200)]
Moved files without changing contents

In preparation for commiting new RST versions

13 years agoFixes to make more modules build
Alan T. DeKok [Fri, 11 Jun 2010 12:54:07 +0000 (14:54 +0200)]
Fixes to make more modules build