freeradius.git
19 years ago cl->shortname may now be NULL
aland [Sat, 23 Apr 2005 00:50:55 +0000 (00:50 +0000)]
cl->shortname may now be NULL

19 years ago document that there are essentially no limits on the length of
aland [Fri, 22 Apr 2005 23:42:41 +0000 (23:42 +0000)]
document that there are essentially no limits on the length of
the shared secret

19 years ago remove length restrictions on strings in RADCLIENT data structure
aland [Fri, 22 Apr 2005 23:38:02 +0000 (23:38 +0000)]
remove length restrictions on strings in RADCLIENT data structure
by making them malloc'd strings, and updating mainconfig to parse
them automagically via CONF_PARSER magic.

19 years ago fix dumb error
aland [Fri, 22 Apr 2005 23:20:41 +0000 (23:20 +0000)]
fix dumb error

19 years ago clean up the parsing code a little more
aland [Fri, 22 Apr 2005 22:14:59 +0000 (22:14 +0000)]
clean up the parsing code a little more

19 years ago Fix compiler warning.
aland [Fri, 22 Apr 2005 21:39:01 +0000 (21:39 +0000)]
Fix compiler warning.
Minor code re-format to match coding style

19 years ago renamed queue mutex to make it clearer what's going on
aland [Fri, 22 Apr 2005 21:36:12 +0000 (21:36 +0000)]
renamed queue mutex to make it clearer what's going on

19 years ago re-align text
aland [Fri, 22 Apr 2005 21:33:29 +0000 (21:33 +0000)]
re-align text

19 years ago corrected typo in define
aland [Fri, 22 Apr 2005 21:26:23 +0000 (21:26 +0000)]
corrected typo in define

19 years agoIn lib/sql/attrmap.php3, only register variables once. Go through $show_attrs and...
kkalev [Fri, 22 Apr 2005 13:21:31 +0000 (13:21 +0000)]
In lib/sql/attrmap.php3, only register variables once. Go through $show_attrs and set default attribute
mappings for any attribute that a mapping does not exist.

19 years ago Added a bunch of 'const', and cf_pair_parse(), which should make
aland [Fri, 22 Apr 2005 00:50:26 +0000 (00:50 +0000)]
Added a bunch of 'const', and cf_pair_parse(), which should make
it a little easier for people who parse configuration entries
by hand.

19 years ago one-character typo fix
aland [Thu, 21 Apr 2005 22:05:41 +0000 (22:05 +0000)]
one-character typo fix

19 years ago allow IPv6 in listen{} sections.
aland [Thu, 21 Apr 2005 21:58:56 +0000 (21:58 +0000)]
allow IPv6 in listen{} sections.

19 years ago Better debug/error messages
aland [Thu, 21 Apr 2005 21:58:30 +0000 (21:58 +0000)]
Better debug/error messages

19 years ago Preparations for IPv6 done.
aland [Thu, 21 Apr 2005 17:31:41 +0000 (17:31 +0000)]
Preparations for IPv6 done.

19 years ago look for struct addrinfo
aland [Thu, 21 Apr 2005 17:16:08 +0000 (17:16 +0000)]
look for struct addrinfo

19 years ago Check for struct sockaddr_storage
aland [Thu, 21 Apr 2005 16:57:58 +0000 (16:57 +0000)]
Check for struct sockaddr_storage

19 years ago Catch IPv6-mapped IPv4 address.
aland [Thu, 21 Apr 2005 16:54:07 +0000 (16:54 +0000)]
Catch IPv6-mapped IPv4 address.

The server can now listen on IPv6 address ::1 (localhost), and
packets sent to 127.0.0.1 will be mapped into the IPv6 address
space, and the server should recognize them, even if only the
IPv4 address is listed in clients.conf

19 years ago Define PW_NAS_IP6_ADDRESS and use it in rlm_preprocess
aland [Thu, 21 Apr 2005 16:51:39 +0000 (16:51 +0000)]
Define PW_NAS_IP6_ADDRESS and use it in rlm_preprocess

19 years ago socklen_t is already defined in autoconf.h
aland [Thu, 21 Apr 2005 16:40:43 +0000 (16:40 +0000)]
socklen_t is already defined in autoconf.h

19 years ago Protocol Independent wrapper function only for IPv4.
raghu [Thu, 21 Apr 2005 02:31:01 +0000 (02:31 +0000)]
 Protocol Independent wrapper function only for IPv4.

19 years ago Protocol independent functions for IPv4.
raghu [Thu, 21 Apr 2005 02:27:19 +0000 (02:27 +0000)]
 Protocol independent functions for IPv4.
 These are used only if they are not defined on the platform.

19 years ago Minor fixes to make new rad_recfrom function return the correct
aland [Thu, 21 Apr 2005 01:10:32 +0000 (01:10 +0000)]
Minor fixes to make new rad_recfrom function return the correct
src/dst AF's for IPv6

19 years ago Implement [ipv6add]:port
aland [Thu, 21 Apr 2005 01:05:38 +0000 (01:05 +0000)]
Implement [ipv6add]:port

19 years ago More IPv6 stuff.
raghu [Thu, 21 Apr 2005 00:35:36 +0000 (00:35 +0000)]
 More IPv6 stuff.

19 years ago rad_listen_t now has lrad_ipaddr_t instead of uint32_t
aland [Thu, 21 Apr 2005 00:18:02 +0000 (00:18 +0000)]
rad_listen_t now has lrad_ipaddr_t instead of uint32_t

Server has some more provisions for listening on IPv6 interfaces,
but it's not all there yet

19 years ago Fixed debugging messages
aland [Wed, 20 Apr 2005 23:12:58 +0000 (23:12 +0000)]
Fixed debugging messages

19 years ago Add -4 && -6 command line options, to force IPv6/IPv6.
aland [Wed, 20 Apr 2005 23:12:39 +0000 (23:12 +0000)]
Add -4 && -6 command line options, to force IPv6/IPv6.

radclient now sends RADIUS packets out IPv6 interfaces

19 years ago Define Packet-Src/Dst-IPv6-Address
aland [Wed, 20 Apr 2005 23:05:38 +0000 (23:05 +0000)]
Define Packet-Src/Dst-IPv6-Address

19 years ago Changes to radclient which should (theoretically) support
aland [Wed, 20 Apr 2005 22:51:58 +0000 (22:51 +0000)]
Changes to radclient which should (theoretically) support
IPv6

19 years ago Don't do #ifdef AF_INET6, as it's always defined now
aland [Wed, 20 Apr 2005 22:31:50 +0000 (22:31 +0000)]
Don't do #ifdef AF_INET6, as it's always defined now

19 years ago inet_pton && inet_ntop fixes
aland [Wed, 20 Apr 2005 22:27:30 +0000 (22:27 +0000)]
inet_pton && inet_ntop fixes

19 years ago We now always have inet_ntop, even if it's our own implementation.
aland [Wed, 20 Apr 2005 20:15:30 +0000 (20:15 +0000)]
We now always have inet_ntop, even if it's our own implementation.
We always have AF_INET6, even if it's our own definition.

Our own inet_ntop now prints IPv4 and IPv6 in a dumb, but simple
format

19 years ago Forgot from last commit
aland [Wed, 20 Apr 2005 19:54:50 +0000 (19:54 +0000)]
Forgot from last commit

19 years ago define struct in6_addr if it's not defined. This lets the server
aland [Wed, 20 Apr 2005 19:54:27 +0000 (19:54 +0000)]
define struct in6_addr if it's not defined.  This lets the server
implement IPv6 for packets it's handling, even if it can't listen
on IPv6 sockets natively

This change will probably break the build for the next little while,
until the #ifdef AF_INET6 stuff gets cleaned up...

19 years ago If we have AF_INET6, use new API's to look up IPv6 addresses
aland [Wed, 20 Apr 2005 00:04:20 +0000 (00:04 +0000)]
If we have AF_INET6, use new API's to look up IPv6 addresses
in the configuration files

19 years ago Use new API for hostname lookups
aland [Wed, 20 Apr 2005 00:01:23 +0000 (00:01 +0000)]
Use new API for hostname lookups

19 years ago Do DNS lookups (or not) for IPv6 names, too
aland [Tue, 19 Apr 2005 23:55:41 +0000 (23:55 +0000)]
Do DNS lookups (or not) for IPv6 names, too

19 years ago Call new functions to do DNS lookups
aland [Tue, 19 Apr 2005 23:50:39 +0000 (23:50 +0000)]
Call new functions to do DNS lookups

19 years ago Look the server up with IPv6 aware code, too
aland [Tue, 19 Apr 2005 23:42:47 +0000 (23:42 +0000)]
Look the server up with IPv6 aware code, too

19 years ago Now builds with new IPv6 code.
aland [Tue, 19 Apr 2005 23:40:37 +0000 (23:40 +0000)]
Now builds with new IPv6 code.

Doesn't handle IPv6 clients, though.  That can be fixed later.

19 years ago Don't use ip_getaddr, use new ip_hton
aland [Tue, 19 Apr 2005 23:38:49 +0000 (23:38 +0000)]
Don't use ip_getaddr, use new ip_hton

19 years ago check for getaddrinfo() && getnameinfo(), which both beat the
aland [Tue, 19 Apr 2005 23:33:44 +0000 (23:33 +0000)]
check for getaddrinfo() && getnameinfo(), which both beat the
pants off of gethostbybname() & friends

19 years ago Initialize salen before calling getsockname
raghu [Tue, 19 Apr 2005 22:07:41 +0000 (22:07 +0000)]
Initialize salen before calling getsockname

19 years ago configure gets excited about $@, and tries to replace the @
aland [Tue, 19 Apr 2005 21:31:37 +0000 (21:31 +0000)]
configure gets excited about $@, and tries to replace the @
with some intepreted string, which nukes the -L && -lradius
lines.

19 years ago Massive change to add foundational support for IPv6.
aland [Tue, 19 Apr 2005 21:21:12 +0000 (21:21 +0000)]
Massive change to add foundational support for IPv6.

Most of the code is still hard-coded to use IPv6, and there are
assertions sprinkled throughout which will cause the server to
die if IPv6 is used.  However, the data structures are there,
and most of the support functions.  The next step is updating
the client code to look for IPv6 clients, and to listen on IPv6
sockets.

radiusd & radclient work.  radrelay & radsqlrelay build.

Most of the modules work.  rlm_sql doesn't (as yet).

19 years ago compiler warnings & fixes
aland [Tue, 19 Apr 2005 20:52:12 +0000 (20:52 +0000)]
compiler warnings & fixes

19 years ago typo
aland [Tue, 19 Apr 2005 20:51:26 +0000 (20:51 +0000)]
typo

19 years ago document radwho && radzap changes
aland [Tue, 19 Apr 2005 20:50:54 +0000 (20:50 +0000)]
document radwho && radzap changes

19 years ago One-character fix for typo
aland [Tue, 19 Apr 2005 20:25:55 +0000 (20:25 +0000)]
One-character fix for typo

19 years ago req is a REQUEST*, not a RADIUS_PACKET*.
aland [Tue, 19 Apr 2005 20:11:37 +0000 (20:11 +0000)]
req is a REQUEST*, not a RADIUS_PACKET*.

Free it via request_free(), and not rad_free()

19 years ago Fix brackets. Bug noted by Richard Arkner
aland [Tue, 19 Apr 2005 16:54:57 +0000 (16:54 +0000)]
Fix brackets.  Bug noted by Richard Arkner

19 years agoIn time2strclock also show days if applicable
kkalev [Tue, 19 Apr 2005 13:27:30 +0000 (13:27 +0000)]
In time2strclock also show days if applicable

19 years ago C++ comments are bad
aland [Tue, 19 Apr 2005 00:38:27 +0000 (00:38 +0000)]
C++ comments are bad

19 years ago Removed unused variables
aland [Tue, 19 Apr 2005 00:11:24 +0000 (00:11 +0000)]
Removed unused variables

19 years ago libtool to build, libtool to install
aland [Mon, 18 Apr 2005 20:50:22 +0000 (20:50 +0000)]
libtool to build, libtool to install

19 years ago corrected typo in last commit
aland [Mon, 18 Apr 2005 19:00:24 +0000 (19:00 +0000)]
corrected typo in last commit

19 years ago Make SERVER_OBJS depend on INCLUDES, and clean up other includes
aland [Mon, 18 Apr 2005 18:51:00 +0000 (18:51 +0000)]
Make SERVER_OBJS depend on INCLUDES, and clean up other includes

19 years ago Delete dependency on configure.ac, which isn't in the package.
aland [Mon, 18 Apr 2005 17:26:32 +0000 (17:26 +0000)]
Delete dependency on configure.ac, which isn't in the package.

The "makefile" tries to re-build "configure", and then runs it
again, after it was already configured & the makefile built.

WTF kind of drugs are these guys on?

19 years ago Fixed typo in comment
aland [Fri, 15 Apr 2005 20:38:20 +0000 (20:38 +0000)]
Fixed typo in comment

19 years agoAdd a ?> at the end of user_admin.php3
kkalev [Fri, 15 Apr 2005 15:55:28 +0000 (15:55 +0000)]
Add a ?> at the end of user_admin.php3

19 years agoFix a bug with user_admin and da_sql_limit
kkalev [Fri, 15 Apr 2005 07:14:55 +0000 (07:14 +0000)]
Fix a bug with user_admin and da_sql_limit

19 years ago configure in libltdl, if LIBLTDLPATH is set
aland [Fri, 15 Apr 2005 00:36:38 +0000 (00:36 +0000)]
configure in libltdl, if LIBLTDLPATH is set

19 years ago Add files which help libltdl to build
raghu [Fri, 15 Apr 2005 00:32:59 +0000 (00:32 +0000)]
Add files which help libltdl to build

19 years ago Hack AC_LIBLTDL_INSTALLABLE so it sets LIBLTDLPATH (or not)
aland [Thu, 14 Apr 2005 23:25:49 +0000 (23:25 +0000)]
Hack AC_LIBLTDL_INSTALLABLE so it sets LIBLTDLPATH (or not)
and we don't get the crap of libltdl/ NOT being configured, but
the Make.inc thinking it was, and trying to build in there.

Did I mention I hate autoconf?

19 years agoFix a small bug in lib/sql/drivers/mysql/functions.php3
kkalev [Thu, 14 Apr 2005 23:17:21 +0000 (23:17 +0000)]
Fix a small bug in lib/sql/drivers/mysql/functions.php3

19 years agoFix a small typo
kkalev [Thu, 14 Apr 2005 13:46:04 +0000 (13:46 +0000)]
Fix a small typo

19 years agoUse the correct max results variable in lib/*/find.php3
kkalev [Thu, 14 Apr 2005 13:43:01 +0000 (13:43 +0000)]
Use the correct max results variable in lib/*/find.php3

19 years ago Change x99_pw_valid() to x99_pwe_cmp(), and coalesce args into a
fcusack [Thu, 14 Apr 2005 08:31:18 +0000 (08:31 +0000)]
Change x99_pw_valid() to x99_pwe_cmp(), and coalesce args into a
struct to support upcoming cardops layer.

19 years ago restore data zero-ing removed in 1.41; parser works differently
fcusack [Thu, 14 Apr 2005 07:43:53 +0000 (07:43 +0000)]
restore data zero-ing removed in 1.41; parser works differently
now so data must be zeroed beforehand

19 years ago Free the avp if we return without adding it in the packet
nbk [Wed, 13 Apr 2005 18:16:25 +0000 (18:16 +0000)]
Free the avp if we return without adding it in the packet

19 years agocompiler warnings
fcusack [Wed, 13 Apr 2005 18:12:27 +0000 (18:12 +0000)]
compiler warnings

19 years agopull in changes from pam_x99_auth
fcusack [Tue, 12 Apr 2005 07:52:54 +0000 (07:52 +0000)]
pull in changes from pam_x99_auth

19 years ago 'exit 1' to 'exit $?', which is better
aland [Tue, 12 Apr 2005 00:37:03 +0000 (00:37 +0000)]
'exit 1' to 'exit $?', which is better

19 years ago Initialize wait_mutex, not queue mutex
aland [Mon, 11 Apr 2005 23:39:39 +0000 (23:39 +0000)]
Initialize wait_mutex, not queue mutex

19 years ago deleted unused code
aland [Mon, 11 Apr 2005 23:11:55 +0000 (23:11 +0000)]
deleted unused code

19 years ago 'exit 1' to 'exit $?', which is better
aland [Mon, 11 Apr 2005 21:22:10 +0000 (21:22 +0000)]
'exit 1' to 'exit $?', which is better

19 years ago 'static' to 'static const'
aland [Fri, 8 Apr 2005 23:52:08 +0000 (23:52 +0000)]
'static' to 'static const'

19 years ago 'static' to 'static const'
aland [Fri, 8 Apr 2005 23:38:13 +0000 (23:38 +0000)]
'static' to 'static const'

19 years ago 'static' to 'static const'
aland [Fri, 8 Apr 2005 23:25:53 +0000 (23:25 +0000)]
'static' to 'static const'

19 years ago 'static' to 'static const'
aland [Fri, 8 Apr 2005 23:18:57 +0000 (23:18 +0000)]
'static' to 'static const'

19 years ago 'static' to 'static const'
aland [Fri, 8 Apr 2005 23:13:29 +0000 (23:13 +0000)]
'static' to 'static const'

19 years ago Added CVS Id
aland [Fri, 8 Apr 2005 21:15:11 +0000 (21:15 +0000)]
Added CVS Id

19 years ago radzap is now a shell-script wrapper around radwho && radclient.
aland [Fri, 8 Apr 2005 21:14:35 +0000 (21:14 +0000)]
radzap is now a shell-script wrapper around radwho && radclient.

As a nice side benefit, radzap actually works.

The one problem is that it's command-line arguments aren't backwards
compatible.  Oh well..

19 years agoUpdate ippool configuration with the key directive
kkalev [Fri, 8 Apr 2005 16:02:54 +0000 (16:02 +0000)]
Update ippool configuration with the key directive

19 years agoInstead of nas/port keep an MD5 of an xlated string as the key. Also update
kkalev [Fri, 8 Apr 2005 16:00:42 +0000 (16:00 +0000)]
Instead of nas/port keep an MD5 of an xlated string as the key. Also update
rlm_ippool_tool to support the new format.
This closes Bug #42
Code changes were funded by Airdesk Inc.

19 years ago Updated for latest functionality
aland [Thu, 7 Apr 2005 22:36:29 +0000 (22:36 +0000)]
Updated for latest functionality

19 years ago Added support for server name of "-", and looking for
aland [Thu, 7 Apr 2005 22:22:53 +0000 (22:22 +0000)]
Added support for server name of "-", and looking for
Packet-Dst-IP-Address in the VP's

19 years ago Added URL & CVS Id
aland [Thu, 7 Apr 2005 22:14:15 +0000 (22:14 +0000)]
Added URL & CVS Id

19 years ago Added dictionary.waverider, as posted to the list, with some edits
aland [Thu, 7 Apr 2005 22:12:21 +0000 (22:12 +0000)]
Added dictionary.waverider, as posted to the list, with some edits

19 years ago Minor fixes to "zap" functionality, and documentation
aland [Thu, 7 Apr 2005 18:57:30 +0000 (18:57 +0000)]
Minor fixes to "zap" functionality, and documentation

19 years ago Escape '"' when printing. It's weird that this wasn't caught
aland [Thu, 7 Apr 2005 18:45:06 +0000 (18:45 +0000)]
Escape '"' when printing.  It's weird that this wasn't caught
before....

19 years ago Let's print the correct values for attributes...
aland [Wed, 6 Apr 2005 23:15:55 +0000 (23:15 +0000)]
Let's print the correct values for attributes...

19 years ago Tiny code changes turn radwho into a radzap clone, minus
aland [Wed, 6 Apr 2005 22:43:41 +0000 (22:43 +0000)]
Tiny code changes turn radwho into a radzap clone, minus
the radclient portions.  Now "radwho -Z .... | radclient" is the
equivalent of radzap.  Nice.

19 years ago Added RADIUS attribute output, so we can make "radzap"
aland [Wed, 6 Apr 2005 17:41:45 +0000 (17:41 +0000)]
Added RADIUS attribute output, so we can make "radzap"
a shell script wrapper around radwho

19 years ago -l hasn't worked for years now. Delete it.
aland [Wed, 6 Apr 2005 16:36:08 +0000 (16:36 +0000)]
-l hasn't worked for years now.  Delete it.

Rename -h to -S.  -h should be "help"

19 years ago radwho no longer calls read_mainconfig(), which makes it a little
aland [Wed, 6 Apr 2005 00:54:05 +0000 (00:54 +0000)]
radwho no longer calls read_mainconfig(), which makes it a little
easier to use radwho(), without that function trying to open
sockets, etc.

It also means that it becomes easier to make 'radzap' a shell-script
wrapper around radwho & radclient, which would result in less code

19 years agoCount online users correctly (through a separate query) in user_finger.
kkalev [Tue, 5 Apr 2005 13:32:23 +0000 (13:32 +0000)]
Count online users correctly (through a separate query) in user_finger.

19 years agoFix a typo
kkalev [Mon, 4 Apr 2005 11:31:55 +0000 (11:31 +0000)]
Fix a typo

19 years ago Add a test to prevent division by zero.
nbk [Sun, 3 Apr 2005 17:35:24 +0000 (17:35 +0000)]
Add a test to prevent division by zero.
Bug reported by Jakub Wartak.