cmiller [Mon, 5 Mar 2001 03:42:10 +0000 (03:42 +0000)]
Code "cleanups." I confess that I sometimes went beyond the TODO
suggestions with changes to brace styles and explicit testing. :/
I tested it lightly, and I don't see any breakage. I hope it's not
broken anywhere!
cmiller [Mon, 5 Mar 2001 03:32:35 +0000 (03:32 +0000)]
Moved local #includes after global ones. (So "missing.h" is after
<netinet/in.h>, especially. I get warnings otherwise.)
aland [Sun, 4 Mar 2001 20:18:59 +0000 (20:18 +0000)]
Y2K readiness statements are no longer relevant
aland [Sun, 4 Mar 2001 16:39:55 +0000 (16:39 +0000)]
Removed dependence on pam_pwdb, as pam_unix_* does the same thing,
but in a MUCH more intelligent fashion.
aland [Thu, 1 Mar 2001 22:34:10 +0000 (22:34 +0000)]
Allow environment variable expansion in the configuration file,
via $ENV{} e.g. $ENV{PATH}
This is a low priority item, but was easy to add..
cparker [Thu, 1 Mar 2001 05:59:53 +0000 (05:59 +0000)]
Updated the $INCLUDE code to allow for included files
below the top level. Tested with include 'sql.conf'
inside 'modules' sub-section successfully.
aland [Wed, 28 Feb 2001 22:04:57 +0000 (22:04 +0000)]
Do not treat 'Password' attributes as special any more. The radius
code decrypts them, so they now become attributes like any other.
Based on bug reported by "Sergey Kodentsev" <sergk@ic.vrn.ru>
aland [Wed, 28 Feb 2001 16:14:59 +0000 (16:14 +0000)]
This file is no longer relevant. The rlm_ldap README describes
it in more detail.
mmachado [Wed, 28 Feb 2001 00:10:24 +0000 (00:10 +0000)]
Added path to libltdl to find headers
aland [Tue, 27 Feb 2001 15:03:56 +0000 (15:03 +0000)]
Added a few more cisco attributes
cmiller [Mon, 26 Feb 2001 21:47:47 +0000 (21:47 +0000)]
Added comment suggesting use of clients.conf instead.
cmiller [Mon, 26 Feb 2001 21:38:53 +0000 (21:38 +0000)]
Added two style hints.
aland [Fri, 23 Feb 2001 21:35:22 +0000 (21:35 +0000)]
Added HOSTINFO definition, which is a string like "i586-pc-linux-gnu".
Also made the string used in the SNMP ident.
aland [Fri, 23 Feb 2001 21:25:57 +0000 (21:25 +0000)]
Added portable 'snprintf' and 'vsnprintf' to the source tree.
aland [Fri, 23 Feb 2001 21:20:49 +0000 (21:20 +0000)]
Added checks and extensions for future use of local 'snprintf',
if the system isn't smart enough to include one.
aland [Fri, 23 Feb 2001 21:10:09 +0000 (21:10 +0000)]
removed unused header template files
mmachado [Fri, 23 Feb 2001 20:20:26 +0000 (20:20 +0000)]
Switched back to new authorize code. $INCLUDE for sql.conf is not working. Can you do an $INCLUDE within the modules{} section??
aland [Thu, 22 Feb 2001 23:55:58 +0000 (23:55 +0000)]
Made 'decode_attribute' take a 'const' as it's first argument, so
that we can pass it pointers taken from 'const char *fmt', in the
xlat routine.
mmachado [Thu, 22 Feb 2001 07:05:25 +0000 (07:05 +0000)]
Added driver option to sql config file
mmachado [Wed, 21 Feb 2001 22:08:25 +0000 (22:08 +0000)]
Updated documentation and changed Makefile
pam [Wed, 21 Feb 2001 08:03:32 +0000 (08:03 +0000)]
ldap.attrmap now includes comments about using generic LDAP attributes for
storing RADIUS Check and Reply pairs.
pacman [Tue, 20 Feb 2001 20:55:30 +0000 (20:55 +0000)]
Get rid of references to my old address
pacman [Tue, 20 Feb 2001 20:51:32 +0000 (20:51 +0000)]
Make the 5 packet methods into an array within module_t - now calling them
doesn't require a big switch()
pam [Tue, 20 Feb 2001 10:28:46 +0000 (10:28 +0000)]
Added ldap.attrmap which specifies mapping between LDAP and RADIUS attributes
Changed radius.conf to reflect current rlm_ldap configuration options
pam [Tue, 20 Feb 2001 10:25:42 +0000 (10:25 +0000)]
Attempt in better documenting rlm_ldap configuration and use
All current options documented
pam [Tue, 20 Feb 2001 10:24:22 +0000 (10:24 +0000)]
* Added patch by Hannu Laurila <hannu.laurila@japo.fi> for configuartion of
LDAP to RADIUS attribute mappings.
Now rlm_ldap supports both RADIUS-specific LDAP attributes (a la IETF draft)
and generic LDAP attributes stroring Check-Item and Reply-Item value pairs.
* Added ldap_debug configuration option to facilitate tracing LDAP SDK
operations
hartwick [Sun, 18 Feb 2001 19:58:25 +0000 (19:58 +0000)]
* Remove a bunch of variables that were included but never really
used. The CONF_PARSER table is now just the NULL line.
mmachado [Fri, 16 Feb 2001 05:56:27 +0000 (05:56 +0000)]
Ok, make system done, but have to figure out how to deal with targets in the rules.mak file...
mmachado [Fri, 16 Feb 2001 05:51:53 +0000 (05:51 +0000)]
syntax error fix
mmachado [Thu, 15 Feb 2001 20:40:50 +0000 (20:40 +0000)]
Added new Makefile system based on the rlm modules Makefiles
aland [Thu, 15 Feb 2001 20:06:35 +0000 (20:06 +0000)]
Removed CR's from the source files, so that they're UNIX files,
and not DOS.
mmachado [Thu, 15 Feb 2001 18:14:30 +0000 (18:14 +0000)]
Inital makefiles for drivers that don't work. HELP!
pacman [Thu, 15 Feb 2001 07:26:08 +0000 (07:26 +0000)]
Added a second mode of operation to cf_section_parse, where it takes a base
pointer and uses offsets instead of absolute pointers (just like the way
XtGetApplicationResources works). Changed all modules that were using
cf_section_parse to use this new mode, so they can parse directly into their
instance structure instead of going through a static temporary variable.
mmachado [Wed, 14 Feb 2001 21:43:38 +0000 (21:43 +0000)]
Fixed data type on error module call
mmachado [Wed, 14 Feb 2001 21:35:43 +0000 (21:35 +0000)]
Reanmed sql_create_socket to sql_init_socket
Modified postgres code into a dynamic rlm_sql driver
pacman [Wed, 14 Feb 2001 09:31:35 +0000 (09:31 +0000)]
Was leaking on detach and destroy (or detach and instantiate, depending on
whether your point of view). No more leaks, I hope.
pacman [Wed, 14 Feb 2001 08:26:48 +0000 (08:26 +0000)]
Was leaking memory on module unload
mmachado [Tue, 13 Feb 2001 06:23:40 +0000 (06:23 +0000)]
Dynamically loadable database drivers support. Code compiles, but due to Jeffs configurable queries I have been unable to test :) I need to talk to Jeff before I can *fix* it. I think all the module abstractions are working though. It should also be easy to port for the other database types. More experenced lt_dl people are welcome to criticize my modules code... This is my first dl application, so be nice.
I am particaully proud of how it handles database specific connections. It used a void * in the SQLSOCK struct that driver authors can point at their own private structure definitions. A SQLSOCK is passed to every module function. Also, this allowed all the threading code to be handled in the main rlm_sql. As for as I can see, any database driver will be thread safe without even having to touch threads code.
aland [Fri, 9 Feb 2001 16:15:34 +0000 (16:15 +0000)]
Patch from Alan Curry, who thinks we shouldn't have to go
through this crap.
Depending on other people's shitty code is a waste of time...
aland [Thu, 8 Feb 2001 21:11:44 +0000 (21:11 +0000)]
Fix a memory leak. If a file is $INCLUDEd, we have a CONF_SECTION
data structure for it, which we don't want. We ONLY want the
'children'. So, we re-parent the children, hoist them into the
parent CONF_SECTION, and delete the CONF_SECTION for the included
file, which is now empty.
aland [Thu, 8 Feb 2001 19:26:34 +0000 (19:26 +0000)]
Added '%s', so that the number of formats matched the number
of arguments.
cparker [Thu, 8 Feb 2001 01:04:24 +0000 (01:04 +0000)]
Cosmetic changes to the 'print_abinary' function to better
match the plaintext ascend filter format.
cparker [Thu, 8 Feb 2001 00:35:10 +0000 (00:35 +0000)]
Added config options for 'rlm_attr_filter'. The module call in
the "authorize" section is commented out by default.
aland [Wed, 7 Feb 2001 17:05:00 +0000 (17:05 +0000)]
Patch from Thiago Rondon <maluco@mileniumnet.com.br>
Remove references to malloc() && malloc.h. Replace with
references to rad_malloc()
hartwick [Wed, 7 Feb 2001 03:34:08 +0000 (03:34 +0000)]
* Replace the call to malloc() with a call to rad_malloc() and
remove the "checking" to make sure malloc was successful since
the rad_malloc() call is always successful.
* Remove #include <malloc.h> since it is no longer needed
hartwick [Tue, 6 Feb 2001 00:32:36 +0000 (00:32 +0000)]
* Replace a couple printf calls with fprintf(stderr)
aland [Mon, 5 Feb 2001 19:37:33 +0000 (19:37 +0000)]
commented out PAM bu default, as not all systems have it.
hartwick [Mon, 5 Feb 2001 19:26:48 +0000 (19:26 +0000)]
* Add the code to call read_radius_conf_file() instead of reading
the individual clients or naslist files.
hartwick [Mon, 5 Feb 2001 19:24:36 +0000 (19:24 +0000)]
* Add conffile.o and files.o to radwho and radzap
hartwick [Mon, 5 Feb 2001 19:23:34 +0000 (19:23 +0000)]
* Change the return value to return 0 instead of -1 when the
clients, naslist, or realms files cannot be opened. This makes
the calling code treat it as a non-fatal error.
hartwick [Sun, 4 Feb 2001 20:03:33 +0000 (20:03 +0000)]
* Fix a grammatical error
jcarneal [Fri, 2 Feb 2001 22:00:09 +0000 (22:00 +0000)]
Updated items I knew (fairly sure anyway) were done.
jcarneal [Fri, 2 Feb 2001 21:34:20 +0000 (21:34 +0000)]
Oops, forgot these...
jcarneal [Fri, 2 Feb 2001 21:31:46 +0000 (21:31 +0000)]
Jeff Carneal <jeff@apex.net>
Finally. The SQL config-based queries patch. It's really alpha, and there
are probably bugs. However, whatever bugs exist should be simple, as the
logic behind the patch is straight-forward.
jcarneal [Fri, 2 Feb 2001 21:22:56 +0000 (21:22 +0000)]
Jeff Carneal <jeff@apex.net>
Finally. The SQL config-based queries patch. It's really alpha, and there
are probably bugs. However, whatever bugs exist should be simple, as the
logic behind the patch is straight-forward.
aland [Fri, 2 Feb 2001 20:17:55 +0000 (20:17 +0000)]
complain if we were unable to allocate memory
Patch by Thiago Rondon <maluco@mileniumnet.com.br>
aland [Fri, 2 Feb 2001 20:17:13 +0000 (20:17 +0000)]
Complain if we were unable to allocate memory.
Patch from Thiago Rondon <maluco@mileniumnet.com.br>
hartwick [Fri, 2 Feb 2001 04:08:17 +0000 (04:08 +0000)]
* Make some formatting changes. Mainly in comments, but
fixed the indents on a function
hartwick [Fri, 2 Feb 2001 02:01:37 +0000 (02:01 +0000)]
* Fix a FIXME. If a varialble in the config file was missing
a closing '}' it was skipping over it. The code now logs
and error and exits.
aland [Thu, 1 Feb 2001 18:18:58 +0000 (18:18 +0000)]
Remove malloc.h from the includes, as it's not needed.
Patch by Thiago Rondon <maluco@mileniumnet.com.br>
aland [Thu, 1 Feb 2001 18:04:40 +0000 (18:04 +0000)]
Patch from Thiago Rondon <maluco@mileniumnet.com.br>, to call
rad_malloc() (which has more sanity checks for errors), instead
of malloc()
hartwick [Wed, 31 Jan 2001 04:37:42 +0000 (04:37 +0000)]
* Remove the FIXME comment. Ooops! :)
hartwick [Wed, 31 Jan 2001 04:36:37 +0000 (04:36 +0000)]
* Fix a FIXME to put the Auth-Type at the first of the pair
list. The changes seemed too easy so I left the old code
and some debugging code.
aland [Tue, 30 Jan 2001 20:25:43 +0000 (20:25 +0000)]
add example state, too.
aland [Tue, 30 Jan 2001 20:24:14 +0000 (20:24 +0000)]
Added example code for sending Access-Challenges.
jcarneal [Tue, 30 Jan 2001 15:33:29 +0000 (15:33 +0000)]
Updated to reflect changes to the code.
jcarneal [Tue, 30 Jan 2001 15:26:27 +0000 (15:26 +0000)]
Updated to reflect (upcoming) changes to radius_xlat2().
aland [Mon, 29 Jan 2001 16:02:46 +0000 (16:02 +0000)]
Don't complain about unprintable characters in the user-supplied
password, UNLESS it's a 'Password' attribute.
i.e. Don't complain about CHAP-Password attributes, which are
ALWAYS unprintable.
aland [Mon, 29 Jan 2001 16:00:39 +0000 (16:00 +0000)]
print out auth-type by name, not by value.
Removed 'fixme' about MS-Chap support, as we now have rlm_mschap
cmiller [Sat, 27 Jan 2001 17:22:51 +0000 (17:22 +0000)]
Added var/run and var/log/radacct to directory list.
cmiller [Sat, 27 Jan 2001 16:07:41 +0000 (16:07 +0000)]
Uncommented the leak-fix of two weeks ago, after testing.
pam [Sat, 27 Jan 2001 14:33:34 +0000 (14:33 +0000)]
Changed strncasecmp() to strcasecmp() in ldap_pairget() to cope with Radius attributes with common prefix.
Suggested by Hannu Laurila <hannu.laurila@japo.fi>
cmiller [Sat, 27 Jan 2001 00:25:44 +0000 (00:25 +0000)]
Formatted code, loosely. s/ {8}/\t/g
cmiller [Sat, 27 Jan 2001 00:11:25 +0000 (00:11 +0000)]
Added assignment of config variable 'compat_mode' into inst stuct. Not
beacuse we use it, but because we free it later.
aland [Thu, 25 Jan 2001 16:09:56 +0000 (16:09 +0000)]
Create the '.../var/run' directory, so that the server can write
it's PID file.
Bug noted by heatherj <heatherj@cup.hp.com>
aland [Thu, 25 Jan 2001 16:06:19 +0000 (16:06 +0000)]
Moved a number of definitions from configure-time substitution
to make-time substitution.
e.g. FOO=@bar@/stuff --> FOO=${bar}/stuff
This makes it more clear where the various configuration directives
are coming from.
aland [Wed, 24 Jan 2001 18:59:03 +0000 (18:59 +0000)]
added more debugging messages to tell people exactly what's going
on, when there's an error binding to auth/acct ports
jcarneal [Wed, 24 Jan 2001 17:56:01 +0000 (17:56 +0000)]
Fix for bug #107. Changed 'NULL' to '0' in accounting inserts.
miquels [Wed, 24 Jan 2001 13:10:24 +0000 (13:10 +0000)]
* Corrected spelling of my name in several .c files
jcarneal [Tue, 23 Jan 2001 21:53:27 +0000 (21:53 +0000)]
Just a couple of tweaks...exception handling, etc.
jcarneal [Tue, 23 Jan 2001 21:46:23 +0000 (21:46 +0000)]
Finishing up ODBC support to work for authentication, etc. It seems to work
just fine, but since I don't use sql auth, we'll need other testers to jump
in and really put it thru its paces. The driver is complete and just needs
testing now.
pacman [Tue, 23 Jan 2001 20:47:37 +0000 (20:47 +0000)]
Moved group{}-handling into compile_modsingle so groups can be parsed
correctly when placed directly inside a component section
pam [Tue, 23 Jan 2001 09:47:52 +0000 (09:47 +0000)]
Fixed couple of incorect ldap_msgfree() invocations, which could lead to segfault.
Fixed instance configuration.
Added patch by Hannu Laurila <hannu.laurila@japo.fi> for multivalued attributes support.
pam [Mon, 22 Jan 2001 11:42:38 +0000 (11:42 +0000)]
Two fixes in free() of unintialized structures.
Those bugs are reason for bug#106 and death upon SIGHUP
aland [Sun, 21 Jan 2001 16:09:11 +0000 (16:09 +0000)]
Fix for bug #105.
ALWAYS create a new Vendor-Specific attribute when trying to encode
multiple VSA's. Some older RADIUS implementations do not understand
multiple VSA's in a Vendor-Specific.
aland [Sun, 21 Jan 2001 16:03:17 +0000 (16:03 +0000)]
removed Alan Curry's 'radutmp' from 'todo' to 'done'
mmachado [Fri, 19 Jan 2001 18:03:38 +0000 (18:03 +0000)]
Fixed sql structure for mysql
pam [Fri, 19 Jan 2001 16:11:05 +0000 (16:11 +0000)]
Adding Netscape Directory Server LDAP schema for RADIUS attributes.
It should serve as starting poit for propper LDAP v3 schema.
jcarneal [Tue, 16 Jan 2001 23:18:08 +0000 (23:18 +0000)]
Making a vain attempt to sync oracle with current driver (mysql) changes.
This is one of the main reasons we should go with ODBC.
jcarneal [Tue, 16 Jan 2001 23:16:53 +0000 (23:16 +0000)]
Adding misc changes from David Kerry's Oracle patch. Mostly cosmetic.
jcarneal [Tue, 16 Jan 2001 22:26:55 +0000 (22:26 +0000)]
The humble beginnings of ODBC support for FreeRadius.
Currently it works for accounting only. Auth will be added shortly,
after a much needed discussion on the list about the future of the
SQL module.
This driver requires libiodbc available from www.iodbc.org. However, it
*should* be ODBC 2.5 compliant and require very minor changes to work
with another ODBC library.
mmachado [Mon, 15 Jan 2001 22:03:57 +0000 (22:03 +0000)]
Forgot to clean up mutexes, semaphores and conditional variables on sql_poolfree()
jcarneal [Mon, 15 Jan 2001 19:09:16 +0000 (19:09 +0000)]
Committing part of Oracle patch for David Kerry <davidk@snti.com>.
I'm committing only the db_oracle.sql, sql_oracle.c,h files now.
The changes to the rlm_sql module from his patch most likely will
not apply now, so at a later date I (or someone) can add them back
in by hand where applicable.
pacman [Mon, 15 Jan 2001 09:07:15 +0000 (09:07 +0000)]
Fix a little header problem
pacman [Mon, 15 Jan 2001 06:03:05 +0000 (06:03 +0000)]
Moved all radutmp functionality from radiusd into rlm_radutmp.
cmiller [Fri, 12 Jan 2001 21:22:19 +0000 (21:22 +0000)]
Commented-out leak patch. It may be the wrong thing to do.
cmiller [Fri, 12 Jan 2001 18:21:33 +0000 (18:21 +0000)]
This file was awfully ugly; lots of space-indenting (and not even eight,
often).
This is a big patch that cleans it up, to meet our standards.
vi's `:set list' is a ghodsend.
cmiller [Fri, 12 Jan 2001 18:17:30 +0000 (18:17 +0000)]
Plugged leak in INCLUDEing empty files.
cmiller [Thu, 11 Jan 2001 20:38:58 +0000 (20:38 +0000)]
Set better defaults for user, group, and lookup_hostname `variables'.
mmachado [Thu, 11 Jan 2001 20:22:47 +0000 (20:22 +0000)]
Removed socket used time calculations becuase they were way off. Request timestamp methods must have changed since cistron. I may or may not add that back in, depending on if people think it was a good idea.