]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Nick Porter [Wed, 11 Dec 2024 12:15:05 +0000 (12:15 +0000)]
Add fr_tls_new_session_push
To run a subrequest though "new session"
Nick Porter [Mon, 2 Dec 2024 11:28:50 +0000 (11:28 +0000)]
Add "new session" to TLS process sections
Alan T. DeKok [Fri, 20 Dec 2024 22:10:09 +0000 (17:10 -0500)]
set SO_RCVBUF to zero for unconnected sockets, too
but only when the socket is being marked read-only
Alan T. DeKok [Fri, 20 Dec 2024 22:06:19 +0000 (17:06 -0500)]
add "mode = unconnected" and xlat function for replication
%replicate.sendto.ipaddr(ip, port, secret)
Alan T. DeKok [Fri, 20 Dec 2024 22:05:28 +0000 (17:05 -0500)]
make it clear that Message-Authenticator is auto-added
manual port of
04b4c655fd
Alan T. DeKok [Fri, 20 Dec 2024 21:41:26 +0000 (16:41 -0500)]
Add Blast RADIUS checks to radclient.
Manual port of
47eb7ee365abc66a
Alan T. DeKok [Fri, 20 Dec 2024 15:55:39 +0000 (10:55 -0500)]
don't print out results if there are no results
Alan T. DeKok [Fri, 20 Dec 2024 15:41:03 +0000 (10:41 -0500)]
set src_port if it's zero, too
Alan T. DeKok [Fri, 20 Dec 2024 15:20:17 +0000 (10:20 -0500)]
get cmsg after setting controllen
Alan T. DeKok [Wed, 18 Dec 2024 16:03:39 +0000 (17:03 +0100)]
make decode_fail_t radius specific.
nothing else needs it, and it's full of RADIUS things
Alan T. DeKok [Wed, 18 Dec 2024 15:50:41 +0000 (16:50 +0100)]
add verify callback for stream sockets.
so we only return complete packets to the reader
Alan T. DeKok [Wed, 18 Dec 2024 15:20:43 +0000 (16:20 +0100)]
add memory BIO for stream sockets
so that the BIOs are sending only complete packets to the module
Alan T. DeKok [Wed, 18 Dec 2024 14:20:05 +0000 (15:20 +0100)]
more sanity checks for unconnected sockets
Alan T. DeKok [Wed, 18 Dec 2024 14:17:44 +0000 (15:17 +0100)]
add configuration for unconnected sockets
Alan T. DeKok [Wed, 18 Dec 2024 06:46:24 +0000 (07:46 +0100)]
remove old "use_authenticator" flag
we no longer use the Request Authenticator as a unique ID
Nick Porter [Wed, 18 Dec 2024 15:59:23 +0000 (15:59 +0000)]
Return CACHE_RECONNECT if memcached returned a fatal result code
Nick Porter [Wed, 18 Dec 2024 13:48:03 +0000 (13:48 +0000)]
Add memcached to CI tests
Nick Porter [Wed, 18 Dec 2024 13:45:56 +0000 (13:45 +0000)]
Add tests for memcached cache driver
Nick Porter [Wed, 18 Dec 2024 11:46:04 +0000 (11:46 +0000)]
Expected output is data, not unresolved data
Nick Porter [Wed, 18 Dec 2024 11:45:34 +0000 (11:45 +0000)]
Initialise map list
Nick Porter [Wed, 18 Dec 2024 11:45:22 +0000 (11:45 +0000)]
Run-time tmpls need an event list
Nick Porter [Wed, 18 Dec 2024 11:43:53 +0000 (11:43 +0000)]
Use fr_asprintf to access custom format specifiers
Nick Porter [Tue, 17 Dec 2024 21:28:10 +0000 (21:28 +0000)]
No need to populate buffer with driver name
Was being used in pool initialisation, now buffer is just for error
messages.
Nick Porter [Tue, 17 Dec 2024 21:21:57 +0000 (21:21 +0000)]
No need to initialise buffer which is about to be printed to
Nick Porter [Tue, 17 Dec 2024 21:21:11 +0000 (21:21 +0000)]
Driver config is auto parsed when module is loaded
Nick Porter [Tue, 17 Dec 2024 17:21:42 +0000 (17:21 +0000)]
Better comments
Nick Porter [Tue, 17 Dec 2024 17:20:48 +0000 (17:20 +0000)]
Correct reference to cache config
Nick Porter [Tue, 17 Dec 2024 14:04:35 +0000 (14:04 +0000)]
Convert rlm_cache memcached driver to use slab allocator
Nick Porter [Tue, 17 Dec 2024 14:00:05 +0000 (14:00 +0000)]
WS
ethan-thompson [Tue, 17 Dec 2024 19:33:02 +0000 (14:33 -0500)]
fix: Return -1 on error instead of 1 (01) - typo.
Signed-off-by: ethan-thompson <ethan.thompson@networkradius.com>
ethan-thompson [Tue, 17 Dec 2024 18:37:06 +0000 (13:37 -0500)]
fix: When using a dictionary that first defines a protocol with "PROTOCOL" the dctx stack da is updated, but not the filename, causing it to be lost as the stack grows, since all future items on the stack inherit the filename. Fixed by also setting the filename when updating the da.
Signed-off-by: ethan-thompson <ethan.thompson@networkradius.com>
Alan T. DeKok [Mon, 16 Dec 2024 08:23:04 +0000 (09:23 +0100)]
add INVALID type, and auto-set from configuration
Alan T. DeKok [Mon, 16 Dec 2024 08:22:44 +0000 (09:22 +0100)]
update docs
Alan T. DeKok [Sun, 15 Dec 2024 17:10:03 +0000 (18:10 +0100)]
allow module to retransmit even if set to proxy mode
for packets which change protocols, OR change packet code, OR
are read from the detail file.
Alan T. DeKok [Sun, 15 Dec 2024 16:43:03 +0000 (17:43 +0100)]
use "mode" instead of replicate / synchronous / originate
as it is more descriptive. The other configuration flags also
can be configured in contradictory or conflicting ways.
Perhaps we could add a non-synchronous proxy, but that is likely
a good idea only if there's no Proxy-State in the packet.
i.e. we received the packet from a NAS, which has it's own retransmission
timers, and those timers are almost always garbage.
Alan T. DeKok [Sat, 14 Dec 2024 16:54:44 +0000 (17:54 +0100)]
add optional CONF_SECTION parsers, and use in rlm_radius
this lets the RADIUS module put more things into a "udp" section,
but only if the "udp" section ends up being used by the transport
configuration.
The RADIUS module can also push rules for "tcp", but those rules
don't show up in the debug output (and are ignored by the parser)
if a corresponding "tcp" section is defined
Alan T. DeKok [Fri, 13 Dec 2024 15:17:53 +0000 (10:17 -0500)]
IPv6 addresses should have a 128 prefix, too
Nick Porter [Fri, 13 Dec 2024 14:06:21 +0000 (14:06 +0000)]
FreeRADIUS IPv4 addresses must have prefix len 32
Nick Porter [Fri, 13 Dec 2024 11:49:26 +0000 (11:49 +0000)]
Make request subsection required
Without this, the check for mandatory URI doesn't happen.
github-actions[bot] [Fri, 13 Dec 2024 04:16:59 +0000 (04:16 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/cbor.tar
Nick Porter [Thu, 12 Dec 2024 13:46:41 +0000 (13:46 +0000)]
Add call_env related options to sample krb5 module config
Nick Porter [Thu, 12 Dec 2024 12:38:20 +0000 (12:38 +0000)]
Use call_env for username and password in krb5
Nick Porter [Thu, 12 Dec 2024 12:33:06 +0000 (12:33 +0000)]
Update sample krb5 module config with slab parameters
Nick Porter [Thu, 12 Dec 2024 11:39:35 +0000 (11:39 +0000)]
Re-work rlm_krb5 to use slab allocation for handles
Nick Porter [Thu, 12 Dec 2024 09:21:56 +0000 (09:21 +0000)]
Set vic_options in module instantiation
Only needs to be set once, and `inst` is protected after instantiation.
Nick Porter [Thu, 12 Dec 2024 12:01:37 +0000 (12:01 +0000)]
Use macro to reduce boilerplate
Nick Porter [Thu, 12 Dec 2024 11:44:39 +0000 (11:44 +0000)]
Correct macro name
Alan T. DeKok [Thu, 12 Dec 2024 14:17:01 +0000 (09:17 -0500)]
as found on the net
Alan T. DeKok [Mon, 9 Dec 2024 19:55:30 +0000 (14:55 -0500)]
catch corner conditions
mark connection inactive on zombie start, not on zombie end.
existing requests will continue to use it, but new requests will
go to a different connection.
don't send retry if writes are blocked.
Alan T. DeKok [Tue, 10 Dec 2024 14:13:29 +0000 (09:13 -0500)]
call fr_mkdir() with only directory arguments
Nick Porter [Tue, 10 Dec 2024 17:55:17 +0000 (17:55 +0000)]
Use current TLS certificate attribute names in sample virtual server
Nick Porter [Tue, 10 Dec 2024 12:08:40 +0000 (12:08 +0000)]
Better name for TLS session virtual server
Nick Porter [Tue, 10 Dec 2024 09:47:19 +0000 (09:47 +0000)]
Only run verify certificate sub request if the section exists
Nick Porter [Tue, 10 Dec 2024 09:46:45 +0000 (09:46 +0000)]
Detect if "verify certificate" section exists when parsing config
Nick Porter [Tue, 10 Dec 2024 10:49:27 +0000 (10:49 +0000)]
Filenames which need run time expansion must be double quoted
Nick Porter [Fri, 6 Dec 2024 14:26:19 +0000 (14:26 +0000)]
TLS cache section names are `<verb> session` not `session <verb>`
Nick Porter [Tue, 10 Dec 2024 09:38:51 +0000 (09:38 +0000)]
Typo
Nick Porter [Fri, 6 Dec 2024 14:58:52 +0000 (14:58 +0000)]
Consistent case
Arran Cudbard-Bell [Mon, 9 Dec 2024 16:30:25 +0000 (09:30 -0700)]
rlm_rest: Search in the _real_ header list for content-type
Alan T. DeKok [Sun, 8 Dec 2024 14:27:45 +0000 (09:27 -0500)]
call FD connect function if the connect() is delayed
Alan T. DeKok [Sun, 8 Dec 2024 14:24:10 +0000 (09:24 -0500)]
call error handler on connect error
Alan T. DeKok [Sun, 8 Dec 2024 12:48:57 +0000 (07:48 -0500)]
send one packet at a time
when we push queuing to the BIO layer, we can add a queue API
which the radius module can call:
* start queue entries X
* write
* commit queue
Alan T. DeKok [Sat, 7 Dec 2024 19:34:18 +0000 (14:34 -0500)]
minor cleanups
rename synchronous_retry to timeout_retry
don't call sendmmsg() on file BIOs
Alan T. DeKok [Sat, 7 Dec 2024 19:33:48 +0000 (14:33 -0500)]
use BIO fd name instead of our name
Alan T. DeKok [Sat, 7 Dec 2024 19:24:40 +0000 (14:24 -0500)]
correct order of mkdir / open
Alan T. DeKok [Sat, 7 Dec 2024 19:24:14 +0000 (14:24 -0500)]
cleanups and fixes
allow files to specify permissions, and use the right path for
unix sockets
Alan T. DeKok [Sat, 7 Dec 2024 18:50:01 +0000 (13:50 -0500)]
set the name of the BIO
Alan T. DeKok [Sat, 7 Dec 2024 15:57:00 +0000 (10:57 -0500)]
rename udp_* to bio_*
Alan T. DeKok [Sat, 7 Dec 2024 15:55:43 +0000 (10:55 -0500)]
move and rename files
Alan T. DeKok [Sat, 7 Dec 2024 13:44:16 +0000 (08:44 -0500)]
and rely on new fd_config.c behavior
Alan T. DeKok [Sat, 7 Dec 2024 13:08:13 +0000 (08:08 -0500)]
move to using intermediate section
Alan T. DeKok [Sat, 7 Dec 2024 13:09:39 +0000 (08:09 -0500)]
Check configuration in instantiate, before using it
Alan T. DeKok [Fri, 6 Dec 2024 21:02:31 +0000 (16:02 -0500)]
call cf_section_parse_init() for referenced rules, too
Alan T. DeKok [Fri, 6 Dec 2024 20:43:55 +0000 (15:43 -0500)]
hacks to remove "udp" as a submodule.
some more cleanups are useful, but this works.
We still have to address issues of the conf_parser requiring an
empty "udp" section. But perhaps that issue is in cf_parse.c
Alan T. DeKok [Fri, 6 Dec 2024 15:35:55 +0000 (10:35 -0500)]
move around things as a temporary change for cleanups
Alan T. DeKok [Fri, 6 Dec 2024 15:40:13 +0000 (10:40 -0500)]
might as well read from stdin
Alan T. DeKok [Fri, 6 Dec 2024 15:34:12 +0000 (10:34 -0500)]
double-check IP addresses before using them
so that the individual modules using BIOs don't need to do it.
Arguably we need one or more post-process functions for the
conf_parser_t. That would let the clamping, limiting, and
cross-checking to be done by the config stuff, and not by the
individual modules
Alan T. DeKok [Fri, 6 Dec 2024 15:15:49 +0000 (10:15 -0500)]
clamp values
Alan T. DeKok [Fri, 6 Dec 2024 15:09:13 +0000 (10:09 -0500)]
if read-only, set recv_buff to zero too
on linux, this discards all data. For others it doesn't work :(
Alan T. DeKok [Thu, 5 Dec 2024 21:36:27 +0000 (16:36 -0500)]
some attempt to allow refs to non-root attributes
Alan T. DeKok [Thu, 5 Dec 2024 20:44:49 +0000 (15:44 -0500)]
reset parent if ref'd TLV is inside of a group
the decoder is still wrong, but at least we're not printing out
garbage
Alan T. DeKok [Thu, 5 Dec 2024 20:30:47 +0000 (15:30 -0500)]
Better handle group refs to somewhere in the middle of the tree
Nick Porter [Mon, 2 Dec 2024 13:52:27 +0000 (13:52 +0000)]
Simplify indentation
Nick Porter [Mon, 2 Dec 2024 13:49:58 +0000 (13:49 +0000)]
Use standard pair printing
Nick Porter [Mon, 2 Dec 2024 08:34:09 +0000 (08:34 +0000)]
TLS virtual-server option is part of tls config, not eap method
Alan T. DeKok [Thu, 5 Dec 2024 17:14:10 +0000 (12:14 -0500)]
open file descriptor via the BIO API
Alan T. DeKok [Thu, 5 Dec 2024 17:01:50 +0000 (12:01 -0500)]
some more cleanups
Alan T. DeKok [Thu, 5 Dec 2024 14:59:52 +0000 (09:59 -0500)]
separate client and server BIO config
Alan T. DeKok [Thu, 5 Dec 2024 14:48:34 +0000 (09:48 -0500)]
swap to using fr_bio_fd_config for IP / port parsing
Alan T. DeKok [Thu, 5 Dec 2024 14:46:28 +0000 (09:46 -0500)]
add note on perhaps suprising behavior
Alan T. DeKok [Wed, 4 Dec 2024 21:33:44 +0000 (16:33 -0500)]
sort names properly
fix typo, and push the transport configuration parser into the
appropriate child.
Alan T. DeKok [Wed, 4 Dec 2024 21:22:15 +0000 (16:22 -0500)]
typo
Alan T. DeKok [Wed, 4 Dec 2024 18:03:42 +0000 (13:03 -0500)]
start of radius2 module
just renamed for now, with no other changes. This process lets
us better track and debug changes to a complex module.
Nick Porter [Thu, 5 Dec 2024 11:35:41 +0000 (11:35 +0000)]
Update sample winbind config to reflect slab parameters
Nick Porter [Thu, 5 Dec 2024 11:33:24 +0000 (11:33 +0000)]
Switch rlm_winbind from fr_pool_t to slab allocation for connection ctx
Nick Porter [Wed, 4 Dec 2024 17:15:43 +0000 (17:15 +0000)]
Try alternate condition syntax
GitHub was ignoring the previous syntax and attemtping merges to
"master" on forked repos.
Nick Porter [Wed, 4 Dec 2024 11:06:27 +0000 (11:06 +0000)]
mschap pwdchange tests return invalid on builds without OpenSSL
Nick Porter [Tue, 3 Dec 2024 18:30:58 +0000 (18:30 +0000)]
Enable rlm_mschap tests
Nick Porter [Tue, 3 Dec 2024 11:11:42 +0000 (11:11 +0000)]
Update sample mschap config to reflect slab parameters
Nick Porter [Tue, 3 Dec 2024 11:11:09 +0000 (11:11 +0000)]
Switch mschap from fr_pool_t to slab allocation for conneciton ctx