]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Arran Cudbard-Bell [Tue, 28 Nov 2017 19:05:43 +0000 (19:05 +0000)]
Should check decr_len
Arran Cudbard-Bell [Tue, 28 Nov 2017 19:04:02 +0000 (19:04 +0000)]
Add xlats to encrypt/decrypt 3gpp pseudonyms
Alan T. DeKok [Tue, 28 Nov 2017 18:47:31 +0000 (13:47 -0500)]
remove clients loaded at module instantiate time
Alan T. DeKok [Tue, 28 Nov 2017 18:11:01 +0000 (13:11 -0500)]
udpate dynamic client example
Alan T. DeKok [Tue, 28 Nov 2017 18:01:13 +0000 (13:01 -0500)]
we don't use 3.1.x
Alan T. DeKok [Tue, 28 Nov 2017 16:39:42 +0000 (11:39 -0500)]
allow "make deb" before running "configure"
as "make deb" runs "configure" itself in a fake root
Alan T. DeKok [Tue, 28 Nov 2017 16:07:29 +0000 (11:07 -0500)]
don't automatically regenerate 'configure'
instead, warn about it. And tell the developer to run
'make reconfig'
Arran Cudbard-Bell [Tue, 28 Nov 2017 10:53:32 +0000 (10:53 +0000)]
Switch to the official libkqueue repo
Alan T. DeKok [Mon, 27 Nov 2017 20:58:24 +0000 (15:58 -0500)]
basic sanity checking on changing shared secrets while packets are live
Alan T. DeKok [Mon, 27 Nov 2017 20:50:26 +0000 (15:50 -0500)]
expire and renew packets
Alan T. DeKok [Mon, 27 Nov 2017 20:50:01 +0000 (15:50 -0500)]
remember to remove it from the pending list...
Alan T. DeKok [Mon, 27 Nov 2017 20:15:56 +0000 (15:15 -0500)]
allow for client IPs of non-full netmask
so we can find client of 192.168/16
Alan T. DeKok [Mon, 27 Nov 2017 20:12:31 +0000 (15:12 -0500)]
start of expiration / renewal for dynamic clients
Alan T. DeKok [Mon, 27 Nov 2017 19:42:09 +0000 (14:42 -0500)]
add "lifetime" config option
Alan T. DeKok [Mon, 27 Nov 2017 19:27:26 +0000 (14:27 -0500)]
print out addresses, too
Alan T. DeKok [Mon, 27 Nov 2017 19:23:48 +0000 (14:23 -0500)]
clean up more dynamic client headers
Alan T. DeKok [Mon, 27 Nov 2017 19:21:59 +0000 (14:21 -0500)]
check that the client is within the enclosing network
Alan T. DeKok [Mon, 27 Nov 2017 19:13:28 +0000 (14:13 -0500)]
update notes
Alan T. DeKok [Sun, 26 Nov 2017 15:42:19 +0000 (10:42 -0500)]
don't proxy dynamic client definition packets
Alan T. DeKok [Sat, 25 Nov 2017 13:07:01 +0000 (08:07 -0500)]
typo
Alan T. DeKok [Fri, 24 Nov 2017 21:15:57 +0000 (16:15 -0500)]
remove extraneous debug messages
Alan T. DeKok [Fri, 24 Nov 2017 20:02:41 +0000 (15:02 -0500)]
note which attributes are for what
Alan T. DeKok [Fri, 24 Nov 2017 19:59:44 +0000 (14:59 -0500)]
dynamic clients now work.
Mostly... no timers to remove them, and many more fields
need to be read / parsed, including
* request message authenticator
* src_ipaddr
* and do something with originating network, such as
check it against the address that comes back from the
virtual server
* nas_type, response_window
* virtual_server
* and allow it to be something OTHER than this virtual server!
And still:
* no negative cache entries (for DoS attacks)
* no lifetime limits (once defined, they exist until the server stops)
* no renewal
But.. the basics are now there.
Alan T. DeKok [Fri, 24 Nov 2017 19:44:46 +0000 (14:44 -0500)]
return the actual client...
Alan T. DeKok [Fri, 24 Nov 2017 19:22:19 +0000 (14:22 -0500)]
add mod_encode() for creating dynamic clients.
The dynamic clients are created, but aren't sent anywhere. Yet.
Alan T. DeKok [Fri, 24 Nov 2017 19:21:46 +0000 (14:21 -0500)]
clean up and fix client_afrom_request()
it's not a lot simpler.
It might just be easier to have a "vp -> conf_section" converter...
Alan T. DeKok [Fri, 24 Nov 2017 16:39:00 +0000 (11:39 -0500)]
close vnode_fd on detach, too
Arran Cudbard-Bell [Fri, 24 Nov 2017 19:17:24 +0000 (19:17 +0000)]
Set xlat instruction priorities correctly
Arran Cudbard-Bell [Fri, 24 Nov 2017 17:21:46 +0000 (17:21 +0000)]
Fix comment
Arran Cudbard-Bell [Fri, 24 Nov 2017 17:00:09 +0000 (17:00 +0000)]
xlat functions can't push children
Arran Cudbard-Bell [Fri, 24 Nov 2017 16:49:29 +0000 (16:49 +0000)]
Add unlang_xlat_resume function
Arran Cudbard-Bell [Fri, 24 Nov 2017 16:32:14 +0000 (16:32 +0000)]
Have resumption functions populate an rcode pointer and return an unlang_action_t
Alan T. DeKok [Fri, 24 Nov 2017 16:32:03 +0000 (11:32 -0500)]
closing the FD may be useful...
Arran Cudbard-Bell [Fri, 24 Nov 2017 15:16:23 +0000 (15:16 +0000)]
Add unlang_xlat_yield
for yielding xlat functions...
Arran Cudbard-Bell [Fri, 24 Nov 2017 14:56:29 +0000 (14:56 +0000)]
Reorganise module resume to make it clearer what frame types are being used
Arran Cudbard-Bell [Fri, 24 Nov 2017 14:55:43 +0000 (14:55 +0000)]
callback should be a void * in the resumption frame
Arran Cudbard-Bell [Fri, 24 Nov 2017 14:54:56 +0000 (14:54 +0000)]
Reorder the arguments to async functions and remove uctx
If it's really needed then that xlat function can store it in its own instance
Arran Cudbard-Bell [Fri, 24 Nov 2017 14:43:32 +0000 (14:43 +0000)]
Pass in result as a cursor to async xlat functions
This helps if the function is processing arguments and yielding between each argument.
Arran Cudbard-Bell [Fri, 24 Nov 2017 15:18:04 +0000 (15:18 +0000)]
Refer to the resume ctx as rctx
Arran Cudbard-Bell [Fri, 24 Nov 2017 14:40:01 +0000 (14:40 +0000)]
There's no reason to store the module instance when we can get it from the previous instruction
Alan T. DeKok [Thu, 23 Nov 2017 19:48:03 +0000 (14:48 -0500)]
Revert "move code to before Message-Authenticator calculation"
This reverts commit
211870f2bf7773179ccba9f9d0aa79783c94796b .
Alan T. DeKok [Thu, 23 Nov 2017 19:37:05 +0000 (14:37 -0500)]
more cleanups for dynamic clients
Alan T. DeKok [Thu, 23 Nov 2017 19:29:28 +0000 (14:29 -0500)]
run "deny" section
Alan T. DeKok [Thu, 23 Nov 2017 19:07:59 +0000 (14:07 -0500)]
remove more old dynamic client fields / code
Alan T. DeKok [Thu, 23 Nov 2017 19:04:23 +0000 (14:04 -0500)]
make 'dynamic' boolean, and clean up dynamic logic.
clients from SQL / LDAP are no longer dynamic ones. They're
static and can't be deleted after startup.
Once we finish the new dynamic client code, the old SQL / LDAP
"read client" functionality should be deleted.
Alan T. DeKok [Thu, 23 Nov 2017 18:57:13 +0000 (13:57 -0500)]
dynamic clients must contain at least an IP and shared secret
Alan T. DeKok [Thu, 23 Nov 2017 18:32:56 +0000 (13:32 -0500)]
suppress errors
Alan T. DeKok [Thu, 23 Nov 2017 17:35:45 +0000 (12:35 -0500)]
stupid compilers are becoming annoying
Alan T. DeKok [Thu, 23 Nov 2017 17:17:46 +0000 (12:17 -0500)]
more static analysis
Alan T. DeKok [Thu, 23 Nov 2017 16:15:36 +0000 (11:15 -0500)]
typo
Alan T. DeKok [Thu, 23 Nov 2017 16:12:55 +0000 (11:12 -0500)]
typo
Alan T. DeKok [Thu, 23 Nov 2017 15:56:06 +0000 (10:56 -0500)]
stupid compiler static analysis
Alan T. DeKok [Thu, 23 Nov 2017 15:43:09 +0000 (10:43 -0500)]
assert we have a packet
Alan T. DeKok [Thu, 23 Nov 2017 15:19:17 +0000 (10:19 -0500)]
always save packet in case of retransmission/ Fixes #2118
Alan T. DeKok [Thu, 23 Nov 2017 15:16:36 +0000 (10:16 -0500)]
whoops... length is in [1], not [2]. Helps with #2118
Alan T. DeKok [Thu, 23 Nov 2017 15:14:04 +0000 (10:14 -0500)]
track outstanding packets
Alan T. DeKok [Thu, 23 Nov 2017 13:58:05 +0000 (08:58 -0500)]
more stupid static analysis
Alan T. DeKok [Thu, 23 Nov 2017 13:56:40 +0000 (08:56 -0500)]
doxygen
Arran Cudbard-Bell [Thu, 23 Nov 2017 12:24:57 +0000 (12:24 +0000)]
Trim trailing whitespace
Arran Cudbard-Bell [Thu, 23 Nov 2017 12:16:19 +0000 (12:16 +0000)]
Stupid static analysis
Alan T. DeKok [Wed, 22 Nov 2017 21:43:12 +0000 (16:43 -0500)]
handle conflicting packets in dynamic clients
Alan T. DeKok [Wed, 22 Nov 2017 21:35:45 +0000 (16:35 -0500)]
try to silence apparently random C compiler warnings?
Alan T. DeKok [Wed, 22 Nov 2017 21:19:25 +0000 (16:19 -0500)]
cache nr, too
Alan T. DeKok [Wed, 22 Nov 2017 21:19:03 +0000 (16:19 -0500)]
call app_io->encode if it exists
in preparation for encoding RADCLIENT (sort of...)
Alan T. DeKok [Wed, 22 Nov 2017 20:58:43 +0000 (15:58 -0500)]
don't print out packet, just attributes
Alan T. DeKok [Wed, 22 Nov 2017 20:56:59 +0000 (15:56 -0500)]
more debug
Alan T. DeKok [Wed, 22 Nov 2017 20:56:49 +0000 (15:56 -0500)]
typo
Alan T. DeKok [Wed, 22 Nov 2017 20:53:05 +0000 (15:53 -0500)]
mash all encrypted attributes to empty
instead of giving garbage data to the admin
Alan T. DeKok [Wed, 22 Nov 2017 20:39:58 +0000 (15:39 -0500)]
secrets are talloc'd
Alan T. DeKok [Wed, 22 Nov 2017 20:38:45 +0000 (15:38 -0500)]
can't allocate client list parented from CONF_SECTION
because it's frozen after parsing..
Alan T. DeKok [Wed, 22 Nov 2017 20:36:06 +0000 (15:36 -0500)]
start of fixes to mod_write() for dynamic clients
Alan T. DeKok [Wed, 22 Nov 2017 20:35:46 +0000 (15:35 -0500)]
do prefix masking
Alan T. DeKok [Wed, 22 Nov 2017 19:45:22 +0000 (14:45 -0500)]
initialize dynamic client list.
And as a nice side-effect, allow for per-server static clients
again.
Alan T. DeKok [Wed, 22 Nov 2017 19:36:15 +0000 (14:36 -0500)]
instantiate proto_radius_dynamic_client, too
Alan T. DeKok [Wed, 22 Nov 2017 19:36:06 +0000 (14:36 -0500)]
typo
Alan T. DeKok [Wed, 22 Nov 2017 19:27:32 +0000 (14:27 -0500)]
put clients / packets into lists
Alan T. DeKok [Wed, 22 Nov 2017 18:46:07 +0000 (13:46 -0500)]
flesh out packet save / restore
Alan T. DeKok [Wed, 22 Nov 2017 18:20:52 +0000 (13:20 -0500)]
resign packets only once
Alan T. DeKok [Wed, 22 Nov 2017 18:03:53 +0000 (13:03 -0500)]
check for num_pending_packets and flesh it out a little more
Alan T. DeKok [Wed, 22 Nov 2017 18:03:24 +0000 (13:03 -0500)]
expose proto_radius_dynamic_client to set_process function
Arran Cudbard-Bell [Wed, 22 Nov 2017 17:50:38 +0000 (17:50 +0000)]
Merge pull request #2131 from dulin/fix-missing-id-column
Fix missing id column in radusergroup
Alan T. DeKok [Wed, 22 Nov 2017 16:43:36 +0000 (11:43 -0500)]
more fleshing out of dynamic client code
Alan T. DeKok [Wed, 22 Nov 2017 16:13:39 +0000 (11:13 -0500)]
move checks to bootstrap, and load proto_radius_dynamic_client
Alan T. DeKok [Wed, 22 Nov 2017 16:13:00 +0000 (11:13 -0500)]
use new "OK_MISSING".
which means we don't always create "dynamic_clients" subsections,
even if they don't exist
Alan T. DeKok [Wed, 22 Nov 2017 16:11:06 +0000 (11:11 -0500)]
allow subsections to be missing
if so, they are not parsed or printed
Alan T. DeKok [Mon, 20 Nov 2017 19:11:41 +0000 (14:11 -0500)]
start of dynamic client code
Martin Dulin [Wed, 22 Nov 2017 11:57:47 +0000 (11:57 +0000)]
Fix missing id column in radusergroup
Arran Cudbard-Bell [Tue, 21 Nov 2017 21:33:36 +0000 (21:33 +0000)]
Wire in async xlat functions
Alan T. DeKok [Tue, 21 Nov 2017 19:25:06 +0000 (14:25 -0500)]
create and add a new client.
Arran Cudbard-Bell [Tue, 21 Nov 2017 19:18:48 +0000 (19:18 +0000)]
Test the rlm_delay cancellation point works
Arran Cudbard-Bell [Tue, 21 Nov 2017 19:12:46 +0000 (19:12 +0000)]
Add cancellation point for rlm_delay
Arran Cudbard-Bell [Tue, 21 Nov 2017 19:12:32 +0000 (19:12 +0000)]
Remove unused fr_state_action_t
Alan T. DeKok [Tue, 21 Nov 2017 19:13:34 +0000 (14:13 -0500)]
move assert to run-time check
Alan T. DeKok [Tue, 21 Nov 2017 18:55:54 +0000 (13:55 -0500)]
signal children to be DONE when exiting a parallel section
i.e. tell the children that they're cancelled.
Arran Cudbard-Bell [Tue, 21 Nov 2017 17:54:22 +0000 (17:54 +0000)]
Add tests for parallel rcodes
Alan T. DeKok [Tue, 21 Nov 2017 17:12:48 +0000 (12:12 -0500)]
move code to before Message-Authenticator calculation
Alan T. DeKok [Tue, 21 Nov 2017 17:11:36 +0000 (12:11 -0500)]
cache the signed vector for checking response authenticators
Alan T. DeKok [Tue, 21 Nov 2017 16:45:09 +0000 (11:45 -0500)]
start of dynamic_client_alloc()
Alan T. DeKok [Tue, 21 Nov 2017 16:27:43 +0000 (11:27 -0500)]
start of dynamic client code
Arran Cudbard-Bell [Tue, 21 Nov 2017 16:29:17 +0000 (16:29 +0000)]
...because you know static analysis is going to flag that at some point *sigh*