freeradius.git
19 years ago reap children in a child thread, not in the main server thread.
aland [Wed, 16 Feb 2005 18:54:52 +0000 (18:54 +0000)]
reap children in a child thread, not in the main server thread.

This minimizes locks

19 years ago re-write of handling SIGCHLD.
aland [Wed, 16 Feb 2005 18:50:29 +0000 (18:50 +0000)]
re-write of handling SIGCHLD.

delete sigchld handler.  It's too hard to coordinate getting the
child pid & status from the thread that caught the signal to the
thread that (maybe) is waiting for it.

Instead, don't save child pid's if we've been told someone will
be waiting for it.  They will call waitpid() and clean up the zombie.

DO save child pid's if the caller isn't going to wait.  Someone
needs to call waitpid() on the EXACT PID number, to avoid grabbing
a PID that an "exec wait" thread is waiting for.

create new function: reap_children(), and scatter calls to it
in a number of places.  This ensures that any child will have
waitpid() called quickly, and will be reaped.

19 years ago removed external declaration of rad_savepid. This is a Good Thing.
aland [Wed, 16 Feb 2005 01:36:35 +0000 (01:36 +0000)]
removed external declaration of rad_savepid.  This is a Good Thing.

Moved the function in threads.c, and declared it "static"

19 years ago cat request_process.c | tr -d \\r > foo;mv foo request_process.c
aland [Wed, 16 Feb 2005 01:31:19 +0000 (01:31 +0000)]
cat request_process.c | tr -d \\r > foo;mv foo request_process.c

19 years ago Remove serious limits on the length of names in DICT_VALUE.
aland [Wed, 16 Feb 2005 01:23:55 +0000 (01:23 +0000)]
Remove serious limits on the length of names in DICT_VALUE.
It's now 128, but can easily be bumped up.

19 years ago Removed restrictions on vendor name length. (realistically)
aland [Wed, 16 Feb 2005 01:13:39 +0000 (01:13 +0000)]
Removed restrictions on vendor name length. (realistically)

It's now 1024, which should be large enough for most people.

19 years ago Document new "virtual" modules
aland [Tue, 15 Feb 2005 23:48:47 +0000 (23:48 +0000)]
Document new "virtual" modules

19 years ago Make the "compile module" code actually return, rather than call
aland [Tue, 15 Feb 2005 23:43:47 +0000 (23:43 +0000)]
Make the "compile module" code actually return, rather than call
exit().  This means that we have a "stack" of errors to print if
something goes wrong, so we can track what referred to the item
making the problem.

Allow redundant{} etc. sections to have second names,
and use those names for printing.

Allow subsections in "instantiate", and use those subsections
as "virtual" modules, so that you don't have to copy blocks
of text, if the same kind of redundancy/fail-over is done in
multiple places.

This fixes bug #181

These subsections will later allow us to use the subsection names
in xlat's.  e.g.

redundant magic_ldap {
ldap1
ldap2
}

... %{magic_ldap: query...}, which will fail-over from ldap1 to ldap2

19 years ago Less code, less work
aland [Tue, 15 Feb 2005 19:16:17 +0000 (19:16 +0000)]
Less code, less work

19 years ago Move SIGCHLD handler to threads.c, no one else needs it
aland [Tue, 15 Feb 2005 19:10:35 +0000 (19:10 +0000)]
Move SIGCHLD handler to threads.c, no one else needs it

19 years ago Check for maximum argv.
aland [Tue, 15 Feb 2005 19:10:02 +0000 (19:10 +0000)]
Check for maximum argv.

NULL terminate the argv array.

19 years agoChange session_zap to include a session_time argument.
kkalev [Tue, 15 Feb 2005 18:28:11 +0000 (18:28 +0000)]
Change session_zap to include a session_time argument.
In simultaneous-use check in rlm_sql, don't set default protocol to PPP but
rather try to find it

19 years agoAdd Huntgroup support in preacct also
kkalev [Tue, 15 Feb 2005 18:22:57 +0000 (18:22 +0000)]
Add Huntgroup support in preacct also

19 years ago The whole 2-names for sections confuses the %{config:...} expansion,
aland [Tue, 15 Feb 2005 01:21:57 +0000 (01:21 +0000)]
The whole 2-names for sections confuses the %{config:...} expansion,
so we allow the second name to be referenced, too.

19 years ago Prototype for new function
aland [Tue, 15 Feb 2005 01:20:19 +0000 (01:20 +0000)]
Prototype for new function

19 years ago Handle the case where the threads aren't initialized
aland [Tue, 15 Feb 2005 01:19:22 +0000 (01:19 +0000)]
Handle the case where the threads aren't initialized

19 years ago put argv & response from child into different buffers.
aland [Tue, 15 Feb 2005 01:15:27 +0000 (01:15 +0000)]
put argv & response from child into different buffers.

19 years ago Catch border cases
aland [Tue, 15 Feb 2005 00:58:18 +0000 (00:58 +0000)]
Catch border cases

19 years ago Use new library functions hex2bin/bin2hex
aland [Mon, 14 Feb 2005 21:12:16 +0000 (21:12 +0000)]
Use new library functions hex2bin/bin2hex

19 years ago use new hex2bin function to be more forgiving for NT-Passwords
aland [Mon, 14 Feb 2005 21:02:35 +0000 (21:02 +0000)]
use new hex2bin function to be more forgiving for NT-Passwords

19 years ago corrected typo
aland [Mon, 14 Feb 2005 20:59:14 +0000 (20:59 +0000)]
corrected typo

19 years ago Moved hex2bin && bin2hex here from multiple locations in the source
aland [Mon, 14 Feb 2005 20:57:24 +0000 (20:57 +0000)]
Moved hex2bin && bin2hex here from multiple locations in the source

19 years agoAdd documentation patches from Thor Spruyt. This closes bugs 170,171
kkalev [Mon, 14 Feb 2005 11:58:53 +0000 (11:58 +0000)]
Add documentation patches from Thor Spruyt. This closes bugs 170,171

19 years agoTry building SNMP support with -lkstat for Solaris 9
phampson [Sun, 13 Feb 2005 01:01:57 +0000 (01:01 +0000)]
Try building SNMP support with -lkstat for Solaris 9

19 years ago Don't read sub-directories when $INCLUDEing "dir/"
aland [Fri, 11 Feb 2005 21:59:31 +0000 (21:59 +0000)]
Don't read sub-directories when $INCLUDEing "dir/"

19 years ago Don't try to read directories, either
aland [Fri, 11 Feb 2005 21:57:46 +0000 (21:57 +0000)]
Don't try to read directories, either

19 years ago When in authorize/etc in policies, don't allow it to call another
aland [Fri, 11 Feb 2005 21:51:29 +0000 (21:51 +0000)]
When in authorize/etc in policies, don't allow it to call another
modules authenticate/etc phase.

We may want to loosen this restriction in the future...

19 years ago free policy types call/return/etc
aland [Fri, 11 Feb 2005 21:47:51 +0000 (21:47 +0000)]
free policy types call/return/etc

Allow policies to call modules.  Weird, wild, stuff.

19 years ago Fixed typo
aland [Fri, 11 Feb 2005 16:52:04 +0000 (16:52 +0000)]
Fixed typo

19 years ago Allow !=, too
aland [Fri, 11 Feb 2005 01:02:20 +0000 (01:02 +0000)]
Allow !=, too

19 years ago Policy functions can now have return codes. The default is "ok".
aland [Thu, 10 Feb 2005 22:56:37 +0000 (22:56 +0000)]
Policy functions can now have return codes.  The default is "ok".
The return codes are the module return codes, for simplicity.

The return codes can be checked in conditions, so:

if (foo() == ok) {
...
        } else {
...
}

will work.  There's no fail-over, or assignment of return codes
to variables, or possibility to check multiple return codes.

This is NOT a real language.  It's a nasty hack to get interesting
things done...

19 years ago Don't read "foo~" files.
aland [Thu, 10 Feb 2005 22:53:01 +0000 (22:53 +0000)]
Don't read "foo~" files.
Maybe we should make it read only *.conf? ...

19 years ago Docs for latest updates
aland [Thu, 10 Feb 2005 01:33:19 +0000 (01:33 +0000)]
Docs for latest updates

19 years ago Inclusion works:
aland [Thu, 10 Feb 2005 00:24:15 +0000 (00:24 +0000)]
Inclusion works:

include "foo" relative to current directory
include "dir/" include all files in subdirectory

19 years ago Don't leave DIR's open on error.
aland [Thu, 10 Feb 2005 00:22:41 +0000 (00:22 +0000)]
Don't leave DIR's open on error.

Enclose new readdir code in #ifdef HAVE_DIRENT_H, so no one else
breaks

19 years ago re-arrange code, make the parser a little cleaner
aland [Wed, 9 Feb 2005 23:57:02 +0000 (23:57 +0000)]
re-arrange code, make the parser a little cleaner

19 years ago Whoops, use dup(),not dup2()
aland [Wed, 9 Feb 2005 18:32:34 +0000 (18:32 +0000)]
Whoops, use dup(),not dup2()

19 years ago When log_dest == stdout/stderr, DUP it to another fd, close it,
aland [Wed, 9 Feb 2005 18:24:10 +0000 (18:24 +0000)]
When log_dest == stdout/stderr, DUP it to another fd, close it,
and then in the logger, prefer to use mainconfig.radlog_fd.

This allows logging to go to what was stdout/stderr, but doesn't
leave stdout/stderr open for writing by external (forked) programs

19 years agoAdd a patch from Nicolas Baradakis to fix redundant processing in the accounting
kkalev [Wed, 9 Feb 2005 17:59:48 +0000 (17:59 +0000)]
Add a patch from Nicolas Baradakis to fix redundant processing in the accounting
section. This closes bug#173

19 years ago Use correct length of string
aland [Wed, 9 Feb 2005 17:42:47 +0000 (17:42 +0000)]
Use correct length of string

19 years agoAdd a radiusObjectProfile objectclass to be used for creating radius profile
kkalev [Wed, 9 Feb 2005 12:56:19 +0000 (12:56 +0000)]
Add a radiusObjectProfile objectclass to be used for creating radius profile
objects if none other objectclass can be used (like *person objectclass, etc)
Original idea and patch by Novell

19 years agoUpdate example.pl with a patch from Thor Spruyt (bug #195)
kkalev [Wed, 9 Feb 2005 12:48:31 +0000 (12:48 +0000)]
Update example.pl with a patch from Thor Spruyt (bug #195)

19 years agoAdd an rlm_perl patch from Thor Spruyt (bug #196)
kkalev [Wed, 9 Feb 2005 12:46:20 +0000 (12:46 +0000)]
Add an rlm_perl patch from Thor Spruyt (bug #196)

19 years agoUpdate dictionary.garderos with patch from Thor Spruyt (bug #205)
kkalev [Wed, 9 Feb 2005 12:44:12 +0000 (12:44 +0000)]
Update dictionary.garderos with patch from Thor Spruyt (bug #205)

19 years ago conf files can now do:
aland [Wed, 9 Feb 2005 00:51:14 +0000 (00:51 +0000)]
conf files can now do:

$INCLUDE /path/to/dir/

With a trailing "/" at the end, it means "include all files
in that directory, but not the '.' files"

For future expansion.

19 years agoReally stupid typo
kkalev [Wed, 9 Feb 2005 00:06:00 +0000 (00:06 +0000)]
Really stupid typo

19 years ago Don't return binary data
aland [Tue, 8 Feb 2005 23:29:37 +0000 (23:29 +0000)]
Don't return binary data

19 years ago Update documentation for new functionality
aland [Tue, 8 Feb 2005 23:26:58 +0000 (23:26 +0000)]
Update documentation for new functionality

19 years agoMake debug messages on password extraction a little bit more verbose
kkalev [Tue, 8 Feb 2005 23:14:31 +0000 (23:14 +0000)]
Make debug messages on password extraction a little bit more verbose

19 years ago Now that we have MD5-Password and SHA-Password, along with
aland [Tue, 8 Feb 2005 23:13:26 +0000 (23:13 +0000)]
Now that we have MD5-Password and SHA-Password, along with
{User, Crypt, NT, LM}-Password, those attributes should store
the appropriate "hashed" versions of the password.

The PAP module should automagically figure out what to do, based
on which of the above attributes it sees.

19 years ago Added ability for functions to be in conditions. Not perfect yet,
aland [Tue, 8 Feb 2005 21:47:56 +0000 (21:47 +0000)]
Added ability for functions to be in conditions.  Not perfect yet,
but it works...

19 years agoAdd a few more checks for the previous patch
kkalev [Tue, 8 Feb 2005 21:44:06 +0000 (21:44 +0000)]
Add a few more checks for the previous patch

19 years agoAdd another configuration directive, password_radius_attribute. The default is
kkalev [Tue, 8 Feb 2005 21:39:11 +0000 (21:39 +0000)]
Add another configuration directive, password_radius_attribute. The default is
User-Password and it's purpose is to allow administrators to store NT hashes or
other forms of passwords in the userPassword attribute and map them to the
correct radius password attribute

19 years ago Named policies are items just like any other.
aland [Tue, 8 Feb 2005 20:36:23 +0000 (20:36 +0000)]
Named policies are items just like any other.

Remove DOS LF's.

19 years ago When there are errors instantiating a module, don't assume that
aland [Tue, 8 Feb 2005 20:33:50 +0000 (20:33 +0000)]
When there are errors instantiating a module, don't assume that
'ci' is a CONF_SECTION, it may be a CONF_PAIR.  Instead, use the
'lineno' which was defined above.

19 years ago Don't set Framed-MTU in default configuration
aland [Mon, 7 Feb 2005 17:48:29 +0000 (17:48 +0000)]
Don't set Framed-MTU in default configuration

19 years ago Added {SHA, SSHA, MD5, SMD5}-Password attributes for future
aland [Fri, 4 Feb 2005 02:00:08 +0000 (02:00 +0000)]
Added {SHA, SSHA, MD5, SMD5}-Password attributes for future
expansion

19 years agoAdd a few header files
kkalev [Wed, 2 Feb 2005 11:45:17 +0000 (11:45 +0000)]
Add a few header files

19 years ago Removed C++ comment
aland [Mon, 31 Jan 2005 18:55:32 +0000 (18:55 +0000)]
Removed C++ comment

19 years ago Updates from Trapeze
aland [Mon, 31 Jan 2005 18:42:26 +0000 (18:42 +0000)]
Updates from Trapeze

19 years agoAdd second patch from Novell for creating a postauth method in order to
kkalev [Fri, 28 Jan 2005 07:21:43 +0000 (07:21 +0000)]
Add second patch from Novell for creating a postauth method in order to
implement the Novell eDirectory account policy check

19 years ago Text from bug #168
aland [Wed, 26 Jan 2005 20:35:00 +0000 (20:35 +0000)]
Text from bug #168

19 years ago Handle EAP-Success codes a little better
aland [Wed, 26 Jan 2005 20:28:02 +0000 (20:28 +0000)]
Handle EAP-Success codes a little better

Patch from bug #180

19 years agoaddition
pnixon [Wed, 26 Jan 2005 11:18:35 +0000 (11:18 +0000)]
addition

19 years agoLocal-Web specific attributes
pnixon [Sun, 23 Jan 2005 02:08:18 +0000 (02:08 +0000)]
Local-Web specific attributes

19 years ago Check for too small lengths, too
aland [Wed, 19 Jan 2005 00:52:11 +0000 (00:52 +0000)]
Check for too small lengths, too

19 years ago From bug #197
aland [Mon, 10 Jan 2005 20:35:07 +0000 (20:35 +0000)]
From bug #197

19 years agoWhen trying to acquire the detail file lock, sleep more time than rlm_detail
kkalev [Fri, 7 Jan 2005 15:03:52 +0000 (15:03 +0000)]
When trying to acquire the detail file lock, sleep more time than rlm_detail
so that we let rlm_detail win. This should probably at least improve the
locking problems reported.

19 years agoUpdate the TODO file
kkalev [Wed, 5 Jan 2005 16:01:57 +0000 (16:01 +0000)]
Update the TODO file

19 years agoAdd an iPlanet version of the LDAP schema from Daniel Wilson
kkalev [Wed, 5 Jan 2005 15:46:51 +0000 (15:46 +0000)]
Add an iPlanet version of the LDAP schema from Daniel Wilson

19 years ago* Add an sqlrelay functions file. The user_admin page does not currently work. Lookin...
kkalev [Tue, 4 Jan 2005 15:17:28 +0000 (15:17 +0000)]
* Add an sqlrelay functions file. The user_admin page does not currently work. Looking into it.
* Add sqlrelay support in the scripts. Add a sqlrelay_query script to run sqlrelay commands

19 years ago* If date calculation fails, abort
kkalev [Tue, 4 Jan 2005 14:04:00 +0000 (14:04 +0000)]
* If date calculation fails, abort
* Add a backup_radacct script

19 years agoFix a problem when reading username.mappings
kkalev [Tue, 4 Jan 2005 13:17:27 +0000 (13:17 +0000)]
Fix a problem when reading username.mappings

19 years agoAdd a patch from Thor Spruyt to add the new functionality
kkalev [Sun, 2 Jan 2005 14:44:59 +0000 (14:44 +0000)]
Add a patch from Thor Spruyt to add the new functionality

19 years agoAdd patch from Thor Spruyt to include new functionality
kkalev [Sun, 2 Jan 2005 14:43:04 +0000 (14:43 +0000)]
Add patch from Thor Spruyt to include new functionality

19 years agoChange the nas table structure to match the mysql one
kkalev [Sun, 2 Jan 2005 14:33:43 +0000 (14:33 +0000)]
Change the nas table structure to match the mysql one

19 years agoAdd a header with the page encoding before sending any page (header added in config...
kkalev [Sun, 2 Jan 2005 14:09:57 +0000 (14:09 +0000)]
Add a header with the page encoding before sending any page (header added in config.php3)
This closes Bug #153

19 years agoAdd Novell patch for reading the user's Universal Password from LDAP (eDirectory).
kkalev [Sun, 2 Jan 2005 13:36:33 +0000 (13:36 +0000)]
Add Novell patch for reading the user's Universal Password from LDAP (eDirectory).

19 years agoIf we are near a reset then, before doing anything else, change the return value
kkalev [Sun, 2 Jan 2005 10:37:32 +0000 (10:37 +0000)]
If we are near a reset then, before doing anything else, change the return value
to the time left to the next reset, instead of the time left in the counter.
Bug found by fduch@antar.bryansk.ru (Bug #190)

19 years agoAdd an option to rlm_exec to control whether shell escaping is done on
phampson [Wed, 29 Dec 2004 22:52:23 +0000 (22:52 +0000)]
Add an option to rlm_exec to control whether shell escaping is done on
the RADIUS attributes passed into the environment variables.
Also give the return values from programs executed by rlm_exec more
meanings than RLM_MODULE_OK or RLM_MODULE_FAIL, allowing rlm_exec to
participate fully in configurable failover.

19 years agoFix typo
phampson [Wed, 29 Dec 2004 08:25:42 +0000 (08:25 +0000)]
Fix typo

19 years agoCorrectly process the Dialupadmin configuration and perl scripts for the
phampson [Wed, 29 Dec 2004 08:14:58 +0000 (08:14 +0000)]
Correctly process the Dialupadmin configuration and perl scripts for the
correct locations of binaries and configuration files.

19 years agoUpdate to config.sub 2004-11-30 and config.guess 2004-11-12
phampson [Wed, 29 Dec 2004 08:10:49 +0000 (08:10 +0000)]
Update to config.sub 2004-11-30 and config.guess 2004-11-12

19 years agoMore autoheader cleanups. HAVE_REGEX_H is provided by autoconf.h already
phampson [Wed, 29 Dec 2004 06:00:52 +0000 (06:00 +0000)]
More autoheader cleanups. HAVE_REGEX_H is provided by autoconf.h already

19 years agoRollback 1.12, which was comitted with the wrong comment and without the
phampson [Wed, 29 Dec 2004 05:48:40 +0000 (05:48 +0000)]
Rollback 1.12, which was comitted with the wrong comment and without the
rest of the patch.

19 years agoRegenerate configure with autogen.sh
phampson [Wed, 29 Dec 2004 05:45:42 +0000 (05:45 +0000)]
Regenerate configure with autogen.sh

19 years agoMore autoheader updates
phampson [Wed, 29 Dec 2004 05:37:38 +0000 (05:37 +0000)]
More autoheader updates

19 years agoMore autoheader cleanups. Use autoheader for modules that
phampson [Wed, 29 Dec 2004 05:09:02 +0000 (05:09 +0000)]
More autoheader cleanups. Use autoheader for modules that
have AC_CONFIG_HEADER in their configure.in scripts.

19 years agooops. typo
pnixon [Tue, 28 Dec 2004 10:37:55 +0000 (10:37 +0000)]
oops. typo

19 years agoUse Timestamp in Accttime field
pnixon [Sun, 26 Dec 2004 22:48:39 +0000 (22:48 +0000)]
Use Timestamp in Accttime field

19 years agoHistory corrections to match what actually happened with the version
phampson [Thu, 23 Dec 2004 03:10:31 +0000 (03:10 +0000)]
History corrections to match what actually happened with the version
numbers.

19 years agoApply patch from Bugzilla #149 to process REJECT post-auth stanza for rejections
phampson [Thu, 23 Dec 2004 02:08:17 +0000 (02:08 +0000)]
Apply patch from Bugzilla #149 to process REJECT post-auth stanza for rejections
from a home server or external process.

19 years agoAlso add a Makefile.in
kkalev [Tue, 21 Dec 2004 15:11:33 +0000 (15:11 +0000)]
Also add a Makefile.in
We need to copy the configure script from rlm_counter here.

19 years agoAdd the first version of a request caching module. More information in
kkalev [Tue, 21 Dec 2004 15:08:05 +0000 (15:08 +0000)]
Add the first version of a request caching module. More information in
experimental.conf
When creating the datadir, create it with mode 755, not 700. Otherwise, only
root may run radclient.

19 years ago* In bin/snmpfinger also accept @,. in the username
kkalev [Mon, 20 Dec 2004 16:58:16 +0000 (16:58 +0000)]
* In bin/snmpfinger also accept @,. in the username
* If we are stripping realms, then if needed strip them from the data returned by snmpfinger in
  user_finger.php3

19 years agoDebian updates:
phampson [Sun, 19 Dec 2004 02:31:07 +0000 (02:31 +0000)]
Debian updates:
Two second pause during restart
Copyright information about OpenSSL
Versioned dependancies between freeradius package and module packages.

19 years agoRepair 1.0.0 release date
phampson [Sun, 19 Dec 2004 00:52:55 +0000 (00:52 +0000)]
Repair 1.0.0 release date

19 years agoUpdate changelog with 1.0.1's changelog
phampson [Sun, 19 Dec 2004 00:43:18 +0000 (00:43 +0000)]
Update changelog with 1.0.1's changelog

19 years agoChange big-endian detection to use the autoconf-defined macro, not the
phampson [Sun, 19 Dec 2004 00:32:53 +0000 (00:32 +0000)]
Change big-endian detection to use the autoconf-defined macro, not the
sometimes locally defined macro.

19 years agoRerun autogen.sh after changes to build system
phampson [Sun, 19 Dec 2004 00:30:22 +0000 (00:30 +0000)]
Rerun autogen.sh after changes to build system