]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Alan T. DeKok [Mon, 21 Jul 2025 10:18:18 +0000 (12:18 +0200)]
store the result somewhere
Alan T. DeKok [Mon, 21 Jul 2025 08:27:04 +0000 (10:27 +0200)]
it helps to check the result of an xlat
except that this error check never catches an error, because
something in the interpreter isn't passing the results back to
us.
Alan T. DeKok [Mon, 21 Jul 2025 07:45:30 +0000 (09:45 +0200)]
push a function before running the trigger
the interpreter needs the stack to be bootstrapped with a function
or module that is something other than a tmpl. The tmpl expects
to be a sub frame.
Without this, the trigger subrequest never runs anything after the
first instruction
Alan T. DeKok [Mon, 21 Jul 2025 07:40:03 +0000 (09:40 +0200)]
don't append output book on failure
Alan T. DeKok [Sun, 20 Jul 2025 12:45:32 +0000 (14:45 +0200)]
allow non-operators for "limit" and "timeout", too
Alan T. DeKok [Sat, 19 Jul 2025 00:03:19 +0000 (20:03 -0400)]
use macros for consistency with the rest of the code
Alan T. DeKok [Sat, 19 Jul 2025 00:01:18 +0000 (20:01 -0400)]
rename fields for consistency with the rest of the code
Alan T. DeKok [Fri, 18 Jul 2025 18:35:32 +0000 (14:35 -0400)]
set priority, too.
instead of having it left over from the previous instruction
Nick Porter [Fri, 18 Jul 2025 13:53:04 +0000 (14:53 +0100)]
Don't add FR_TYPE_NULL boxes to xlat output
They currently can't be cast to anything so cause issues when assigning
to a target attribute
Nick Porter [Fri, 18 Jul 2025 13:45:40 +0000 (14:45 +0100)]
Remove meaningless debug
Arran Cudbard-Bell [Fri, 18 Jul 2025 16:20:26 +0000 (10:20 -0600)]
Simplify trigger handling.
Remove trigger xlat, we just use the request like.
Use tmpl_afrom_substr instead of custom parsing logic.
Arran Cudbard-Bell [Fri, 18 Jul 2025 15:40:48 +0000 (09:40 -0600)]
Initialise triggers later, move trigger name into an attribute to make serialisation easier
Alan T. DeKok [Fri, 18 Jul 2025 14:11:14 +0000 (10:11 -0400)]
add %test.null() which always returns a value box of FR_TYPE_NULL
Alan T. DeKok [Fri, 18 Jul 2025 11:00:12 +0000 (07:00 -0400)]
Revert "slight tweaks"
This reverts commit
8f2845ebe9feeb010c086ac20fc329e44104ea95 .
github-actions[bot] [Fri, 18 Jul 2025 04:40:08 +0000 (04:40 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/cbor.tar
github-actions[bot] [Fri, 18 Jul 2025 04:39:04 +0000 (04:39 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/der.tar
Alan T. DeKok [Thu, 17 Jul 2025 17:15:18 +0000 (13:15 -0400)]
slight tweaks
Alan T. DeKok [Thu, 17 Jul 2025 16:56:09 +0000 (12:56 -0400)]
use macro for common case
some instructions didn't return on timeout. So using a common
initializer is beneficial
Arran Cudbard-Bell [Thu, 17 Jul 2025 19:11:24 +0000 (13:11 -0600)]
Actually run on our runners
Arran Cudbard-Bell [Thu, 17 Jul 2025 17:41:53 +0000 (11:41 -0600)]
Attempt to move sanitizers to local infrastructure
Arran Cudbard-Bell [Thu, 17 Jul 2025 15:55:05 +0000 (09:55 -0600)]
Fix typos and bad docs
Alan T. DeKok [Thu, 17 Jul 2025 11:36:46 +0000 (07:36 -0400)]
don't assert on FR_TYPE_NULL
in preparation for allowing it as a real type
Arran Cudbard-Bell [Thu, 17 Jul 2025 02:19:55 +0000 (20:19 -0600)]
Add additional file check flags
Add specific flag for unix sockets
Alan T. DeKok [Wed, 16 Jul 2025 19:31:30 +0000 (15:31 -0400)]
must always check the return code of fr_value_box_cast
Alan T. DeKok [Wed, 16 Jul 2025 19:21:42 +0000 (15:21 -0400)]
add test of "last loop returns the rcode"
Alan T. DeKok [Wed, 16 Jul 2025 11:22:29 +0000 (07:22 -0400)]
use consistent names
$ git grep -w result_p | wc -l
42
$ git grep -w p_result | wc -l
860
Alan T. DeKok [Tue, 15 Jul 2025 18:45:03 +0000 (14:45 -0400)]
move MOD_ACTION_NOT_SET --> 0
add macros for valid values. sprinkle assertions throughout the
code. Move the action names to a fixed-size array. Update the
printing to print out the names in all cases (not the numbers)
Alan T. DeKok [Wed, 16 Jul 2025 10:40:54 +0000 (06:40 -0400)]
allow ::enum for 'case' statements
Nick Porter [Wed, 16 Jul 2025 10:23:02 +0000 (11:23 +0100)]
Correct docs on rlm_radius return codes
Alan T. DeKok [Tue, 15 Jul 2025 15:36:31 +0000 (11:36 -0400)]
correct behavior of parallel
it helps to actually set p_result when pushing the child.
Then, update the tests to match the documented behavior.
Alan T. DeKok [Tue, 15 Jul 2025 14:48:14 +0000 (10:48 -0400)]
it helps to track the child result
Alan T. DeKok [Tue, 15 Jul 2025 14:47:12 +0000 (10:47 -0400)]
use macros for priorities, not hard-coded numbers
this helps with transitioning the actual values
Alan T. DeKok [Tue, 15 Jul 2025 13:05:10 +0000 (09:05 -0400)]
give expr.rcode() a better name: interpreter.rcode()
the old one is still around for compatibility reasons
Alan T. DeKok [Tue, 15 Jul 2025 13:04:08 +0000 (09:04 -0400)]
print rcode if we don't get passed options
Nick Porter [Tue, 15 Jul 2025 12:39:18 +0000 (13:39 +0100)]
Simplify call_env expanding
Pointers to source tmpls are always set in call_env_expand_start, so
don't need handling in call_env_expand_repeat.
Parse only envs are never pushed as tmpls, so will never be processed in
call_env_expand_repeat.
Nick Porter [Tue, 15 Jul 2025 11:34:25 +0000 (12:34 +0100)]
If a tmpl is data, no need to push it for evaluation
Alan T. DeKok [Tue, 15 Jul 2025 10:23:40 +0000 (06:23 -0400)]
use macro to set p_result
which lets us initialize the structure with the correct values
Nick Porter [Tue, 15 Jul 2025 09:54:19 +0000 (10:54 +0100)]
Use netlink API to insert ARP entries on FreeBSD
Comparable to how FreeBSD's arp command adds entries using netlink.
Arran Cudbard-Bell [Tue, 15 Jul 2025 05:13:07 +0000 (23:13 -0600)]
Set the request->rcode to the default section rcode when we enter a section
Arran Cudbard-Bell [Tue, 15 Jul 2025 05:12:23 +0000 (23:12 -0600)]
Default rcode is now noop
Arran Cudbard-Bell [Tue, 15 Jul 2025 05:12:09 +0000 (23:12 -0600)]
Sync up perl return codes with server return codes
Arran Cudbard-Bell [Tue, 15 Jul 2025 04:16:12 +0000 (22:16 -0600)]
add signal.raise("break"), this lets us stop the program after an unlang keyword executes, which makes it easier to debug certain issues
Arran Cudbard-Bell [Tue, 15 Jul 2025 05:14:00 +0000 (23:14 -0600)]
RLM_MODULE_NOT_SET=0 so that zeroed memory is invalid.
Alan T. DeKok [Mon, 14 Jul 2025 20:54:57 +0000 (16:54 -0400)]
use macro to initialize struct with UNLANG_RESULT_NOT_SET
Arran Cudbard-Bell [Tue, 15 Jul 2025 03:27:38 +0000 (21:27 -0600)]
Make the compound literal part of the macro
Arran Cudbard-Bell [Tue, 15 Jul 2025 02:50:51 +0000 (20:50 -0600)]
The result of the interpret should be the result_p of the frame not the section_result
This caused synchronous evaluation of xlats to return reject
Alan T. DeKok [Fri, 11 Jul 2025 23:05:05 +0000 (19:05 -0400)]
move redundant to its own function
it's not really a group. Instead, it should share the redundancy
functionality of redundant-load-balance
Arran Cudbard-Bell [Tue, 15 Jul 2025 01:14:38 +0000 (19:14 -0600)]
Remove unused function
Alan T. DeKok [Mon, 14 Jul 2025 13:29:04 +0000 (09:29 -0400)]
run dsymutil if we have it and libbacktrace
Nick Porter [Mon, 14 Jul 2025 08:14:43 +0000 (09:14 +0100)]
The pid file may reference a process that doesn't exist
Alan T. DeKok [Thu, 10 Jul 2025 19:35:06 +0000 (15:35 -0400)]
add p_result to unlang_tmpl_push()
Arran Cudbard-Bell [Mon, 14 Jul 2025 00:22:00 +0000 (18:22 -0600)]
Regression test for internal encoder
Arran Cudbard-Bell [Mon, 14 Jul 2025 00:21:41 +0000 (18:21 -0600)]
Add support for libbacktrace
Arran Cudbard-Bell [Mon, 14 Jul 2025 00:16:11 +0000 (18:16 -0600)]
Add utility functions to trim paths
Arran Cudbard-Bell [Mon, 14 Jul 2025 00:14:19 +0000 (18:14 -0600)]
Don't pass a pointer to the password value box...
Arran Cudbard-Bell [Mon, 14 Jul 2025 00:14:03 +0000 (18:14 -0600)]
Add libbacktrace as a submodule
Alan T. DeKok [Sun, 13 Jul 2025 15:43:05 +0000 (11:43 -0400)]
remove radius_packet_t
structs require alignment. But packets can come from anywhere,
and aren't always aligned.
Alan T. DeKok [Sun, 13 Jul 2025 12:04:03 +0000 (08:04 -0400)]
regularize pool configuration for tests
it makes absolutely zero sense to have "uses = 2". This means
that the connections will get closed in the middle of the unit
tests.
Alan T. DeKok [Sun, 13 Jul 2025 11:56:42 +0000 (07:56 -0400)]
show when we hit boundaries
so that the poor admin reading the debug output can find out
why the connection was closed
Alan T. DeKok [Sat, 12 Jul 2025 12:52:49 +0000 (08:52 -0400)]
add and use automatic re-init on connection failure
Some SQL modules use a thread-specific connection hamdle for
escaping. However, that connection may fail for some reason.
When that happens, the connection should be reopened.
Otherwise, the connection will go down, and will never come back
up again.
Arran Cudbard-Bell [Sun, 13 Jul 2025 15:15:42 +0000 (09:15 -0600)]
Fix unaligned access in DHCPv4 "get_option" on MacOS
Alan T. DeKok [Fri, 11 Jul 2025 15:20:18 +0000 (11:20 -0400)]
rework load balance
it now supports all data types via fr_value_box_hash()
more sanity checks and simplifications
Nick Porter [Fri, 11 Jul 2025 16:47:26 +0000 (17:47 +0100)]
Update docs from raddb
Nick Porter [Fri, 11 Jul 2025 16:48:07 +0000 (17:48 +0100)]
Whitespace
Nick Porter [Fri, 11 Jul 2025 16:46:01 +0000 (17:46 +0100)]
Update section names referenced in sample modules
Nick Porter [Fri, 11 Jul 2025 16:21:35 +0000 (17:21 +0100)]
Update sample rest module
Nick Porter [Fri, 11 Jul 2025 16:18:13 +0000 (17:18 +0100)]
Update rlm_rest test config
Nick Porter [Thu, 10 Jul 2025 15:03:42 +0000 (16:03 +0100)]
Use call_env to detect which sections rlm_rest is called in
And find conf sections based on the section name where the module is called.
Nick Porter [Fri, 11 Jul 2025 12:46:04 +0000 (13:46 +0100)]
Make call_env_parse a public function
So we can use a custom parser to point at a specific CONF_SECTION rather
than having them hard coded in to the parser config.
Alan T. DeKok [Fri, 11 Jul 2025 11:48:20 +0000 (07:48 -0400)]
add comments and macros for mod_action
Alan T. DeKok [Fri, 11 Jul 2025 11:18:19 +0000 (07:18 -0400)]
add error message to xlat_redundant when it fails
Alan T. DeKok [Thu, 10 Jul 2025 16:18:30 +0000 (12:18 -0400)]
add tmpl_dump
github-actions[bot] [Thu, 10 Jul 2025 04:33:55 +0000 (04:33 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar
github-actions[bot] [Thu, 10 Jul 2025 04:33:53 +0000 (04:33 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Thu, 10 Jul 2025 04:33:43 +0000 (04:33 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar
github-actions[bot] [Thu, 10 Jul 2025 04:33:40 +0000 (04:33 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar
github-actions[bot] [Thu, 10 Jul 2025 04:33:37 +0000 (04:33 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
github-actions[bot] [Thu, 10 Jul 2025 04:33:31 +0000 (04:33 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Thu, 10 Jul 2025 04:32:55 +0000 (04:32 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Thu, 10 Jul 2025 04:31:56 +0000 (04:31 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Thu, 10 Jul 2025 04:31:47 +0000 (04:31 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
Nick Porter [Wed, 9 Jul 2025 11:41:19 +0000 (12:41 +0100)]
Correct #ifdef wrapped logic
Nick Porter [Wed, 9 Jul 2025 11:29:20 +0000 (12:29 +0100)]
If we send using pcap, use pcap to receive
Calling recvfrom() on the pcap fd returns EWOULDBLOCK or EAGAIN
Nick Porter [Wed, 9 Jul 2025 08:35:26 +0000 (09:35 +0100)]
Correct UDP checksum calculation
Nick Porter [Wed, 9 Jul 2025 06:51:21 +0000 (07:51 +0100)]
Move variable initialisation (CID #
1655307 )
Nick Porter [Wed, 9 Jul 2025 06:41:24 +0000 (07:41 +0100)]
Correct return value for comparison (CID #
1655308 )
Nick Porter [Tue, 8 Jul 2025 17:18:29 +0000 (18:18 +0100)]
Add libpcap option for sending DHCP replies
Which will be used on non-Linux systems.
Also, can be used on Linux for testing, using the hidden listener conf
option of use_pcap
Nick Porter [Tue, 8 Jul 2025 16:14:31 +0000 (17:14 +0100)]
No need for dhcp_packet_t
Since we're just sending data - not decoding the header.
Using dhcp_packet_t also can cause spurious alignment complaints from
sanitizers.
Alan T. DeKok [Mon, 7 Jul 2025 16:07:18 +0000 (12:07 -0400)]
let's take the result back up the stack
Alan T. DeKok [Mon, 7 Jul 2025 16:01:24 +0000 (12:01 -0400)]
better debug output and clarifications
Nick Porter [Mon, 7 Jul 2025 15:12:53 +0000 (16:12 +0100)]
Use module name in custom call_env_parse functions
So call_env_parse() can be made public
Nick Porter [Mon, 7 Jul 2025 15:03:47 +0000 (16:03 +0100)]
Add checks that tmpl expansion created a value
Nick Porter [Mon, 7 Jul 2025 13:38:43 +0000 (14:38 +0100)]
If the query tmpl did not expand, fail the module call
Nick Porter [Mon, 7 Jul 2025 08:24:00 +0000 (09:24 +0100)]
More consistent handling of dcursors in xlat args
xlat_frame_eval doesn't know if the arg is required, so if no pairs are
matched, allow a cursor to be returned.
Then xlat_process_arg_list can do the right thing depending on whether
the argument is required or not.
Nick Porter [Thu, 3 Jul 2025 07:43:51 +0000 (08:43 +0100)]
Spelling
Alan T. DeKok [Sun, 6 Jul 2025 16:07:01 +0000 (12:07 -0400)]
it turns out that we care if the xlat fails
so we return an error when that happens
Alan T. DeKok [Sun, 6 Jul 2025 13:38:01 +0000 (09:38 -0400)]
query must exist
otherwise it means that one of the expansions failed, and the
interpreter did not pop the stack. Instead, it just kept going
Alan T. DeKok [Sun, 6 Jul 2025 13:26:23 +0000 (09:26 -0400)]
failed cast is fail, not OK
nolade [Tue, 6 May 2025 16:03:00 +0000 (12:03 -0400)]
docs: Add guidelines for documentation for contributors, coders, and me. Update Terminolgy.adoc standardizing on UK/British spelling. Update accessibility section & included more details in other sections.
ewelsh-inkbridge [Tue, 1 Jul 2025 19:35:04 +0000 (15:35 -0400)]
Added documentation for trigger_exec