]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
13 months agodocs: xlat file handling functions reorganized into sub-dir `file`. Updated nav file...
nolade [Thu, 8 May 2025 20:25:05 +0000 (16:25 -0400)] 
docs: xlat file handling functions reorganized into sub-dir `file`. Updated nav file link and added ./file/index.adoc file and relevant links to sub-sections.

13 months agoalways do packet verification via the memory BIO
Alan T. DeKok [Fri, 9 May 2025 18:30:59 +0000 (14:30 -0400)] 
always do packet verification via the memory BIO

enforces checks which were changed in c60f89b45

13 months agoallow memory bios to have no read buffer
Alan T. DeKok [Fri, 9 May 2025 18:29:36 +0000 (14:29 -0400)] 
allow memory bios to have no read buffer

in which case they are verification-only BIOs.

and do other associated cleanups, to catch corner cases, comments,
and error messages.

13 months agowe need separate discard functions for UDP and TCP
Alan T. DeKok [Fri, 9 May 2025 17:33:45 +0000 (13:33 -0400)] 
we need separate discard functions for UDP and TCP

read of 0 is OK for UDP, and is EOF for TCP

13 months agoAdd query_number_attribute to SQL tests
Nick Porter [Fri, 9 May 2025 13:13:22 +0000 (14:13 +0100)] 
Add query_number_attribute to SQL tests

13 months agoSQL tests are independent
Nick Porter [Fri, 9 May 2025 13:14:14 +0000 (14:14 +0100)] 
SQL tests are independent

So the PRE entry won't actually insert the record which we want to
update.

13 months agoAdd query_number_attribute option to rlm_sql
Nick Porter [Fri, 9 May 2025 12:39:33 +0000 (13:39 +0100)] 
Add query_number_attribute option to rlm_sql

An optional attribute which can be used to record which out of a series
of queries updated records.

13 months agoa virtual server needs at least one processing section
Alan T. DeKok [Fri, 9 May 2025 13:16:35 +0000 (09:16 -0400)] 
a virtual server needs at least one processing section

or else we fail with a descriptive error.  This won't catch all
cases where people butcher the configuration, but it will catch
most of them.

13 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar
github-actions[bot] [Fri, 9 May 2025 04:26:55 +0000 (04:26 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar

13 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Fri, 9 May 2025 04:26:19 +0000 (04:26 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar

13 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar
github-actions[bot] [Fri, 9 May 2025 04:26:10 +0000 (04:26 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar

13 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Fri, 9 May 2025 04:24:56 +0000 (04:24 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar

13 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Fri, 9 May 2025 04:24:49 +0000 (04:24 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar

13 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
github-actions[bot] [Fri, 9 May 2025 04:24:46 +0000 (04:24 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar

13 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar
github-actions[bot] [Fri, 9 May 2025 04:24:28 +0000 (04:24 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar

13 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
github-actions[bot] [Fri, 9 May 2025 04:24:25 +0000 (04:24 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar

13 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Fri, 9 May 2025 04:24:19 +0000 (04:24 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar

13 months agoFix comment
Arran Cudbard-Bell [Fri, 9 May 2025 03:36:44 +0000 (21:36 -0600)] 
Fix comment

13 months agoAdd tests for cancelling subrequests and parallels that timeout in a middle request
Arran Cudbard-Bell [Fri, 9 May 2025 02:37:57 +0000 (20:37 -0600)] 
Add tests for cancelling subrequests and parallels that timeout in a middle request

13 months agoFix weirdly common typo
Arran Cudbard-Bell [Fri, 9 May 2025 01:38:17 +0000 (19:38 -0600)] 
Fix weirdly common typo

13 months ago...and more
Arran Cudbard-Bell [Fri, 9 May 2025 01:36:12 +0000 (19:36 -0600)] 
...and more

13 months agoAnother minor typo
Arran Cudbard-Bell [Fri, 9 May 2025 01:34:47 +0000 (19:34 -0600)] 
Another minor typo

13 months agoMinor cleanups to finally docs
Arran Cudbard-Bell [Fri, 9 May 2025 01:32:57 +0000 (19:32 -0600)] 
Minor cleanups to finally docs

13 months agoUnify elements of child request handling for parallel, subrequests, and manual subreq...
Arran Cudbard-Bell [Thu, 8 May 2025 23:47:10 +0000 (17:47 -0600)] 
Unify elements of child request handling for parallel, subrequests, and manual subrequests

Fix signalling in parallel.  Both timeouts triggered on the parent side, and timeouts triggered on the child side now work.

Use relative timers for the retry keyword so synthetic time works correctly, same with the synchronous interpreter.

13 months agoReduce spurious debug messages
Arran Cudbard-Bell [Thu, 8 May 2025 21:38:32 +0000 (15:38 -0600)] 
Reduce spurious debug messages

13 months agorename functions for consistencyo
Alan T. DeKok [Thu, 8 May 2025 18:18:48 +0000 (14:18 -0400)] 
rename functions for consistencyo

%debug_attr() %pairs.debug()
%pairs() %pairs.print()

perl -p -i -e 's/\%pairs/\%pairs.print/g' $(git grep -l '%pairs' src)
perl -p -i -e 's/\%debug_attr/\%pairs.debug/g' $(git grep -l '%debug_attr' src)

13 months agorename %client() to %request.client()
Alan T. DeKok [Thu, 8 May 2025 17:50:55 +0000 (13:50 -0400)] 
rename %client() to %request.client()

the old name is still supported for compatibility

13 months agoFree tracking structure for ignored packet
Nick Porter [Thu, 8 May 2025 13:49:10 +0000 (14:49 +0100)] 
Free tracking structure for ignored packet

13 months agoRemove config options which controlled use of packet-authenticator in dedup
Nick Porter [Thu, 8 May 2025 13:40:21 +0000 (14:40 +0100)] 
Remove config options which controlled use of packet-authenticator in dedup

13 months agoThe same for proto_radius_tcp
Nick Porter [Thu, 8 May 2025 13:39:22 +0000 (14:39 +0100)] 
The same for proto_radius_tcp

13 months agoRemove packet authenticator from tracking table comparison
Nick Porter [Thu, 8 May 2025 13:32:17 +0000 (14:32 +0100)] 
Remove packet authenticator from tracking table comparison

If a packet arrives with the same ID and type, from the same client
(which is already deduped on source IP and port), then there is no need
to keep the old entry - there is no way for us to re-reply.

13 months agoUpdate winbind troublshooting (PR 5553 comments)
nolade [Wed, 23 Apr 2025 15:35:46 +0000 (11:35 -0400)] 
Update winbind troublshooting (PR 5553 comments)

13 months agodocs: Import customer doc Debugging winbind errors into Antora docs Introduction...
nolade [Fri, 11 Apr 2025 19:20:13 +0000 (15:20 -0400)] 
docs: Import customer doc Debugging  winbind errors into Antora docs Introduction  >> Troubleshooting >> Connectivity section

13 months agodocs: make docsite build fixes - updated xrefs and adjusted heading levels
nolade [Tue, 6 May 2025 21:45:29 +0000 (17:45 -0400)] 
docs: make docsite build fixes - updated xrefs and adjusted heading levels

13 months agoAdd listener names
Nick Porter [Thu, 8 May 2025 09:33:46 +0000 (10:33 +0100)] 
Add listener names

13 months agoCorrect tracking structure talloc pool sizes
Nick Porter [Thu, 8 May 2025 08:40:31 +0000 (09:40 +0100)] 
Correct tracking structure talloc pool sizes

13 months agoRemove pair that didn't get populated
Nick Porter [Thu, 8 May 2025 07:20:25 +0000 (08:20 +0100)] 
Remove pair that didn't get populated

13 months agoRemove unused argument from format
Nick Porter [Wed, 7 May 2025 19:36:19 +0000 (20:36 +0100)] 
Remove unused argument from format

13 months agoHandle erros parsing call_env parser rules with name of CF_IDENT_ANY
Nick Porter [Wed, 7 May 2025 19:35:19 +0000 (20:35 +0100)] 
Handle erros parsing call_env parser rules with name of CF_IDENT_ANY

13 months agomash void to string
Alan T. DeKok [Thu, 8 May 2025 01:53:04 +0000 (21:53 -0400)] 
mash void to string

if the argument to 'switch' is a function returning void, then
update the tmpl to mash it to "string"

13 months agoparse %func() as argument to 'switch'
Alan T. DeKok [Thu, 8 May 2025 01:46:43 +0000 (21:46 -0400)] 
parse %func() as argument to 'switch'

13 months agoxlats can't be constant, either
Alan T. DeKok [Thu, 8 May 2025 01:45:18 +0000 (21:45 -0400)] 
xlats can't be constant, either

13 months agoquote strings are strings
Alan T. DeKok [Thu, 8 May 2025 01:40:06 +0000 (21:40 -0400)] 
quote strings are strings

13 months ago...and this
Arran Cudbard-Bell [Thu, 8 May 2025 01:02:25 +0000 (19:02 -0600)] 
...and this

13 months agoRemove debugging crap
Arran Cudbard-Bell [Thu, 8 May 2025 01:01:52 +0000 (19:01 -0600)] 
Remove debugging crap

13 months agoCan't check for presence of the event
Arran Cudbard-Bell [Thu, 8 May 2025 00:59:34 +0000 (18:59 -0600)] 
Can't check for presence of the event

13 months agoInsert timer event for resumption before altering time
Arran Cudbard-Bell [Wed, 7 May 2025 19:24:09 +0000 (13:24 -0600)] 
Insert timer event for resumption before altering time

13 months agoTests for nested timeouts
Arran Cudbard-Bell [Wed, 7 May 2025 19:23:26 +0000 (13:23 -0600)] 
Tests for nested timeouts

13 months agostart splitting out %time(everything)
Alan T. DeKok [Wed, 7 May 2025 15:03:23 +0000 (11:03 -0400)] 
start splitting out %time(everything)

into use-specific cases

13 months agomove %nextime() to %time.next()
Alan T. DeKok [Wed, 7 May 2025 14:49:00 +0000 (10:49 -0400)] 
move %nextime() to %time.next()

13 months agoclean up time_delta handling
Alan T. DeKok [Wed, 7 May 2025 14:33:50 +0000 (10:33 -0400)] 
clean up time_delta handling

check if the fractions overflow the scale.

Add / sub fractions as needed

13 months agoprint out error if reference is missing
Alan T. DeKok [Wed, 7 May 2025 13:29:53 +0000 (09:29 -0400)] 
print out error if reference is missing

13 months agoCorrect TLS version numbers
Nick Porter [Wed, 7 May 2025 14:04:27 +0000 (15:04 +0100)] 
Correct TLS version numbers

13 months agoWe don't build against OpenSSL < 3
Nick Porter [Wed, 7 May 2025 07:25:58 +0000 (08:25 +0100)] 
We don't build against OpenSSL < 3

So alt-libs doesn't need to switch from OpenSSL 1 to 3

13 months agoEnsure Homebrew installed OpenSSL is used
Nick Porter [Wed, 7 May 2025 07:22:21 +0000 (08:22 +0100)] 
Ensure Homebrew installed OpenSSL is used

13 months agoremove debugging message
Alan T. DeKok [Wed, 7 May 2025 13:28:10 +0000 (09:28 -0400)] 
remove debugging message

13 months agoadd cbor crashing test
Alan T. DeKok [Wed, 7 May 2025 13:25:37 +0000 (09:25 -0400)] 
add cbor crashing test

13 months agocheck for PANIC_ACTION, and do fr_fault_setup() if so
Alan T. DeKok [Wed, 7 May 2025 13:23:03 +0000 (09:23 -0400)] 
check for PANIC_ACTION, and do fr_fault_setup() if so

so we can get gdb back traces from fuzzer crashes

13 months agoadd -g3 when fuzzing
Alan T. DeKok [Wed, 7 May 2025 13:12:10 +0000 (09:12 -0400)] 
add -g3 when fuzzing

which should hopefully get us some more debug information on
fuzzing failures

13 months agoAdding support for 389-ds/FreeIPA PBKDF2 passwords (#5564)
Gerald Vogt [Wed, 7 May 2025 12:56:13 +0000 (14:56 +0200)] 
Adding support for 389-ds/FreeIPA PBKDF2 passwords (#5564)

* Add support for PBKDF2-SHA{1,256,512} as implemented in 389ds

* implement support for {PBKDF2_SHA256} 389ds legacy password hash

---------

Co-authored-by: Gerald Vogt <12151414+gvde@users.noreply.github.com>
13 months agorewrite cf_reference_item()
Alan T. DeKok [Wed, 7 May 2025 11:12:10 +0000 (07:12 -0400)] 
rewrite cf_reference_item()

while it's now more code, the code is at least clearer, and also
returns descriptive errors sayng exactly what went wrong.

Update the callers to print out these errors

13 months agotweaks and more examples
Alan T. DeKok [Wed, 7 May 2025 11:04:16 +0000 (07:04 -0400)] 
tweaks and more examples

13 months agoallow references in EAP such as 'tls = server[tls].config'
Alan T. DeKok [Tue, 6 May 2025 20:41:28 +0000 (16:41 -0400)] 
allow references in EAP such as 'tls = server[tls].config'

13 months agodon't allow in-place `...`
Alan T. DeKok [Tue, 6 May 2025 20:13:06 +0000 (16:13 -0400)] 
don't allow in-place `...`

we are gradually getting rid of all uses of back-ticks.  And
there is really no reason to allow `...` by itself on a line.

We still allow %foo() on a line by itself.

13 months agoAdd a special subrequest_child operation type
Arran Cudbard-Bell [Wed, 7 May 2025 00:52:37 +0000 (18:52 -0600)] 
Add a special subrequest_child operation type

We used to use functions for this, but we need the frame to be non-cancellable.

13 months agoSanity checks
Arran Cudbard-Bell [Wed, 7 May 2025 00:51:47 +0000 (18:51 -0600)] 
Sanity checks

13 months agoSay what we're marking as runnable
Arran Cudbard-Bell [Wed, 7 May 2025 00:43:36 +0000 (18:43 -0600)] 
Say what we're marking as runnable

13 months agoSet the initial frame action correctly for resumed requests
Arran Cudbard-Bell [Wed, 7 May 2025 00:43:18 +0000 (18:43 -0600)] 
Set the initial frame action correctly for resumed requests

13 months agoFall-Through to deal with pop
Arran Cudbard-Bell [Wed, 7 May 2025 00:43:00 +0000 (18:43 -0600)] 
Fall-Through to deal with pop

13 months agoCancelling and unwinding are now really separate things
Arran Cudbard-Bell [Tue, 6 May 2025 23:04:49 +0000 (17:04 -0600)] 
Cancelling and unwinding are now really separate things

13 months agoDon't allow signals to be delivered after a frame is cancelled
Arran Cudbard-Bell [Tue, 6 May 2025 22:31:27 +0000 (16:31 -0600)] 
Don't allow signals to be delivered after a frame is cancelled

13 months agoImmediately cancel timeout section timers on timeout
Arran Cudbard-Bell [Tue, 6 May 2025 22:31:08 +0000 (16:31 -0600)] 
Immediately cancel timeout section timers on timeout

13 months agoApparently this gets auto freed
Arran Cudbard-Bell [Tue, 6 May 2025 21:57:24 +0000 (15:57 -0600)] 
Apparently this gets auto freed

13 months agoSet prereqs for new tests
Arran Cudbard-Bell [Tue, 6 May 2025 21:13:02 +0000 (15:13 -0600)] 
Set prereqs for new tests

13 months agoGive cancelled requests extremely high priority
Arran Cudbard-Bell [Tue, 6 May 2025 21:11:22 +0000 (15:11 -0600)] 
Give cancelled requests extremely high priority

This ensures they're cleaned ASAP and release any resources.

13 months agoEnsure retry times out
Arran Cudbard-Bell [Tue, 6 May 2025 20:04:01 +0000 (14:04 -0600)] 
Ensure retry times out

13 months agoMake fr_timer_armed a static inline to avoid compiler errors
Arran Cudbard-Bell [Tue, 6 May 2025 19:49:00 +0000 (13:49 -0600)] 
Make fr_timer_armed a static inline to avoid compiler errors

13 months agoHack in request->timeout to unit_test_module
Arran Cudbard-Bell [Tue, 6 May 2025 19:43:00 +0000 (13:43 -0600)] 
Hack in request->timeout to unit_test_module

13 months agoAdd docs for finally
Arran Cudbard-Bell [Tue, 6 May 2025 19:07:16 +0000 (13:07 -0600)] 
Add docs for finally

13 months agoproto_control_unix needs to link to the util submodule
Arran Cudbard-Bell [Tue, 6 May 2025 17:58:13 +0000 (11:58 -0600)] 
proto_control_unix needs to link to the util submodule

13 months agoDon't trash the rcodes in process state machine sections
Arran Cudbard-Bell [Tue, 6 May 2025 17:55:07 +0000 (11:55 -0600)] 
Don't trash the rcodes in process state machine sections

13 months agoFailing to create attributes in an error
Arran Cudbard-Bell [Tue, 6 May 2025 17:17:43 +0000 (11:17 -0600)] 
Failing to create attributes in an error

13 months agoDefault priority for timeout in module calls should be return
Arran Cudbard-Bell [Tue, 6 May 2025 17:17:25 +0000 (11:17 -0600)] 
Default priority for timeout in module calls should be return

13 months agoFunctions shouldn't have braces
Arran Cudbard-Bell [Tue, 6 May 2025 17:16:55 +0000 (11:16 -0600)] 
Functions shouldn't have braces

13 months agoAdd talloc_realloc_zero to do zeroed reallocs
Arran Cudbard-Bell [Tue, 6 May 2025 04:14:56 +0000 (22:14 -0600)] 
Add talloc_realloc_zero to do zeroed reallocs

13 months agoAdd finally virtual server sections
Arran Cudbard-Bell [Mon, 5 May 2025 23:18:34 +0000 (17:18 -0600)] 
Add finally virtual server sections

13 months agoTop level timeout sections are going away rework retry-timeout
Arran Cudbard-Bell [Mon, 5 May 2025 23:17:59 +0000 (17:17 -0600)] 
Top level timeout sections are going away rework retry-timeout

13 months agoTest parent cancellation in subrequest
Arran Cudbard-Bell [Mon, 5 May 2025 23:13:24 +0000 (17:13 -0600)] 
Test parent cancellation in subrequest

13 months agoWS
Arran Cudbard-Bell [Mon, 5 May 2025 23:12:57 +0000 (17:12 -0600)] 
WS

13 months agoFunction to return how long until an event fires
Arran Cudbard-Bell [Mon, 5 May 2025 22:56:52 +0000 (16:56 -0600)] 
Function to return how long until an event fires

13 months agoHave process modules export their packet types
Arran Cudbard-Bell [Mon, 5 May 2025 22:51:38 +0000 (16:51 -0600)] 
Have process modules export their packet types

13 months agoBail early if there's no stack
Arran Cudbard-Bell [Mon, 5 May 2025 22:29:14 +0000 (16:29 -0600)] 
Bail early if there's no stack

13 months agoExplicitly cancel retry timers when the frame is cancelled
Arran Cudbard-Bell [Mon, 5 May 2025 22:22:16 +0000 (16:22 -0600)] 
Explicitly cancel retry timers when the frame is cancelled

It's not enough to wait for the frame to be popped, because the cancellation and popping can occur at different times, which is enough for the retry event to fire, and things to go boom.

13 months agoFix typos in timer.c that caused it not to build WITH_EVENT_DEBUG
Arran Cudbard-Bell [Mon, 5 May 2025 22:21:19 +0000 (16:21 -0600)] 
Fix typos in timer.c that caused it not to build WITH_EVENT_DEBUG

13 months agoAdd time.advance() for unit_test_module
Arran Cudbard-Bell [Mon, 5 May 2025 20:42:01 +0000 (14:42 -0600)] 
Add time.advance() for unit_test_module

This lets us artificially advance time for testing timeouts

13 months agoForward cancellations to children, and don't cancel the parent until the child is...
Arran Cudbard-Bell [Mon, 5 May 2025 19:50:12 +0000 (13:50 -0600)] 
Forward cancellations to children, and don't cancel the parent until the child is done

13 months agoAsynchronously deliver signals, synchronously cancel frames
Arran Cudbard-Bell [Sun, 4 May 2025 03:41:27 +0000 (23:41 -0400)] 
Asynchronously deliver signals, synchronously cancel frames

This lets us stop subrequests immediately when their parents are cancelled.

Add op flag to mask certain frames to _prevent_ their cancellation.

13 months agoConstify the output of enumv functions
Arran Cudbard-Bell [Sat, 3 May 2025 00:28:47 +0000 (20:28 -0400)] 
Constify the output of enumv functions

Add enumv iterators

13 months agoRename virtual server listener structure
Arran Cudbard-Bell [Thu, 1 May 2025 22:22:41 +0000 (18:22 -0400)] 
Rename virtual server listener structure

13 months agoBump CI MacOS version
Nick Porter [Tue, 6 May 2025 17:27:56 +0000 (18:27 +0100)] 
Bump CI MacOS version