]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
3 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

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

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

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

3 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

3 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

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

3 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

3 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()

3 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

3 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

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

3 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

3 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

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

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

3 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

3 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

3 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>
3 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

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

3 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'

3 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.

3 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.

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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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.

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

3 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

3 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

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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

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

3 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

3 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

3 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

3 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.

3 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

3 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

3 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

3 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.

3 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

3 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

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

3 months agobetter handle connected UDP sockets
Alan T. DeKok [Tue, 6 May 2025 15:29:16 +0000 (11:29 -0400)] 
better handle connected UDP sockets

and forbid reuse_port when we have connected UDP sockets, AND
the local IP is a wildcard.  The kernel will send replies to a
random socket, and not to the correct one!

In order to do "connected" UDP sockets with a local wildcard IP,
we will need to use recvfromto(), and then manually direct the
packets to the correct destination socket.

This also means that an "accept" socket will be needed, even for
UDP.  And, the "accept" socket will need to have a list of child
sockets.

3 months agoadd fr_sockaddr_cmp()
Alan T. DeKok [Tue, 6 May 2025 14:23:56 +0000 (10:23 -0400)] 
add fr_sockaddr_cmp()

3 months agouse consistent variable types and names for CMP() checks
Alan T. DeKok [Tue, 6 May 2025 13:20:53 +0000 (09:20 -0400)] 
use consistent variable types and names for CMP() checks

3 months agotry a little more to make 'listen' names unique
Alan T. DeKok [Tue, 6 May 2025 13:03:21 +0000 (09:03 -0400)] 
try a little more to make 'listen' names unique

and give better error messages where we can

3 months agodocs: add guidelines for documentation for contributers, coders, and me.
nolade [Tue, 6 May 2025 16:03:00 +0000 (12:03 -0400)] 
docs: add guidelines for documentation for contributers, coders, and me.

3 months agoRemove errant policy
Nick Porter [Tue, 6 May 2025 12:43:54 +0000 (13:43 +0100)] 
Remove errant policy

3 months agoadd "finally"
Alan T. DeKok [Tue, 6 May 2025 10:22:25 +0000 (06:22 -0400)] 
add "finally"

3 months agoCast constants to float for correct comparison
Nick Porter [Tue, 6 May 2025 09:34:52 +0000 (10:34 +0100)] 
Cast constants to float for correct comparison

3 months agoMake the TLS session ID available in `establish session`
Nick Porter [Mon, 5 May 2025 16:39:36 +0000 (17:39 +0100)] 
Make the TLS session ID available in `establish session`

3 months agoCall `new session` if configured when starting TLS for TTLS
Nick Porter [Mon, 5 May 2025 11:06:34 +0000 (12:06 +0100)] 
Call `new session` if configured when starting TLS for TTLS

3 months agoAdd attribute to record certificate chain depth
Nick Porter [Mon, 5 May 2025 11:05:48 +0000 (12:05 +0100)] 
Add attribute to record certificate chain depth

3 months agoCall `new session` if configured when starting TLS session for PEAP
Nick Porter [Mon, 5 May 2025 08:54:36 +0000 (09:54 +0100)] 
Call `new session` if configured when starting TLS session for PEAP

3 months agoInclude nested password parent name in warning
Nick Porter [Mon, 5 May 2025 07:55:26 +0000 (08:55 +0100)] 
Include nested password parent name in warning

To avoid confusing users

3 months agolet's just commit the generated files, too
Alan T. DeKok [Sun, 4 May 2025 13:19:47 +0000 (09:19 -0400)] 
let's just commit the generated files, too

so that the rpm build phase doesn't need asciidoctor

3 months agogenerate dictionary "man" page from Antora
Alan T. DeKok [Sun, 4 May 2025 13:12:10 +0000 (09:12 -0400)] 
generate dictionary "man" page from Antora

3 months agonew "man unlang" page and cleanups
Alan T. DeKok [Sun, 4 May 2025 12:50:25 +0000 (08:50 -0400)] 
new "man unlang" page and cleanups

which is for now just a paragraph header, and then includes
the "keywords.adoc" file.  The goal here is to provide a simple
offline reference, and not a complete documentation of the server

3 months agoremove "man unlang" and references to it.
Alan T. DeKok [Sun, 4 May 2025 12:25:02 +0000 (08:25 -0400)] 
remove "man unlang" and references to it.

The file is out of date, and has little more than automatic
changes made for a while.  We will replace it with a file that
is generated from asciidoc, and which lives inside of antora

3 months agonotes on "don't use exec, it's slow"
Alan T. DeKok [Sun, 4 May 2025 00:23:20 +0000 (20:23 -0400)] 
notes on "don't use exec, it's slow"

3 months agonotes on v4
Alan T. DeKok [Sat, 3 May 2025 13:54:26 +0000 (09:54 -0400)] 
notes on v4

3 months agoadd %regex.search()
Alan T. DeKok [Sat, 3 May 2025 12:15:37 +0000 (08:15 -0400)] 
add %regex.search()

3 months agoSet start = 0 in SQLite test
Nick Porter [Fri, 2 May 2025 19:28:48 +0000 (20:28 +0100)] 
Set start = 0 in SQLite test

To verify correct behaviour when initial query launches connection

3 months agoSQLite queries which start in backlog will yield - so resume
Nick Porter [Fri, 2 May 2025 17:00:41 +0000 (18:00 +0100)] 
SQLite queries which start in backlog will yield - so resume

Setting `start = 0` in the database pool, causes the first query to go
into a backlog while the connection opens.

Without resuming the request, connections keep spawning and the request
never completes.

3 months agouse the new timer functions
Alan T. DeKok [Fri, 2 May 2025 16:56:54 +0000 (12:56 -0400)] 
use the new timer functions

which makes the retry code significantly simpler

3 months agofinalize the timer functionality
Alan T. DeKok [Fri, 2 May 2025 11:23:14 +0000 (07:23 -0400)] 
finalize the timer functionality

3 months agodon't assert i!prev
Alan T. DeKok [Fri, 2 May 2025 15:25:25 +0000 (11:25 -0400)] 
don't assert i!prev

the next bit of code actually checks for prev

3 months agoremove duplicate code
Alan T. DeKok [Fri, 2 May 2025 14:31:49 +0000 (10:31 -0400)] 
remove duplicate code

3 months agoPython and Lua do support nested attributes now
Nick Porter [Fri, 2 May 2025 13:55:08 +0000 (14:55 +0100)] 
Python and Lua do support nested attributes now

3 months agoadd shared timer lists, which only insert a uctx
Alan T. DeKok [Thu, 1 May 2025 20:39:27 +0000 (16:39 -0400)] 
add shared timer lists, which only insert a uctx

some timer lists contain a large amount of entries, but also
all share the same callback.  Instead of allocating tons of
memory for each fr_timer_event_t, we just allocate a special list,
where every event shares one fr_timer_event_t in the parent.

3 months agoupdate copyright
Alan T. DeKok [Fri, 2 May 2025 10:18:18 +0000 (06:18 -0400)] 
update copyright

3 months agouse fr_cmp_t, instead of fr_lst_cmp_t, as they are the same
Alan T. DeKok [Thu, 1 May 2025 20:24:37 +0000 (16:24 -0400)] 
use fr_cmp_t, instead of fr_lst_cmp_t, as they are the same

3 months agodocs: Add rlm_lua module howto
Nick Porter [Fri, 2 May 2025 09:47:49 +0000 (10:47 +0100)] 
docs: Add rlm_lua module howto

3 months agoUpdate example.lua
Nick Porter [Fri, 2 May 2025 09:45:00 +0000 (10:45 +0100)] 
Update example.lua

3 months agoUpdate docs from latest raddb
Nick Porter [Fri, 2 May 2025 09:42:03 +0000 (10:42 +0100)] 
Update docs from latest raddb

3 months agoAdd test of attribute deletion from rlm_lua
Nick Porter [Fri, 2 May 2025 09:32:55 +0000 (10:32 +0100)] 
Add test of attribute deletion from rlm_lua

3 months agoAdd tests of invalid attribute setting from rlm_lua
Nick Porter [Thu, 1 May 2025 16:47:45 +0000 (17:47 +0100)] 
Add tests of invalid attribute setting from rlm_lua

3 months agoAdd tests of attribute access / setting in rlm_lua
Nick Porter [Thu, 1 May 2025 16:19:20 +0000 (17:19 +0100)] 
Add tests of attribute access / setting in rlm_lua

3 months agoAdd function descriptions
Nick Porter [Thu, 1 May 2025 13:03:21 +0000 (14:03 +0100)] 
Add function descriptions

3 months agoUpdate _lua_list_iterator_init to use fr_lua_pair_t userdata
Nick Porter [Thu, 1 May 2025 12:56:08 +0000 (13:56 +0100)] 
Update _lua_list_iterator_init to use fr_lua_pair_t userdata

So the iterator can work over any list.

3 months agoTidy up _lua_pair_iterator
Nick Porter [Thu, 1 May 2025 12:48:53 +0000 (13:48 +0100)] 
Tidy up _lua_pair_iterator

and make it return the first attribute instance correctly.

3 months agoFix _lua_pair_iterator_init() to use fr_lua_pair_t as userdata
Nick Porter [Thu, 1 May 2025 12:47:35 +0000 (13:47 +0100)] 
Fix _lua_pair_iterator_init() to use fr_lua_pair_t as userdata

3 months agoAdd _lua_pair_setter
Nick Porter [Thu, 1 May 2025 12:40:00 +0000 (13:40 +0100)] 
Add _lua_pair_setter

Used as the __newindex metafunction for all pair tables.

This allows sanity checking so that setting is only valid when doing so
on a specific instnace of a leaf pair.

When amending an existing pair, only its value is changed so that
pointers to the pair remain consistent.