freeradius.git
23 years ago Remove the hardcoded permissions for the directories. Add a
hartwick [Thu, 19 Oct 2000 02:09:51 +0000 (02:09 +0000)]
Remove the hardcoded permissions for the directories.  Add a
configuration option dirperm for that.

23 years agoAnother "pointer target types differ in signedness" warning popped up.
pacman [Thu, 19 Oct 2000 00:27:16 +0000 (00:27 +0000)]
Another "pointer target types differ in signedness" warning popped up.

23 years agoTypo in rlm_detail config
pacman [Thu, 19 Oct 2000 00:25:38 +0000 (00:25 +0000)]
Typo in rlm_detail config

23 years ago Remove an unused variable, VALUE_PAIR *tmp, from file_authorize().
hartwick [Thu, 19 Oct 2000 00:07:12 +0000 (00:07 +0000)]
Remove an unused variable, VALUE_PAIR *tmp, from file_authorize().

23 years ago Add netinet/in.h to get rid of a couple compiler warnings.
hartwick [Wed, 18 Oct 2000 23:59:22 +0000 (23:59 +0000)]
Add netinet/in.h to get rid of a couple compiler warnings.

23 years ago Update the file for the rlm_detail file.
hartwick [Wed, 18 Oct 2000 23:31:00 +0000 (23:31 +0000)]
Update the file for the rlm_detail file.

23 years agoJeff Carneal <jeff@apex.net>
jcarneal [Wed, 18 Oct 2000 21:29:24 +0000 (21:29 +0000)]
Jeff Carneal <jeff@apex.net>

Removed Add-port-to-ip code from authorize function.

23 years agoJeff Carneal <jeff@apex.net>
jcarneal [Wed, 18 Oct 2000 21:28:52 +0000 (21:28 +0000)]
Jeff Carneal <jeff@apex.net>

Moved Add-port-to-ip code into auth.c after authorization and
authentication is finished.

23 years agocparker: fixed bug in new function realm_findbyaddr()
cparker [Wed, 18 Oct 2000 21:06:06 +0000 (21:06 +0000)]
cparker: fixed bug in new function realm_findbyaddr()

23 years agoAllow multiple instances of "unix" module for authentication out of several
pacman [Wed, 18 Oct 2000 19:42:52 +0000 (19:42 +0000)]
Allow multiple instances of "unix" module for authentication out of several
passwd files.

23 years agocparker: Minor reorganization to remove duplicated if() check on proxy
cparker [Wed, 18 Oct 2000 19:13:24 +0000 (19:13 +0000)]
cparker:  Minor reorganization to remove duplicated if() check on proxy
          reply handling code.

23 years agocparker: Updated files to allow proxy replies to be accepted without the
cparker [Wed, 18 Oct 2000 18:55:38 +0000 (18:55 +0000)]
cparker:  Updated files to allow proxy replies to be accepted without the
          remote server being configured as a client.

23 years ago replaced time(NULL) with request->timestamp
aland [Wed, 18 Oct 2000 17:21:55 +0000 (17:21 +0000)]
replaced time(NULL) with request->timestamp

23 years ago clean up un-needed include files.
aland [Wed, 18 Oct 2000 17:20:30 +0000 (17:20 +0000)]
clean up un-needed include files.

Replace time(NULL) with request->timestamp

23 years ago added checks for SUNPro C, from "Kiernan, Alex" <alexk@demon.net>
aland [Wed, 18 Oct 2000 16:11:29 +0000 (16:11 +0000)]
added checks for SUNPro C, from "Kiernan, Alex" <alexk@demon.net>

23 years ago cleaned up text
aland [Wed, 18 Oct 2000 16:07:25 +0000 (16:07 +0000)]
cleaned up text

23 years ago Replace strchr() with strrchr()
hartwick [Wed, 18 Oct 2000 15:04:08 +0000 (15:04 +0000)]
Replace strchr() with strrchr()

23 years ago removed the old dynamic log code. It's no longer needed, as the
aland [Wed, 18 Oct 2000 14:54:59 +0000 (14:54 +0000)]
removed the old dynamic log code.  It's no longer needed, as the
new rlm_detail does it better.

Updated include files, to remove un-needed ones.

23 years ago minor changes to posix-ise it, and use sizeof()
aland [Wed, 18 Oct 2000 14:50:12 +0000 (14:50 +0000)]
minor changes to posix-ise it, and use sizeof()

23 years ago Update the section on the detail files.
hartwick [Wed, 18 Oct 2000 14:48:05 +0000 (14:48 +0000)]
Update the section on the detail files.

23 years ago Remove the detail file creation. This was moved to rlm_detail.
hartwick [Wed, 18 Oct 2000 14:41:00 +0000 (14:41 +0000)]
Remove the detail file creation.  This was moved to rlm_detail.

23 years ago - Add some additional date expansions (%Y, %y, %m, %d)
hartwick [Wed, 18 Oct 2000 14:24:10 +0000 (14:24 +0000)]
- Add some additional date expansions (%Y, %y, %m, %d)
- Sorted the comment and code for the expansions into alphabetical
  order.

23 years ago Fix a couple of spelling mistakes in some comments.
hartwick [Wed, 18 Oct 2000 14:19:12 +0000 (14:19 +0000)]
Fix a couple of spelling mistakes in some comments.

23 years ago Seperate the detail file generation from rlm_files.
hartwick [Wed, 18 Oct 2000 14:16:42 +0000 (14:16 +0000)]
Seperate the detail file generation from rlm_files.

23 years ago Correct a spelling mistake.
hartwick [Wed, 18 Oct 2000 14:08:12 +0000 (14:08 +0000)]
Correct a spelling mistake.

23 years ago Documentation for detail module
hartwick [Wed, 18 Oct 2000 14:07:18 +0000 (14:07 +0000)]
Documentation for detail module

23 years ago Use %p to print out pointers, not %x
aland [Wed, 18 Oct 2000 13:41:48 +0000 (13:41 +0000)]
Use %p to print out pointers, not %x

23 years agoFollowup to removing dead radutmp-cache code: remove the dead loggedin
pacman [Wed, 18 Oct 2000 07:13:10 +0000 (07:13 +0000)]
Followup to removing dead radutmp-cache code: remove the dead loggedin
variable.

23 years agoradutmp cache is dead code and doesn't belong in rlm_unix anyway. Removed.
pacman [Wed, 18 Oct 2000 06:24:21 +0000 (06:24 +0000)]
radutmp cache is dead code and doesn't belong in rlm_unix anyway. Removed.

23 years ago"No previous prototype for unique_detach"
pacman [Tue, 17 Oct 2000 23:24:37 +0000 (23:24 +0000)]
"No previous prototype for unique_detach"

23 years agoProvide the necessary hints for gcc -Wformat to work on our printf-like
pacman [Tue, 17 Oct 2000 22:57:50 +0000 (22:57 +0000)]
Provide the necessary hints for gcc -Wformat to work on our printf-like
functions, and fix a couple of format string bugs that were exposed by the
resulting warnings.

23 years ago"notsuffix" realm flag was recognized in raddb/realms but not in radiusd.conf
pacman [Tue, 17 Oct 2000 21:05:37 +0000 (21:05 +0000)]
"notsuffix" realm flag was recognized in raddb/realms but not in radiusd.conf

23 years agoaccdias: Updated doc/README.cisco with contributions of Chris Parker
accdias [Tue, 17 Oct 2000 16:44:17 +0000 (16:44 +0000)]
accdias: Updated doc/README.cisco with contributions of Chris Parker

23 years agoQuiet many instances of "warning: passing arg N of str___ discards const from
pacman [Tue, 17 Oct 2000 06:23:21 +0000 (06:23 +0000)]
Quiet many instances of "warning: passing arg N of str___ discards const from
pointer target type"

23 years agoupdate with todo items recently brought up on the mailing list, and add my
pacman [Tue, 17 Oct 2000 04:41:48 +0000 (04:41 +0000)]
update with todo items recently brought up on the mailing list, and add my
personal wishlist

23 years agoJeff Carneal <jeff@apex.net>
jcarneal [Mon, 16 Oct 2000 20:06:48 +0000 (20:06 +0000)]
Jeff Carneal <jeff@apex.net>

1.  Added rlm_acct_unique to modules list
2.  moved 'preprocess' before 'realm' in authorize block per
    discussion on the list

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

1.  print warning when we have multiple auth-types in a request
2.  if it's a proxy reply and there's not an explicit reject
    then it is accepted

23 years agoJeff Carneal <jeff@apex.net>
jcarneal [Mon, 16 Oct 2000 19:53:18 +0000 (19:53 +0000)]
Jeff Carneal <jeff@apex.net>

Now returns RLM_MODULE_UPDATED instead of RLM_MODULE_OK in
realm_authorize.  This prevents module_authorize from going
thru the whole list of auth modules when we know we have
to proxy.

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.