freeradius.git
23 years agoJeff Carneal <jeff@apex.net>
jcarneal [Sun, 15 Oct 2000 16:26:47 +0000 (16:26 +0000)]
Jeff Carneal <jeff@apex.net>

Added support for spaces in the 'key' string in radiusd.conf.  And damnit
Alan, stop finding things like this :)

23 years agoJeff Carneal <jeff@apex.net>
jcarneal [Sun, 15 Oct 2000 16:23:47 +0000 (16:23 +0000)]
Jeff Carneal <jeff@apex.net>

Trivial doc change to reflect the allowance of spaces in 'key'

23 years agoJeff Carneal <jeff@apex.net>
jcarneal [Sat, 14 Oct 2000 16:31:50 +0000 (16:31 +0000)]
Jeff Carneal <jeff@apex.net>

Minor bug fix.

23 years agoJeff Carneal <jeff@apex.net>
jcarneal [Sat, 14 Oct 2000 16:01:40 +0000 (16:01 +0000)]
Jeff Carneal <jeff@apex.net>

Trivial changes to rlm_acct_unique doc.

23 years agoCommitting file for Alan Curry <pacman-radius@cqc.com> documenting
jcarneal [Sat, 14 Oct 2000 16:00:16 +0000 (16:00 +0000)]
Committing file for Alan Curry <pacman-radius@cqc.com> documenting
the RLM code interface.

23 years agoJeff Carneal <jeff@apex.net>
jcarneal [Sat, 14 Oct 2000 15:56:15 +0000 (15:56 +0000)]
Jeff Carneal <jeff@apex.net>

Added a coupld DEBUGs to rlm_realms.c.  Another bug was causing the
conditions around it to meet, but I had no way to tell until running
gdb.  This will save others that trouble when debugging.

23 years agoJeff Carneal <jeff@apex.net>
jcarneal [Fri, 13 Oct 2000 23:44:19 +0000 (23:44 +0000)]
Jeff Carneal <jeff@apex.net>

rlm_acct_unique documentation

23 years agoJeff Carneal <jeff@apex.net>
jcarneal [Fri, 13 Oct 2000 23:17:17 +0000 (23:17 +0000)]
Jeff Carneal <jeff@apex.net>

Fixed several bugs in rlm_acct_unique.  Added support for:

  acct_unique {
    key = Attr1,Attr2,Attr3
  }

in radiusd.conf.  Seems to work, time will tell...

23 years agoJeff Carneal <jeff@apex.net>
jcarneal [Fri, 13 Oct 2000 22:56:30 +0000 (22:56 +0000)]
Jeff Carneal <jeff@apex.net>

Fixed several bugs in rlm_acct_unique, and added in support for

  acct_unique {
    key = Attr1,Attr2,Attr3
  }

in radiusd.conf.

23 years ago If the proxy reply was an authentication reject, then reject
aland [Fri, 13 Oct 2000 20:41:39 +0000 (20:41 +0000)]
If the proxy reply was an authentication reject, then reject
the user immediately, without going through the authorization
and authentication stages again.

23 years ago added "missing.h", pointed out by Chris Parker <cparker@starnetusa.net>
aland [Fri, 13 Oct 2000 16:26:15 +0000 (16:26 +0000)]
added "missing.h", pointed out by  Chris Parker <cparker@starnetusa.net>

23 years ago bail out of the sanity chekcs if it finds a normal RADIUS attribute
aland [Fri, 13 Oct 2000 16:24:58 +0000 (16:24 +0000)]
bail out of the sanity chekcs if it finds a normal RADIUS attribute
with ID 0.  That's not allowed...

23 years agoJeff Carneal <jeff@apex.net>
jcarneal [Thu, 12 Oct 2000 22:19:52 +0000 (22:19 +0000)]
Jeff Carneal <jeff@apex.net>

Bugfix.  Line 233 of proxy.c read:

if ((realm->ipaddr = htonl(INADDR_LOOPBACK)) &&

That was clobbering the realm->ipaddr.  Should be:

if ((realm->ipaddr == htonl(INADDR_LOOPBACK)) &&

Bug caused the proxy request to always be send to localhost.

23 years agoFrom Jeff Carneal <jeff@apex.net>
jcarneal [Thu, 12 Oct 2000 21:43:30 +0000 (21:43 +0000)]
From Jeff Carneal <jeff@apex.net>

Bugfix.  The getservbyname() was after the read_config files, causing
files.c to think (and assign) auth_port=0 to realms entries when a
port was not specified in the 'realms' file.

23 years agoJeff Carneal <jeff@apex.net>
jcarneal [Thu, 12 Oct 2000 13:51:15 +0000 (13:51 +0000)]
Jeff Carneal <jeff@apex.net>

Adding DEBUGs to read_config_files.  Often little troubles like DNS
will cause a config file read to hang and the user previously had no
way to debug it.

23 years ago<jeff@apex.net> Trivial change to doc file
jcarneal [Wed, 11 Oct 2000 18:10:40 +0000 (18:10 +0000)]
<jeff@apex.net> Trivial change to doc file

23 years ago removed un-needed header files.
aland [Wed, 11 Oct 2000 16:48:28 +0000 (16:48 +0000)]
removed un-needed header files.

Added stdlib.h, to define malloc()

23 years ago updated for new 'radlog', instead of 'log'
aland [Wed, 11 Oct 2000 16:47:33 +0000 (16:47 +0000)]
updated for new 'radlog', instead of 'log'

23 years ago updated comments...
aland [Wed, 11 Oct 2000 15:48:03 +0000 (15:48 +0000)]
updated comments...

23 years ago set the length for the NEW attribute, not the OLD one.
aland [Wed, 11 Oct 2000 15:40:52 +0000 (15:40 +0000)]
set the length for the NEW attribute, not the OLD one.

23 years ago remove un-used configuration entries
aland [Tue, 10 Oct 2000 14:42:24 +0000 (14:42 +0000)]
remove un-used configuration entries

23 years agoAdded 'default=??'
jcarneal [Mon, 9 Oct 2000 16:25:46 +0000 (16:25 +0000)]
Added 'default=??'

23 years agoFixed 80-char width
jcarneal [Mon, 9 Oct 2000 16:22:51 +0000 (16:22 +0000)]
Fixed 80-char width

23 years ago re-formatting of code.
aland [Fri, 6 Oct 2000 19:13:15 +0000 (19:13 +0000)]
re-formatting of code.

Do NOT free the packet raw data after parsing it into VALUE_PAIR
structures.  This allows other code (e.g. rlm_raw_log) to look
at the raw data received by the server.

23 years ago update for INADDR_NONE
aland [Fri, 6 Oct 2000 15:58:47 +0000 (15:58 +0000)]
update for INADDR_NONE

23 years ago one more update to ip_addr()
aland [Fri, 6 Oct 2000 15:57:06 +0000 (15:57 +0000)]
one more update to ip_addr()

23 years ago ip_getaddr() now returns INADDR_NONE if it was unable to do the
aland [Fri, 6 Oct 2000 15:52:27 +0000 (15:52 +0000)]
ip_getaddr() now returns INADDR_NONE if it was unable to do the
DNS lookup.  It also checks if the address looked up via DNS is
a legal 32-bit address.  If not, it returns INADDR_NONE

Fixed radiusd & radzap for this change.

23 years ago Patch from "Alan Curry" <pacman-radius@cqc.com>
aland [Thu, 5 Oct 2000 16:54:27 +0000 (16:54 +0000)]
Patch from "Alan Curry" <pacman-radius@cqc.com>

Update the module return codes to have the following values:

Reject, Fail, OK, Handled, Invalid, Userlock, Notfound, No-op
Updated

Previously, there were only the first 4.

This patch does *not* include the fail-over & 'modcall' code

23 years ago changed the name from Cistron to FreeRADIUS
aland [Thu, 5 Oct 2000 16:40:19 +0000 (16:40 +0000)]
changed the name from Cistron to FreeRADIUS

23 years ago Authtype grouping patch from "Alan Curry" <pacman-radius@cqc.com>
aland [Thu, 5 Oct 2000 15:47:32 +0000 (15:47 +0000)]
Authtype grouping patch from "Alan Curry" <pacman-radius@cqc.com>

This patch allows you to have configurable fail-over for the
authentication types, and to set the authentication types for
each authentication module.

23 years agoJeff Carneal (jeff@apex.net)
jcarneal [Tue, 3 Oct 2000 19:50:25 +0000 (19:50 +0000)]
Jeff Carneal (jeff@apex.net)

Oops, it's 'radiusd.conf' not 'radius.conf'

23 years agoScript by Jeff Carneal (jeff@apex.net)
jcarneal [Tue, 3 Oct 2000 17:09:43 +0000 (17:09 +0000)]
Script by Jeff Carneal (jeff@apex.net)

Script used to generate random usernames and passwords for testing

23 years agoDoc file from Jeff Carneal <jeff@apex.net>
jcarneal [Tue, 3 Oct 2000 17:08:12 +0000 (17:08 +0000)]
Doc file from Jeff Carneal <jeff@apex.net>

Describes methods of testing auth speed on your radius server

23 years agoTrivial change to document to reflect radius.conf instead of -c option.
jcarneal [Tue, 3 Oct 2000 15:07:29 +0000 (15:07 +0000)]
Trivial change to document to reflect radius.conf instead of -c option.

23 years ago SMUX patches from Jochen Friedrich <jochen+freeradius-devel@scram.de>
aland [Tue, 3 Oct 2000 14:36:36 +0000 (14:36 +0000)]
SMUX patches from Jochen Friedrich <jochen+freeradius-devel@scram.de>

23 years ago Patch from "Alan Curry" <pacman-radius@cqc.com>
aland [Mon, 2 Oct 2000 21:58:42 +0000 (21:58 +0000)]
Patch from "Alan Curry" <pacman-radius@cqc.com>

Clean up the code for loading modules

23 years ago more SNMP patches from Jochen Friedrich <jochen+freeradius-devel@scram.de>
aland [Mon, 2 Oct 2000 21:46:51 +0000 (21:46 +0000)]
more SNMP patches from Jochen Friedrich <jochen+freeradius-devel@scram.de>

23 years ago re-arranged code to make it work right
aland [Mon, 2 Oct 2000 20:13:07 +0000 (20:13 +0000)]
re-arranged code to make it work right

23 years ago removed the check_items && reply_items from the authorize and
aland [Mon, 2 Oct 2000 19:52:48 +0000 (19:52 +0000)]
removed the check_items && reply_items from the authorize and
authenticate functions.  This makes the code look a little cleaner.

23 years ago fix up the code so fewer parameters are being passed to internal
aland [Mon, 2 Oct 2000 19:33:13 +0000 (19:33 +0000)]
fix up the code so fewer parameters are being passed to internal
functions check_expiration && rad_check_password.  All of the
information they need is now in the REQUEST* structure.

Fixed some 'FIXME's added earlier today, so that the user-message
is added to the REJECT messages

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...