aland [Tue, 16 Oct 2007 09:18:50 +0000 (09:18 +0000)]
Moved do_snmp back into mainconfig
aland [Tue, 16 Oct 2007 09:14:27 +0000 (09:14 +0000)]
Corrected typo
aland [Mon, 15 Oct 2007 15:43:47 +0000 (15:43 +0000)]
Look for <sys/prctl.h>. Checks for prctl() will come later
aland [Mon, 15 Oct 2007 15:38:38 +0000 (15:38 +0000)]
Clarify code allowing core dumps
aland [Mon, 15 Oct 2007 07:43:33 +0000 (07:43 +0000)]
Define ALL types first, so that config in one section can
reference types defined in another section
aland [Mon, 15 Oct 2007 07:35:11 +0000 (07:35 +0000)]
Define dynamic types (Autz-type foo) etc. before trying to load
the rest of the sections
aland [Sun, 14 Oct 2007 19:11:25 +0000 (19:11 +0000)]
request->proxy may be set for requests with inner tunnel
sessions
aland [Sun, 14 Oct 2007 17:36:05 +0000 (17:36 +0000)]
Cleaned up warning and error messages
aland [Sun, 14 Oct 2007 15:38:11 +0000 (15:38 +0000)]
remove dumb assert
aland [Sun, 14 Oct 2007 14:03:46 +0000 (14:03 +0000)]
Update clients from root_clients, if possible
aland [Sun, 14 Oct 2007 13:22:58 +0000 (13:22 +0000)]
Add "method" to modcallable, so that we can call different
module methods under administrator control
aland [Sat, 13 Oct 2007 12:48:31 +0000 (12:48 +0000)]
If there's no proxy section, use the defaults
aland [Sat, 13 Oct 2007 09:53:06 +0000 (09:53 +0000)]
Corrected fix
aland [Sat, 13 Oct 2007 07:10:45 +0000 (07:10 +0000)]
*ev_p may be NULL.
aland [Fri, 12 Oct 2007 16:08:15 +0000 (16:08 +0000)]
Close ref. Patch as posted to the list by Apple.
aland [Thu, 11 Oct 2007 11:22:47 +0000 (11:22 +0000)]
Fix from bug #483
aland [Thu, 11 Oct 2007 10:11:29 +0000 (10:11 +0000)]
Made it work with non-GNU makes
aland [Wed, 10 Oct 2007 13:17:53 +0000 (13:17 +0000)]
More cleanups and warnings
aland [Tue, 9 Oct 2007 15:00:40 +0000 (15:00 +0000)]
Clean up threads, and add thread pool lock/unlock functions,
in preparation for HUP
aland [Tue, 9 Oct 2007 14:50:08 +0000 (14:50 +0000)]
Clarify thread handling and debug messages
aland [Tue, 9 Oct 2007 14:45:58 +0000 (14:45 +0000)]
Move uid_name and gid_name out of global variable, as they're
only of use to mainconfig.c
aland [Tue, 9 Oct 2007 14:39:36 +0000 (14:39 +0000)]
Increment/decrement refcount on mainconfig, in preparation for
HUP support (some time in the future)
aland [Tue, 9 Oct 2007 14:30:49 +0000 (14:30 +0000)]
Parse, validate, and use "virtual_server" configuration in
home_server_pool. When set, pre/post proxy sections are run
through this virtual server.
Note that we don't do this for realms. It *might* be useful,
but we'll leave it out for now
aland [Tue, 9 Oct 2007 14:25:35 +0000 (14:25 +0000)]
listen / client config changes server -> virtual_server for
clarity. "server = " is also accepted for compatibilty with
2.0-pre*
aland [Tue, 9 Oct 2007 14:15:34 +0000 (14:15 +0000)]
Rename "server_pool" to "home_server_pool". It's clearer
aland [Tue, 9 Oct 2007 14:12:26 +0000 (14:12 +0000)]
Add %{home_server:foo} and %{home_server_pool:foo}
server_pool -> home_server_pool rename will happen in a later
commit
aland [Tue, 9 Oct 2007 14:07:32 +0000 (14:07 +0000)]
Added %{client:foo} expansion
aland [Tue, 9 Oct 2007 13:46:24 +0000 (13:46 +0000)]
Debug print IP addresses.
aland [Tue, 9 Oct 2007 13:44:10 +0000 (13:44 +0000)]
Recommend that people don't use rlm_policy
aland [Tue, 9 Oct 2007 13:43:43 +0000 (13:43 +0000)]
No one uses protocol_filter. It's useless now that "unlang"
is here
aland [Tue, 9 Oct 2007 13:40:14 +0000 (13:40 +0000)]
In preparation for 2.0
aland [Tue, 9 Oct 2007 13:24:22 +0000 (13:24 +0000)]
Add argument to loop exit, and cache FD_SET
aland [Tue, 9 Oct 2007 12:19:55 +0000 (12:19 +0000)]
Whitespace changes (indenting and formatting to meet FreeRADIUS
style)
aland [Tue, 9 Oct 2007 12:12:33 +0000 (12:12 +0000)]
// -> /* ... */
and other ANSI C fixes
aland [Tue, 9 Oct 2007 12:08:48 +0000 (12:08 +0000)]
#if __APPLE__
to
#ifdef __APPLE__
aland [Tue, 9 Oct 2007 12:07:48 +0000 (12:07 +0000)]
Move add_reply to mschap_add_reply, so that the opendir code
can use it
aland [Fri, 5 Oct 2007 07:10:32 +0000 (07:10 +0000)]
As posted to the list
aland [Wed, 3 Oct 2007 13:29:04 +0000 (13:29 +0000)]
More re-arrangements to clarify the code.
Cleaned up debug output so it should be even easier to
understand.
aland [Wed, 3 Oct 2007 12:18:48 +0000 (12:18 +0000)]
Removed useless error message
aland [Wed, 3 Oct 2007 06:33:53 +0000 (06:33 +0000)]
Clean up compiler warnings and remove exit(0)
aland [Wed, 3 Oct 2007 06:29:49 +0000 (06:29 +0000)]
More sanity checks on the module instance handles.
Patch from Stephan Jaeger.
aland [Fri, 28 Sep 2007 12:51:07 +0000 (12:51 +0000)]
Re-arrange code, one less reference to global variables
aland [Fri, 28 Sep 2007 12:50:43 +0000 (12:50 +0000)]
No longer reference mainconfig.clients
aland [Fri, 28 Sep 2007 12:07:04 +0000 (12:07 +0000)]
Removed all references to mainconfig.clients.
aland [Fri, 28 Sep 2007 11:46:58 +0000 (11:46 +0000)]
Moved nearly all remaining code out of radiusd.c, and into
event.c
This means that the main server loop is purely event-driven,
by sockets and by timed events.
There are still a few FIXME's, like adding newly-created proxy
sockets to the event loop, but that shouldn't be hard to fix.
The result is that the code is (again) much easier to
understand. Also, we hope that HUP support will be easier to
add after this change.
aland [Fri, 28 Sep 2007 11:44:08 +0000 (11:44 +0000)]
Added cf_top_section()
aland [Fri, 28 Sep 2007 09:09:58 +0000 (09:09 +0000)]
Added status function to be called just before select()
aland [Thu, 27 Sep 2007 23:37:55 +0000 (23:37 +0000)]
Added socket handling code to the event loop. This should
simplify it somewhat...
aland [Thu, 27 Sep 2007 15:02:41 +0000 (15:02 +0000)]
Added the OpenSER dictionary from their web site.
Commented out (i.e. unused) because of conflicts
aland [Thu, 27 Sep 2007 14:11:00 +0000 (14:11 +0000)]
No need to reset snmp stuff. It's done in radius_snmp_init()
aland [Thu, 27 Sep 2007 14:09:09 +0000 (14:09 +0000)]
Corrected return type of init.
aland [Wed, 26 Sep 2007 16:10:02 +0000 (16:10 +0000)]
Clarify difference between normal and enforcement operators
aland [Wed, 26 Sep 2007 16:00:00 +0000 (16:00 +0000)]
Add == as a filtering operator in unlang, and document it.
It's the opposite of -=
aland [Wed, 26 Sep 2007 13:24:34 +0000 (13:24 +0000)]
Now that we have request->root, we don't need to call
cf_section_find(NULL)
aland [Wed, 26 Sep 2007 13:21:49 +0000 (13:21 +0000)]
Pass the top-level configuration to the thread pool, so that
we can reload things without changing the existing
configuration.
There is still only one thread_pool structure. We may want to
update it to be a pointer, so that we can do atomic swaps...
aland [Wed, 26 Sep 2007 13:00:43 +0000 (13:00 +0000)]
Moved snmp config from global to local variables.
aland [Wed, 26 Sep 2007 12:41:17 +0000 (12:41 +0000)]
Use new request->root variable
aland [Wed, 26 Sep 2007 12:40:45 +0000 (12:40 +0000)]
Add 'mainconfig_t' entry to REQUEST*, so that each request has
its own configuration. This should make HUP easier.
aland [Wed, 26 Sep 2007 10:47:33 +0000 (10:47 +0000)]
Moved mainconfig references to a pointer, in preparation for
making the server HUP-safe
aland [Wed, 26 Sep 2007 10:46:55 +0000 (10:46 +0000)]
Removed unused variable
aland [Wed, 26 Sep 2007 10:43:09 +0000 (10:43 +0000)]
Removed all references to "mainconfig" from realms.c.
realms.c is now HUP-safe. On HUP, it loads its configuration
into a new data structure, and atomically switches between the
old one and the new one.
Right now, it immediately frees the old data structure. It
should really be placed onto a queue for later garbage
collection, as a child thread may be accessing it. That problem
can be solved later.
aland [Tue, 25 Sep 2007 23:55:32 +0000 (23:55 +0000)]
Pass src port to udpfromto, also.
Shorten the time frame for race conditions in the random context
aland [Tue, 25 Sep 2007 21:35:16 +0000 (21:35 +0000)]
We don't need to call openlog() any more.
aland [Tue, 25 Sep 2007 21:33:39 +0000 (21:33 +0000)]
We don't need mainconfig
aland [Tue, 25 Sep 2007 09:34:31 +0000 (09:34 +0000)]
Free listen type correctly.
After bind, call getsockname() to figure out which address
we've bound to. On a *BSD Jail, we bind to 0, but the socket
ends up bound to the jail IP.
aland [Tue, 25 Sep 2007 09:10:39 +0000 (09:10 +0000)]
Use uint32_t, rather than int. int MAY be 64-bits.
Use vp->vp_*, rather than lvalue.
aland [Tue, 25 Sep 2007 08:51:14 +0000 (08:51 +0000)]
Include jradius
aland [Tue, 25 Sep 2007 08:50:41 +0000 (08:50 +0000)]
Reformatted to match other dictionaries
dwbird [Mon, 24 Sep 2007 16:16:21 +0000 (16:16 +0000)]
- initial version of rlm_jradius with directions and dictionary
- updated chilli* dictionary
aland [Mon, 24 Sep 2007 12:36:00 +0000 (12:36 +0000)]
Cleaned up proxy handling, trying to get away from potential
race condition (I think...)
aland [Mon, 24 Sep 2007 11:12:26 +0000 (11:12 +0000)]
Generalized the module handling even more, which allows us to
pull the VMPS config into one or more virtual servers.
aland [Mon, 24 Sep 2007 09:50:33 +0000 (09:50 +0000)]
Removed a number of function call arguments that are either
static, or not used
aland [Mon, 24 Sep 2007 09:38:24 +0000 (09:38 +0000)]
Clean up auto-creation of dictionary types
aland [Thu, 20 Sep 2007 17:07:08 +0000 (17:07 +0000)]
Note overlap with dictionary.huawei
aland [Thu, 20 Sep 2007 17:06:52 +0000 (17:06 +0000)]
As posted to the list
aland [Thu, 20 Sep 2007 17:04:02 +0000 (17:04 +0000)]
as posted to the list
aland [Wed, 19 Sep 2007 14:48:04 +0000 (14:48 +0000)]
Set up the filter after initializing the dictionaries
aland [Wed, 19 Sep 2007 14:41:16 +0000 (14:41 +0000)]
Print out IP addresses, too.
Re-arrange the code.
aland [Wed, 19 Sep 2007 14:29:46 +0000 (14:29 +0000)]
Added debug flag.
Don't crash on non-radius packets
pnixon [Tue, 18 Sep 2007 06:08:36 +0000 (06:08 +0000)]
Fix bitwise operations. (Turns out that they are NOT Postgresql compatible)
pnixon [Mon, 17 Sep 2007 21:09:49 +0000 (21:09 +0000)]
Standardise radpostauth column names
aland [Mon, 17 Sep 2007 14:35:26 +0000 (14:35 +0000)]
Put text of assertion into error message
aland [Mon, 17 Sep 2007 14:21:47 +0000 (14:21 +0000)]
Flush stdout
aland [Mon, 17 Sep 2007 12:33:36 +0000 (12:33 +0000)]
More wordsmithing
aland [Mon, 17 Sep 2007 11:41:41 +0000 (11:41 +0000)]
We don't need a virtual server for the default config
aland [Mon, 17 Sep 2007 09:38:57 +0000 (09:38 +0000)]
Relaxed the constraints around a default server block
aland [Mon, 17 Sep 2007 08:58:47 +0000 (08:58 +0000)]
client->server over-rides listener->server.
Add documentation saying so.
aland [Mon, 17 Sep 2007 08:49:43 +0000 (08:49 +0000)]
Renamed data structures to correspond to their usagewq
pnixon [Fri, 14 Sep 2007 18:32:56 +0000 (18:32 +0000)]
Use CHAR(2) instead of VARCHAR(2) as it takes up less space and gives the same result
pnixon [Wed, 12 Sep 2007 14:03:27 +0000 (14:03 +0000)]
Add Max-All-Session-Time
pnixon [Wed, 12 Sep 2007 13:58:48 +0000 (13:58 +0000)]
One of the queries should be enabled by default
aland [Mon, 10 Sep 2007 13:04:30 +0000 (13:04 +0000)]
Errors are < 0
aland [Mon, 10 Sep 2007 13:02:15 +0000 (13:02 +0000)]
Unconfigured strings are NULL, not ""
Check for NULL, too
aland [Mon, 10 Sep 2007 07:31:42 +0000 (07:31 +0000)]
Corrected typo
aland [Sun, 9 Sep 2007 16:24:06 +0000 (16:24 +0000)]
Corrected typo
aland [Fri, 7 Sep 2007 09:19:55 +0000 (09:19 +0000)]
Document new client format
aland [Fri, 7 Sep 2007 09:09:43 +0000 (09:09 +0000)]
Change "prefix" to "netmask"
aland [Fri, 7 Sep 2007 08:52:30 +0000 (08:52 +0000)]
Removed duplicate section
aland [Thu, 6 Sep 2007 14:36:20 +0000 (14:36 +0000)]
Re-factor "allocate pool" code, to prepare for cool new features
aland [Thu, 6 Sep 2007 14:17:47 +0000 (14:17 +0000)]
Clearer error message