freeradius.git
16 years ago More sanity checks on fragment size, and account for EAP-TLS
aland [Wed, 21 Nov 2007 09:58:05 +0000 (09:58 +0000)]
More sanity checks on fragment size, and account for EAP-TLS
headers, so that the maximum *EAP* fragment we send is exactly
"fragment_size", and not 10 bytes more.

16 years ago Examples of using new module methods
aland [Wed, 21 Nov 2007 09:38:29 +0000 (09:38 +0000)]
Examples of using new module methods

16 years ago Added pre/post-proxy sections, and postauth section.
aland [Wed, 21 Nov 2007 09:35:59 +0000 (09:35 +0000)]
Added pre/post-proxy sections, and postauth section.

Converted the rest of the code to use macros to define
common blocks.  This simplifies the code and reduces errors.

16 years ago Fixed incorrect commit
aland [Wed, 21 Nov 2007 02:55:06 +0000 (02:55 +0000)]
Fixed incorrect commit

16 years ago Pack more EAP data into VALUE_PAIR's, to allow inner EAP methods
aland [Tue, 20 Nov 2007 15:06:25 +0000 (15:06 +0000)]
Pack more EAP data into VALUE_PAIR's, to allow inner EAP methods
that carry large amounts of data.

16 years ago Permit TLS inside of PEAP/TTLS tunnels. It won't work, but it
aland [Tue, 20 Nov 2007 08:12:38 +0000 (08:12 +0000)]
Permit TLS inside of PEAP/TTLS tunnels.  It won't work, but it
won't crash the system, either.  Maybe enbling it will let
someone debug the issues.

16 years ago Handle multiple EAP-Messages inside of a PEAP tunnel.
aland [Tue, 20 Nov 2007 03:08:05 +0000 (03:08 +0000)]
Handle multiple EAP-Messages inside of a PEAP tunnel.

16 years ago Updates from:
aland [Sun, 18 Nov 2007 06:53:20 +0000 (06:53 +0000)]
Updates from:
http://support.3com.com/infodeli/tools/wireless/switches/3wxmug4-1.pdf

Include comments on typos in the original documentation

16 years ago Move parse of CONF_SECTION -> RADCLIENT into it's own function
aland [Fri, 16 Nov 2007 15:20:23 +0000 (15:20 +0000)]
Move parse of CONF_SECTION -> RADCLIENT into it's own function

16 years ago Write our own sscanf for %i, which is ~30 lines long, and saves
aland [Fri, 16 Nov 2007 09:08:24 +0000 (09:08 +0000)]
Write our own sscanf for %i, which is ~30 lines long, and saves
10% on startup times.  It's not a lot, but every little bit
counts...

16 years agoThis function hasn't been used for 4 years now, so its probably safe to remove it.
pnixon [Thu, 15 Nov 2007 20:21:03 +0000 (20:21 +0000)]
This function hasn't been used for 4 years now, so its probably safe to remove it.

16 years ago New script to print out attributes ordered by type, and
aland [Wed, 14 Nov 2007 09:06:28 +0000 (09:06 +0000)]
New script to print out attributes ordered by type, and
which RFC they are defined in.

16 years ago Added one attribute defined in a Diameter RFC.
aland [Wed, 14 Nov 2007 09:00:24 +0000 (09:00 +0000)]
Added one attribute defined in a Diameter RFC.

16 years ago marked more modules HUP-safe
aland [Tue, 13 Nov 2007 10:41:17 +0000 (10:41 +0000)]
marked more modules HUP-safe

16 years ago Point to the correct directories.
aland [Tue, 13 Nov 2007 09:54:42 +0000 (09:54 +0000)]
Point to the correct directories.

Move the Voip schema to be located next to the voip
configuration that uses it, just like the other examples

16 years ago Remove unneeded lines
aland [Tue, 13 Nov 2007 06:57:38 +0000 (06:57 +0000)]
Remove unneeded lines

16 years ago Fix includes and handling of directories.
aland [Tue, 13 Nov 2007 06:46:01 +0000 (06:46 +0000)]
Fix includes and handling of directories.

Patch from Patrich Welche

16 years ago Added HUP support. As it happens, it's also thread-safe.
aland [Mon, 12 Nov 2007 14:07:09 +0000 (14:07 +0000)]
Added HUP support.  As it happens, it's also thread-safe.

All it does is re-initialize modules that are flagged as
"safe for HUP".  Right now, only the "files" module is flagged
 like this, but it's easy enough to flag other modules, too.

In the future, we may want to examine the ability to reload
policies, etc.  This MAY be possible, if the policies are
contained in one file....

16 years ago Mark more modules safe for -C
aland [Mon, 12 Nov 2007 06:16:56 +0000 (06:16 +0000)]
Mark more modules safe for -C

16 years ago Mark more modules "safe for -C"
aland [Sun, 11 Nov 2007 22:11:51 +0000 (22:11 +0000)]
Mark more modules "safe for -C"

16 years ago Mark more modules "safe for -C"
aland [Sun, 11 Nov 2007 22:05:29 +0000 (22:05 +0000)]
Mark more modules "safe for -C"

16 years ago Added -C command-line option, documentation, debug messages,
aland [Sun, 11 Nov 2007 22:01:59 +0000 (22:01 +0000)]
Added -C command-line option, documentation, debug messages,
and marked a number of modules as "safe for -C".

Note that sql, ldap, etc. are NOT "safe for -C".

16 years ago Make cf_reference_item public, so it can be used in
aland [Sun, 11 Nov 2007 21:20:59 +0000 (21:20 +0000)]
Make cf_reference_item public, so it can be used in
%{config:...}

Made internal configuration code reference sub-sections by
instances, too.  This allows ${foo.bar[baz]} references.

Added internal "confdir" directive in cf_file_read, which
adds "confdir" as the FIRST configuration item in "main".
This allows the rest of the configuration files and directives
to be tied to ${confdir}, meaning the server can be built
with one target directory, but still run out of another

16 years ago Change raddbdir to confdir for consistency.
aland [Sun, 11 Nov 2007 18:11:28 +0000 (18:11 +0000)]
Change raddbdir to confdir for consistency.

16 years ago sprintf -> snprintf
aland [Sat, 10 Nov 2007 09:36:25 +0000 (09:36 +0000)]
sprintf -> snprintf

16 years ago More careful sanity checking on the values of attributes and
aland [Sat, 10 Nov 2007 07:07:59 +0000 (07:07 +0000)]
More careful sanity checking on the values of attributes and
vendor Id's

16 years ago If the EAP message in the Diameter AVP is larger than 253
aland [Sat, 10 Nov 2007 06:59:14 +0000 (06:59 +0000)]
If the EAP message in the Diameter AVP is larger than 253
octets, split it among multiple VALUE_PAIRs.  This fixes a
previous FIXME.

16 years ago Return EAPTLS_OK only if the SSL setup is finished, AND there's
aland [Sat, 10 Nov 2007 06:45:51 +0000 (06:45 +0000)]
Return EAPTLS_OK only if the SSL setup is finished, AND there's
no more data inside of the tunnel

16 years ago When s = cl->shortname we try to copy a string of arbitrary length
nbk [Fri, 9 Nov 2007 23:49:49 +0000 (23:49 +0000)]
When s = cl->shortname we try to copy a string of arbitrary length
to a 64 bytes long buffer.

Bug found by Primoz Bratanic <primoz@slo-tech.com>

16 years ago Call record_minus, not record_init() on handshake send, because
aland [Thu, 8 Nov 2007 16:26:06 +0000 (16:26 +0000)]
Call record_minus, not record_init() on handshake send, because
there may be data left in the clean_in buffer

16 years ago We don't need or use librad_MD4* stuff
aland [Wed, 7 Nov 2007 22:21:18 +0000 (22:21 +0000)]
We don't need or use librad_MD4* stuff

16 years ago Don't strip executables. The people who need the disk space can
aland [Wed, 7 Nov 2007 22:13:42 +0000 (22:13 +0000)]
Don't strip executables.  The people who need the disk space can
strip them by hand.  Everyone else needs symbols to work around
RTLD_GLOBAL issues, OR to help with debugging

16 years ago If there's no User-Name, ldap is a NOOP, not a failure
aland [Tue, 6 Nov 2007 21:55:40 +0000 (21:55 +0000)]
If there's no User-Name, ldap is a NOOP, not a failure

16 years ago Catch some corner cases in wait_a_bit
aland [Mon, 5 Nov 2007 23:26:26 +0000 (23:26 +0000)]
Catch some corner cases in wait_a_bit

16 years ago Clarify code
aland [Mon, 5 Nov 2007 23:24:48 +0000 (23:24 +0000)]
Clarify code

16 years ago Set el->now
aland [Mon, 5 Nov 2007 22:54:05 +0000 (22:54 +0000)]
Set el->now

16 years ago Updated Schema
aland [Mon, 5 Nov 2007 08:59:00 +0000 (08:59 +0000)]
Updated Schema

16 years ago Point to MS's page
aland [Sat, 3 Nov 2007 00:14:54 +0000 (00:14 +0000)]
Point to MS's page

16 years ago One more sample virtual server. At this rate, we'll have
aland [Fri, 2 Nov 2007 23:57:40 +0000 (23:57 +0000)]
One more sample virtual server.  At this rate, we'll have
something resembling "documentation" real soon now.

16 years ago Deleted blank line
aland [Fri, 2 Nov 2007 23:57:12 +0000 (23:57 +0000)]
Deleted blank line

16 years ago Many modules return FAIL. This means authentication failure,
aland [Tue, 30 Oct 2007 13:32:47 +0000 (13:32 +0000)]
Many modules return FAIL.  This means authentication failure,
not HANDLED

16 years ago Remove unused header files
aland [Mon, 29 Oct 2007 12:28:59 +0000 (12:28 +0000)]
Remove unused header files

16 years ago Re-arrange code into common functions
aland [Mon, 29 Oct 2007 09:41:22 +0000 (09:41 +0000)]
Re-arrange code into common functions

16 years ago Use better function
aland [Mon, 29 Oct 2007 09:33:15 +0000 (09:33 +0000)]
Use better function

16 years ago More checks for functions on unsupported platforms
aland [Mon, 29 Oct 2007 09:32:18 +0000 (09:32 +0000)]
More checks for functions on unsupported platforms

16 years ago Build on systems without pthread (or --without-threads)
aland [Mon, 29 Oct 2007 07:32:10 +0000 (07:32 +0000)]
Build on systems without pthread (or --without-threads)

16 years ago More #ifdef's for platforms that need them
aland [Mon, 29 Oct 2007 07:20:21 +0000 (07:20 +0000)]
More #ifdef's for platforms that need them

16 years ago Wrap include with #ifdef's
aland [Mon, 29 Oct 2007 03:01:28 +0000 (03:01 +0000)]
Wrap include with #ifdef's

16 years ago lockf portability
aland [Mon, 29 Oct 2007 02:50:07 +0000 (02:50 +0000)]
lockf portability

16 years ago Call OpenSSL_add_all_algorithms()
aland [Wed, 24 Oct 2007 11:04:29 +0000 (11:04 +0000)]
Call OpenSSL_add_all_algorithms()

We still need to call EVP_cleanup() on clean exit, but who's
counting?

16 years ago Look for <openssl/evp.h>, for OpenSSL_add_all_algorithms()
aland [Wed, 24 Oct 2007 11:00:23 +0000 (11:00 +0000)]
Look for <openssl/evp.h>, for OpenSSL_add_all_algorithms()

16 years ago Corrected typo
aland [Wed, 24 Oct 2007 07:29:12 +0000 (07:29 +0000)]
Corrected typo

16 years ago Remove Auth-Type example
aland [Tue, 23 Oct 2007 13:41:23 +0000 (13:41 +0000)]
Remove Auth-Type example

16 years ago Corrected name
aland [Tue, 23 Oct 2007 13:06:45 +0000 (13:06 +0000)]
Corrected name

16 years ago Notes on requiring a client certificate
aland [Tue, 23 Oct 2007 07:57:31 +0000 (07:57 +0000)]
Notes on requiring a client certificate

16 years ago Now that we have virtual servers, we don't need vmpsd.conf
aland [Tue, 23 Oct 2007 04:18:01 +0000 (04:18 +0000)]
Now that we have virtual servers, we don't need vmpsd.conf

16 years ago Updated
aland [Tue, 23 Oct 2007 04:16:12 +0000 (04:16 +0000)]
Updated

16 years ago Copied VMPS stuff to a virtual server
aland [Tue, 23 Oct 2007 04:14:19 +0000 (04:14 +0000)]
Copied VMPS stuff to a virtual server

16 years ago Update date
aland [Tue, 23 Oct 2007 04:06:26 +0000 (04:06 +0000)]
Update date

16 years ago We no longer need radrelay.conf, as we have virtual servers.
aland [Tue, 23 Oct 2007 04:06:02 +0000 (04:06 +0000)]
We no longer need radrelay.conf, as we have virtual servers.

16 years ago Now that we have virtual servers, we don't need radrelay.conf
aland [Tue, 23 Oct 2007 04:03:33 +0000 (04:03 +0000)]
Now that we have virtual servers, we don't need radrelay.conf
any more

16 years ago More samples of using radrelay functionality in 2.0
aland [Tue, 23 Oct 2007 03:53:18 +0000 (03:53 +0000)]
More samples of using radrelay functionality in 2.0

16 years ago detail file is in ${radacctdir}, not ${confdir}
aland [Mon, 22 Oct 2007 14:48:15 +0000 (14:48 +0000)]
detail file is in ${radacctdir}, not ${confdir}

16 years ago Changed
aland [Mon, 22 Oct 2007 13:09:14 +0000 (13:09 +0000)]
Changed

$INCLUDE ${confdir}/foo

to

$INCLUDE foo

which should be simpler...

16 years ago Allow "local" filenames. e.g.
aland [Mon, 22 Oct 2007 13:05:04 +0000 (13:05 +0000)]
Allow "local" filenames.  e.g.

$INCLUDE foo.conf

is relative to the file that started all of this off.  This
change should remove much of the "$INCLUDE ${confdir}/foo",
and make it "$INCLUDE foo", which is more robust in light
of "-d radius_dir" not entirely working...

16 years ago Corrected typos
aland [Mon, 22 Oct 2007 09:30:40 +0000 (09:30 +0000)]
Corrected typos

16 years ago radius_pairmake(), to mirror radius_paircreate().
aland [Mon, 22 Oct 2007 08:40:47 +0000 (08:40 +0000)]
radius_pairmake(), to mirror radius_paircreate().

This is in preparation for eventually using memory pools for
VALUE_PAIR's, which should save at least 10% of CPU time, from
valgrind stats.

16 years ago It's now 2.0.0-beta.
aland [Mon, 22 Oct 2007 08:26:59 +0000 (08:26 +0000)]
It's now 2.0.0-beta.

We won't have any more pre-releases before 2.0, and I'm not
going to do major code hacking.   I think we're almost done.

16 years ago For authentication logging, log if the request came from an
aland [Mon, 22 Oct 2007 02:50:45 +0000 (02:50 +0000)]
For authentication logging, log if the request came from an
inner/outer tunnel session

16 years ago Try to open the log file (and complain on error) ONLY if
aland [Sun, 21 Oct 2007 06:47:00 +0000 (06:47 +0000)]
Try to open the log file (and complain on error) ONLY if
the log file destination is "files"

16 years ago Check for NULL
aland [Thu, 18 Oct 2007 16:15:51 +0000 (16:15 +0000)]
Check for NULL

16 years ago Document outer.request and outer.reply
aland [Thu, 18 Oct 2007 14:31:59 +0000 (14:31 +0000)]
Document outer.request and outer.reply

16 years ago Allow "update" sections to update outer request, config, and
aland [Thu, 18 Oct 2007 14:12:49 +0000 (14:12 +0000)]
Allow "update" sections to update outer request, config, and
reply directly.  This should simplify many configurations

16 years ago Add %{outer.request:Attribute-Name} and
aland [Thu, 18 Oct 2007 14:11:24 +0000 (14:11 +0000)]
Add %{outer.request:Attribute-Name} and
  %{outer.reply:Attribute-Name}

This should make it easier to handle tunneled EAP types

16 years ago Parse clients from the main config section, which initializes
aland [Thu, 18 Oct 2007 12:27:05 +0000 (12:27 +0000)]
Parse clients from the main config section, which initializes
things so that clients can be read from SQL

16 years ago Made a fake client for each detail file
aland [Thu, 18 Oct 2007 11:59:29 +0000 (11:59 +0000)]
Made a fake client for each detail file

16 years ago Check SNMP pointers, too. Increment accounting counters, rather
aland [Thu, 18 Oct 2007 11:59:03 +0000 (11:59 +0000)]
Check SNMP pointers, too.  Increment accounting counters, rather
than auth counters for accounting packets

16 years ago t may be NULL. This fixes bug #488
aland [Thu, 18 Oct 2007 11:06:41 +0000 (11:06 +0000)]
t may be NULL.  This fixes bug #488

16 years ago Removed -pie, as it's a GCC-ism, and isn't necessarily portable.
aland [Thu, 18 Oct 2007 09:32:37 +0000 (09:32 +0000)]
Removed -pie, as it's a GCC-ism, and isn't necessarily portable.

If it's needed, it can be added via configure checks, etc.

16 years ago Reference mainconfig again
aland [Tue, 16 Oct 2007 15:24:01 +0000 (15:24 +0000)]
Reference mainconfig again

16 years ago Print "Ready to process requests" at L_INFO when starting,
aland [Tue, 16 Oct 2007 11:50:24 +0000 (11:50 +0000)]
Print "Ready to process requests" at L_INFO when starting,
and after a HUP

16 years ago Print that core dumps are enabled
aland [Tue, 16 Oct 2007 11:49:50 +0000 (11:49 +0000)]
Print that core dumps are enabled

16 years ago Reformatted and clarified text
aland [Tue, 16 Oct 2007 09:31:47 +0000 (09:31 +0000)]
Reformatted and clarified text

16 years ago Moved do_snmp back into mainconfig
aland [Tue, 16 Oct 2007 09:18:50 +0000 (09:18 +0000)]
Moved do_snmp back into mainconfig

16 years ago Corrected typo
aland [Tue, 16 Oct 2007 09:14:27 +0000 (09:14 +0000)]
Corrected typo

16 years ago Look for <sys/prctl.h>. Checks for prctl() will come later
aland [Mon, 15 Oct 2007 15:43:47 +0000 (15:43 +0000)]
Look for <sys/prctl.h>.  Checks for prctl() will come later

16 years ago Clarify code allowing core dumps
aland [Mon, 15 Oct 2007 15:38:38 +0000 (15:38 +0000)]
Clarify code allowing core dumps

16 years ago Define ALL types first, so that config in one section can
aland [Mon, 15 Oct 2007 07:43:33 +0000 (07:43 +0000)]
Define ALL types first, so that config in one section can
reference types defined in another section

16 years ago Define dynamic types (Autz-type foo) etc. before trying to load
aland [Mon, 15 Oct 2007 07:35:11 +0000 (07:35 +0000)]
Define dynamic types (Autz-type foo) etc. before trying to load
the rest of the sections

16 years ago request->proxy may be set for requests with inner tunnel
aland [Sun, 14 Oct 2007 19:11:25 +0000 (19:11 +0000)]
request->proxy may be set for requests with inner tunnel
sessions

16 years ago Cleaned up warning and error messages
aland [Sun, 14 Oct 2007 17:36:05 +0000 (17:36 +0000)]
Cleaned up warning and error messages

16 years ago remove dumb assert
aland [Sun, 14 Oct 2007 15:38:11 +0000 (15:38 +0000)]
remove dumb assert

16 years ago Update clients from root_clients, if possible
aland [Sun, 14 Oct 2007 14:03:46 +0000 (14:03 +0000)]
Update clients from root_clients, if possible

16 years ago Add "method" to modcallable, so that we can call different
aland [Sun, 14 Oct 2007 13:22:58 +0000 (13:22 +0000)]
Add "method" to modcallable, so that we can call different
module methods under administrator control

16 years ago If there's no proxy section, use the defaults
aland [Sat, 13 Oct 2007 12:48:31 +0000 (12:48 +0000)]
If there's no proxy section, use the defaults

16 years ago Corrected fix
aland [Sat, 13 Oct 2007 09:53:06 +0000 (09:53 +0000)]
Corrected fix

16 years ago *ev_p may be NULL.
aland [Sat, 13 Oct 2007 07:10:45 +0000 (07:10 +0000)]
*ev_p may be NULL.

16 years ago Close ref. Patch as posted to the list by Apple.
aland [Fri, 12 Oct 2007 16:08:15 +0000 (16:08 +0000)]
Close ref.  Patch as posted to the list by Apple.

16 years ago Fix from bug #483
aland [Thu, 11 Oct 2007 11:22:47 +0000 (11:22 +0000)]
Fix from bug #483

16 years ago Made it work with non-GNU makes
aland [Thu, 11 Oct 2007 10:11:29 +0000 (10:11 +0000)]
Made it work with non-GNU makes