freeradius.git
24 years agoFirst successful build! Now need to get rid of warnings and add the sql_finish_query... first-build
mmachado [Tue, 21 Sep 1999 02:02:57 +0000 (02:02 +0000)]
First successful build! Now need to get rid of warnings and add the sql_finish_query after all queries.

24 years agonew xlat with some extra options, and corrected one bug created in last
ivanfm [Mon, 20 Sep 1999 22:31:16 +0000 (22:31 +0000)]
new xlat with some extra options, and corrected one bug created in last
version(wrong setting '\0')

24 years agoNow using vp_prints_value and receiving the output buffer and length of
ivanfm [Mon, 20 Sep 1999 21:55:13 +0000 (21:55 +0000)]
Now using vp_prints_value and receiving the output buffer and length of
output buffer

24 years agofunction vp_prints splited in vp_prints and vp_prints_value
ivanfm [Mon, 20 Sep 1999 21:50:15 +0000 (21:50 +0000)]
function vp_prints splited in vp_prints and vp_prints_value
ivanfm

24 years agoIncluded definition of vp_prints_value()
ivanfm [Mon, 20 Sep 1999 21:46:32 +0000 (21:46 +0000)]
Included definition of vp_prints_value()
ivanfm

24 years agoMany formatting changes and optimizations based on Alan very good suggestions
ivanfm [Mon, 20 Sep 1999 20:29:37 +0000 (20:29 +0000)]
Many formatting changes and optimizations based on Alan very good suggestions
1999-09-20 - ivanfm

24 years agoAdding sql_finish_query and sql_select_finish_query
mmachado [Mon, 20 Sep 1999 19:06:49 +0000 (19:06 +0000)]
Adding sql_finish_query and sql_select_finish_query

24 years agoTranslation routine to be checked - 1999-09-20 - ivanfm
ivanfm [Mon, 20 Sep 1999 18:52:31 +0000 (18:52 +0000)]
Translation routine to be checked - 1999-09-20 - ivanfm

24 years ago * Use uname to detect OS/2
miquels [Mon, 20 Sep 1999 17:50:18 +0000 (17:50 +0000)]
* Use uname to detect OS/2

24 years agoIncluded radlog_dir - 1999-09-20 - ivanfm
ivanfm [Mon, 20 Sep 1999 17:48:27 +0000 (17:48 +0000)]
Included radlog_dir - 1999-09-20 - ivanfm

24 years ago use librad error messages when complaining about parse errors
aland [Mon, 20 Sep 1999 17:13:05 +0000 (17:13 +0000)]
use librad error messages when complaining about parse errors

24 years ago don't need LOGDIR here any more.
aland [Mon, 20 Sep 1999 17:08:28 +0000 (17:08 +0000)]
don't need LOGDIR here any more.

24 years ago * Added LIBPREFIX, set to "" on OS/2 and "lib" on Unix
miquels [Mon, 20 Sep 1999 15:50:45 +0000 (15:50 +0000)]
* Added LIBPREFIX, set to "" on OS/2 and "lib" on Unix

24 years ago check for /etc/passwd, and do NOT build rlm_unix if it doesn't
aland [Mon, 20 Sep 1999 13:00:43 +0000 (13:00 +0000)]
check for /etc/passwd, and do NOT build rlm_unix if it doesn't
exist.

24 years ago * Added some functions to missing.c: str[n]casecmp,
miquels [Sun, 19 Sep 1999 16:38:00 +0000 (16:38 +0000)]
* Added some functions to missing.c: str[n]casecmp,
  gethostname, inet_ntoa
* Check for -rdynamic flag in configure

24 years agoInclude missing.h - ivanfm - 1999-09-19
ivanfm [Sun, 19 Sep 1999 13:37:08 +0000 (13:37 +0000)]
Include missing.h - ivanfm - 1999-09-19

24 years agoIncluded missing.h - ivanfm - 1999-09-19
ivanfm [Sun, 19 Sep 1999 13:36:28 +0000 (13:36 +0000)]
Included missing.h - ivanfm - 1999-09-19

24 years ago*** empty log message ***
ivanfm [Sun, 19 Sep 1999 13:35:02 +0000 (13:35 +0000)]
*** empty log message ***

24 years ago * Really removed makelist.sh this time
miquels [Sat, 18 Sep 1999 17:59:41 +0000 (17:59 +0000)]
* Really removed makelist.sh this time

24 years ago * Renamed some more Makefile.in files to plain Makefile
miquels [Sat, 18 Sep 1999 17:58:17 +0000 (17:58 +0000)]
* Renamed some more Makefile.in files to plain Makefile
* Removed the check for Makefile-include style from ./configure;
  we now always use `include filename'
* removed makelist.sh, added functionality to makemodules.sh
* Fixed sysutmp.h for OS/2
* Fixed radclient.c for OS/2

24 years agoChange a couple of Makefile.ins to plain Makefiles
miquels [Sat, 18 Sep 1999 13:46:52 +0000 (13:46 +0000)]
Change a couple of Makefile.ins to plain Makefiles
Added missing.c and missing.h
Detect <utmp.h> and define replacements in sysutmp.h if missing
New mechanism in main/Makefile to detect static modules
Fix warnings in lib/filters.c

24 years agoMoving over to SQLSOCK structs
mmachado [Fri, 17 Sep 1999 23:58:57 +0000 (23:58 +0000)]
Moving over to SQLSOCK structs

24 years agoTrying to accomodate the different db API's by only passing a SQLSOCK and the indivua...
mmachado [Thu, 9 Sep 1999 18:22:42 +0000 (18:22 +0000)]
Trying to accomodate the different db API's by only passing a SQLSOCK and the indivual db module writers can typedef SQLSOCK to whatever the hell they want. For mysql it will contain the MYSQL connection as well as a MYSQL_RES this way all sql_* functions only need the SQLSOCK because not all API's use a result type set

24 years agoFixed bug with Reply-Message in build_reply.
stangrze [Mon, 6 Sep 1999 20:48:15 +0000 (20:48 +0000)]
Fixed bug with Reply-Message in build_reply.
There also should be an sanity check for user_msg longer than MAX_STRING_LEN.

24 years agoAdded integer translations for Service-Type to radius.h
stangrze [Mon, 6 Sep 1999 08:10:23 +0000 (08:10 +0000)]
Added integer translations for Service-Type to radius.h
Added missing include in raduse, fixed PW_STRIPED_USERNAME in rlm_preprocess

24 years agoFixed bug with devnull.
stangrze [Sun, 5 Sep 1999 21:20:50 +0000 (21:20 +0000)]
Fixed bug with devnull.

24 years agoGot most of the structure names moved over now need to re look at the radius code...
mmachado [Sun, 5 Sep 1999 19:36:13 +0000 (19:36 +0000)]
Got most of the structure names moved over now need to re look at the radius code and get it to interact.

24 years agoGetting closer! Still have to do a few more mysql conv functions for sql_module.c...
mmachado [Thu, 2 Sep 1999 20:06:26 +0000 (20:06 +0000)]
Getting closer! Still have to do a few more mysql conv functions for sql_module.c/h and need to change the names for the stuff pointing to the old icradius stuff

24 years ago added bitch about check-items in the reply-item list.
aland [Thu, 2 Sep 1999 14:59:48 +0000 (14:59 +0000)]
added bitch about check-items in the reply-item list.

It now prints out a DESCRIPTIVE error message saying exactly
what's the user did wrong.

24 years ago rad_send() can now be called multiple times with the same
aland [Wed, 1 Sep 1999 14:37:56 +0000 (14:37 +0000)]
rad_send() can now be called multiple times with the same
RADIUS_PACKET* ptr.  The first time, it mallocs a packet,
and converts the VP list to attributes in the packet.

The second (and following) times, it just re-sends the
already-built packet.

This allows it to encode the Password and CHAP-Password
attributes itself, and also save that work on subsequent sends.

24 years ago make sure fgets() gets the sizeof the buffer, and not a hard-coded
aland [Tue, 31 Aug 1999 14:28:48 +0000 (14:28 +0000)]
make sure fgets() gets the sizeof the buffer, and not a hard-coded
size.

24 years ago made the library code support generic 'octets' type (raw hex)
aland [Tue, 31 Aug 1999 00:31:37 +0000 (00:31 +0000)]
made the library code support generic 'octets' type (raw hex)

made library use raw octets for ascend 'abinary' type, even if
the ascend code isn't compiled in.

24 years ago update so everyone else can build things, too.
aland [Mon, 30 Aug 1999 23:49:36 +0000 (23:49 +0000)]
update so everyone else can build things, too.

24 years ago updated 'radtest' for new 'radclient' command-line options
aland [Mon, 30 Aug 1999 20:56:05 +0000 (20:56 +0000)]
updated 'radtest' for new 'radclient' command-line options

allow it to grab the '-d FOO' parameter for dictionary directory

24 years ago removed dumb PRINTF 'debugging' code.
aland [Mon, 30 Aug 1999 20:51:15 +0000 (20:51 +0000)]
removed dumb PRINTF 'debugging' code.

added printing of generic filters.

started general clean-up of the code: it REALLY needs rewriting

24 years ago corrected minor problems (filter was defined to be too short)
aland [Mon, 30 Aug 1999 18:01:34 +0000 (18:01 +0000)]
corrected minor problems (filter was defined to be too short)

finalized IPX printing

24 years ago updated for better printing, some more IPX printing
aland [Mon, 30 Aug 1999 17:42:45 +0000 (17:42 +0000)]
updated for better printing, some more IPX printing

still the possibility for bad attributes causing it to
talk off of the end of a buffer

24 years ago made rad_send() encode the Password attribute.
aland [Mon, 30 Aug 1999 16:05:22 +0000 (16:05 +0000)]
made rad_send() encode the Password attribute.
Fixed radclient && proxy code to NOT encode the password.

Work still needs to be done to do the same for CHAP-Password.

24 years ago server now prints an error if rad_recv() returns NULL
aland [Mon, 30 Aug 1999 12:53:00 +0000 (12:53 +0000)]
server now prints an error if rad_recv() returns NULL

corrected error messages in rad_recv()

24 years ago updated rad_recv() to look for attributes having length 0 or 1,
aland [Sun, 29 Aug 1999 22:03:03 +0000 (22:03 +0000)]
updated rad_recv() to look for attributes having length 0 or 1,
and die if so.

added host IP addresses to error messages in rad_recv().

Hmm... we're still calling inet_ntoa, which isn't multi-thread
safe.

24 years ago right after we enter rad_authenticate(), decrypt the password
aland [Fri, 27 Aug 1999 19:12:45 +0000 (19:12 +0000)]
right after we enter rad_authenticate(), decrypt the password
(if it's a PW_PASSWORD attribute) so that all of the following
authentication modules can use the 'Password' attribute for
authentication purposes.

WARNING: NOT tested with other modules, and NOT tested with CHAP!

24 years ago don't print out as much information.
aland [Thu, 26 Aug 1999 20:41:36 +0000 (20:41 +0000)]
don't print out as much information.

Still not really tested.

Still doesn't print IPX or generic filters.

still vulnerable to buffer overflows if fields walk off the
end of an array

24 years ago more updates for header files
aland [Thu, 26 Aug 1999 20:17:14 +0000 (20:17 +0000)]
more updates for header files

24 years ago added preliminary ascend binary support
aland [Thu, 26 Aug 1999 20:13:59 +0000 (20:13 +0000)]
added preliminary ascend binary support

24 years agoNew file: build-radpaths-h.in
miquels [Thu, 26 Aug 1999 18:58:53 +0000 (18:58 +0000)]
New file: build-radpaths-h.in

24 years agoworking toward single sql interface
mmachado [Thu, 26 Aug 1999 16:51:21 +0000 (16:51 +0000)]
working toward single sql interface

24 years ago renamed STRIPPED_USERNAME to STRIPPED_USER_NAME to make it similar
aland [Thu, 26 Aug 1999 16:30:43 +0000 (16:30 +0000)]
renamed STRIPPED_USERNAME to STRIPPED_USER_NAME to make it similar
to the dictionary file.

defined unique number for PW_STRIPPED_USER_NAME, as 1042
was already used by another attribute.

modified code in auth.c: IF log_auth is set, AND debugging is '-xx',
double-check an incorrect password for unprintable characters.

If any are found, print a warning out, telling the user to
double-check the shared secret.  This should hopefully
reduce the number of complaints on the list about that problem.

24 years ago updated realms, clients, and naslist reading routines
aland [Thu, 26 Aug 1999 16:21:17 +0000 (16:21 +0000)]
updated realms, clients, and naslist reading routines
to check for a number of error conditions:

lines which do NOT end in a LF.  (e.g. someone's typed a HUGE
long string of garbage.)  This applies to comment lines, too.

the strings are read into LARGE buffers, and then double
checked for length.  Explicit and descriptive error messages
are returned, giving the current (bad) length, and the
maximum permitted length.

24 years ago*** empty log message ***
miquels [Wed, 25 Aug 1999 18:48:12 +0000 (18:48 +0000)]
*** empty log message ***

24 years ago patch from Chris Shenton <chris@shenton.org>: UNTESTED
aland [Wed, 25 Aug 1999 13:09:00 +0000 (13:09 +0000)]
patch from Chris Shenton <chris@shenton.org>: UNTESTED
He says:

An ISP I support has a Bay8000 NAS which seems to be the old Annex CLI
under the hood. It responds to finger like Max, Computone, etc but
it's slightly odd. I've extended "checkrad" to check for duplicate
users.

24 years ago defined secret radius_packet_t in the library, and modified
aland [Mon, 23 Aug 1999 23:37:48 +0000 (23:37 +0000)]
defined secret radius_packet_t in the library, and modified
code to use the new defines.

fixed auth.c (minor issues)

24 years ago force WRONG passwords to be passed through librad_safeprint()
aland [Mon, 23 Aug 1999 20:09:29 +0000 (20:09 +0000)]
force WRONG passwords to be passed through librad_safeprint()
before being output to the terminal.  This prevents weird
control codes from screwing up the local terminal settings.

rad_pwdecode() now returns the size of the password
librad_safeprint() is now exported.
libradius.h is wrapped by the standard '#ifndef LIBRADIUS_H,
#define LIBRADIUS_H .... #endif LIBRADIUS_H' stuff
rad_check_password() now returns the length of the password.

This should arguably returned in a VALUE_PAIR, like
'Internally-Decrypted-Password'.

The password printing in auth.c should be wrapped for correct
logins, too.

24 years ago*** empty log message ***
miquels [Mon, 23 Aug 1999 19:24:39 +0000 (19:24 +0000)]
*** empty log message ***

24 years ago add additional text describing where to download GNU Make
aland [Mon, 23 Aug 1999 17:17:08 +0000 (17:17 +0000)]
add additional text describing where to download GNU Make
if we can't find it on the system

24 years ago fix typos and URL
aland [Mon, 23 Aug 1999 15:21:21 +0000 (15:21 +0000)]
fix typos and URL

24 years ago added more sanity checking to rad_recv(), so it complains about
aland [Mon, 23 Aug 1999 14:54:02 +0000 (14:54 +0000)]
added more sanity checking to rad_recv(), so it complains about
the many types of possible malformed packets.

24 years agoHmm, how does this work? My changelog is in doc/ChangeLog
miquels [Sat, 21 Aug 1999 11:24:49 +0000 (11:24 +0000)]
Hmm, how does this work? My changelog is in doc/ChangeLog

24 years agoSee post to list
tsettle [Fri, 20 Aug 1999 16:59:02 +0000 (16:59 +0000)]
See post to list

24 years agoThis is just a prototype dictionary to get some feedback from other
tsettle [Fri, 20 Aug 1999 16:45:30 +0000 (16:45 +0000)]
This is just a prototype dictionary to get some feedback from other
contributers.  It's a complete translation of raddb/dictionary, and also
includes a stub vendor dictionary as a sample of where it could go.

24 years ago vp_prints now returns the number of characters it wrote,
aland [Thu, 19 Aug 1999 18:52:48 +0000 (18:52 +0000)]
vp_prints now returns the number of characters it wrote,
like sprintf()

pairmake() is now exported to the world.

added PW_NAS_IDENTIFIER to the defines in radius.h
(??? why wasn't it there before?)

print.c: characters 160..255 are no longer printable, to avoid
freaking out weird systems.  This should really be changed to
use isprint()

added operator in fixup routine for Password/Auth-Type in files.c

created rlm_acct_unique module, as an attempt to create
*really* unique Acct-Session-Id's.  There's no
Acct-Unique-Session-Id in the dictionary, but that can be fixed.

added more text to README.modules

24 years agosmall changes
mmachado [Wed, 18 Aug 1999 21:40:16 +0000 (21:40 +0000)]
small changes

24 years agoComming work until I get a chance to work on it again
mmachado [Wed, 18 Aug 1999 21:15:54 +0000 (21:15 +0000)]
Comming work until I get a chance to work on it again

24 years agoworking toward abstraction layer between radius sql module and actual db API
mmachado [Wed, 18 Aug 1999 19:27:12 +0000 (19:27 +0000)]
working toward abstraction layer between radius sql module and actual db API

24 years ago made a number of functions static, as they're not called
aland [Wed, 18 Aug 1999 18:15:57 +0000 (18:15 +0000)]
made a number of functions static, as they're not called
from anywhere else.

24 years ago moved stuff around
aland [Wed, 18 Aug 1999 13:44:37 +0000 (13:44 +0000)]
moved stuff around

24 years ago return error messages on recvfrom() socket error
aland [Wed, 18 Aug 1999 13:44:03 +0000 (13:44 +0000)]
return error messages on recvfrom() socket error

24 years ago look up port names "radius" and "radacct", so that radclient
aland [Wed, 18 Aug 1999 13:25:32 +0000 (13:25 +0000)]
look up port names "radius" and "radacct", so that radclient
can actually use the same ports that radiusd uses.

If that fails, default to PW_AUTH_UDP_PORT, instead of a
hard-coded 1645.

24 years ago added ldap. Who knows if it works?
aland [Wed, 18 Aug 1999 03:20:15 +0000 (03:20 +0000)]
added ldap.  Who knows if it works?

updated checkconfig to output unused CFLAGS entries, too

24 years ago there's no use checking for 'WITH_PAM' define, as it's not
aland [Wed, 18 Aug 1999 03:18:34 +0000 (03:18 +0000)]
there's no use checking for 'WITH_PAM' define, as it's not
used any more.  We've go another method which involves not
even compiling the module at all.

24 years ago include a sample snip of over-riding the TARGET definition
aland [Wed, 18 Aug 1999 00:49:07 +0000 (00:49 +0000)]
include a sample snip of over-riding the TARGET definition

24 years ago bring out the dict_init() error messages to the user on errors.
aland [Wed, 18 Aug 1999 00:45:11 +0000 (00:45 +0000)]
bring out the dict_init() error messages to the user on errors.

24 years ago use the right define for librad_errstr: it's NOT a pointer,
aland [Wed, 18 Aug 1999 00:44:44 +0000 (00:44 +0000)]
use the right define for librad_errstr: it's NOT a pointer,
it's a memory location of an array.

24 years ago allowed for the possibility we might be logging log messages
aland [Wed, 18 Aug 1999 00:44:05 +0000 (00:44 +0000)]
allowed for the possibility we might be logging log messages
in librad_log, through the use of a local buffer

added more descriptive warning messages to dict.c

24 years agoSorry Alan! Added stuff to use checkconfig to see if they have mysql in order to...
mmachado [Wed, 18 Aug 1999 00:28:21 +0000 (00:28 +0000)]
Sorry Alan! Added stuff to use checkconfig to see if they have mysql in order to build the mysql module

24 years ago moved the 'add attribute' and 'add vendor' code out to
aland [Wed, 18 Aug 1999 00:19:01 +0000 (00:19 +0000)]
moved the 'add attribute' and 'add vendor' code out to
brand-new functions.

added prototypes in libradius.h

added code in dict_add* to check for lengths of names.
also deleted code in my_dict_init(), which had hard-coded
lengths in the checks.  They really should be sizeof() the relevan
structures, so that they'll automatically change if the structure
changes.

24 years ago added new option to radclient: -f.
aland [Wed, 18 Aug 1999 00:12:20 +0000 (00:12 +0000)]
added new option to radclient: -f.
This allows it to read the value pairs from a file, and
not always from stdin.

24 years ago allow server variables/functions to be exported to the modules.
aland [Tue, 17 Aug 1999 23:55:56 +0000 (23:55 +0000)]
allow server variables/functions to be exported to the modules.

This is a HACK and should only be used until we can get autoconf
to see how the C compiler sets the '-rdynamic' flag

24 years ago don't hard-code which modules to make. Instead,
aland [Tue, 17 Aug 1999 23:51:23 +0000 (23:51 +0000)]
don't hard-code which modules to make.  Instead,
go to *all* of the rlm_foo directories, and do 'make static dynamic'
This allows for the possibility that some modules might have
empty targets.

24 years ago allow for the possibility that some peopke might not have mysql
aland [Tue, 17 Aug 1999 23:47:29 +0000 (23:47 +0000)]
allow for the possibility that some peopke might not have mysql

24 years agorlm_mysql.c now compiles. Had to move over to new REQUEST vs AUTH_REQ and such. Need...
mmachado [Tue, 17 Aug 1999 22:25:07 +0000 (22:25 +0000)]
rlm_mysql.c now compiles. Had to move over to new REQUEST vs AUTH_REQ and such. Need to now dig into mysql.c for all the real work functions

24 years ago added more errors and warning messages for malformed packets
aland [Tue, 17 Aug 1999 20:01:55 +0000 (20:01 +0000)]
added more errors and warning messages for malformed packets

24 years ago Timeout fixes from Stephen Langasek, with one or two minor
aland [Tue, 17 Aug 1999 19:56:39 +0000 (19:56 +0000)]
Timeout fixes from Stephen Langasek, with one or two minor
modifications by myself.

24 years ago spelling corrections.
aland [Tue, 17 Aug 1999 18:19:19 +0000 (18:19 +0000)]
spelling corrections.

make MD5Foo static, so they won't get confused with (say)
stupid evil Solaris nasty broken MD5 implementation.

24 years ago modifications to allow better making of modules
aland [Tue, 17 Aug 1999 18:17:36 +0000 (18:17 +0000)]
modifications to allow better making of modules

24 years ago Wrote LOTS of documentation in the example Makefile.
aland [Tue, 17 Aug 1999 18:16:53 +0000 (18:16 +0000)]
Wrote LOTS of documentation in the example Makefile.
Added a sample 'C' and 'H' files to demonstrate how to use
the Makefile.

24 years ago updated everything to use alanconf.
aland [Tue, 17 Aug 1999 15:42:14 +0000 (15:42 +0000)]
updated everything to use alanconf.

The 'rules.mak' file now checks for an empty target,
and does nothing if so.

The various make files now rely on 'config.mak', and
re-set the TARGET to '' if their required libraries, etc.
do not exist.

24 years agoStill A LOT of work to be done. I need to review the new code to learn some of the...
mmachado [Tue, 17 Aug 1999 02:43:09 +0000 (02:43 +0000)]
Still A LOT of work to be done. I need to review the new code to learn some of the macro name changes, what can be got from the varius auth(alan)conf stuff and some of the function name changes.

24 years agolibradius.h dies if it's included without a <sys/types.h>, so
aland [Mon, 16 Aug 1999 21:35:16 +0000 (21:35 +0000)]
libradius.h dies if it's included without a <sys/types.h>, so
we include that.

I don't know what affect this has on other systems... maybe autoconf
should check for it?

24 years ago added more error messages to valuepair.c
aland [Mon, 16 Aug 1999 19:37:47 +0000 (19:37 +0000)]
added more error messages to valuepair.c

fixed radclient to print out more messages, and take a '-d'
argument for 'radius directory', ala the server.  '-x' is now
debugging.

delete intermediate configuration files in rlm_unix

24 years agoadding mysql module based on icradius 0.8
mmachado [Mon, 16 Aug 1999 18:30:12 +0000 (18:30 +0000)]
adding mysql module based on icradius 0.8

24 years agoInitial revision origin/aland
aland [Mon, 16 Aug 1999 17:55:05 +0000 (17:55 +0000)]
Initial revision