freeradius.git
20 years ago Patch from Masao Nishiku to implement PEAP version 0. It works
aland [Tue, 14 Oct 2003 15:20:38 +0000 (15:20 +0000)]
Patch from Masao Nishiku to implement PEAP version 0.  It works
with clients Windows XP SP1, and Windows 2000 SP4.

It also needs 'include_length = no' in radiusd.conf's tls section,
but the TLS module can be updated later to automatically do that
for PEAP.

The module has minor changes from the one posted by Masao Nishiku.

20 years ago Changed to implement EAP MSCHAPv2 as Microsoft's version (26),
aland [Tue, 14 Oct 2003 15:18:02 +0000 (15:18 +0000)]
Changed to implement EAP MSCHAPv2 as Microsoft's version (26),
rather than Cisco's version (29).  Patch from Masao Nishiku

When we do implement Cisco's version, it will be rlm_eap_cisco_mschapv2,
which is a horrible name, but descriptive

20 years ago Updated in preparation for EAP MS-CHAP-V2 types
aland [Tue, 14 Oct 2003 15:14:54 +0000 (15:14 +0000)]
Updated in preparation for EAP MS-CHAP-V2 types

20 years agoAdd a sql_set_user in the postauth function
kkalev [Tue, 14 Oct 2003 09:30:42 +0000 (09:30 +0000)]
Add a sql_set_user in the postauth function

20 years agoFix up relocation of config.{sub,guess} to not be killed by dh_clean if
phampson [Mon, 13 Oct 2003 12:35:10 +0000 (12:35 +0000)]
Fix up relocation of config.{sub,guess} to not be killed by dh_clean if
debian/rules clean is not run between debian/rules build
Thanks to Erich Schubert <erich@debian.org>

20 years agoRegenerate from configure.in after: Override GETHOSTBYADDRSTYLE for FreeBSD to be BSD
phampson [Mon, 13 Oct 2003 12:12:53 +0000 (12:12 +0000)]
Regenerate from configure.in after: Override GETHOSTBYADDRSTYLE for FreeBSD to be BSD

20 years agoOverride GETHOSTBYADDRSTYLE for FreeBSD to be BSD, to avoid stub GNU-style
phampson [Mon, 13 Oct 2003 12:12:28 +0000 (12:12 +0000)]
Override GETHOSTBYADDRSTYLE for FreeBSD to be BSD, to avoid stub GNU-style
gethostbyaddr_r being linked in during configure, but not during build.

20 years agoAdd an entry about the failed_logins page
kkalev [Sun, 12 Oct 2003 14:58:14 +0000 (14:58 +0000)]
Add an entry about the failed_logins page

20 years agoFix a small bug in bytes2str. It will now also show GBs if appropriate
kkalev [Fri, 10 Oct 2003 12:15:18 +0000 (12:15 +0000)]
Fix a small bug in bytes2str. It will now also show GBs if appropriate

20 years agoClean up lib/ subdirectory when cleaning
phampson [Thu, 9 Oct 2003 04:00:26 +0000 (04:00 +0000)]
Clean up lib/ subdirectory when cleaning

20 years agoUpdate from rlm_ippool_tool.pod after: Add support for adding entries to ippool datab...
phampson [Thu, 9 Oct 2003 01:03:03 +0000 (01:03 +0000)]
Update from rlm_ippool_tool.pod after: Add support for adding entries to ippool databases.

20 years agoDelete leftover debugging gunk
phampson [Thu, 9 Oct 2003 00:59:55 +0000 (00:59 +0000)]
Delete leftover debugging gunk

20 years agoFixed bug in 'paircreate' where it did not copy the vp->flags data structure
cparker [Mon, 6 Oct 2003 17:35:42 +0000 (17:35 +0000)]
Fixed bug in 'paircreate' where it did not copy the vp->flags data structure
item correctly, causing problems with attributes that require special handling
such as Tunnel-Password.  Noted by Chris Brotsos <cbrotsos@starnetusa.net>

20 years agoMake clean_radacct and truncate_radacct work correctly
kkalev [Mon, 6 Oct 2003 15:18:40 +0000 (15:18 +0000)]
Make clean_radacct and truncate_radacct work correctly

20 years agoDon't show an account as locked if Dialup-Access does not exist and the mapping corre...
kkalev [Mon, 6 Oct 2003 09:47:33 +0000 (09:47 +0000)]
Don't show an account as locked if Dialup-Access does not exist and the mapping corresponds to 'none' attribute

20 years agoShow correct calculation of the montlhy usage time.
kkalev [Mon, 6 Oct 2003 09:30:17 +0000 (09:30 +0000)]
Show correct calculation of the montlhy usage time.

20 years agoAdd more comments in the admin.conf file
kkalev [Sun, 5 Oct 2003 16:24:17 +0000 (16:24 +0000)]
Add more comments in the admin.conf file

20 years agoAdd a configuration directive counter_monthly_calculate_usage to calculate the monthl...
kkalev [Sun, 5 Oct 2003 16:03:11 +0000 (16:03 +0000)]
Add a configuration directive counter_monthly_calculate_usage to calculate the monthly usage time. Calculate
it in user_admin if monthly_limit != 'none' or if this directive is set.
Based on a report by "apellido jr., wilfredo p"

20 years agofreeradius -h is no longer an error.
phampson [Sat, 4 Oct 2003 00:35:51 +0000 (00:35 +0000)]
freeradius -h is no longer an error.
Thanks to Nicolas Baradakis <nbk@sitadelle.com>

20 years agoRegenerate from configure.in after: Cosmetic fix to BSD-style gethostby{addr,name...
phampson [Sat, 4 Oct 2003 00:31:08 +0000 (00:31 +0000)]
Regenerate from configure.in after: Cosmetic fix to BSD-style gethostby{addr,name} warning.

20 years agoCosmetic fix to BSD-style gethostby{addr,name} warning.
phampson [Sat, 4 Oct 2003 00:30:45 +0000 (00:30 +0000)]
Cosmetic fix to BSD-style gethostby{addr,name} warning.

20 years agoRegenerate from aclocal.m4 after: Improve SNMP include-file location detection; No...
phampson [Sat, 4 Oct 2003 00:16:33 +0000 (00:16 +0000)]
Regenerate from aclocal.m4 after: Improve SNMP include-file location detection; No longer produces -I/usr/include

20 years agoImprove SNMP include-file location detection; No longer produces -I/usr/include
phampson [Sat, 4 Oct 2003 00:15:42 +0000 (00:15 +0000)]
Improve SNMP include-file location detection; No longer produces -I/usr/include

20 years ago* Replace calls to exit() in counter_instantiate with return -1;
kkalev [Fri, 3 Oct 2003 11:45:19 +0000 (11:45 +0000)]
* Replace calls to exit() in counter_instantiate with return -1;
* Fix memory leaks in counter_detach
* Call counter_detach if we fail in counter_instantiate
* More verbose logging when we fail in counter_instantiate

20 years ago Make IPX filters work.
aland [Thu, 2 Oct 2003 20:43:09 +0000 (20:43 +0000)]
Make IPX filters work.

20 years agoUpdate to support rlm_ippool.c v1.24's database format.
phampson [Thu, 2 Oct 2003 00:44:44 +0000 (00:44 +0000)]
Update to support rlm_ippool.c v1.24's database format.

20 years agoAdd support for adding entries to ippool databases.
phampson [Thu, 2 Oct 2003 00:43:20 +0000 (00:43 +0000)]
Add support for adding entries to ippool databases.

20 years agoFix uninitialised value of ML-PPP count 'num';
phampson [Thu, 2 Oct 2003 00:40:03 +0000 (00:40 +0000)]
Fix uninitialised value of ML-PPP count 'num';

20 years agoAdd database modification support to rlm_ippool_tool
phampson [Wed, 1 Oct 2003 21:45:55 +0000 (21:45 +0000)]
Add database modification support to rlm_ippool_tool

20 years agoRegenerate from configure.in after addition of rlm_ippool_tool
phampson [Tue, 30 Sep 2003 18:58:33 +0000 (18:58 +0000)]
Regenerate from configure.in after addition of rlm_ippool_tool

20 years ago Fixed prototype to be sane, and made some more minor updates
aland [Tue, 30 Sep 2003 18:57:23 +0000 (18:57 +0000)]
Fixed prototype to be sane, and made some more minor updates

20 years agoAdd rlm_ippool_tool (nee ippool-tool/iptool) to FreeRADIUS.
phampson [Tue, 30 Sep 2003 18:57:06 +0000 (18:57 +0000)]
Add rlm_ippool_tool (nee ippool-tool/iptool) to FreeRADIUS.
This is the original version by Edwin Groothuis <edwin@mavetju.org>,
with his kind permission to ship under the GNU GPL.

20 years ago Re-write the "parse generic filter" function, and fixed bugs in
aland [Tue, 30 Sep 2003 18:38:28 +0000 (18:38 +0000)]
Re-write the "parse generic filter" function, and fixed bugs in
the "print generic filter" code.

20 years agoMake it clear that the password_header directive is NOT case insensitive
kkalev [Tue, 30 Sep 2003 16:36:34 +0000 (16:36 +0000)]
Make it clear that the password_header directive is NOT case insensitive

20 years ago Don't complain if the attribute is known, but isn't in the request
aland [Tue, 30 Sep 2003 15:38:08 +0000 (15:38 +0000)]
Don't complain if the attribute is known, but isn't in the request

20 years ago Removed non-existent file
aland [Tue, 30 Sep 2003 15:31:13 +0000 (15:31 +0000)]
Removed non-existent file

20 years ago First pass at re-writing Ascend's horrible code.
aland [Mon, 29 Sep 2003 19:32:49 +0000 (19:32 +0000)]
First pass at re-writing Ascend's horrible code.

It no longer does IPX or "generic" filters, but only IP.  The evil
Ascend code is still there, but commented out.

It's now fully thread-safe, which is nice.  The printing routines
have also been updated to print the filters in a format which the
parsing routines can understand... previously they didn't do that.

20 years ago Increased the size of the temporary 'send packet' buffer, to allow
aland [Mon, 29 Sep 2003 15:19:59 +0000 (15:19 +0000)]
Increased the size of the temporary 'send packet' buffer, to allow
RADIUS packets to "overflow" it by one attribute.  This makes the
logic to catch the overflow significantly simpler.

i.e. It's easier to post-facto catch an error, than try to figure
out before hand what the code will do.

Once the packet has "overflowed" the 4k boundary, we log an error
message, and return an error, without sending the packet.

Bug found by Nils-Henner Krueger

20 years ago Updated so it works
aland [Mon, 29 Sep 2003 15:04:27 +0000 (15:04 +0000)]
Updated so it works

20 years agoAllow for defining the ldap_filter used when searching for a user. The filter support...
kkalev [Mon, 29 Sep 2003 14:16:25 +0000 (14:16 +0000)]
Allow for defining the ldap_filter used when searching for a user. The filter supports dynamic variables
like %u (username) and %U (username provided though http auth)

20 years ago memset is your friend.
aland [Sat, 27 Sep 2003 15:10:48 +0000 (15:10 +0000)]
memset is your friend.

20 years ago Initialize all entries of the data structure.
aland [Sat, 27 Sep 2003 14:53:28 +0000 (14:53 +0000)]
Initialize all entries of the data structure.

Patch from Masao Nishiku.

20 years ago Added more debug messages for people who out-smart themselves,
aland [Fri, 26 Sep 2003 19:06:34 +0000 (19:06 +0000)]
Added more debug messages for people who out-smart themselves,
and wonder why they're confuses.

20 years ago A few more checks to prevent people from doing crazy things
aland [Fri, 26 Sep 2003 18:59:56 +0000 (18:59 +0000)]
A few more checks to prevent people from doing crazy things

20 years ago Added MS-CHAP rfc
aland [Fri, 26 Sep 2003 18:28:30 +0000 (18:28 +0000)]
Added MS-CHAP rfc

20 years agoCompile even if we don't have pthread's
kkalev [Fri, 26 Sep 2003 14:16:41 +0000 (14:16 +0000)]
Compile even if we don't have pthread's

20 years agoMake wait=no possible, and add an extra check for possibly erroneous configuration
phampson [Thu, 25 Sep 2003 04:13:00 +0000 (04:13 +0000)]
Make wait=no possible, and add an extra check for possibly erroneous configuration

20 years agoDocument 'config' as a valid source/destination for rlm_exec pairs
phampson [Thu, 25 Sep 2003 04:11:17 +0000 (04:11 +0000)]
Document 'config' as a valid source/destination for rlm_exec pairs

20 years ago Improved debugging messages...
aland [Wed, 24 Sep 2003 17:48:38 +0000 (17:48 +0000)]
Improved debugging messages...

20 years ago If a request was rejected, do it only once.
aland [Wed, 24 Sep 2003 17:35:12 +0000 (17:35 +0000)]
If a request was rejected, do it only once.

20 years ago Added comma
aland [Wed, 24 Sep 2003 16:10:45 +0000 (16:10 +0000)]
Added comma

20 years ago Minor update
aland [Wed, 24 Sep 2003 14:26:46 +0000 (14:26 +0000)]
Minor update

20 years ago After setting new VP, don't add it to the end of the list.
aland [Wed, 24 Sep 2003 14:12:48 +0000 (14:12 +0000)]
After setting new VP, don't add it to the end of the list.

20 years ago version goes to stdout, not stderr.
aland [Wed, 24 Sep 2003 14:03:09 +0000 (14:03 +0000)]
version goes to stdout, not stderr.

Print information about the GPL, too

20 years ago Return OK on success, instead of HANDLED
aland [Wed, 24 Sep 2003 13:56:54 +0000 (13:56 +0000)]
Return OK on success, instead of HANDLED

20 years agoReally fix the bare %{Attribute-Name} support.
phampson [Wed, 24 Sep 2003 09:14:01 +0000 (09:14 +0000)]
Really fix the bare %{Attribute-Name} support.
Again thanks to Nicolas Baradakis <nbk@sitadelle.com>

20 years ago Check certificate revocation list
aland [Tue, 23 Sep 2003 18:37:46 +0000 (18:37 +0000)]
Check certificate revocation list

Patch from Masao NISHIKU

20 years ago Check certificate revocation list.
aland [Tue, 23 Sep 2003 18:35:18 +0000 (18:35 +0000)]
Check certificate revocation list.

Patch from Masao Nishiku

20 years ago Re-arranged 'enum' definitions to follow C standard, as opposed
aland [Tue, 23 Sep 2003 16:20:38 +0000 (16:20 +0000)]
Re-arranged 'enum' definitions to follow C standard, as opposed
to gcc's "well, we knew what you meant..."

20 years agoFix postauth to not leak ip's
kkalev [Tue, 23 Sep 2003 13:59:59 +0000 (13:59 +0000)]
Fix postauth to not leak ip's
Add an extra attribute in each entry <char extra> signifying if we need to delete this
entry in the accounting phase. This is only true in case we are doing MPPP
Various other code changes. Code comments should explain things
Highly experimental at this phase.

20 years ago! NULL terminator added to module_config
3APA3A [Tue, 23 Sep 2003 13:53:38 +0000 (13:53 +0000)]
! NULL terminator added to module_config

20 years agoCalculate weekly used time correctly (from Sunday 00:00:00)
kkalev [Tue, 23 Sep 2003 12:09:43 +0000 (12:09 +0000)]
Calculate weekly used time correctly (from Sunday 00:00:00)

20 years agoFix really stupid copy-paste mistake (mine).
phampson [Tue, 23 Sep 2003 11:15:52 +0000 (11:15 +0000)]
Fix really stupid copy-paste mistake (mine).
Pointed out by Nicolas Baradakis <nbk@sitadelle.com>

20 years agoAdd support for post-auth query in rlm_sql
phampson [Tue, 23 Sep 2003 04:18:03 +0000 (04:18 +0000)]
Add support for post-auth query in rlm_sql

Patch from Nicolas Baradakis <nbk@sitadelle.com>

20 years agoUpdate to variable documentation to reflect recent additions
phampson [Tue, 23 Sep 2003 04:14:33 +0000 (04:14 +0000)]
Update to variable documentation to reflect recent additions

20 years agoChange %{Attribute-Name} from scanning request valuepairs to processing
phampson [Tue, 23 Sep 2003 03:53:37 +0000 (03:53 +0000)]
Change %{Attribute-Name} from scanning request valuepairs to processing
request packet. This allows %{Non-Protocol-Attribute} to work.

Thanks to Nicolas Baradakis <nbk@sitadelle.com>

20 years agoAdded support for %{check:Attribute-Name}
phampson [Tue, 23 Sep 2003 02:46:18 +0000 (02:46 +0000)]
Added support for %{check:Attribute-Name}

20 years ago* When we find a broken attribute and strlen(buf) == 0 do fseek(fpos + 1)
kkalev [Mon, 22 Sep 2003 14:15:38 +0000 (14:15 +0000)]
* When we find a broken attribute and strlen(buf) == 0 do fseek(fpos + 1)
* If we don't find an Acct-Status-Type attribute in the record reject it

20 years ago Untested EAP-MS-CHAPv2 module, based on reading of the expired
aland [Fri, 19 Sep 2003 19:19:10 +0000 (19:19 +0000)]
Untested EAP-MS-CHAPv2 module, based on reading of the expired
Internet-Draft, and the xsupplicant code.

Use at your own risk.

20 years ago Added Auth-Type for MS-CHAP
aland [Fri, 19 Sep 2003 18:49:20 +0000 (18:49 +0000)]
Added Auth-Type for MS-CHAP

20 years ago Added name & define for EAP-MSCHAP-V2
aland [Fri, 19 Sep 2003 18:24:17 +0000 (18:24 +0000)]
Added name & define for EAP-MSCHAP-V2

20 years ago Added mschap error
aland [Fri, 19 Sep 2003 18:05:54 +0000 (18:05 +0000)]
Added mschap error

20 years ago Deleted unnecessary file
aland [Fri, 19 Sep 2003 14:38:32 +0000 (14:38 +0000)]
Deleted unnecessary file

20 years agoAdd logrotate file for /var/log/freeradius/radiusd.log
phampson [Fri, 19 Sep 2003 04:50:27 +0000 (04:50 +0000)]
Add logrotate file for /var/log/freeradius/radiusd.log
Save config.sub and config.guess so that repeated builds don't get
confused by the symlinks.

20 years agoPrevent generation of src/modules/rlm_sql/drivers/lib containing the .la
phampson [Fri, 19 Sep 2003 04:36:29 +0000 (04:36 +0000)]
Prevent generation of src/modules/rlm_sql/drivers/lib containing the .la
file for the last driver built.

20 years agoRemove last vestiges of Pre-Acct/Pre-Proxy/Post-Proxy-Type.
phampson [Fri, 19 Sep 2003 04:01:30 +0000 (04:01 +0000)]
Remove last vestiges of Pre-Acct/Pre-Proxy/Post-Proxy-Type.

20 years agoStupid typo fix. (POW_ -> PW_)
phampson [Thu, 18 Sep 2003 18:00:52 +0000 (18:00 +0000)]
Stupid typo fix. (POW_ -> PW_)

20 years agoAdd support for Post-Auth-Type REJECT substanza of post-auth, run when a
phampson [Thu, 18 Sep 2003 17:24:36 +0000 (17:24 +0000)]
Add support for Post-Auth-Type REJECT substanza of post-auth, run when a
request is rejected, rather than skipping post-auth in that situation.

Based on a patch by Nicolas Baradakis <nbk@sitadelle.com>

20 years agoThese aren't supported eiter. They exist, but aren't used when the
phampson [Thu, 18 Sep 2003 17:13:41 +0000 (17:13 +0000)]
These aren't supported eiter. They exist, but aren't used when the
modules are called.

20 years ago Added 'post-proxy' method to 'rlm_attr_filter' and set example
cparker [Thu, 18 Sep 2003 16:55:02 +0000 (16:55 +0000)]
Added 'post-proxy' method to 'rlm_attr_filter' and set example
in 'radiusd.conf.in' for including 'attr_filter' in the post-proxy
section of the config.

20 years agoCorrect documentation to reflect server behaviour.
phampson [Thu, 18 Sep 2003 16:54:08 +0000 (16:54 +0000)]
Correct documentation to reflect server behaviour.

20 years agoChangelog entries which I forgot to commit at the time.
phampson [Thu, 18 Sep 2003 16:32:38 +0000 (16:32 +0000)]
Changelog entries which I forgot to commit at the time.

20 years agoUpdate to documentation for the module subgrouping selection attributes.
phampson [Thu, 18 Sep 2003 16:25:05 +0000 (16:25 +0000)]
Update to documentation for the module subgrouping selection attributes.
They mainly refer to Autz-Type exec Acct-Type which already had lots of text.

20 years agoCheck if request->timestamp - {Acct-Delay-Time} < last_reset
kkalev [Thu, 18 Sep 2003 15:01:51 +0000 (15:01 +0000)]
Check if request->timestamp - {Acct-Delay-Time} < last_reset
If yes reject the packet since it is very old

20 years ago Minor typo
aland [Thu, 18 Sep 2003 14:03:02 +0000 (14:03 +0000)]
Minor typo

20 years ago Added 3GPP dictionary.
aland [Wed, 17 Sep 2003 19:08:39 +0000 (19:08 +0000)]
Added 3GPP dictionary.

Updated some types to allow IPv6 addresses, even though we don't
do DNS on them (as of yet)

20 years ago#elifdef is not a valid preprocessor directive. Replaced with #else\n#ifdef
phampson [Wed, 17 Sep 2003 12:58:33 +0000 (12:58 +0000)]
#elifdef is not a valid preprocessor directive. Replaced with #else\n#ifdef
Patch from Nicolas Baradakis <nbk@sitadelle.com>

20 years ago Don't copy server-side attributes into the tunneled session
aland [Tue, 16 Sep 2003 20:35:53 +0000 (20:35 +0000)]
Don't copy server-side attributes into the tunneled session

20 years ago Hokey hacks for IPv6 address printing & parsing.
aland [Mon, 15 Sep 2003 20:53:45 +0000 (20:53 +0000)]
Hokey hacks for IPv6 address printing & parsing.

Right now, there's no DNS resolution of IPv6 addresses, but
that can be solved later.

20 years ago Patches to print/parse IPv6 interface ID's.
aland [Mon, 15 Sep 2003 20:16:53 +0000 (20:16 +0000)]
Patches to print/parse IPv6 interface ID's.

Patch from Hajimu UMEMOTO

Next, we do IPv6 addresses & prefixes...

20 years ago First pass at allowing native support of IPv6 addresses.
aland [Mon, 15 Sep 2003 19:44:32 +0000 (19:44 +0000)]
First pass at allowing native support of IPv6 addresses.

Defined new types for it.
Allowed the types to be used in the dictionaries
Have NOT updated the dictionaries
updated rad_decode() to verify new types

20 years ago If we don't have threads, don't use pthread functions
aland [Mon, 15 Sep 2003 17:12:45 +0000 (17:12 +0000)]
If we don't have threads, don't use pthread functions

20 years agoAdd LGPL boilerplate for files from which it is missing.
phampson [Fri, 12 Sep 2003 19:25:28 +0000 (19:25 +0000)]
Add LGPL boilerplate for files from which it is missing.
Patch from Nicolas Baradakis <nbk@sitadelle.com>.

20 years agoConsider the account locked either if Dialup-Access == FALSE or if it is not set...
kkalev [Fri, 12 Sep 2003 13:38:46 +0000 (13:38 +0000)]
Consider the account locked either if Dialup-Access == FALSE or if it is not set at all

20 years agoCorrect GPL boilerplate in files which had it wrong or with typos.
phampson [Thu, 11 Sep 2003 12:48:25 +0000 (12:48 +0000)]
Correct GPL boilerplate in files which had it wrong or with typos.
Patch from Nicolas Baradakis <nbk@sitadelle.com>

20 years agoAdd GNU GPLv2 boilerplate to the top of files which were missing from it.
phampson [Thu, 11 Sep 2003 00:53:59 +0000 (00:53 +0000)]
Add GNU GPLv2 boilerplate to the top of files which were missing from it.
Patch from Nicholas Baradakis [nbk@sitadelle.com]

20 years ago More RADIUS RFC's
aland [Wed, 10 Sep 2003 21:40:07 +0000 (21:40 +0000)]
More RADIUS RFC's

20 years ago New RFC's about RADIUS. 3579 and 3580 to follow when issued.
aland [Wed, 10 Sep 2003 21:39:01 +0000 (21:39 +0000)]
New RFC's about RADIUS.  3579 and 3580 to follow when issued.

20 years ago Minor updates
aland [Wed, 10 Sep 2003 18:57:10 +0000 (18:57 +0000)]
Minor updates

20 years ago attributes of type 'int' require a value
aland [Wed, 10 Sep 2003 14:20:58 +0000 (14:20 +0000)]
attributes of type 'int' require a value

Patch from Peter Stamfest