freeradius.git
23 years ago Create the request->reply data structure as soon as the request
aland [Mon, 2 Oct 2000 15:30:52 +0000 (15:30 +0000)]
Create the request->reply data structure as soon as the request
passes a number of sanity checks.  After this point (rad_process),
the server will send a reply (reject or otherwise), so we might
as well have the reply structure sitting around.

Updated authorization, authentication, and accounting to
use request->reply everywhere.

Updated the module functions to pull the check/reply items out of
the 'request' structure, instead of passing them around as
seperate variables.

All of the modules still need to be updated for this new API.

The changes in auth.c drop the 'user_msg'.  There are a bunch
of 'FIXME's in the source now.

23 years ago commited fix so that the module builds without the user collision
aland [Mon, 2 Oct 2000 14:47:52 +0000 (14:47 +0000)]
commited fix so that the module builds without the user collision
code.

23 years agoDocumentation for user collision code
jcarneal [Sun, 1 Oct 2000 23:03:29 +0000 (23:03 +0000)]
Documentation for user collision code

23 years agoAdded user collision code to cached passwd. Changed authenticate function to accept...
jcarneal [Sun, 1 Oct 2000 22:05:45 +0000 (22:05 +0000)]
Added user collision code to cached passwd.  Changed authenticate function to accept and pass check/reply pairs

23 years agoAdded user collision code to cached passwd
jcarneal [Sun, 1 Oct 2000 22:03:59 +0000 (22:03 +0000)]
Added user collision code to cached passwd

23 years agoBugfix for DEFAULT users with user collision code
jcarneal [Sun, 1 Oct 2000 21:59:53 +0000 (21:59 +0000)]
Bugfix for DEFAULT users with user collision code

23 years agoUpdated xxx_authenticate() to accept check/reply pairs
jcarneal [Sun, 1 Oct 2000 21:59:14 +0000 (21:59 +0000)]
Updated xxx_authenticate() to accept check/reply pairs

23 years agoChanged module_authenicate function to accept check/reply pairs
jcarneal [Sun, 1 Oct 2000 21:58:34 +0000 (21:58 +0000)]
Changed module_authenicate function to accept check/reply pairs

23 years agoChanged rad_check_password() to pass user_reply to authenticate funciton
jcarneal [Sun, 1 Oct 2000 21:57:59 +0000 (21:57 +0000)]
Changed rad_check_password() to pass user_reply to authenticate funciton

23 years agoChanged module_authenticate function parameters
jcarneal [Sun, 1 Oct 2000 21:56:58 +0000 (21:56 +0000)]
Changed module_authenticate function parameters

23 years agoAdded user collision code for users file only
jcarneal [Sat, 30 Sep 2000 21:50:58 +0000 (21:50 +0000)]
Added user collision code for users file only

23 years agoAdded DEBUG for user collide code
jcarneal [Sat, 30 Sep 2000 21:50:07 +0000 (21:50 +0000)]
Added DEBUG for user collide code

23 years agoAdded --with-user-collide
jcarneal [Sat, 30 Sep 2000 21:49:28 +0000 (21:49 +0000)]
Added --with-user-collide

23 years agoAdded #undef WITH_USERCOLLIDE
jcarneal [Sat, 30 Sep 2000 21:48:46 +0000 (21:48 +0000)]
Added #undef WITH_USERCOLLIDE

23 years agoAdded --with-usercollide option (hopefully correctly)
jcarneal [Sat, 30 Sep 2000 21:47:14 +0000 (21:47 +0000)]
Added --with-usercollide option (hopefully correctly)

23 years ago Gnome MIB for FreeRADIUS, as submitted by
aland [Fri, 29 Sep 2000 18:52:09 +0000 (18:52 +0000)]
Gnome MIB for FreeRADIUS, as submitted by
Jochen Friedrich <jochen+freeradius-devel@scram.de>

For others, see:

http://www.gxsnmp.org/nic/

23 years agoAdded trivial patch to show which list a module is added to during debug
jcarneal [Fri, 29 Sep 2000 17:21:19 +0000 (17:21 +0000)]
Added trivial patch to show which list a module is added to during debug

23 years ago added 'static const char rcsid[]', so we can tell which version
aland [Fri, 29 Sep 2000 14:43:37 +0000 (14:43 +0000)]
added 'static const char rcsid[]', so we can tell which version
of what is being built

23 years ago minor bug fix by Jochen Friedrich <jochen+freeradius-devel@scram.de>
aland [Fri, 29 Sep 2000 14:41:06 +0000 (14:41 +0000)]
minor bug fix by Jochen Friedrich <jochen+freeradius-devel@scram.de>

23 years ago new attributes from Chris Adams <cmadams@hiwaay.net>
aland [Thu, 28 Sep 2000 19:36:24 +0000 (19:36 +0000)]
new attributes from Chris Adams <cmadams@hiwaay.net>

23 years ago redback dictionary supplied by Chris Adams <cmadams@hiwaay.net>
aland [Thu, 28 Sep 2000 19:27:43 +0000 (19:27 +0000)]
redback dictionary supplied by Chris Adams <cmadams@hiwaay.net>

From http://hiwaay.net/~cmadams/files/cistron/

23 years agoAdded ability to send multiple, distinct packets.
jcarneal [Thu, 28 Sep 2000 00:19:44 +0000 (00:19 +0000)]
Added ability to send multiple, distinct packets.

23 years ago let's see people get credit for their work...
aland [Tue, 26 Sep 2000 20:45:47 +0000 (20:45 +0000)]
let's see people get credit for their work...

23 years ago snmp / SMUX changes to make the server listen on the smux FD,
aland [Tue, 26 Sep 2000 20:39:24 +0000 (20:39 +0000)]
snmp / SMUX changes to make the server listen on the smux FD,
and handle snmp / smux requests.

Not tested.

23 years ago minor cleanups and code changes
aland [Tue, 26 Sep 2000 20:38:26 +0000 (20:38 +0000)]
minor cleanups and code changes

23 years ago new header file, for simplicity
aland [Tue, 26 Sep 2000 20:06:26 +0000 (20:06 +0000)]
new header file, for simplicity

23 years ago added WITH_SNMP to output
aland [Tue, 26 Sep 2000 19:55:07 +0000 (19:55 +0000)]
added WITH_SNMP to output

23 years ago smux header file, from patch by
aland [Tue, 26 Sep 2000 17:16:48 +0000 (17:16 +0000)]
smux header file, from patch by
Jochen Friedrich <jochen+freeradius-devel@scram.de>

23 years ago adding SNMP / SMUX support to the server, from patches by
aland [Tue, 26 Sep 2000 17:14:41 +0000 (17:14 +0000)]
adding SNMP / SMUX support to the server, from patches by
Jochen Friedrich <jochen+freeradius-devel@scram.de>

- adding sources to the tree
- updating make file

23 years ago first step of snmp/smux patches from
aland [Tue, 26 Sep 2000 17:02:09 +0000 (17:02 +0000)]
first step of snmp/smux patches from
Jochen Friedrich <jochen+freeradius-devel@scram.de>

- configuration settings, no source code changes

23 years ago grr... corrected dumb typo
aland [Tue, 26 Sep 2000 16:18:44 +0000 (16:18 +0000)]
grr... corrected dumb typo

23 years ago print pid's as (int) to radiusd.pid
aland [Tue, 26 Sep 2000 15:57:30 +0000 (15:57 +0000)]
print pid's as (int) to radiusd.pid

if proxy_retry_delay == 0, then don't bother doing proxy retries,
as we assume that proxy+synchronous == TRUE.

23 years ago added targets for radzap.o and radwho.o
aland [Mon, 25 Sep 2000 20:11:22 +0000 (20:11 +0000)]
added targets for radzap.o and radwho.o

23 years ago re-arranged #include lines
aland [Mon, 25 Sep 2000 20:07:59 +0000 (20:07 +0000)]
re-arranged #include lines

23 years ago added explicit targets for conffile.c, log.c, and timestr.c
aland [Mon, 25 Sep 2000 20:02:54 +0000 (20:02 +0000)]
added explicit targets for conffile.c, log.c, and timestr.c

23 years ago cleaning up #include files
aland [Mon, 25 Sep 2000 19:56:23 +0000 (19:56 +0000)]
cleaning up #include files

23 years ago updated rcsid, instead of sccs_id
aland [Mon, 25 Sep 2000 19:55:57 +0000 (19:55 +0000)]
updated rcsid, instead of sccs_id

23 years ago cleaning up #include files
aland [Mon, 25 Sep 2000 19:50:52 +0000 (19:50 +0000)]
cleaning up #include files

23 years ago cleaning up #includes
aland [Mon, 25 Sep 2000 19:45:28 +0000 (19:45 +0000)]
cleaning up #includes

23 years ago re-arranging header files
aland [Mon, 25 Sep 2000 19:44:12 +0000 (19:44 +0000)]
re-arranging header files

23 years ago cleaning up #include files, moving them around, deleting not-needed
aland [Mon, 25 Sep 2000 19:40:09 +0000 (19:40 +0000)]
cleaning up #include files, moving them around, deleting not-needed
ones, added #if wrappers

23 years ago added #if wrappers for #include files
aland [Mon, 25 Sep 2000 19:39:34 +0000 (19:39 +0000)]
added #if wrappers for #include files

23 years ago added checks for netinet/in.h, and sys/types.h
aland [Mon, 25 Sep 2000 19:39:19 +0000 (19:39 +0000)]
added checks for netinet/in.h, and sys/types.h

23 years ago fixed typos
aland [Mon, 25 Sep 2000 17:48:23 +0000 (17:48 +0000)]
fixed typos

23 years ago changed hard-coded 0x7f00000001 to INADDR_LOOPBACK, and
aland [Mon, 25 Sep 2000 15:44:35 +0000 (15:44 +0000)]
changed hard-coded 0x7f00000001 to INADDR_LOOPBACK, and
ensured that INADDR_{ANY,LOOPBACK,NONE} are defined.

23 years ago if the realm is a LOCAL one, then still add the 'Realm' attribute,
aland [Mon, 25 Sep 2000 15:24:05 +0000 (15:24 +0000)]
if the realm is a LOCAL one, then still add the 'Realm' attribute,
but don't actually proxy the packet, as we'll end up handling
it anyhow.

This allows the administrator to use Proxy-To-Realm := "localrealm",
and NOT have the server send itself packets in an infinite loop.

23 years ago partial update of patch from "Bruno L. F. Cabral" <bruno@openline.com.br>
aland [Fri, 22 Sep 2000 18:11:27 +0000 (18:11 +0000)]
partial update of patch from "Bruno L. F. Cabral" <bruno@openline.com.br>

Untested...

23 years ago removed Cistron spec file.
aland [Fri, 22 Sep 2000 18:06:32 +0000 (18:06 +0000)]
removed Cistron spec file.

Added FreeRADIUS spec file, as given by
"Bruno L. F. Cabral" <bruno@openline.com.br>

23 years ago update mkinstalldirs location to coddle dumb OS's
aland [Thu, 21 Sep 2000 14:50:13 +0000 (14:50 +0000)]
update mkinstalldirs location to coddle dumb OS's

23 years ago ALWAYS look up host names to IP addresses, otherwise stuff really
aland [Thu, 14 Sep 2000 18:41:51 +0000 (18:41 +0000)]
ALWAYS look up host names to IP addresses, otherwise stuff really
fails

23 years ago updated 'compat' mode logic to hopefully work a little better.
aland [Thu, 14 Sep 2000 18:14:01 +0000 (18:14 +0000)]
updated 'compat' mode logic to hopefully work a little better.

Bugs noted by "Bruno L. F. Cabral" <bruno@openline.com.br>

23 years ago last change to update new libltdl location
aland [Thu, 14 Sep 2000 18:04:35 +0000 (18:04 +0000)]
last change to update new libltdl location

23 years ago updated 'distclean' for new location of libltdl
aland [Thu, 14 Sep 2000 15:44:59 +0000 (15:44 +0000)]
updated 'distclean' for new location of libltdl

23 years ago use variables LIBLTDL and INCLTDL, instead of hard-coded paths.
aland [Thu, 14 Sep 2000 15:28:38 +0000 (15:28 +0000)]
use variables LIBLTDL and INCLTDL, instead of hard-coded paths.
These variables can get updated by the 'configure' scripts,
if the user already has libltdl on their system.

23 years ago moved libltdl up a directory, to keep the GNU libtool
aland [Thu, 14 Sep 2000 15:26:18 +0000 (15:26 +0000)]
moved libltdl up a directory, to keep the GNU libtool
scripts happy

23 years ago find and substitute the variable top_builddir
aland [Thu, 14 Sep 2000 15:25:48 +0000 (15:25 +0000)]
find and substitute the variable top_builddir

23 years ago check if libltdl is to be installable, and set LIBLTDL and INCLTDL
aland [Thu, 14 Sep 2000 15:19:53 +0000 (15:19 +0000)]
check if libltdl is to be installable, and set LIBLTDL and INCLTDL
to the appropriate paths

23 years ago don't run dynamic log code, as it should be re-written
aland [Wed, 13 Sep 2000 18:07:19 +0000 (18:07 +0000)]
don't run dynamic log code, as it should be re-written

23 years ago updated to use radlog() instead of log(), to avoid any possible
aland [Wed, 13 Sep 2000 16:27:19 +0000 (16:27 +0000)]
updated to use radlog() instead of log(), to avoid any possible
conflicts with the math library log() function.

23 years ago changed log() to radlog(). Over-loading function names
aland [Wed, 13 Sep 2000 16:18:35 +0000 (16:18 +0000)]
changed log() to radlog().  Over-loading function names
is probably a bad thing...

23 years ago actually print out the error, if we have a problem in select()
aland [Wed, 13 Sep 2000 16:13:33 +0000 (16:13 +0000)]
actually print out the error, if we have a problem in select()

23 years ago a number of more updates to clean up the man pages
aland [Thu, 7 Sep 2000 20:17:33 +0000 (20:17 +0000)]
a number of more updates to clean up the man pages

23 years ago formatting changes
aland [Thu, 7 Sep 2000 19:57:57 +0000 (19:57 +0000)]
formatting changes

23 years ago set Auth-Type := again...
aland [Thu, 7 Sep 2000 19:45:12 +0000 (19:45 +0000)]
set Auth-Type := again...

23 years ago Cistron 'users' file compatibility mode is off, by default
aland [Wed, 6 Sep 2000 16:25:47 +0000 (16:25 +0000)]
Cistron 'users' file compatibility mode is off, by default

23 years ago added support for a Cistron 'compat' mode, so that people can
aland [Wed, 6 Sep 2000 16:25:14 +0000 (16:25 +0000)]
added support for a Cistron 'compat' mode, so that people can
copy over their old 'users' file, and have them mostly work
with FreeRADIUS

23 years ago more documentation, more examples
aland [Wed, 6 Sep 2000 15:47:37 +0000 (15:47 +0000)]
more documentation, more examples

23 years ago Place-holder file for accounting users file
aland [Tue, 5 Sep 2000 18:00:42 +0000 (18:00 +0000)]
Place-holder file for accounting users file

23 years ago added even more text. It might actually make sense now.
aland [Tue, 5 Sep 2000 17:56:46 +0000 (17:56 +0000)]
added even more text.  It might actually make sense now.

23 years ago more minor updates
aland [Tue, 5 Sep 2000 17:07:14 +0000 (17:07 +0000)]
more minor updates

23 years ago New documentation describing the format of the 'users' file.
aland [Tue, 5 Sep 2000 17:04:53 +0000 (17:04 +0000)]
New documentation describing the format of the 'users' file.

This should help to make some things clearer...

23 years ago added a lot of text describing the format of the configuration
aland [Tue, 5 Sep 2000 16:37:00 +0000 (16:37 +0000)]
added a lot of text describing the format of the configuration
file.

23 years ago updated the Auth-Type attributes to use ':=' and '+=', where
aland [Tue, 5 Sep 2000 16:13:37 +0000 (16:13 +0000)]
updated the Auth-Type attributes to use ':=' and '+=', where
appropriate

23 years ago *add* in the auth-tyep attribute, and don't *over-ride* it.
aland [Tue, 5 Sep 2000 16:11:17 +0000 (16:11 +0000)]
*add* in the auth-tyep attribute, and don't *over-ride* it.

23 years ago update the configuration file reader to ignore semi-colons
aland [Tue, 5 Sep 2000 14:40:22 +0000 (14:40 +0000)]
update the configuration file reader to ignore semi-colons

23 years agoFixed compilation for OpenLDAP _without_ Cyrus SASL libraries
pam [Tue, 5 Sep 2000 07:12:13 +0000 (07:12 +0000)]
Fixed compilation for OpenLDAP _without_ Cyrus SASL libraries
Fixed module operation if only authentication is done via LDAP (no authorization)
Fixed module to support new instance framework

23 years ago configuration option to turn DNS lookups on/off.
aland [Fri, 1 Sep 2000 19:36:22 +0000 (19:36 +0000)]
configuration option to turn DNS lookups on/off.
Removed the now-redundant command-line option to do the same
thing.

23 years ago configuration option to turn DNS lookups on or off.
aland [Fri, 1 Sep 2000 19:33:24 +0000 (19:33 +0000)]
configuration option to turn DNS lookups on or off.

23 years ago add port numbers to log messages about requests from/to clients.
aland [Fri, 1 Sep 2000 18:21:44 +0000 (18:21 +0000)]
add port numbers to log messages about requests from/to clients.
e.g. "127.0.0.1:1038", instead of "127.0.0.1"

If we see a duplicate request, then send the duplicate reply
to the port of the *new* request, not the port of the *old* request

23 years ago the setuptimeout() difference MAY be negative, so we short-circuit
aland [Fri, 1 Sep 2000 17:58:25 +0000 (17:58 +0000)]
the setuptimeout() difference MAY be negative, so we short-circuit
if it's <=0, not if it's ==0.

Also, if the smallest is < 0, then we set it to zero.

23 years ago only kill all of the processes in the process group if we're
aland [Fri, 1 Sep 2000 15:38:50 +0000 (15:38 +0000)]
only kill all of the processes in the process group if we're
the process group leader.

23 years ago add destination port to the debugging output, so we can
aland [Fri, 1 Sep 2000 14:52:14 +0000 (14:52 +0000)]
add destination port to the debugging output, so we can
see where the packet is going.

23 years ago made pairlist_read take a PAIR_LIST **, and return 0/-1 for OK/ERROR
aland [Fri, 1 Sep 2000 14:43:46 +0000 (14:43 +0000)]
made pairlist_read take a PAIR_LIST **, and return 0/-1 for OK/ERROR

This allows the functions calling it to tell the difference between
an empty PAIR_LIST, and an erroneous one.

23 years ago corrected behaviour of setuptimeout() when the curreq->timestamp
aland [Fri, 1 Sep 2000 13:56:25 +0000 (13:56 +0000)]
corrected behaviour of setuptimeout() when the curreq->timestamp
is zero.  Bug noted by Alan Curry.

23 years ago Patches from "Alan Curry" <pacman-radius@cqc.com>
aland [Thu, 31 Aug 2000 21:07:27 +0000 (21:07 +0000)]
Patches from "Alan Curry" <pacman-radius@cqc.com>

I invented a new structure called CONF_ITEM, and made both CONF_SECTION
and CONF_PAIR subclasses (in the C-only libXt/libgtk style) of it. I also
made all the CONF_* structs opaque to everything outside conffile.c, which I
gather was the original intent since everything is using those *_next()
accessor functions instead of walking the ->next list directly.

The semicolon stuff goes away, and now you can mix pairs (including
word-on-a-line-by-itself) with sections, and order is preserved:

23 years ago cleaned up option handling to make somewhat more sense
aland [Thu, 31 Aug 2000 20:52:36 +0000 (20:52 +0000)]
cleaned up option handling to make somewhat more sense

23 years ago made the dictionary case insensitive, by default. The user
aland [Thu, 31 Aug 2000 20:40:36 +0000 (20:40 +0000)]
made the dictionary case insensitive, by default.  The user
can still over-ride this on the configure line.

Added -D_REENTRANT to CFLAGS, if building with threads.  This
tells systems like Solaris to be more careful...

23 years ago made internal version of strncasecmp actually case insensitive
aland [Thu, 31 Aug 2000 20:38:48 +0000 (20:38 +0000)]
made internal version of strncasecmp actually case insensitive

23 years ago made all of the 'strcmp' operations use DICT_STRCMP, which
aland [Thu, 31 Aug 2000 20:32:27 +0000 (20:32 +0000)]
made all of the 'strcmp' operations use DICT_STRCMP, which
is case (in)sensitive, depending on the system configuration

23 years ago minor cleanups on code, with more comments, less global variables,
aland [Fri, 25 Aug 2000 19:49:19 +0000 (19:49 +0000)]
minor cleanups on code, with more comments, less global variables,
but no functionality changes

23 years ago print out thread numbers, not pthread_id. pthread_id MAY be
aland [Fri, 25 Aug 2000 18:23:59 +0000 (18:23 +0000)]
print out thread numbers, not pthread_id.  pthread_id MAY be
a structure/pointer/integer on different platforms, so it's not
safe to print it out like an 'int'.

Each thread now has a unique number assigned to it, and these
numbers are printed out during debugging.

23 years ago renamed a few variables for RFC complicance.
aland [Fri, 25 Aug 2000 15:09:14 +0000 (15:09 +0000)]
renamed a few variables for RFC complicance.

Patch from Alan Curry

23 years ago Patch from "Alan Curry" <pacman-radius@cqc.com>
aland [Fri, 25 Aug 2000 14:55:56 +0000 (14:55 +0000)]
Patch from "Alan Curry" <pacman-radius@cqc.com>

Allow ';' to denote empty conf-sections.

23 years ago Patches from "Alan Curry" <pacman-radius@cqc.com>
aland [Fri, 25 Aug 2000 14:48:14 +0000 (14:48 +0000)]
Patches from  "Alan Curry" <pacman-radius@cqc.com>

Move the module auth/acct/autz decisions from raddb/modules
to raddb/radiusd.conf.

Add module instantiation, to have future allowances for
multiple versions of the same module, with different configurations.

Associated minor cleanups

23 years ago cleaned up the handling of proxy replies, so that we don't have
aland [Fri, 25 Aug 2000 14:29:20 +0000 (14:29 +0000)]
cleaned up the handling of proxy replies, so that we don't have
un-initialized variables.

Bug found by "Alan Curry" <pacman-radius@cqc.com>

23 years ago converted proxy_setuptimeout() to a *generic* setuptimeout()
aland [Thu, 24 Aug 2000 21:52:29 +0000 (21:52 +0000)]
converted proxy_setuptimeout() to a *generic* setuptimeout()
function, which waits the maximum amount of time before it wakes
up.

This code is a lot better than the commit from an hour ago.

23 years ago fix the server so that it sleeps for as long as possible
aland [Thu, 24 Aug 2000 20:00:00 +0000 (20:00 +0000)]
fix the server so that it sleeps for as long as possible
between requests.

i.e. If the proxy code needs servicing in N seconds, sleep for N
seconds.  If the master request list needs servicing sooner, then
sleep for less time.

If nothing needs servicing, then sleep forever, until a new
packet comes in.

23 years ago if the packet code is well-known (i.e. a standard), then
aland [Thu, 24 Aug 2000 19:38:59 +0000 (19:38 +0000)]
if the packet code is well-known (i.e. a standard), then
rad_recv() and rad_send() now print out the RFC names for the
packet code, instead of 'code=4', etc.

This makes more sense to me.

23 years ago minor re-arrangements
aland [Thu, 24 Aug 2000 19:23:59 +0000 (19:23 +0000)]
minor re-arrangements

23 years ago added more value names for integer attributes, as taken from rfc2865
aland [Tue, 22 Aug 2000 14:57:51 +0000 (14:57 +0000)]
added more value names for integer attributes, as taken from rfc2865