freeradius.git
15 years agoNote 2.1.3 release_2_1_3
Alan T. DeKok [Fri, 5 Dec 2008 16:37:56 +0000 (17:37 +0100)]
Note 2.1.3

15 years agoNote 2.1.3
Alan T. DeKok [Fri, 5 Dec 2008 16:35:48 +0000 (17:35 +0100)]
Note 2.1.3

15 years agoCheck out STABLE branch for 2.1.x, not the MASTER branch
Alan T. DeKok [Fri, 5 Dec 2008 16:33:40 +0000 (17:33 +0100)]
Check out STABLE branch for 2.1.x, not the MASTER branch

15 years agoTTLSv0 RFC
Alan T. DeKok [Fri, 5 Dec 2008 06:56:16 +0000 (07:56 +0100)]
TTLSv0 RFC

15 years agoWe're now 2.1.3
Alan T. DeKok [Thu, 4 Dec 2008 11:01:02 +0000 (12:01 +0100)]
We're now 2.1.3

15 years agoNote 2.1.2 release_2_1_2
Alan T. DeKok [Thu, 4 Dec 2008 09:50:29 +0000 (10:50 +0100)]
Note 2.1.2

15 years agoUpdate time for release 2.1.2
Alan T. DeKok [Thu, 4 Dec 2008 09:47:01 +0000 (10:47 +0100)]
Update time for release 2.1.2

15 years agoAdded Cisco TFTP server option 150. Closes #618
Alan T. DeKok [Thu, 4 Dec 2008 09:00:03 +0000 (10:00 +0100)]
Added Cisco TFTP server option 150.  Closes #618

15 years agoAllow all ports to be used. Closes #559
Alan T. DeKok [Wed, 3 Dec 2008 16:29:52 +0000 (17:29 +0100)]
Allow all ports to be used.  Closes #559

15 years agoCorrected VSA types. Closes #617
Alan T. DeKok [Wed, 3 Dec 2008 16:27:03 +0000 (17:27 +0100)]
Corrected VSA types.  Closes #617

15 years agoSample module to expire user after first login
Alan T. DeKok [Tue, 2 Dec 2008 10:28:03 +0000 (11:28 +0100)]
Sample module to expire user after first login

15 years agoNote RedHat build FAQ
Alan T. DeKok [Tue, 2 Dec 2008 09:26:29 +0000 (10:26 +0100)]
Note RedHat build FAQ

15 years agoNote final changes
Alan T. DeKok [Tue, 2 Dec 2008 09:14:57 +0000 (10:14 +0100)]
Note final changes

15 years agoFix for CVE-2008-4474
Alan T. DeKok [Tue, 2 Dec 2008 09:11:38 +0000 (10:11 +0100)]
Fix for CVE-2008-4474

Dialup-admin uses tmp files insecurely.  Since it isn't running
in a default install, this shouldn't be a major problem.

Patch from bug #605

15 years agoDon't leak memory on error conditions.
Alan T. DeKok [Tue, 2 Dec 2008 08:00:52 +0000 (09:00 +0100)]
Don't leak memory on error conditions.

Closes Coverity #74.

The program exits anyways on error conditions, but cleaning up
is usually good practice.

15 years agoSimplify handling of structs.
Alan T. DeKok [Tue, 2 Dec 2008 07:56:54 +0000 (08:56 +0100)]
Simplify handling of structs.

This closes Coverity #73.

Rather than fixing the problem of leaked memory, we avoid it
completely by avoiding practices that require complex code to
avoid leaking memory.

15 years agoDie if we failed to allocate memory
Alan T. DeKok [Mon, 1 Dec 2008 15:10:51 +0000 (16:10 +0100)]
Die if we failed to allocate memory

Closes Coverity #63

We don't need to check for "cs->section_tree" twice.  Just check for it
once, and if we can't allocate it, die.  Checking a second time is
pointless.

15 years ago"name" cannot be NULL
Alan T. DeKok [Mon, 1 Dec 2008 15:08:09 +0000 (16:08 +0100)]
"name" cannot be NULL

If it's NULL, we can't use it at all.  The previous code used it if
it was NULL...

Closes Coverity #64

15 years agolog_file may be NULL
Alan T. DeKok [Mon, 1 Dec 2008 15:02:15 +0000 (16:02 +0100)]
log_file may be NULL

Closes Coverity #65

15 years agoRequest may be NULL
Alan T. DeKok [Mon, 1 Dec 2008 14:54:01 +0000 (15:54 +0100)]
Request may be NULL

Closes Coverity #66

15 years agoSet "found" to first server.
Alan T. DeKok [Mon, 1 Dec 2008 13:44:25 +0000 (14:44 +0100)]
Set "found" to first server.

Closes Coverity #67

15 years agosecret is NULL for LOCAL realms.
Alan T. DeKok [Mon, 1 Dec 2008 13:40:00 +0000 (14:40 +0100)]
secret is NULL for LOCAL realms.

Fixes Coverity #68

15 years agovirtual_server can't be NULL
Alan T. DeKok [Mon, 1 Dec 2008 13:36:54 +0000 (14:36 +0100)]
virtual_server can't be NULL

If we see "virtual_server = " in a home_server_pool, it's an error.
If you want to refer to the default virtual server, don't include
a virtual_server configuration entry.

15 years agoOne more check for NULL.
Alan T. DeKok [Mon, 1 Dec 2008 12:54:35 +0000 (13:54 +0100)]
One more check for NULL.

Closes Coverity #80.  Not that we think it's likely...

15 years agoMore memory initialization
Alan T. DeKok [Mon, 1 Dec 2008 12:19:29 +0000 (13:19 +0100)]
More memory initialization

Closes Coverity #83

15 years agofree structure on error.
Alan T. DeKok [Mon, 1 Dec 2008 09:50:29 +0000 (10:50 +0100)]
free structure on error.

Closes Coverity #76

15 years agolisten.lo depends on listen.c, too
Alan T. DeKok [Mon, 1 Dec 2008 09:50:01 +0000 (10:50 +0100)]
listen.lo depends on listen.c, too

15 years agoFree fake on unknown packet.
Alan T. DeKok [Mon, 1 Dec 2008 09:47:31 +0000 (10:47 +0100)]
Free fake on unknown packet.

This fixes Coverity #77.

15 years agoDon't allocate structure twice.
Alan T. DeKok [Mon, 1 Dec 2008 09:45:49 +0000 (10:45 +0100)]
Don't allocate structure twice.

This fixes Coverity #78

15 years agoEnsure there's room for a trailing 0
Alan T. DeKok [Mon, 1 Dec 2008 09:40:24 +0000 (10:40 +0100)]
Ensure there's room for a trailing 0

This address Coverity #70.  I don't think it will ever happen
due to the way the strings are being handled, but it never hurts
to be safe...

15 years agoAssert that comp < count, not <= count
Alan T. DeKok [Mon, 1 Dec 2008 09:37:21 +0000 (10:37 +0100)]
Assert that comp < count, not <= count

This fixes Coverity #72

15 years agoDe-reference ptr after checking it.
Alan T. DeKok [Mon, 1 Dec 2008 09:33:41 +0000 (10:33 +0100)]
De-reference ptr after checking it.

This fixes Coverity #79

15 years agoMark entry=NULL after free'ing it.
Alan T. DeKok [Mon, 1 Dec 2008 09:30:52 +0000 (10:30 +0100)]
Mark entry=NULL after free'ing it.

This closes Coverity issue #107.  There was an odd case where
we could free an old entry, and then if there were no new entries
in the queues, de-reference the old entry again.

15 years agoPermanently switch UID only if we succeed in doing setuid
Alan T. DeKok [Thu, 27 Nov 2008 11:07:18 +0000 (12:07 +0100)]
Permanently switch UID only if we succeed in doing setuid

mainconfig.c does setuid to an unpriviledged user (temporarily).
We do setuid(0) back to bind to the sockets.
But before running anything else, we permanently switch uid's
back to the unpriviledged user.  But only if the first suid was
done

15 years agoCorrect the attribute numbers for client accounting stats
Alan T. DeKok [Wed, 26 Nov 2008 15:44:29 +0000 (16:44 +0100)]
Correct the attribute numbers for client accounting stats

15 years agoUse "ln -s" rather than "cp" for in-tree operation
Alan T. DeKok [Wed, 26 Nov 2008 15:40:03 +0000 (16:40 +0100)]
Use "ln -s" rather than "cp" for in-tree operation

Libtool on some platforms creates directories in the ".libs" directory.
Using "ln -s" rather than "cp" means we don't care what the destination
file type is, and we don't have to create a cross-platform "cp -R"

15 years agoIncrease the field size for Acct-Session-Id to 64.
Alan T. DeKok [Tue, 25 Nov 2008 15:41:21 +0000 (16:41 +0100)]
Increase the field size for Acct-Session-Id to 64.

This closes #540

15 years agoLDAP-UserDn is in "control", not "request"
Alan T. DeKok [Tue, 25 Nov 2008 15:31:29 +0000 (16:31 +0100)]
LDAP-UserDn is in "control", not "request"

Closes #596

15 years agoNote changes
Alan T. DeKok [Tue, 25 Nov 2008 15:42:52 +0000 (16:42 +0100)]
Note changes

15 years agoNote recent fixes
Alan T. DeKok [Tue, 25 Nov 2008 15:24:52 +0000 (16:24 +0100)]
Note recent fixes

15 years agoAdd EVP_sha256 for WiMAX certificates
Alan T. DeKok [Tue, 25 Nov 2008 13:44:00 +0000 (14:44 +0100)]
Add EVP_sha256 for WiMAX certificates

OpenSSL apparently doesn't include the EVP_sha256 digest by default,
and the WiMAX certificates require SHA256 certificates.  So... we
add it manually.

However, the EVP_sha256 cipher is defined only if OPENSSL_FIPS is
defined, meaning we have to write a "configure" script check for this.

15 years agoSet default days because OpenSSL people won't do it.
Alan T. DeKok [Tue, 25 Nov 2008 10:38:13 +0000 (11:38 +0100)]
Set default days because OpenSSL people won't do it.

15 years agoDocument listen "type = status" better.
Alan T. DeKok [Tue, 25 Nov 2008 09:39:35 +0000 (10:39 +0100)]
Document listen "type = status" better.

Closes #580

15 years agoDo "rm -rf lib" on "make clean".
Alan T. DeKok [Tue, 25 Nov 2008 09:38:59 +0000 (10:38 +0100)]
Do "rm -rf lib" on "make clean".

It has no git controlled files, so this is OK

15 years agoInclude <ltdl.h>
Alan T. DeKok [Tue, 25 Nov 2008 09:38:01 +0000 (10:38 +0100)]
Include <ltdl.h>

The file calles lt_dlopen(), so we need to include <ltdl.h>
fro proper function prototyping.

Partially addresses bug #610

15 years agoCheck return codes for more instances of regcomp
Alan T. DeKok [Tue, 18 Nov 2008 13:05:49 +0000 (05:05 -0800)]
Check return codes for more instances of regcomp

15 years agoNote recent fixes
Alan T. DeKok [Tue, 18 Nov 2008 13:03:13 +0000 (05:03 -0800)]
Note recent fixes

15 years agoCheck the return code of regcomp
Alan T. DeKok [Tue, 18 Nov 2008 12:58:26 +0000 (04:58 -0800)]
Check the return code of regcomp

15 years agoPass copy of debug_condition pointer to evalute
Alan T. DeKok [Thu, 6 Nov 2008 20:49:24 +0000 (12:49 -0800)]
Pass copy of debug_condition pointer to evalute

In some cases, evaluate will update the pointer.  We don't
want this for debug conditions.

15 years agoUse SUN_LEN here, too
Alan T. DeKok [Thu, 23 Oct 2008 08:41:15 +0000 (10:41 +0200)]
Use SUN_LEN here, too

15 years agoRe-run autoconf
Alan T. DeKok [Wed, 15 Oct 2008 13:38:56 +0000 (15:38 +0200)]
Re-run autoconf

15 years agoMore updates
Alan T. DeKok [Wed, 15 Oct 2008 13:38:13 +0000 (15:38 +0200)]
More updates

15 years agoCheck for getresuid && setresuid
Alan T. DeKok [Wed, 15 Oct 2008 13:30:52 +0000 (15:30 +0200)]
Check for getresuid && setresuid

15 years agoRemoved thread pool from Perl module.
Alan T. DeKok [Wed, 15 Oct 2008 05:50:03 +0000 (07:50 +0200)]
Removed thread pool from Perl module.

Also moved configuration from experimental.conf to it's own module,
and removed configuration for thread pool

15 years agoIt's not 2.1.1
Alan T. DeKok [Mon, 13 Oct 2008 15:27:11 +0000 (17:27 +0200)]
It's not 2.1.1

15 years agoDon't add -lreadline to LIBS
Alan T. DeKok [Wed, 15 Oct 2008 13:25:46 +0000 (15:25 +0200)]
Don't add -lreadline to LIBS

15 years agolibreadline is a library, not a dependency
Alan T. DeKok [Sun, 12 Oct 2008 07:37:16 +0000 (09:37 +0200)]
libreadline is a library, not a dependency

15 years agonote changes pulled from main
Alan T. DeKok [Wed, 15 Oct 2008 13:24:39 +0000 (15:24 +0200)]
note changes pulled from main

15 years agostart sending Status-Server messages earlier
Alan T. DeKok [Fri, 10 Oct 2008 10:06:38 +0000 (12:06 +0200)]
start sending Status-Server messages earlier

We now start sending them at the START of the zombie period,
which means that a "live" home server is marked "dead" less often.

i.e. an upstream proxy is responsible for realms A && B.  We're
currently proxying packets for realm A only... and their upstream
is down.  If our upstream doesn't respond, we might think that
it's down, when really it's being stupid.  So, we start pinging
it with Status-Server.  If it responds, we keep sending it packets,
including packets for realm B.

15 years agoTemporarily drop permissions
Alan T. DeKok [Sun, 28 Sep 2008 07:07:22 +0000 (09:07 +0200)]
Temporarily drop permissions

See "suid demystified" paper.  We drop permissions, but keep a
saved UID.  Then we restore permissions while binding to sockets.
This lets us run as an unprivileged user, but still bind to privileged
ports.

TO DO: add '-u user -g group -R chroot' to command-line options,
and switch UIDs *immediately* on start.  This minimizes the amount
of code that runs as root.

TO DO: move suidup/down calls to wrap the bind() calls, and the BINDTODEVICE
calls, to even further minimize the code.

15 years agoUse SUN_LEN, which fixes portability issues
Alan T. DeKok [Sat, 4 Oct 2008 08:39:52 +0000 (10:39 +0200)]
Use SUN_LEN, which fixes portability issues

15 years agoFix typos in previous commit
Alan T. DeKok [Sat, 4 Oct 2008 07:39:11 +0000 (09:39 +0200)]
Fix typos in previous commit

15 years agoInitialize nas_address to INADDR_NONE
Alan T. DeKok [Fri, 3 Oct 2008 07:28:51 +0000 (09:28 +0200)]
Initialize nas_address to INADDR_NONE

15 years agoParse attributes that are string
Alan T. DeKok [Wed, 1 Oct 2008 12:11:21 +0000 (14:11 +0200)]
Parse attributes that are string

Foo = "bar baz"

  This needs to be parsed as a type, not as a string, if Foo is date,
for example.

15 years agoInitialize pool to zero
Alan T. DeKok [Tue, 30 Sep 2008 13:23:13 +0000 (15:23 +0200)]
Initialize pool to zero

This fixes a problem where dv->flags != 0 in dict_addvendor

15 years agofake->server may be NULL
Alan T. DeKok [Fri, 26 Sep 2008 12:11:23 +0000 (14:11 +0200)]
fake->server may be NULL

15 years agoFix for ${name}
Alan T. DeKok [Fri, 26 Sep 2008 08:40:49 +0000 (10:40 +0200)]
Fix for ${name}

15 years agoNote more changes release_2_1_1
Alan T. DeKok [Thu, 25 Sep 2008 08:41:26 +0000 (10:41 +0200)]
Note more changes

15 years agoNote more changes
Alan T. DeKok [Thu, 25 Sep 2008 08:41:13 +0000 (10:41 +0200)]
Note more changes

15 years agoGet session resumption working for EAP-TLS, too
Alan T. DeKok [Wed, 24 Sep 2008 15:12:23 +0000 (17:12 +0200)]
Get session resumption working for EAP-TLS, too

15 years agoRenumber MSK and EMSK to match the rest of the code
Alan T. DeKok [Wed, 24 Sep 2008 12:30:56 +0000 (14:30 +0200)]
Renumber MSK and EMSK to match the rest of the code

15 years agoMove "unknown" client code to common area
Alan T. DeKok [Wed, 24 Sep 2008 12:05:54 +0000 (14:05 +0200)]
Move "unknown" client code to common area

This simplifies the code (less is better), and enables us to add
a central DoS method.  From a quick inspection of the code,
there appears to be more that can be done.  Many of the receive
functions have duplicate code, which should be abstracted.

15 years agoAdded comments describing what to do
Alan T. DeKok [Tue, 23 Sep 2008 14:53:24 +0000 (16:53 +0200)]
Added comments describing what to do

15 years agoCreate MIP4 keys.
Alan T. DeKok [Tue, 23 Sep 2008 14:51:07 +0000 (16:51 +0200)]
Create MIP4 keys.

15 years agoExpose MSK and EMSK
Alan T. DeKok [Tue, 23 Sep 2008 14:49:38 +0000 (16:49 +0200)]
Expose MSK and EMSK

15 years agoMore relay oddness
Alan T. DeKok [Tue, 23 Sep 2008 13:18:25 +0000 (15:18 +0200)]
More relay oddness

15 years agoFix handling for relays.
Alan T. DeKok [Tue, 23 Sep 2008 13:02:34 +0000 (15:02 +0200)]
Fix handling for relays.

Some relays are hard-coded to send to the server port, and expect to
see replies back to their IP, server port.  However, they ALSO
use that server port for sending packets.  i.e.

relay:67 -> server:67

Relays that send FROM 68, and expect replies back TO 67 are broken.

15 years agoSample schema && queries for WiMAX MIP keys
Alan T. DeKok [Tue, 23 Sep 2008 12:33:14 +0000 (14:33 +0200)]
Sample schema && queries for WiMAX MIP keys

15 years agodefine DEBUG4
Alan T. DeKok [Tue, 23 Sep 2008 09:04:48 +0000 (11:04 +0200)]
define DEBUG4

15 years agoDon't free strings parsed by the config API
Alan T. DeKok [Mon, 22 Sep 2008 08:45:12 +0000 (10:45 +0200)]
Don't free strings parsed by the config API

15 years agoRemoved duplicate variable definitions
Alan T. DeKok [Sun, 21 Sep 2008 12:32:31 +0000 (14:32 +0200)]
Removed duplicate variable definitions

15 years agoFixed compile warnings
Alan T. DeKok [Sun, 21 Sep 2008 12:25:40 +0000 (14:25 +0200)]
Fixed compile warnings

15 years agoBuild the module only if manually configured
Alan T. DeKok [Sun, 21 Sep 2008 12:21:49 +0000 (14:21 +0200)]
Build the module only if manually configured

15 years agoAdded GPL headers
Alan T. DeKok [Sun, 21 Sep 2008 12:20:13 +0000 (14:20 +0200)]
Added GPL headers

15 years agoFixed compiler warnings
Alan T. DeKok [Sun, 21 Sep 2008 12:19:51 +0000 (14:19 +0200)]
Fixed compiler warnings

15 years agoNote 2.1.1
Alan T. DeKok [Sun, 21 Sep 2008 12:14:46 +0000 (14:14 +0200)]
Note 2.1.1

15 years agoAdded sip-conf-id
Alan T. DeKok [Sun, 21 Sep 2008 06:41:09 +0000 (08:41 +0200)]
Added sip-conf-id

15 years agoMore wrappers around debug_packet
Alan T. DeKok [Sun, 21 Sep 2008 05:48:44 +0000 (07:48 +0200)]
More wrappers around debug_packet

15 years agoDocument port
Alan T. DeKok [Sat, 20 Sep 2008 10:30:38 +0000 (12:30 +0200)]
Document port

15 years agoBuild on systems without pthread
Alan T. DeKok [Sat, 20 Sep 2008 08:45:36 +0000 (10:45 +0200)]
Build on systems without pthread

15 years agoI'm not an idiot. I'm just pretending to be one.
Alan T. DeKok [Thu, 18 Sep 2008 16:21:32 +0000 (18:21 +0200)]
I'm not an idiot.  I'm just pretending to be one.

15 years agoNo longer need snmp.conf
Alan T. DeKok [Thu, 18 Sep 2008 16:05:56 +0000 (18:05 +0200)]
No longer need snmp.conf

15 years agoDeleted
Alan T. DeKok [Thu, 18 Sep 2008 13:47:30 +0000 (15:47 +0200)]
Deleted

15 years agoLatest set of updates
Alan T. DeKok [Thu, 18 Sep 2008 13:47:22 +0000 (15:47 +0200)]
Latest set of updates

15 years agoApparently spaces are necessary.
Alan T. DeKok [Thu, 18 Sep 2008 13:47:08 +0000 (15:47 +0200)]
Apparently spaces are necessary.

15 years agoTypos
Alan T. DeKok [Thu, 18 Sep 2008 12:59:46 +0000 (14:59 +0200)]
Typos

15 years agoProxy stats
Alan T. DeKok [Thu, 18 Sep 2008 12:59:31 +0000 (14:59 +0200)]
Proxy stats

15 years agoRenamed
Alan T. DeKok [Thu, 18 Sep 2008 12:56:09 +0000 (14:56 +0200)]
Renamed

15 years agoMore munin stuff
Alan T. DeKok [Thu, 18 Sep 2008 12:49:11 +0000 (14:49 +0200)]
More munin stuff

15 years agoMinor changes, +x, cleanups
Alan T. DeKok [Thu, 18 Sep 2008 10:56:02 +0000 (12:56 +0200)]
Minor changes, +x, cleanups