freeradius.git
17 years ago Clean up header files
aland [Sat, 14 Apr 2007 17:22:19 +0000 (17:22 +0000)]
Clean up header files

17 years ago Don't build the module if there's no regex.h
aland [Sat, 14 Apr 2007 16:57:13 +0000 (16:57 +0000)]
Don't build the module if there's no regex.h

17 years ago Check for more #ifdef's
aland [Sat, 14 Apr 2007 12:33:51 +0000 (12:33 +0000)]
Check for more #ifdef's

17 years ago Added more header files && libraries
aland [Sat, 14 Apr 2007 12:33:26 +0000 (12:33 +0000)]
Added more header files && libraries

removed gethostname() function, which is only used by rlm_smb,
which no one should be using

17 years ago Check for pwd.h && grp.h, and don't build rlm_unix if they're
aland [Sat, 14 Apr 2007 11:57:20 +0000 (11:57 +0000)]
Check for pwd.h && grp.h, and don't build rlm_unix if they're
not found

17 years ago We don't need pwd.h or grp.h
aland [Sat, 14 Apr 2007 11:45:31 +0000 (11:45 +0000)]
We don't need pwd.h or grp.h

17 years ago Include getaddrinfo, too
aland [Sat, 14 Apr 2007 11:42:39 +0000 (11:42 +0000)]
Include getaddrinfo, too

17 years ago Corrected typos, etc. so it builds
aland [Sat, 14 Apr 2007 11:40:36 +0000 (11:40 +0000)]
Corrected typos, etc. so it builds

17 years ago Removed unused label
aland [Sat, 14 Apr 2007 11:24:02 +0000 (11:24 +0000)]
Removed unused label

17 years ago Third argument to strlcpy is size of output buffer, not length
aland [Sat, 14 Apr 2007 01:26:11 +0000 (01:26 +0000)]
Third argument to strlcpy is size of output buffer, not length
of string to be copied

17 years ago Clean up some header files
aland [Fri, 13 Apr 2007 10:47:24 +0000 (10:47 +0000)]
Clean up some header files

17 years ago Clean up header files
aland [Fri, 13 Apr 2007 10:35:28 +0000 (10:35 +0000)]
Clean up header files

17 years ago Don't re-initialize SNMP on HUP.
aland [Thu, 12 Apr 2007 10:05:28 +0000 (10:05 +0000)]
Don't re-initialize SNMP on HUP.

17 years ago It's OK if we can't create a Post-Auth-Type = Reject.
aland [Thu, 12 Apr 2007 09:55:24 +0000 (09:55 +0000)]
It's OK if we can't create a Post-Auth-Type = Reject.
It probably means that the user didn't define one.

17 years ago Use new lrad_ipaddr_cmp() function
aland [Thu, 12 Apr 2007 07:45:55 +0000 (07:45 +0000)]
Use new lrad_ipaddr_cmp() function

17 years ago move lrad_ipaddr_cmp() from packet.c to misc.c, make it public,
aland [Wed, 11 Apr 2007 13:55:53 +0000 (13:55 +0000)]
move lrad_ipaddr_cmp() from packet.c to misc.c, make it public,
and make others use it

17 years ago pairfree(&vp) on parse error.
aland [Wed, 11 Apr 2007 13:55:07 +0000 (13:55 +0000)]
pairfree(&vp) on parse error.

This fixes Coverity bug #32

17 years ago Update more SNMP counters after double-checking them.
aland [Wed, 11 Apr 2007 12:47:07 +0000 (12:47 +0000)]
Update more SNMP counters after double-checking them.

Don't proxy if we find Auth-Type := Reject

17 years ago Note new SNMP support
aland [Wed, 11 Apr 2007 12:46:21 +0000 (12:46 +0000)]
Note new SNMP support

17 years ago Don't return c->ipaddr, it's a struct. Return c->ipaddr.ipaddr.ip4addr,
aland [Wed, 11 Apr 2007 12:45:52 +0000 (12:45 +0000)]
Don't return c->ipaddr, it's a struct.  Return c->ipaddr.ipaddr.ip4addr,
OR NULL if it's an IPv6 client.

Double-check more return codes

17 years ago removed rad_postauth_reject(), and multiple references to it in
aland [Wed, 11 Apr 2007 08:50:48 +0000 (08:50 +0000)]
    removed rad_postauth_reject(), and multiple references to it in
        auth.c

        Added code in request_post_handler to call rad_postauth() for
        Access-Reject packets.  We now have one place in the code where
        the "Post-Auth-Type = Reject" functionality is called, and less
        code

17 years ago Quench reject_delay to be no less than zero
aland [Wed, 11 Apr 2007 08:47:28 +0000 (08:47 +0000)]
Quench reject_delay to be no less than zero

17 years ago Allow cleanup_delay() to be called with REQUEST_DONE, too.
aland [Wed, 11 Apr 2007 05:04:33 +0000 (05:04 +0000)]
Allow cleanup_delay() to be called with REQUEST_DONE, too.

        In cleanup_delay(), call wait_for_proxy_id_to_expire only if
        the request is in the proxy hash.  If the request has been
        proxied and we suddenly find there's no home servers, we will
        have request->proxy, but it won't be in the proxy hash.

        In wait_a_bit() call cleanup_delay() when the request is marked
        REQUEST_DONE, to avoid memory leaks.

        When switching a proxied request from a dead home server to a
        live one, call wait_a_bit() after request_post_handler (which
is what normally happens) to ensure that REJECT_DELAY, etc.
get properly handled.

17 years ago Set no such child PID for reject/cleanup requests
aland [Tue, 10 Apr 2007 14:58:52 +0000 (14:58 +0000)]
Set no such child PID for reject/cleanup requests

17 years ago Keep SNMP statistics for packets we receive from clients, too.
aland [Tue, 10 Apr 2007 14:21:23 +0000 (14:21 +0000)]
Keep SNMP statistics for packets we receive from clients, too.

This should make the server somewhat more useful in some situations.

TO DO
- update to new RFC's with IPv6 support
- add client MIBs for proxied packets
- double-check that counters meet "issues & fixes" text

17 years ago Remember the new home server
aland [Tue, 10 Apr 2007 13:36:06 +0000 (13:36 +0000)]
Remember the new home server

Set proxy->data to NULL after free'ing it

17 years ago Moved SNMP socket handling to listen.c, in preparation for
aland [Tue, 10 Apr 2007 13:11:01 +0000 (13:11 +0000)]
Moved SNMP socket handling to listen.c, in preparation for
priority queues of sockets.

i.e. we may decide to completely ignore SNMP requests if there
is a pending queue of authentication requests.

17 years ago make ':-' work again
aland [Tue, 10 Apr 2007 11:30:27 +0000 (11:30 +0000)]
make ':-' work again

17 years ago cleaned up debug messages
aland [Tue, 10 Apr 2007 10:39:04 +0000 (10:39 +0000)]
cleaned up debug messages

17 years ago Update the copyright years
aland [Tue, 10 Apr 2007 10:27:13 +0000 (10:27 +0000)]
Update the copyright years

17 years ago rad_panic never returns
aland [Tue, 10 Apr 2007 10:22:14 +0000 (10:22 +0000)]
rad_panic never returns

In cleanup_delay, remove any pending events.
Otherwise, pending events would be called for a
free'd REQUEST

moved check for zombie home server to separate function

home_server_ldb now takes realm name && pool, not REALM.
This lets us send an outstanding request to a different
home server for the same realm, when we receive a retransmit,
and discover that the realm has (or should have been)
marked dead.

This functionality should minimize the number of requests
that don't get responses.

17 years ago*** empty log message ***
aland [Tue, 10 Apr 2007 08:00:47 +0000 (08:00 +0000)]
*** empty log message ***

17 years ago use sizeof()
aland [Mon, 9 Apr 2007 23:26:27 +0000 (23:26 +0000)]
use sizeof()

17 years ago Added RFC 4679 dictionary
aland [Sun, 8 Apr 2007 14:18:01 +0000 (14:18 +0000)]
Added RFC 4679 dictionary

17 years ago Added DSL forum informational RFC
aland [Sun, 8 Apr 2007 14:04:54 +0000 (14:04 +0000)]
Added DSL forum informational RFC

17 years ago Pulled new RFC's from IETF.org
aland [Sun, 8 Apr 2007 14:04:11 +0000 (14:04 +0000)]
Pulled new RFC's from IETF.org

17 years ago Add more LDAP escaping rules from RFC 2253
aland [Sun, 8 Apr 2007 07:14:57 +0000 (07:14 +0000)]
Add more LDAP escaping rules from RFC 2253

17 years ago Corrected typo
aland [Sun, 8 Apr 2007 06:31:58 +0000 (06:31 +0000)]
Corrected typo

This fixes bug #440

17 years ago Use memcmp, rather than doing the comparison by hand.
aland [Sun, 8 Apr 2007 06:29:16 +0000 (06:29 +0000)]
Use memcmp, rather than doing the comparison by hand.

This fixes bug #438

17 years ago Force response to be in uppercase
aland [Sun, 8 Apr 2007 06:25:37 +0000 (06:25 +0000)]
Force response to be in uppercase

This fixes bug #439

17 years ago Corrected typo.
aland [Sun, 8 Apr 2007 06:14:36 +0000 (06:14 +0000)]
Corrected typo.

This fixes bug #437

17 years ago Pull fix for bug #436 from branch_1_1
aland [Sun, 8 Apr 2007 06:12:07 +0000 (06:12 +0000)]
Pull fix for bug #436 from branch_1_1

17 years ago Don't print errors if the error is zero.
aland [Sun, 8 Apr 2007 06:10:40 +0000 (06:10 +0000)]
Don't print errors if the error is zero.

This closes bug #436

17 years ago We treat openbraces as normal.
aland [Sat, 7 Apr 2007 23:21:42 +0000 (23:21 +0000)]
We treat openbraces as normal.

This fixes Coverity bug #2

17 years ago Border-line case where cache may be NULL...
aland [Sat, 7 Apr 2007 22:50:40 +0000 (22:50 +0000)]
Border-line case where cache may be NULL...

This fixes Coverity bug #5

17 years ago Don't de-reference NULL on exec
aland [Sat, 7 Apr 2007 22:47:11 +0000 (22:47 +0000)]
Don't de-reference NULL on exec

This fixes Coverity bug #7

17 years ago If we failed to create a VP on OOM, exit from the loop.
aland [Sat, 7 Apr 2007 22:42:51 +0000 (22:42 +0000)]
If we failed to create a VP on OOM, exit from the loop.

This fixes Coverity bug #7.

17 years ago Complain if we get an error reading the radutmp file.
aland [Sat, 7 Apr 2007 22:40:00 +0000 (22:40 +0000)]
Complain if we get an error reading the radutmp file.

This fixes Coverity bug #9

17 years ago One-liner to quiet Coverity
aland [Sat, 7 Apr 2007 22:34:55 +0000 (22:34 +0000)]
One-liner to quiet Coverity

This fixes Coverity bug #11

17 years ago Should use (sizeof(array)/sizeof(array[0]) for looping over
aland [Sat, 7 Apr 2007 22:32:37 +0000 (22:32 +0000)]
Should use (sizeof(array)/sizeof(array[0]) for looping over
the entries

This fixes Coverity bug #12

17 years ago On continuation, die if the buffer is nearing full.
aland [Sat, 7 Apr 2007 22:28:17 +0000 (22:28 +0000)]
On continuation, die if the buffer is nearing full.

This fixes Coverity bug #13

17 years ago call fclose() on error.
aland [Sat, 7 Apr 2007 22:22:51 +0000 (22:22 +0000)]
call fclose() on error.

This fixes Coverity bug #15

17 years ago free(c) on parse error
aland [Sat, 7 Apr 2007 22:20:30 +0000 (22:20 +0000)]
free(c) on parse error

This fixes Coverity bug #17

17 years ago free handler on OOM.
aland [Sat, 7 Apr 2007 22:18:34 +0000 (22:18 +0000)]
free handler on OOM.

This fixes Coverity bug #22

17 years ago free(inst) on OOM
aland [Sat, 7 Apr 2007 22:16:39 +0000 (22:16 +0000)]
free(inst) on OOM

This fixes Coverity bug #23

17 years ago On failed open, free memory.
aland [Sat, 7 Apr 2007 22:14:51 +0000 (22:14 +0000)]
On failed open, free memory.

This fixs Coverity bug #24

17 years ago free strdup'd memory on error.
aland [Sat, 7 Apr 2007 22:12:16 +0000 (22:12 +0000)]
free strdup'd memory on error.

This fixes Coverity bug #25

17 years ago free(c) on error.
aland [Sat, 7 Apr 2007 22:06:08 +0000 (22:06 +0000)]
free(c) on error.

This fixes Coverity bug #26

17 years ago free(c) on error.
aland [Sat, 7 Apr 2007 22:04:08 +0000 (22:04 +0000)]
free(c) on error.

This fixes Coverity bug #27

17 years ago free(this) on error.
aland [Sat, 7 Apr 2007 22:01:10 +0000 (22:01 +0000)]
free(this) on error.

This fixes Coverity bug #28

17 years ago If we've run out of memory, free(challenge), too.
aland [Sat, 7 Apr 2007 21:59:18 +0000 (21:59 +0000)]
If we've run out of memory, free(challenge), too.
Just to be pedantic.

This fixes Coverity bug #29

17 years ago free(vp) on decoding error.
aland [Sat, 7 Apr 2007 21:49:32 +0000 (21:49 +0000)]
free(vp) on decoding error.

This fixes Coverity bug #32

17 years ago free(newhash) on error.
aland [Sat, 7 Apr 2007 21:46:36 +0000 (21:46 +0000)]
free(newhash) on error.

This fixes Coverity bug #33

17 years ago dict_init() && my_dict_init() require a non-NULL 'dir'.
aland [Sat, 7 Apr 2007 21:41:38 +0000 (21:41 +0000)]
dict_init() && my_dict_init() require a non-NULL 'dir'.

This fixes Coverity bug #34

17 years ago sql_poolfree dereferences inst->config, too. Move it to inside
aland [Sat, 7 Apr 2007 21:35:44 +0000 (21:35 +0000)]
sql_poolfree dereferences inst->config, too. Move it to inside
the section that checks for inst->config.

This fixes Coverity bug #37

17 years ago Move free of xlat_name into section that checks for inst->config
aland [Sat, 7 Apr 2007 21:32:11 +0000 (21:32 +0000)]
Move free of xlat_name into section that checks for inst->config

This fixes Coverity bug #38

17 years ago Free dval on error reading the dictionary files, or on OOM.
aland [Sat, 7 Apr 2007 21:30:01 +0000 (21:30 +0000)]
Free dval on error reading the dictionary files, or on OOM.

This fixes Coverity bug #40

17 years ago prev_eap_ds might be NULL. Check it, too.
aland [Sat, 7 Apr 2007 21:27:19 +0000 (21:27 +0000)]
prev_eap_ds might be NULL.  Check it, too.

Fixes Coverity bug #41

17 years ago Documentation and examples for new templates feature
aland [Sat, 7 Apr 2007 15:15:25 +0000 (15:15 +0000)]
Documentation and examples for new templates feature

17 years agofile dictionary.rfc4675 was added on branch branch_1_1 on 2007-04-08 06:34:10 +0000
aland [Sat, 7 Apr 2007 14:54:14 +0000 (14:54 +0000)]
file dictionary.rfc4675 was added on branch branch_1_1 on 2007-04-08 06:34:10 +0000

17 years ago Added another recent RFC
aland [Sat, 7 Apr 2007 14:54:14 +0000 (14:54 +0000)]
Added another recent RFC

17 years agofile dictionary.rfc4372 was added on branch branch_1_1 on 2007-04-08 06:34:10 +0000
aland [Sat, 7 Apr 2007 14:47:34 +0000 (14:47 +0000)]
file dictionary.rfc4372 was added on branch branch_1_1 on 2007-04-08 06:34:10 +0000

17 years ago New RADIUS dictionary
aland [Sat, 7 Apr 2007 14:47:34 +0000 (14:47 +0000)]
New RADIUS dictionary

17 years ago Add templates, which are taken from an idea by Arran Cudbard-Bell
aland [Sat, 7 Apr 2007 14:25:12 +0000 (14:25 +0000)]
Add templates, which are taken from an idea by Arran Cudbard-Bell
using include files.  This feature doesn't need include files,
and can drastically simplify complex repeated configurations
like home_servers

17 years ago add "client-balance", which is load-balancing to home servers
aland [Sat, 7 Apr 2007 11:12:05 +0000 (11:12 +0000)]
add "client-balance", which is load-balancing to home servers
by hashing the client source IP

17 years ago Template for load-balance, etc. tests
aland [Sat, 7 Apr 2007 11:08:05 +0000 (11:08 +0000)]
Template for load-balance, etc. tests

17 years ago work around CVS issues
aland [Sat, 7 Apr 2007 10:55:24 +0000 (10:55 +0000)]
work around CVS issues

17 years ago Add rlm_sql_firebird (author: Vitaly Bodzhgua) to CVS head, too.
nbk [Fri, 6 Apr 2007 10:12:16 +0000 (10:12 +0000)]
Add rlm_sql_firebird (author: Vitaly Bodzhgua) to CVS head, too.

17 years ago Initial stab at an automated test harness for FreeRADIUS.
aland [Thu, 5 Apr 2007 14:42:50 +0000 (14:42 +0000)]
Initial stab at an automated test harness for FreeRADIUS.

Right now, there are a limited number of tests, but the
infrastructure is there to do a lot more

17 years ago casts, etc. to quiet compiler warnings
aland [Thu, 5 Apr 2007 13:37:21 +0000 (13:37 +0000)]
casts, etc. to quiet compiler warnings

17 years ago More casts to avoid -std=c99 warnings
aland [Thu, 5 Apr 2007 12:27:32 +0000 (12:27 +0000)]
More casts to avoid -std=c99 warnings

17 years ago Massively cleaned up #include's, so they're in a consistent
aland [Thu, 5 Apr 2007 10:52:14 +0000 (10:52 +0000)]
Massively cleaned up #include's, so they're in a consistent
form.  Most modules now need to include only radiusd.h && modules.h

Some of the EAP modules still need to be checked

17 years ago Regenerate from configure.in.
nbk [Thu, 5 Apr 2007 10:16:30 +0000 (10:16 +0000)]
Regenerate from configure.in.

17 years ago include <string.h> if necessary, too
aland [Thu, 5 Apr 2007 10:00:47 +0000 (10:00 +0000)]
include <string.h> if necessary, too

17 years ago Include missing.h from libradius.h
aland [Thu, 5 Apr 2007 09:59:41 +0000 (09:59 +0000)]
Include missing.h from libradius.h
Do not include it from radiusd.h

Add more includes to missing.h, so everything it references
is defined in a header file it includes

Removed includes from libradius.h, as they're now in missing.h

17 years ago Add support for "./configure --without-docdir" which cancels
nbk [Wed, 4 Apr 2007 09:23:57 +0000 (09:23 +0000)]
Add support for "./configure --without-docdir" which cancels
doc files installation instead of raising an error. This is
useful for the downstream distributions of FreeRADIUS.

17 years ago Add support for "./configure --without-docdir" which cancels
nbk [Wed, 4 Apr 2007 09:22:21 +0000 (09:22 +0000)]
Add support for "./configure --without-docdir" which cancels
doc files installation instead of raising an error. This is
useful for the downstream distributions of FreeRADIUS.

17 years ago Include missing header "radius_snmp.h".
nbk [Tue, 3 Apr 2007 14:41:06 +0000 (14:41 +0000)]
Include missing header "radius_snmp.h".

17 years ago Massive change to the server core to remove horrid code in
aland [Tue, 3 Apr 2007 13:25:58 +0000 (13:25 +0000)]
Massive change to the server core to remove horrid code in
request*.c, and move to an event-based system.  Much better,
and somewhat tested

17 years ago -I ..../libltdl
aland [Tue, 3 Apr 2007 08:13:18 +0000 (08:13 +0000)]
-I ..../libltdl

17 years ago print one-line per-file summary, if asked
aland [Tue, 3 Apr 2007 08:12:25 +0000 (08:12 +0000)]
print one-line per-file summary, if asked

17 years ago more sanity checks
aland [Tue, 3 Apr 2007 08:11:02 +0000 (08:11 +0000)]
more sanity checks

17 years ago corrected typo
aland [Tue, 3 Apr 2007 08:10:34 +0000 (08:10 +0000)]
corrected typo

17 years ago Fix compilation errors.
nbk [Mon, 2 Apr 2007 14:51:53 +0000 (14:51 +0000)]
Fix compilation errors.

17 years ago Don't include the same header multiple times.
nbk [Mon, 2 Apr 2007 14:48:35 +0000 (14:48 +0000)]
Don't include the same header multiple times.

17 years ago The variable "rcsid" is defined twice.
nbk [Mon, 2 Apr 2007 14:43:36 +0000 (14:43 +0000)]
The variable "rcsid" is defined twice.

17 years ago otppasswd.sample is no longer used.
nbk [Fri, 30 Mar 2007 13:47:05 +0000 (13:47 +0000)]
otppasswd.sample is no longer used.

17 years ago use sizeof(), rather than hard-coded number
aland [Tue, 27 Mar 2007 08:39:15 +0000 (08:39 +0000)]
use sizeof(), rather than hard-coded number

17 years ago with strlcpy, we don't need an extra -1
aland [Tue, 27 Mar 2007 08:35:26 +0000 (08:35 +0000)]
with strlcpy, we don't need an extra -1

17 years ago Update version number
aland [Mon, 26 Mar 2007 12:58:16 +0000 (12:58 +0000)]
Update version number