aland [Sat, 14 Apr 2007 17:22:19 +0000 (17:22 +0000)]
Clean up header files
aland [Sat, 14 Apr 2007 16:57:13 +0000 (16:57 +0000)]
Don't build the module if there's no regex.h
aland [Sat, 14 Apr 2007 12:33:51 +0000 (12:33 +0000)]
Check for more #ifdef's
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
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
aland [Sat, 14 Apr 2007 11:45:31 +0000 (11:45 +0000)]
We don't need pwd.h or grp.h
aland [Sat, 14 Apr 2007 11:42:39 +0000 (11:42 +0000)]
Include getaddrinfo, too
aland [Sat, 14 Apr 2007 11:40:36 +0000 (11:40 +0000)]
Corrected typos, etc. so it builds
aland [Sat, 14 Apr 2007 11:24:02 +0000 (11:24 +0000)]
Removed unused label
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
aland [Fri, 13 Apr 2007 10:47:24 +0000 (10:47 +0000)]
Clean up some header files
aland [Fri, 13 Apr 2007 10:35:28 +0000 (10:35 +0000)]
Clean up header files
aland [Thu, 12 Apr 2007 10:05:28 +0000 (10:05 +0000)]
Don't re-initialize SNMP on HUP.
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.
aland [Thu, 12 Apr 2007 07:45:55 +0000 (07:45 +0000)]
Use new lrad_ipaddr_cmp() function
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
aland [Wed, 11 Apr 2007 13:55:07 +0000 (13:55 +0000)]
pairfree(&vp) on parse error.
This fixes Coverity bug #32
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
aland [Wed, 11 Apr 2007 12:46:21 +0000 (12:46 +0000)]
Note new SNMP support
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
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
aland [Wed, 11 Apr 2007 08:47:28 +0000 (08:47 +0000)]
Quench reject_delay to be no less than zero
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.
aland [Tue, 10 Apr 2007 14:58:52 +0000 (14:58 +0000)]
Set no such child PID for reject/cleanup requests
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
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
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.
aland [Tue, 10 Apr 2007 11:30:27 +0000 (11:30 +0000)]
make ':-' work again
aland [Tue, 10 Apr 2007 10:39:04 +0000 (10:39 +0000)]
cleaned up debug messages
aland [Tue, 10 Apr 2007 10:27:13 +0000 (10:27 +0000)]
Update the copyright years
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.
aland [Tue, 10 Apr 2007 08:00:47 +0000 (08:00 +0000)]
*** empty log message ***
aland [Mon, 9 Apr 2007 23:26:27 +0000 (23:26 +0000)]
use sizeof()
aland [Sun, 8 Apr 2007 14:18:01 +0000 (14:18 +0000)]
Added RFC 4679 dictionary
aland [Sun, 8 Apr 2007 14:04:54 +0000 (14:04 +0000)]
Added DSL forum informational RFC
aland [Sun, 8 Apr 2007 14:04:11 +0000 (14:04 +0000)]
Pulled new RFC's from IETF.org
aland [Sun, 8 Apr 2007 07:14:57 +0000 (07:14 +0000)]
Add more LDAP escaping rules from RFC 2253
aland [Sun, 8 Apr 2007 06:31:58 +0000 (06:31 +0000)]
Corrected typo
This fixes bug #440
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
aland [Sun, 8 Apr 2007 06:25:37 +0000 (06:25 +0000)]
Force response to be in uppercase
This fixes bug #439
aland [Sun, 8 Apr 2007 06:14:36 +0000 (06:14 +0000)]
Corrected typo.
This fixes bug #437
aland [Sun, 8 Apr 2007 06:12:07 +0000 (06:12 +0000)]
Pull fix for bug #436 from branch_1_1
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
aland [Sat, 7 Apr 2007 23:21:42 +0000 (23:21 +0000)]
We treat openbraces as normal.
This fixes Coverity bug #2
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
aland [Sat, 7 Apr 2007 22:47:11 +0000 (22:47 +0000)]
Don't de-reference NULL on exec
This fixes Coverity bug #7
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.
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
aland [Sat, 7 Apr 2007 22:34:55 +0000 (22:34 +0000)]
One-liner to quiet Coverity
This fixes Coverity bug #11
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
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
aland [Sat, 7 Apr 2007 22:22:51 +0000 (22:22 +0000)]
call fclose() on error.
This fixes Coverity bug #15
aland [Sat, 7 Apr 2007 22:20:30 +0000 (22:20 +0000)]
free(c) on parse error
This fixes Coverity bug #17
aland [Sat, 7 Apr 2007 22:18:34 +0000 (22:18 +0000)]
free handler on OOM.
This fixes Coverity bug #22
aland [Sat, 7 Apr 2007 22:16:39 +0000 (22:16 +0000)]
free(inst) on OOM
This fixes Coverity bug #23
aland [Sat, 7 Apr 2007 22:14:51 +0000 (22:14 +0000)]
On failed open, free memory.
This fixs Coverity bug #24
aland [Sat, 7 Apr 2007 22:12:16 +0000 (22:12 +0000)]
free strdup'd memory on error.
This fixes Coverity bug #25
aland [Sat, 7 Apr 2007 22:06:08 +0000 (22:06 +0000)]
free(c) on error.
This fixes Coverity bug #26
aland [Sat, 7 Apr 2007 22:04:08 +0000 (22:04 +0000)]
free(c) on error.
This fixes Coverity bug #27
aland [Sat, 7 Apr 2007 22:01:10 +0000 (22:01 +0000)]
free(this) on error.
This fixes Coverity bug #28
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
aland [Sat, 7 Apr 2007 21:49:32 +0000 (21:49 +0000)]
free(vp) on decoding error.
This fixes Coverity bug #32
aland [Sat, 7 Apr 2007 21:46:36 +0000 (21:46 +0000)]
free(newhash) on error.
This fixes Coverity bug #33
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
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
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
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
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
aland [Sat, 7 Apr 2007 15:15:25 +0000 (15:15 +0000)]
Documentation and examples for new templates feature
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
aland [Sat, 7 Apr 2007 14:54:14 +0000 (14:54 +0000)]
Added another recent RFC
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
aland [Sat, 7 Apr 2007 14:47:34 +0000 (14:47 +0000)]
New RADIUS dictionary
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
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
aland [Sat, 7 Apr 2007 11:08:05 +0000 (11:08 +0000)]
Template for load-balance, etc. tests
aland [Sat, 7 Apr 2007 10:55:24 +0000 (10:55 +0000)]
work around CVS issues
nbk [Fri, 6 Apr 2007 10:12:16 +0000 (10:12 +0000)]
Add rlm_sql_firebird (author: Vitaly Bodzhgua) to CVS head, too.
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
aland [Thu, 5 Apr 2007 13:37:21 +0000 (13:37 +0000)]
casts, etc. to quiet compiler warnings
aland [Thu, 5 Apr 2007 12:27:32 +0000 (12:27 +0000)]
More casts to avoid -std=c99 warnings
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
nbk [Thu, 5 Apr 2007 10:16:30 +0000 (10:16 +0000)]
Regenerate from configure.in.
aland [Thu, 5 Apr 2007 10:00:47 +0000 (10:00 +0000)]
include <string.h> if necessary, too
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
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.
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.
nbk [Tue, 3 Apr 2007 14:41:06 +0000 (14:41 +0000)]
Include missing header "radius_snmp.h".
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
aland [Tue, 3 Apr 2007 08:13:18 +0000 (08:13 +0000)]
-I ..../libltdl
aland [Tue, 3 Apr 2007 08:12:25 +0000 (08:12 +0000)]
print one-line per-file summary, if asked
aland [Tue, 3 Apr 2007 08:11:02 +0000 (08:11 +0000)]
more sanity checks
aland [Tue, 3 Apr 2007 08:10:34 +0000 (08:10 +0000)]
corrected typo
nbk [Mon, 2 Apr 2007 14:51:53 +0000 (14:51 +0000)]
Fix compilation errors.
nbk [Mon, 2 Apr 2007 14:48:35 +0000 (14:48 +0000)]
Don't include the same header multiple times.
nbk [Mon, 2 Apr 2007 14:43:36 +0000 (14:43 +0000)]
The variable "rcsid" is defined twice.
nbk [Fri, 30 Mar 2007 13:47:05 +0000 (13:47 +0000)]
otppasswd.sample is no longer used.
aland [Tue, 27 Mar 2007 08:39:15 +0000 (08:39 +0000)]
use sizeof(), rather than hard-coded number
aland [Tue, 27 Mar 2007 08:35:26 +0000 (08:35 +0000)]
with strlcpy, we don't need an extra -1
aland [Mon, 26 Mar 2007 12:58:16 +0000 (12:58 +0000)]
Update version number