freeradius.git
23 years ago*sigh* These are the changes to the way radiusd.conf is created. I'm not
cmiller [Sat, 16 Dec 2000 17:26:05 +0000 (17:26 +0000)]
*sigh*  These are the changes to the way radiusd.conf is created.  I'm not
certain they're all good ideas.  At best, whitespace needs to be cleaned up
in the resultant file.

23 years agoJavi's suggested changes, largely. New maintainer address.
cmiller [Sat, 16 Dec 2000 17:23:34 +0000 (17:23 +0000)]
Javi's suggested changes, largely.  New maintainer address.

23 years agoCosmetic changes (spaces to tabs, removal of noop compiler warning, etc).
cmiller [Sat, 16 Dec 2000 17:20:13 +0000 (17:20 +0000)]
Cosmetic changes (spaces to tabs, removal of noop compiler warning, etc).

23 years agoCosmetic nonchange to radiusd.c and updates to request_tree walk.
cmiller [Sat, 16 Dec 2000 17:06:10 +0000 (17:06 +0000)]
Cosmetic nonchange to radiusd.c and updates to request_tree walk.

23 years agoFixed a Unixism in log.c (NULL == 0) and a typo in a make rule.
cmiller [Sat, 16 Dec 2000 17:04:27 +0000 (17:04 +0000)]
Fixed a Unixism in log.c (NULL == 0) and a typo in a make rule.

23 years agocparker - Fixed a problem in which proxied requests were being sent
cparker [Fri, 15 Dec 2000 22:59:48 +0000 (22:59 +0000)]
cparker - Fixed a problem in which proxied requests were being sent
  without having the password encrypted.

23 years ago this file is no longer needed.
aland [Thu, 14 Dec 2000 23:58:54 +0000 (23:58 +0000)]
this file is no longer needed.

23 years ago more text, with simple installation details
aland [Thu, 14 Dec 2000 21:49:47 +0000 (21:49 +0000)]
more text, with simple installation details

23 years ago removed old configure options. Added more text on installation.
aland [Thu, 14 Dec 2000 21:46:26 +0000 (21:46 +0000)]
removed old configure options.  Added more text on installation.

23 years ago only install one binary per instance of $INSTALL.
aland [Thu, 14 Dec 2000 06:25:17 +0000 (06:25 +0000)]
only install one binary per instance of $INSTALL.

23 years agoHere's authtype{} again, and I hope it's seen as cleaner this time.
pacman [Wed, 13 Dec 2000 08:38:09 +0000 (08:38 +0000)]
Here's authtype{} again, and I hope it's seen as cleaner this time.

23 years agoBreaking up a large function - cosmetic change only.
pacman [Wed, 13 Dec 2000 08:27:47 +0000 (08:27 +0000)]
Breaking up a large function - cosmetic change only.

23 years agoThe rlm_always module is meant for use in tests of the module calling
pacman [Wed, 13 Dec 2000 07:53:13 +0000 (07:53 +0000)]
The rlm_always module is meant for use in tests of the module calling
sequence.

23 years agoMinor tweak on usercollide. User wasn't matching when auth-type was
jcarneal [Sat, 9 Dec 2000 16:38:33 +0000 (16:38 +0000)]
Minor tweak on usercollide.  User wasn't matching when auth-type was
reject, but it should.

23 years agocparker - Fixed bug that caused proxy replies to be unable to find
cparker [Wed, 6 Dec 2000 02:37:11 +0000 (02:37 +0000)]
cparker -  Fixed bug that caused proxy replies to be unable to find
           the original request.

           Changed related error message to be more descriptive.

23 years agoFixed teensy memory leaks on char *compat_mode.
jcarneal [Sat, 2 Dec 2000 21:01:58 +0000 (21:01 +0000)]
Fixed teensy memory leaks on char *compat_mode.

23 years agoIntroduced memory leak when I put in preacct stuff. Fixed.
jcarneal [Sat, 2 Dec 2000 21:01:32 +0000 (21:01 +0000)]
Introduced memory leak when I put in preacct stuff.  Fixed.

23 years agoAdded BINARY_FILTERS ifdef from ICRADIUS for not clobbering abinary types on multiple...
mmachado [Sat, 2 Dec 2000 01:09:04 +0000 (01:09 +0000)]
Added BINARY_FILTERS ifdef from ICRADIUS for not clobbering abinary types on multiple attributes.

23 years agoOnly log multiple auth-types if debugging. This was causing me grief
jcarneal [Fri, 1 Dec 2000 21:13:38 +0000 (21:13 +0000)]
Only log multiple auth-types if debugging.  This was causing me grief
due to auth_type_fixup adding auth-types I didn't want.

23 years ago added smux_failures && smux_max_failures to 'rad_snmp'
aland [Fri, 1 Dec 2000 18:58:10 +0000 (18:58 +0000)]
added smux_failures && smux_max_failures to 'rad_snmp'
data structure.

On HUP, re-set the number of failures, so that it tries the SNMP
server again.

23 years ago oops... pass a pointer, not an int
aland [Fri, 1 Dec 2000 18:48:33 +0000 (18:48 +0000)]
oops... pass a pointer, not an int

23 years ago documentation on how to submit patches to the server, and what
aland [Fri, 1 Dec 2000 18:41:54 +0000 (18:41 +0000)]
documentation on how to submit patches to the server, and what
sort of coding methods/styles to follow

23 years ago removed the definition of INCLTDL. It's defined properly in the
aland [Fri, 1 Dec 2000 18:11:49 +0000 (18:11 +0000)]
removed the definition of INCLTDL.  It's defined properly in the
top-level 'Make.inc'

23 years ago minor updates (alignment, etc), based on warnings from Solaris build
aland [Thu, 30 Nov 2000 22:00:20 +0000 (22:00 +0000)]
minor updates (alignment, etc), based on warnings from Solaris build

23 years agoRemoving some debugging stuff I left in.
jcarneal [Thu, 30 Nov 2000 21:57:23 +0000 (21:57 +0000)]
Removing some debugging stuff I left in.

23 years agoAdded INCLTDL so modules.c will compile on Solaris.
jcarneal [Thu, 30 Nov 2000 20:57:00 +0000 (20:57 +0000)]
Added INCLTDL so modules.c will compile on Solaris.

23 years agoSeveral changes:
jcarneal [Thu, 30 Nov 2000 20:53:05 +0000 (20:53 +0000)]
Several changes:

1.  Cleaned up auth / user find code
2.  Added functionality for multiple users with same check items
3.  Put all users at end of hash bucket linked list
4.  Add preacct and acctusersfile capability from rlm_files

Tried to change the module to rlm_users in the repository, but
'cvs remove' / 'cvs add' and I aren't getting along well.

The functionality now *should* exactly mimic rlm_files.

23 years agoBugfix. Don't want to overwrite 'i' when updating
jcarneal [Thu, 30 Nov 2000 20:06:46 +0000 (20:06 +0000)]
Bugfix.  Don't want to overwrite 'i' when updating
tailto after pairdelete.

23 years agoFixed a buglet in the add() code and finished the next() code.
cmiller [Thu, 30 Nov 2000 18:31:00 +0000 (18:31 +0000)]
Fixed a buglet in the add() code and finished the next() code.

23 years agoAdded explicit rules for request_{tree,list}.o , for consistency.
cmiller [Thu, 30 Nov 2000 18:29:38 +0000 (18:29 +0000)]
Added explicit rules for request_{tree,list}.o , for consistency.

23 years ago * Remove all references to %y which was removed from the code.
hartwick [Thu, 30 Nov 2000 16:56:26 +0000 (16:56 +0000)]
* Remove all references to %y which was removed from the code.

23 years ago massive changes to enable smarter configure script, so that it
aland [Thu, 30 Nov 2000 15:55:29 +0000 (15:55 +0000)]
massive changes to enable smarter configure script, so that it
auto-discovers SNMP.  (most times, I hope...)

Updates to various SNMP header and source files, to make sure it
builds, and use massively paranoid 'const' everywhere.

23 years ago made more variables 'const'
aland [Thu, 30 Nov 2000 15:49:20 +0000 (15:49 +0000)]
made more variables 'const'

23 years ago added 'const'
aland [Thu, 30 Nov 2000 15:45:01 +0000 (15:45 +0000)]
added 'const'

23 years ago corrected typo in SNMP data structure
aland [Thu, 30 Nov 2000 15:23:25 +0000 (15:23 +0000)]
corrected typo in SNMP data structure

23 years ago Added some more comments.
aland [Thu, 30 Nov 2000 14:40:32 +0000 (14:40 +0000)]
Added some more comments.

Removed 'radutmp' from the 'session' section, as it isn't finished

23 years ago Added a next() routine to the request_tree schtick.
cmiller [Wed, 29 Nov 2000 21:41:30 +0000 (21:41 +0000)]
Added a next() routine to the request_tree schtick.

23 years ago The VP pointed to by 'tailto' may have been deleted in pairdelete().
aland [Wed, 29 Nov 2000 19:23:09 +0000 (19:23 +0000)]
The VP pointed to by 'tailto' may have been deleted in pairdelete().
After calling pairdelete(), update 'tailto' again.

23 years ago If we're NOT using developer C flags, then define -DNDEBUG, so
aland [Wed, 29 Nov 2000 17:15:27 +0000 (17:15 +0000)]
If we're NOT using developer C flags, then define -DNDEBUG, so
that the assert's go away.

23 years ago Found another possible NULL deref point. Alan's(=efficient) coding
cmiller [Wed, 29 Nov 2000 14:07:34 +0000 (14:07 +0000)]
Found another possible NULL deref point.  Alan's(=efficient) coding
style is slightly different than mine(=pedantic).

23 years agoFixed NULL deref. Sorry, Jeff!
cmiller [Wed, 29 Nov 2000 13:57:00 +0000 (13:57 +0000)]
Fixed NULL deref.  Sorry, Jeff!

23 years ago corrected minor typo
aland [Tue, 28 Nov 2000 20:11:26 +0000 (20:11 +0000)]
corrected minor typo

23 years ago single-threaded ldap code from Weston Bustraan <weston@itdonline.net>
aland [Tue, 28 Nov 2000 15:37:37 +0000 (15:37 +0000)]
single-threaded ldap code from Weston Bustraan <weston@itdonline.net>

23 years ago initial implementation of mschap, from patch supplied for Cistron.
aland [Mon, 27 Nov 2000 23:47:09 +0000 (23:47 +0000)]
initial implementation of mschap, from patch supplied for Cistron.

it builds, but I have no idea if it works or not...

23 years agoRemoved REQUEST struct's reference to next and prev -- these are now hidden.
cmiller [Mon, 27 Nov 2000 23:24:16 +0000 (23:24 +0000)]
Removed REQUEST struct's reference to next and prev -- these are now hidden.

23 years ago Added my as-yet lame tree storage method. Need to add next() and
cmiller [Mon, 27 Nov 2000 23:21:14 +0000 (23:21 +0000)]
Added my as-yet lame tree storage method.  Need to add next() and
find_proxy() methods.

23 years ago Generalized REQUEST structure so that core code really doesn't know
cmiller [Mon, 27 Nov 2000 23:19:40 +0000 (23:19 +0000)]
Generalized REQUEST structure so that core code really doesn't know
anything about the storage.

23 years ago rlm_preprocess uses auth_name(), so it can't be static.
cmiller [Mon, 27 Nov 2000 23:15:59 +0000 (23:15 +0000)]
rlm_preprocess uses auth_name(), so it can't be static.

23 years ago made one more function 'static' to the only source file that
aland [Mon, 27 Nov 2000 17:07:42 +0000 (17:07 +0000)]
made one more function 'static' to the only source file that
uses it.

23 years ago Completed debian changes. (Built first package.)
cmiller [Sun, 26 Nov 2000 23:40:22 +0000 (23:40 +0000)]
Completed debian changes.  (Built first package.)

autoconf'd on top level.  Maybe this should be in the Makefile.

23 years ago Fixed misplaced space in CFLAGS generation.
cmiller [Sun, 26 Nov 2000 14:46:29 +0000 (14:46 +0000)]
Fixed misplaced space in CFLAGS generation.

23 years ago added '--with-developer'. For people with CVS directories,
aland [Fri, 24 Nov 2000 22:13:29 +0000 (22:13 +0000)]
added '--with-developer'.  For people with CVS directories,
and using GCC, it assumes that they're developers, and adds mondo
paranoid GCC warning flags to CFLAGS.

23 years ago made attrib_nmc compiled in by default. There's no point in
aland [Fri, 24 Nov 2000 21:24:29 +0000 (21:24 +0000)]
made attrib_nmc compiled in by default.  There's no point in
having it #ifdef'd in the source.

23 years ago belated set of updates
aland [Fri, 24 Nov 2000 21:23:41 +0000 (21:23 +0000)]
belated set of updates

23 years ago made USR (attrib_nmc) attributes compiled in by default.
aland [Fri, 24 Nov 2000 21:23:17 +0000 (21:23 +0000)]
made USR (attrib_nmc) attributes compiled in by default.

23 years ago removed no longer used build flags from the version string
aland [Fri, 24 Nov 2000 21:20:54 +0000 (21:20 +0000)]
removed no longer used build flags from the version string

23 years ago Correct the method fo rsnipping attributes to length.
aland [Fri, 24 Nov 2000 19:23:45 +0000 (19:23 +0000)]
Correct the method fo rsnipping attributes to length.

Instead of dropping them, snip them to the maximum allowed length.

Do this for ALL attributes, based on the pair length + the attribute
header, and NOT on MAX_STRING_LEN.

23 years ago corrected typo with USR attributes
aland [Fri, 24 Nov 2000 19:14:14 +0000 (19:14 +0000)]
corrected typo with USR attributes

23 years ago rad_send() now packs multiple vendor attributes into one VSA,
aland [Fri, 24 Nov 2000 19:11:08 +0000 (19:11 +0000)]
rad_send() now packs multiple vendor attributes into one VSA,
if it can.  If not, it uses multiple VSA's.

It also checks if the vendor attribute *can* be packed into a VSA.
If not, it silently ignores that attribute.

23 years ago Repaired make expansion of $$foo to $${foo}.
cmiller [Fri, 24 Nov 2000 19:10:41 +0000 (19:10 +0000)]
Repaired make expansion of $$foo to $${foo}.

23 years ago add MD5 to the list of targets
aland [Fri, 24 Nov 2000 17:54:21 +0000 (17:54 +0000)]
add MD5 to the list of targets

23 years ago Updated stuff needed to build a debian package.
cmiller [Fri, 24 Nov 2000 14:46:15 +0000 (14:46 +0000)]
Updated stuff needed to build a debian package.

23 years ago Added $(R)=root setting.
cmiller [Fri, 24 Nov 2000 14:43:36 +0000 (14:43 +0000)]
Added $(R)=root setting.

23 years agoRan automake, sorta.
cmiller [Thu, 23 Nov 2000 19:41:44 +0000 (19:41 +0000)]
Ran automake, sorta.

23 years ago defined new function: AC_CHECK_TYPE_INCLUDE, which is like the
aland [Thu, 23 Nov 2000 17:57:57 +0000 (17:57 +0000)]
defined new function: AC_CHECK_TYPE_INCLUDE, which is like the
pre-defined AC_CHECK_TYPE, but it also allows you to specify a
list of include files to check.

This function simplifies a number of checks in the 'configure.in'
script

23 years ago added more people to the official list of credits
aland [Thu, 23 Nov 2000 16:41:47 +0000 (16:41 +0000)]
added more people to the official list of credits

23 years ago Applied patch from Chad Miller <cmiller@surfsouth.com>
aland [Thu, 23 Nov 2000 15:30:44 +0000 (15:30 +0000)]
Applied patch from Chad Miller <cmiller@surfsouth.com>
Add $(R) in front of install targets, so that the user can build
a 'tar' image which will untar to the normal root, WITHOUT
touching the root, or installing the module.  e.g.

make R=/home/user/fake-root/ install

will install everying to /home/user/fake-root/usr/bin
/home/user/fake-root/etc, etc.

23 years agoJeff Carneal <jeff@apex.net>
jcarneal [Thu, 23 Nov 2000 00:10:52 +0000 (00:10 +0000)]
Jeff Carneal <jeff@apex.net>

Usercollide bugfix.

23 years ago moved the LTDL_SET_PRELOADED_SYMBOLS() call to *before* the call
aland [Wed, 22 Nov 2000 21:36:20 +0000 (21:36 +0000)]
moved the LTDL_SET_PRELOADED_SYMBOLS() call to *before* the call
to lt_dlinit().  This appears to make a huge difference in getting
ltdl to do what we want.

Note that the libtool documentation doesn't mention that this order
is necessary for libtool to go off it's crack habit...

23 years ago removed un-needed variable
aland [Wed, 22 Nov 2000 21:12:57 +0000 (21:12 +0000)]
removed un-needed variable

23 years ago include libradius.h at the top of the include file list
aland [Wed, 22 Nov 2000 21:12:24 +0000 (21:12 +0000)]
include libradius.h at the top of the include file list

23 years ago properly build ONLY the static module, if it's one of the declared
aland [Wed, 22 Nov 2000 21:06:09 +0000 (21:06 +0000)]
properly build ONLY the static module, if it's one of the declared
static modules.

Also, don't build ANY dynamic modules if we're not doing shared libs

23 years ago new configure option: --with-static-modules=QUOTED-MODULE-LIST
aland [Wed, 22 Nov 2000 20:22:14 +0000 (20:22 +0000)]
    new configure option: --with-static-modules=QUOTED-MODULE-LIST

        ./configure --with-static-modules="pam ns_mta_md5 sql"

        builds all shared libraries, BUT pam, ns_mta_md5, and sql are
        statically linked to the server.

If we have --disable-shared, then all of the successfully built
modules are linked to the server at build time, through an in-line
shell script in src/main/Makefile

23 years agoJeff Carneal <jeff@apex.net>
jcarneal [Wed, 22 Nov 2000 17:34:39 +0000 (17:34 +0000)]
Jeff Carneal <jeff@apex.net>

Minor changes for:
a) hash table statistics logging
b) storing users in the hash bucket forward (not reverse) order

23 years ago define USE_SHARED_LIBS and USE_STATIC_LIBS in the top-level
aland [Wed, 22 Nov 2000 17:12:15 +0000 (17:12 +0000)]
define USE_SHARED_LIBS and USE_STATIC_LIBS in the top-level
Make.inc file.  Update 'configure.in' to substitute them,
from the 'configure' --enable-shared and --enable-static defaults.

Update the modules rules so that the static/dynamic rules only
apply of the top-level 'USE_FOO_LIBS' is defined to 'yes'.

We still don't know how to pick up libltdl knowledge about the
*ability* to build static/dynamic objects... but that's for later,
I guess.

23 years ago micro-patch from David Kerry <dk@snti.com>
aland [Wed, 22 Nov 2000 17:06:14 +0000 (17:06 +0000)]
micro-patch from David Kerry <dk@snti.com>

23 years ago added missing #endif
aland [Wed, 22 Nov 2000 17:02:14 +0000 (17:02 +0000)]
added missing #endif

23 years ago if we do NOT have setlinebuf, but we DO have setvbuf, THEN
aland [Wed, 22 Nov 2000 16:43:29 +0000 (16:43 +0000)]
if we do NOT have setlinebuf, but we DO have setvbuf, THEN
fake out a setlinebuf by wrapping it in a #define which calls
setvbuf

23 years ago check for setvbuf, too
aland [Wed, 22 Nov 2000 16:42:45 +0000 (16:42 +0000)]
check for setvbuf, too

23 years agoJeff Carneal <jeff@apex.net>
jcarneal [Wed, 22 Nov 2000 00:50:27 +0000 (00:50 +0000)]
Jeff Carneal <jeff@apex.net>

The new rlm_fastusers.  It should be a faster rlm_files now (without
the preacct function, which I will add later).

23 years agoJeff Carneal <jeff@apex.net>
jcarneal [Wed, 22 Nov 2000 00:24:40 +0000 (00:24 +0000)]
Jeff Carneal <jeff@apex.net>

Usercollide bugfix.  Musta deleted the config var before sometime.

23 years agoJeff Carneal <jeff@apex.net>
jcarneal [Wed, 22 Nov 2000 00:21:12 +0000 (00:21 +0000)]
Jeff Carneal <jeff@apex.net>

The new rlm_fastusers.  It should be a faster rlm_files now (without
the preacct function, which I will add later).

23 years agoJeff Carneal <jeff@apex.net>
jcarneal [Tue, 21 Nov 2000 23:58:23 +0000 (23:58 +0000)]
Jeff Carneal <jeff@apex.net>

Bugfixes.  Auth-type counting problem in rad_check_password().
Updated pairfree() calls with '&'

23 years ago removed 'allowed' and 'trusted' attributes from the proxy receive
aland [Tue, 21 Nov 2000 21:24:59 +0000 (21:24 +0000)]
removed 'allowed' and 'trusted' attributes from the proxy receive
code.  A module will replace this functionality.

23 years ago pull the definition for CC out of the top-level Make.inc file.
aland [Tue, 21 Nov 2000 21:02:00 +0000 (21:02 +0000)]
pull the definition for CC out of the top-level Make.inc file.
bug found by David Kerry <dk@snti.com>

23 years ago more examples of realms
aland [Tue, 21 Nov 2000 20:47:59 +0000 (20:47 +0000)]
more examples of realms

23 years ago minor re-formatting.
aland [Tue, 21 Nov 2000 20:44:35 +0000 (20:44 +0000)]
minor re-formatting.

allow NULL realms.  Bug found by David Kerry <dk@snti.com>

23 years ago radclient now does it's own encryption of the Password and
aland [Tue, 21 Nov 2000 20:22:40 +0000 (20:22 +0000)]
radclient now does it's own encryption of the Password and
CHAP-Password attributes.  This change is because of the last
bug fix to lib/radius.c

23 years ago when doing a rad_send(), do NOT encode the PW_PASSWORD or the
aland [Tue, 21 Nov 2000 20:16:11 +0000 (20:16 +0000)]
when doing a rad_send(), do NOT encode the PW_PASSWORD or the
PW_CHAP_PASSWORD attribute.  This is to prevent double encryption.

This also prevents the server from breaking the CHAP-Password
when doing proxying.  Bug found by David Kerry <dk@snti.com>

23 years ago patch from David Kerry <dk@snti.com> to properly define variables
aland [Tue, 21 Nov 2000 20:06:03 +0000 (20:06 +0000)]
patch from David Kerry <dk@snti.com> to properly define variables

23 years ago ALWAYS use our own 'install-sh' program, as we cannot depend
aland [Tue, 21 Nov 2000 20:04:23 +0000 (20:04 +0000)]
ALWAYS use our own 'install-sh' program, as we cannot depend
on the system's one.

23 years ago updated dependencies on include files
aland [Tue, 21 Nov 2000 18:31:07 +0000 (18:31 +0000)]
updated dependencies on include files

23 years ago convince the thrice-damned ltldl code to actually open "foo.a",
aland [Tue, 21 Nov 2000 18:30:07 +0000 (18:30 +0000)]
convince the thrice-damned ltldl code to actually open "foo.a",
like it's supposed to, like it claims to, but which it doesn't
do, until I've drop-kicked the fix through it's thick head.

23 years ago use the new 'request->number' to uniquely tag each request
aland [Tue, 21 Nov 2000 16:46:10 +0000 (16:46 +0000)]
use the new 'request->number' to uniquely tag each request

23 years ago <whew>! Finally made the 'request_list' structure 'static'
aland [Mon, 20 Nov 2000 21:51:47 +0000 (21:51 +0000)]
<whew>!  Finally made the 'request_list' structure 'static'
to request_list.c.  This allows us to completely change the
implementation, without breaking any external code.

Removed all references to 'request_list_busy' from radiusd.c
These sort of checks should be in request_list.c.  (Not that
they're actually there right now...)

23 years ago removed old code handling stripped-user-name from the 'authorize'
aland [Mon, 20 Nov 2000 21:36:51 +0000 (21:36 +0000)]
removed old code handling stripped-user-name from the 'authorize'
entry.  That functionality is now done by rlm_preprocess

23 years ago minor cleanups & touchups, to make the code simpler
aland [Mon, 20 Nov 2000 21:31:22 +0000 (21:31 +0000)]
minor cleanups & touchups, to make the code simpler

23 years ago added comment header with description of GPL.
aland [Mon, 20 Nov 2000 20:37:26 +0000 (20:37 +0000)]
added comment header with description of GPL.

added 'libradius.h' to top of includes, to fix include file
order.

23 years ago updated arguments to pairfree()
aland [Mon, 20 Nov 2000 19:43:55 +0000 (19:43 +0000)]
updated arguments to pairfree()

23 years ago changes as per latest discussion on the list
aland [Mon, 20 Nov 2000 18:59:13 +0000 (18:59 +0000)]
changes as per latest discussion on the list