]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
8 months agoAdd fr_tls_new_session_push
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"

8 months agoAdd "new session" to TLS process sections
Nick Porter [Mon, 2 Dec 2024 11:28:50 +0000 (11:28 +0000)] 
Add "new session" to TLS process sections

8 months agoset SO_RCVBUF to zero for unconnected sockets, too
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

8 months agoadd "mode = unconnected" and xlat function for replication
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)

8 months agomake it clear that Message-Authenticator is auto-added
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

8 months agoAdd Blast RADIUS checks to radclient.
Alan T. DeKok [Fri, 20 Dec 2024 21:41:26 +0000 (16:41 -0500)] 
Add Blast RADIUS checks to radclient.

Manual port of 47eb7ee365abc66a

8 months agodon't print out results if there are no results
Alan T. DeKok [Fri, 20 Dec 2024 15:55:39 +0000 (10:55 -0500)] 
don't print out results if there are no results

8 months agoset src_port if it's zero, too
Alan T. DeKok [Fri, 20 Dec 2024 15:41:03 +0000 (10:41 -0500)] 
set src_port if it's zero, too

8 months agoget cmsg after setting controllen
Alan T. DeKok [Fri, 20 Dec 2024 15:20:17 +0000 (10:20 -0500)] 
get cmsg after setting controllen

8 months agomake decode_fail_t radius specific.
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

8 months agoadd verify callback for stream sockets.
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

8 months agoadd memory BIO for stream sockets
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

8 months agomore sanity checks for unconnected sockets
Alan T. DeKok [Wed, 18 Dec 2024 14:20:05 +0000 (15:20 +0100)] 
more sanity checks for unconnected sockets

8 months agoadd configuration for unconnected sockets
Alan T. DeKok [Wed, 18 Dec 2024 14:17:44 +0000 (15:17 +0100)] 
add configuration for unconnected sockets

8 months agoremove old "use_authenticator" flag
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

8 months agoReturn CACHE_RECONNECT if memcached returned a fatal result code
Nick Porter [Wed, 18 Dec 2024 15:59:23 +0000 (15:59 +0000)] 
Return CACHE_RECONNECT if memcached returned a fatal result code

8 months agoAdd memcached to CI tests
Nick Porter [Wed, 18 Dec 2024 13:48:03 +0000 (13:48 +0000)] 
Add memcached to CI tests

8 months agoAdd tests for memcached cache driver
Nick Porter [Wed, 18 Dec 2024 13:45:56 +0000 (13:45 +0000)] 
Add tests for memcached cache driver

8 months agoExpected output is data, not unresolved data
Nick Porter [Wed, 18 Dec 2024 11:46:04 +0000 (11:46 +0000)] 
Expected output is data, not unresolved data

8 months agoInitialise map list
Nick Porter [Wed, 18 Dec 2024 11:45:34 +0000 (11:45 +0000)] 
Initialise map list

8 months agoRun-time tmpls need an event list
Nick Porter [Wed, 18 Dec 2024 11:45:22 +0000 (11:45 +0000)] 
Run-time tmpls need an event list

8 months agoUse fr_asprintf to access custom format specifiers
Nick Porter [Wed, 18 Dec 2024 11:43:53 +0000 (11:43 +0000)] 
Use fr_asprintf to access custom format specifiers

8 months agoNo need to populate buffer with driver name
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.

8 months agoNo need to initialise buffer which is about to be printed to
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

8 months agoDriver config is auto parsed when module is loaded
Nick Porter [Tue, 17 Dec 2024 21:21:11 +0000 (21:21 +0000)] 
Driver config is auto parsed when module is loaded

8 months agoBetter comments
Nick Porter [Tue, 17 Dec 2024 17:21:42 +0000 (17:21 +0000)] 
Better comments

8 months agoCorrect reference to cache config
Nick Porter [Tue, 17 Dec 2024 17:20:48 +0000 (17:20 +0000)] 
Correct reference to cache config

8 months agoConvert rlm_cache memcached driver to use slab allocator
Nick Porter [Tue, 17 Dec 2024 14:04:35 +0000 (14:04 +0000)] 
Convert rlm_cache memcached driver to use slab allocator

8 months agoWS
Nick Porter [Tue, 17 Dec 2024 14:00:05 +0000 (14:00 +0000)] 
WS

8 months agofix: Return -1 on error instead of 1 (01) - typo.
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>
8 months agofix: When using a dictionary that first defines a protocol with "PROTOCOL" the dctx...
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>
8 months agoadd INVALID type, and auto-set from configuration
Alan T. DeKok [Mon, 16 Dec 2024 08:23:04 +0000 (09:23 +0100)] 
add INVALID type, and auto-set from configuration

8 months agoupdate docs
Alan T. DeKok [Mon, 16 Dec 2024 08:22:44 +0000 (09:22 +0100)] 
update docs

8 months agoallow module to retransmit even if set to proxy mode
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.

8 months agouse "mode" instead of replicate / synchronous / originate
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.

8 months agoadd optional CONF_SECTION parsers, and use in rlm_radius
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

8 months agoIPv6 addresses should have a 128 prefix, too
Alan T. DeKok [Fri, 13 Dec 2024 15:17:53 +0000 (10:17 -0500)] 
IPv6 addresses should have a 128 prefix, too

8 months agoFreeRADIUS IPv4 addresses must have prefix len 32
Nick Porter [Fri, 13 Dec 2024 14:06:21 +0000 (14:06 +0000)] 
FreeRADIUS IPv4 addresses must have prefix len 32

8 months agoMake request subsection required
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.

8 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/cbor.tar
github-actions[bot] [Fri, 13 Dec 2024 04:16:59 +0000 (04:16 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/cbor.tar

8 months agoAdd call_env related options to sample krb5 module config
Nick Porter [Thu, 12 Dec 2024 13:46:41 +0000 (13:46 +0000)] 
Add call_env related options to sample krb5 module config

8 months agoUse call_env for username and password in krb5
Nick Porter [Thu, 12 Dec 2024 12:38:20 +0000 (12:38 +0000)] 
Use call_env for username and password in krb5

8 months agoUpdate sample krb5 module config with slab parameters
Nick Porter [Thu, 12 Dec 2024 12:33:06 +0000 (12:33 +0000)] 
Update sample krb5 module config with slab parameters

8 months agoRe-work rlm_krb5 to use slab allocation for handles
Nick Porter [Thu, 12 Dec 2024 11:39:35 +0000 (11:39 +0000)] 
Re-work rlm_krb5 to use slab allocation for handles

8 months agoSet vic_options in module instantiation
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.

8 months agoUse macro to reduce boilerplate
Nick Porter [Thu, 12 Dec 2024 12:01:37 +0000 (12:01 +0000)] 
Use macro to reduce boilerplate

8 months agoCorrect macro name
Nick Porter [Thu, 12 Dec 2024 11:44:39 +0000 (11:44 +0000)] 
Correct macro name

8 months agoas found on the net
Alan T. DeKok [Thu, 12 Dec 2024 14:17:01 +0000 (09:17 -0500)] 
as found on the net

8 months agocatch corner conditions
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.

8 months agocall fr_mkdir() with only directory arguments
Alan T. DeKok [Tue, 10 Dec 2024 14:13:29 +0000 (09:13 -0500)] 
call fr_mkdir() with only directory arguments

8 months agoUse current TLS certificate attribute names in sample virtual server
Nick Porter [Tue, 10 Dec 2024 17:55:17 +0000 (17:55 +0000)] 
Use current TLS certificate attribute names in sample virtual server

8 months agoBetter name for TLS session virtual server
Nick Porter [Tue, 10 Dec 2024 12:08:40 +0000 (12:08 +0000)] 
Better name for TLS session virtual server

8 months agoOnly run verify certificate sub request if the section exists
Nick Porter [Tue, 10 Dec 2024 09:47:19 +0000 (09:47 +0000)] 
Only run verify certificate sub request if the section exists

8 months agoDetect if "verify certificate" section exists when parsing config
Nick Porter [Tue, 10 Dec 2024 09:46:45 +0000 (09:46 +0000)] 
Detect if "verify certificate" section exists when parsing config

8 months agoFilenames which need run time expansion must be double quoted
Nick Porter [Tue, 10 Dec 2024 10:49:27 +0000 (10:49 +0000)] 
Filenames which need run time expansion must be double quoted

8 months agoTLS cache section names are `<verb> session` not `session <verb>`
Nick Porter [Fri, 6 Dec 2024 14:26:19 +0000 (14:26 +0000)] 
TLS cache section names are `<verb> session` not `session <verb>`

8 months agoTypo
Nick Porter [Tue, 10 Dec 2024 09:38:51 +0000 (09:38 +0000)] 
Typo

8 months agoConsistent case
Nick Porter [Fri, 6 Dec 2024 14:58:52 +0000 (14:58 +0000)] 
Consistent case

8 months agorlm_rest: Search in the _real_ header list for content-type
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

8 months agocall FD connect function if the connect() is delayed
Alan T. DeKok [Sun, 8 Dec 2024 14:27:45 +0000 (09:27 -0500)] 
call FD connect function if the connect() is delayed

8 months agocall error handler on connect error
Alan T. DeKok [Sun, 8 Dec 2024 14:24:10 +0000 (09:24 -0500)] 
call error handler on connect error

8 months agosend one packet at a time
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

8 months agominor cleanups
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

8 months agouse BIO fd name instead of our name
Alan T. DeKok [Sat, 7 Dec 2024 19:33:48 +0000 (14:33 -0500)] 
use BIO fd name instead of our name

8 months agocorrect order of mkdir / open
Alan T. DeKok [Sat, 7 Dec 2024 19:24:40 +0000 (14:24 -0500)] 
correct order of mkdir / open

8 months agocleanups and fixes
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

8 months agoset the name of the BIO
Alan T. DeKok [Sat, 7 Dec 2024 18:50:01 +0000 (13:50 -0500)] 
set the name of the BIO

8 months agorename udp_* to bio_*
Alan T. DeKok [Sat, 7 Dec 2024 15:57:00 +0000 (10:57 -0500)] 
rename udp_* to bio_*

8 months agomove and rename files
Alan T. DeKok [Sat, 7 Dec 2024 15:55:43 +0000 (10:55 -0500)] 
move and rename files

8 months agoand rely on new fd_config.c behavior
Alan T. DeKok [Sat, 7 Dec 2024 13:44:16 +0000 (08:44 -0500)] 
and rely on new fd_config.c behavior

8 months agomove to using intermediate section
Alan T. DeKok [Sat, 7 Dec 2024 13:08:13 +0000 (08:08 -0500)] 
move to using intermediate section

8 months agoCheck configuration in instantiate, before using it
Alan T. DeKok [Sat, 7 Dec 2024 13:09:39 +0000 (08:09 -0500)] 
Check configuration in instantiate, before using it

8 months agocall cf_section_parse_init() for referenced rules, too
Alan T. DeKok [Fri, 6 Dec 2024 21:02:31 +0000 (16:02 -0500)] 
call cf_section_parse_init() for referenced rules, too

8 months agohacks to remove "udp" as a submodule.
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

8 months agomove around things as a temporary change for cleanups
Alan T. DeKok [Fri, 6 Dec 2024 15:35:55 +0000 (10:35 -0500)] 
move around things as a temporary change for cleanups

8 months agomight as well read from stdin
Alan T. DeKok [Fri, 6 Dec 2024 15:40:13 +0000 (10:40 -0500)] 
might as well read from stdin

8 months agodouble-check IP addresses before using them
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

8 months agoclamp values
Alan T. DeKok [Fri, 6 Dec 2024 15:15:49 +0000 (10:15 -0500)] 
clamp values

8 months agoif read-only, set recv_buff to zero too
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 :(

8 months agosome attempt to allow refs to non-root attributes
Alan T. DeKok [Thu, 5 Dec 2024 21:36:27 +0000 (16:36 -0500)] 
some attempt to allow refs to non-root attributes

8 months agoreset parent if ref'd TLV is inside of a group
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

8 months agoBetter handle group refs to somewhere in the middle of the tree
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

8 months agoSimplify indentation
Nick Porter [Mon, 2 Dec 2024 13:52:27 +0000 (13:52 +0000)] 
Simplify indentation

8 months agoUse standard pair printing
Nick Porter [Mon, 2 Dec 2024 13:49:58 +0000 (13:49 +0000)] 
Use standard pair printing

8 months agoTLS virtual-server option is part of tls config, not eap method
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

8 months agoopen file descriptor via the BIO API
Alan T. DeKok [Thu, 5 Dec 2024 17:14:10 +0000 (12:14 -0500)] 
open file descriptor via the BIO API

8 months agosome more cleanups
Alan T. DeKok [Thu, 5 Dec 2024 17:01:50 +0000 (12:01 -0500)] 
some more cleanups

8 months agoseparate client and server BIO config
Alan T. DeKok [Thu, 5 Dec 2024 14:59:52 +0000 (09:59 -0500)] 
separate client and server BIO config

8 months agoswap to using fr_bio_fd_config for IP / port parsing
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

8 months agoadd note on perhaps suprising behavior
Alan T. DeKok [Thu, 5 Dec 2024 14:46:28 +0000 (09:46 -0500)] 
add note on perhaps suprising behavior

8 months agosort names properly
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.

8 months agotypo
Alan T. DeKok [Wed, 4 Dec 2024 21:22:15 +0000 (16:22 -0500)] 
typo

8 months agostart of radius2 module
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.

8 months agoUpdate sample winbind config to reflect slab parameters
Nick Porter [Thu, 5 Dec 2024 11:35:41 +0000 (11:35 +0000)] 
Update sample winbind config to reflect slab parameters

8 months agoSwitch rlm_winbind from fr_pool_t to slab allocation for connection ctx
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

8 months agoTry alternate condition syntax
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.

8 months agomschap pwdchange tests return invalid on builds without OpenSSL
Nick Porter [Wed, 4 Dec 2024 11:06:27 +0000 (11:06 +0000)] 
mschap pwdchange tests return invalid on builds without OpenSSL

8 months agoEnable rlm_mschap tests
Nick Porter [Tue, 3 Dec 2024 18:30:58 +0000 (18:30 +0000)] 
Enable rlm_mschap tests

8 months agoUpdate sample mschap config to reflect slab parameters
Nick Porter [Tue, 3 Dec 2024 11:11:42 +0000 (11:11 +0000)] 
Update sample mschap config to reflect slab parameters

8 months agoSwitch mschap from fr_pool_t to slab allocation for conneciton ctx
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