]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
2 months agofree secret before over-writing it
Alan T. DeKok [Thu, 2 Apr 2026 13:14:22 +0000 (09:14 -0400)] 
free secret before over-writing it

2 months agocheck return code of openss3_init()
Alan T. DeKok [Thu, 2 Apr 2026 13:13:35 +0000 (09:13 -0400)] 
check return code of openss3_init()

2 months agoupdate macro to allow things checking it
Alan T. DeKok [Thu, 2 Apr 2026 13:13:09 +0000 (09:13 -0400)] 
update macro to allow things checking it

2 months agocorrect comparison
Alan T. DeKok [Thu, 2 Apr 2026 13:12:35 +0000 (09:12 -0400)] 
correct comparison

in practice, this won't happen, but it's good to fix

2 months agofree packets on error
Alan T. DeKok [Thu, 2 Apr 2026 13:11:44 +0000 (09:11 -0400)] 
free packets on error

2 months agofix typo
Alan T. DeKok [Thu, 2 Apr 2026 13:11:06 +0000 (09:11 -0400)] 
fix typo

2 months agouse correct request for removal from the CoA tree
Alan T. DeKok [Thu, 2 Apr 2026 13:09:53 +0000 (09:09 -0400)] 
use correct request for removal from the CoA tree

2 months agoset timers to remaining.
Alan T. DeKok [Thu, 2 Apr 2026 13:09:16 +0000 (09:09 -0400)] 
set timers to remaining.

@todo - just use fr_retry_t

2 months agodocs-v4: added more syntax examples for <type> field.
nolade [Wed, 1 Apr 2026 21:27:40 +0000 (17:27 -0400)] 
docs-v4: added more syntax examples for <type> field.

2 months agotweak / rename "force module return code"
Alan T. DeKok [Thu, 2 Apr 2026 09:30:24 +0000 (05:30 -0400)] 
tweak / rename "force module return code"

2 months agodocs-v4: added 5 more instances (disallow, handled, invalid, notfound, updated) used...
nolade [Wed, 1 Apr 2026 21:06:37 +0000 (17:06 -0400)] 
docs-v4: added 5 more instances (disallow, handled, invalid, notfound, updated) used by `always` module

2 months agofix typo
Alan T. DeKok [Thu, 2 Apr 2026 09:29:28 +0000 (05:29 -0400)] 
fix typo

2 months agomash <1us (and negative) to zero for timeout
Alan T. DeKok [Thu, 2 Apr 2026 09:26:09 +0000 (05:26 -0400)] 
mash <1us (and negative) to zero for timeout

2 months agodocs-v4: wordsmiting 1st paragraph to clearly explain `return` versus `break`
nolade [Wed, 1 Apr 2026 20:24:08 +0000 (16:24 -0400)] 
docs-v4: wordsmiting 1st paragraph to clearly explain `return` versus `break`

2 months agodocs-v4: added info re: `default` keyword, added `parallel` info, updated nav file
nolade [Wed, 1 Apr 2026 19:21:26 +0000 (15:21 -0400)] 
docs-v4: added info re: `default` keyword, added `parallel` info, updated nav file

2 months agolocal variables are now alloed.
Alan T. DeKok [Wed, 1 Apr 2026 17:41:24 +0000 (13:41 -0400)] 
local variables are now alloed.

2 months agodocs-v4: added subrequest & policy to list of where local vars can be used, fixed...
nolade [Wed, 1 Apr 2026 14:45:37 +0000 (10:45 -0400)] 
docs-v4: added subrequest & policy to list of where local vars can be used, fixed typo

2 months agoallow certs to be made quietly
Alan T. DeKok [Wed, 1 Apr 2026 15:40:00 +0000 (11:40 -0400)] 
allow certs to be made quietly

because the CI output is polluted with tons of OpenSSL output,
and we don't need to see that.

2 months agoLook up in client tree, even if we have a cached entry. Fixes #5676
Shang Chieh Tseng [Wed, 1 Apr 2026 15:25:32 +0000 (11:25 -0400)] 
Look up in client tree, even if we have a cached entry.  Fixes #5676

When the per-thread client trie has a cached entry from a broad
subnet (e.g. /8), it shadows more specific client definitions
(e.g. /24) for subsequent connections.  This causes the wrong
shared secret to be used, breaking packet authentication (RADIUS)
or decryption (TACACS+).

After the trie lookup returns a cached client, verify it against
the global client list.  If a more specific match exists, discard
the cached result so the existing code path does a fresh lookup
and caches the correct client.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2 months agoclarify outer vs parent issues
Alan T. DeKok [Wed, 1 Apr 2026 15:19:11 +0000 (11:19 -0400)] 
clarify outer vs parent issues

2 months agotypo
Alan T. DeKok [Wed, 1 Apr 2026 14:48:00 +0000 (10:48 -0400)] 
typo

2 months agodocs-v4: continue integrity check - added more details about breaking out of a `forea...
nolade [Tue, 31 Mar 2026 17:52:45 +0000 (13:52 -0400)] 
docs-v4: continue integrity check - added more details about breaking out of a `foreach` loop

2 months agodoc-v4: fix broken xref to list editing operators, replace update statement with...
nolade [Tue, 31 Mar 2026 18:44:43 +0000 (14:44 -0400)] 
doc-v4: fix broken xref to list editing operators, replace update statement with subrequest.

2 months agodocs-v4: Update integrity check - fixed typos.syntax`
nolade [Tue, 31 Mar 2026 19:54:49 +0000 (15:54 -0400)] 
docs-v4: Update integrity check - fixed typos.syntax`

2 months agodocs-v4: Integrity check and updated case, default, and switch pages with v4 syntax...
nolade [Tue, 24 Mar 2026 15:03:17 +0000 (11:03 -0400)] 
docs-v4: Integrity check and updated case, default, and switch pages with v4 syntax and behaviour

2 months agodocs-v4: intergrity check of edit page - update no longer used.
nolade [Tue, 24 Mar 2026 14:01:48 +0000 (10:01 -0400)] 
docs-v4: intergrity check of edit page - update no longer used.

2 months agotweak formatting and add "finally" keyword
Alan T. DeKok [Tue, 31 Mar 2026 11:40:40 +0000 (07:40 -0400)] 
tweak formatting and add "finally" keyword

2 months agodocs-v4: if-else-elsif integrity check - fixed typos, syntax, and added failed condit...
nolade [Mon, 30 Mar 2026 20:13:03 +0000 (16:13 -0400)] 
docs-v4: if-else-elsif integrity check - fixed typos, syntax, and added failed condition triggers

2 months agodocs-v4: transaction integrity check
nolade [Mon, 30 Mar 2026 19:27:49 +0000 (15:27 -0400)] 
docs-v4: transaction integrity check

added more info on keywords that can be used, fix xref links, added rollback conditions (`notfound` / `timeout`)

2 months agomight as well allow map, try, and catch in a transaction
Alan T. DeKok [Tue, 31 Mar 2026 11:31:44 +0000 (07:31 -0400)] 
might as well allow map, try, and catch in a transaction

Transactions also can't contain break / return, or call another
virtual server.

2 months agodocs-v4: Fixed syntax on coding example for `limit with catch` (unterminated block)
nolade [Mon, 30 Mar 2026 15:20:00 +0000 (11:20 -0400)] 
docs-v4: Fixed syntax on coding example for `limit with catch` (unterminated block)

2 months agodocs-v4: Integrity check on call page - added text about compatible names & added...
nolade [Mon, 30 Mar 2026 18:41:36 +0000 (14:41 -0400)] 
docs-v4: Integrity check on call page - added text about compatible names & added note for rcode results from multiple calls.

2 months agoadd more CC_HINT format / printf specifiers
Alan T. DeKok [Mon, 30 Mar 2026 17:22:32 +0000 (13:22 -0400)] 
add more CC_HINT format / printf specifiers

2 months agoDocument binary option for rlm_rest xlat section
Nick Porter [Wed, 1 Apr 2026 09:46:04 +0000 (10:46 +0100)] 
Document binary option for rlm_rest xlat section

2 months agoUpdate %rest() to selectively output octets in place of string
Nick Porter [Wed, 1 Apr 2026 09:20:29 +0000 (10:20 +0100)] 
Update %rest() to selectively output octets in place of string

Octets will be output if the binary option for xlat is set to true or
the content type of the reply is one known to be binary.

2 months agoAdd table marking specific http body types as returning binary data
Nick Porter [Wed, 1 Apr 2026 09:18:44 +0000 (10:18 +0100)] 
Add table marking specific http body types as returning binary data

2 months agoAdd "binary" option to rest section config
Nick Porter [Wed, 1 Apr 2026 09:17:50 +0000 (10:17 +0100)] 
Add "binary" option to rest section config

For use by the xlat section to mark up where binary response data is
expected

2 months agoAdd rest_response_body_type_get()
Nick Porter [Wed, 1 Apr 2026 09:14:33 +0000 (10:14 +0100)] 
Add rest_response_body_type_get()

To give access to the body type of an HTTP response.

2 months agoUse the evaluated content type when we accept all types
Nick Porter [Wed, 1 Apr 2026 09:10:49 +0000 (10:10 +0100)] 
Use the evaluated content type when we accept all types

2 months agoEnsure we have /bin/bash on FreeBSD
Nick Porter [Mon, 30 Mar 2026 19:09:47 +0000 (20:09 +0100)] 
Ensure we have /bin/bash on FreeBSD

Used in some tests

2 months agoCorrect creation of ca.cnf for CRL tests
Nick Porter [Fri, 27 Mar 2026 14:36:21 +0000 (14:36 +0000)] 
Correct creation of ca.cnf for CRL tests

2 months agoCorrect comment
Nick Porter [Fri, 27 Mar 2026 11:42:33 +0000 (11:42 +0000)] 
Correct comment

2 months agoinclude aerohive dictionary, and fix alias
Alan T. DeKok [Mon, 30 Mar 2026 16:55:25 +0000 (12:55 -0400)] 
include aerohive dictionary, and fix alias

2 months agoupdate errors and docs for ALIAS to make them clearer
Alan T. DeKok [Mon, 30 Mar 2026 16:55:07 +0000 (12:55 -0400)] 
update errors and docs for ALIAS to make them clearer

2 months agoActually free the ptr when ref count hits zero
Nick Porter [Mon, 30 Mar 2026 07:36:52 +0000 (08:36 +0100)] 
Actually free the ptr when ref count hits zero

To match the description of the function behaviour

2 months agodecrease reference count, so that memory is freed
Alan T. DeKok [Sun, 29 Mar 2026 19:22:07 +0000 (15:22 -0400)] 
decrease reference count, so that memory is freed

2 months agotypo
Alan T. DeKok [Sun, 29 Mar 2026 17:46:37 +0000 (13:46 -0400)] 
typo

2 months agosave / set / restore filename and line in _dict_from_file()
Alan T. DeKok [Sun, 29 Mar 2026 17:36:27 +0000 (13:36 -0400)] 
save / set / restore filename and line in _dict_from_file()

So that the callers don't have to, and this function is
idempotent.

and update the current frame with the filename and line number,
too.

2 months agoadd tests for core talloc functions
Alan T. DeKok [Sun, 29 Mar 2026 15:32:52 +0000 (11:32 -0400)] 
add tests for core talloc functions

2 months agoadd tests for our additional talloc functions
Alan T. DeKok [Sun, 29 Mar 2026 15:11:29 +0000 (11:11 -0400)] 
add tests for our additional talloc functions

2 months agoensure that the disarm ctx is initialized
Alan T. DeKok [Sun, 29 Mar 2026 15:07:00 +0000 (11:07 -0400)] 
ensure that the disarm ctx is initialized

2 months agoclean up on error, and remove dead assertion
Alan T. DeKok [Sun, 29 Mar 2026 13:48:54 +0000 (09:48 -0400)] 
clean up on error, and remove dead assertion

2 months agoremove unused code
Alan T. DeKok [Sun, 29 Mar 2026 13:44:37 +0000 (09:44 -0400)] 
remove unused code

2 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar
github-actions[bot] [Sun, 29 Mar 2026 05:15:56 +0000 (05:15 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar

2 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
github-actions[bot] [Sun, 29 Mar 2026 05:15:37 +0000 (05:15 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar

2 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Sun, 29 Mar 2026 05:15:34 +0000 (05:15 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar

2 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Sun, 29 Mar 2026 05:15:28 +0000 (05:15 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar

2 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
github-actions[bot] [Sun, 29 Mar 2026 05:15:26 +0000 (05:15 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar

2 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Sun, 29 Mar 2026 05:15:19 +0000 (05:15 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar

2 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/der.tar
github-actions[bot] [Sun, 29 Mar 2026 05:15:17 +0000 (05:15 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/der.tar

2 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/cbor.tar
github-actions[bot] [Sun, 29 Mar 2026 05:15:13 +0000 (05:15 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/cbor.tar

2 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar
github-actions[bot] [Sun, 29 Mar 2026 05:15:11 +0000 (05:15 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar

2 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar
github-actions[bot] [Sun, 29 Mar 2026 05:14:35 +0000 (05:14 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar

2 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Sun, 29 Mar 2026 05:09:29 +0000 (05:09 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar

2 months agofix various minor issues in module.c
Alan T. DeKok [Fri, 27 Mar 2026 01:36:13 +0000 (14:36 +1300)] 
fix various minor issues in module.c

2 months agoensure that talloc hierarchy is correct in client_read()
Alan T. DeKok [Fri, 27 Mar 2026 01:32:04 +0000 (14:32 +1300)] 
ensure that talloc hierarchy is correct in client_read()

which allows it to better clean up on error.

2 months agotypo in debug statement
Alan T. DeKok [Thu, 26 Mar 2026 23:43:22 +0000 (12:43 +1300)] 
typo in debug statement

2 months agoclean up self_pipe FDs on error
Alan T. DeKok [Thu, 26 Mar 2026 23:38:35 +0000 (12:38 +1300)] 
clean up self_pipe FDs on error

2 months agomore complaints when '&' is used
Alan T. DeKok [Thu, 26 Mar 2026 23:33:44 +0000 (12:33 +1300)] 
more complaints when '&' is used

2 months agoremove more '&'
Alan T. DeKok [Thu, 26 Mar 2026 23:31:48 +0000 (12:31 +1300)] 
remove more '&'

2 months agodocs-v4: Integrity check of `finally` - added more info about internal/virtual server...
nolade [Thu, 26 Mar 2026 20:45:49 +0000 (16:45 -0400)] 
docs-v4: Integrity check of `finally` - added more info about internal/virtual server usage and added note re: hardcoded 5 sec min_time

2 months agoallow calculation of " "*4
Alan T. DeKok [Thu, 26 Mar 2026 21:14:08 +0000 (10:14 +1300)] 
allow calculation of " "*4

which repeats a string / octets.  For sanity, we have disallowed
large values.  Where "large" is 4K.  There are very, very, few
reasons to have large strings.

2 months agodocs-v4: added `notset` rcode to table
nolade [Thu, 26 Mar 2026 19:29:00 +0000 (15:29 -0400)] 
docs-v4: added `notset` rcode to table

2 months agotweaks and word smithing
Alan T. DeKok [Thu, 26 Mar 2026 20:27:57 +0000 (09:27 +1300)] 
tweaks and word smithing

2 months agodocs-v4: added NOTES to try / catch about `catch` runs on all rcodes.
nolade [Thu, 26 Mar 2026 16:15:26 +0000 (12:15 -0400)] 
docs-v4: added NOTES to try / catch about `catch` runs on all rcodes.

2 months agodocs-v4: Intergrity check on Limit - added example with `catch` and fixed typo/syntax
nolade [Thu, 26 Mar 2026 18:41:05 +0000 (14:41 -0400)] 
docs-v4: Intergrity check on Limit - added example with `catch` and fixed typo/syntax

2 months agodocs-v4: Timeout Integrity check - fixed syntax/type, added note for `timeout` fails...
nolade [Thu, 26 Mar 2026 18:57:21 +0000 (14:57 -0400)] 
docs-v4: Timeout Integrity check - fixed syntax/type, added note for `timeout` fails when no value generated `!box`

2 months agotweaks
Alan T. DeKok [Thu, 26 Mar 2026 20:21:06 +0000 (09:21 +1300)] 
tweaks

2 months agodocs-v4: Detach integrity check - corrected syntax on examples to include `::`, added...
nolade [Thu, 26 Mar 2026 15:02:54 +0000 (11:02 -0400)] 
docs-v4: Detach integrity check - corrected syntax on examples to include `::`, added note re: detach not the last statement used in a `subrequest`

2 months agochecks for corner cases when doing find / parse / etc.
Alan T. DeKok [Thu, 26 Mar 2026 20:13:35 +0000 (09:13 +1300)] 
checks for corner cases when doing find / parse / etc.

2 months agodon't allow ".foo" as pair / section names
Alan T. DeKok [Thu, 26 Mar 2026 19:59:20 +0000 (08:59 +1300)] 
don't allow ".foo" as pair / section names

otherwise it breaks all sorts of things

2 months agodouble-check states after processing deferred signals
Alan T. DeKok [Thu, 26 Mar 2026 02:49:48 +0000 (15:49 +1300)] 
double-check states after processing deferred signals

2 months agobe more aggressive about freeing memory in cursors
Alan T. DeKok [Thu, 26 Mar 2026 02:31:22 +0000 (15:31 +1300)] 
be more aggressive about freeing memory in cursors

2 months agoAdd test of TACACS+ encode using multiple Vendor arguments
Nick Porter [Thu, 26 Mar 2026 19:59:39 +0000 (19:59 +0000)] 
Add test of TACACS+ encode using multiple Vendor arguments

As a regression test for previous behaviour where the argument count was
incorrect for this case.

2 months agoRemove spurious debug
Nick Porter [Thu, 26 Mar 2026 19:21:59 +0000 (19:21 +0000)] 
Remove spurious debug

2 months agoCheck for Vendor attributes before RFC 8097 attributes
Nick Porter [Thu, 26 Mar 2026 19:17:21 +0000 (19:17 +0000)] 
Check for Vendor attributes before RFC 8097 attributes

Vendor attributes have the root as their parent in the TACACS+
dictionary, so were caught by the test for RFC 8907 attributes and
therefore returning the wrong count.

2 months agoCorrect Juniper TACACS+ dictionary
Nick Porter [Thu, 26 Mar 2026 16:17:44 +0000 (16:17 +0000)] 
Correct Juniper TACACS+ dictionary

2 months agoCorrect iterator use
Nick Porter [Thu, 26 Mar 2026 13:42:44 +0000 (13:42 +0000)] 
Correct iterator use

2 months agofix various bugs in tmpl_eval.c
Alan T. DeKok [Wed, 25 Mar 2026 23:01:47 +0000 (12:01 +1300)] 
fix various bugs in tmpl_eval.c

2 months agofix various bugs in tmpl_tokenize.c
Alan T. DeKok [Wed, 25 Mar 2026 23:18:00 +0000 (12:18 +1300)] 
fix various bugs in tmpl_tokenize.c

2 months agouse consistent headings
Alan T. DeKok [Wed, 25 Mar 2026 22:20:17 +0000 (11:20 +1300)] 
use consistent headings

2 months agodocs-v4: Updated doc to reflect child behviour when exiting from parallel. Fixed...
nolade [Wed, 25 Mar 2026 15:05:23 +0000 (11:05 -0400)] 
docs-v4: Updated doc to reflect child behviour when exiting from parallel. Fixed typo

2 months agonotes on why we can't detach the subrequest
Alan T. DeKok [Wed, 25 Mar 2026 22:16:36 +0000 (11:16 +1300)] 
notes on why we can't detach the subrequest

2 months agocancel the subrequest, too
Alan T. DeKok [Wed, 25 Mar 2026 20:38:57 +0000 (09:38 +1300)] 
cancel the subrequest, too

2 months agoDon't free subrequest during eap auth cancellation
Nick Porter [Wed, 25 Mar 2026 18:37:41 +0000 (18:37 +0000)] 
Don't free subrequest during eap auth cancellation

It needs to persist so that it and any child subrequests talloc'd off it
can complete after the cancellation callbacks have been run.

2 months agoRemove vendor name from RtBrick attributes
Nick Porter [Wed, 25 Mar 2026 09:05:46 +0000 (09:05 +0000)] 
Remove vendor name from RtBrick attributes

2 months agotweaks and formatting
Alan T. DeKok [Tue, 24 Mar 2026 22:31:43 +0000 (11:31 +1300)] 
tweaks and formatting

2 months agodocs-v4: integrity doc/source check. Fixed discrepencies in the expressions.adoc...
nolade [Wed, 18 Mar 2026 21:05:39 +0000 (17:05 -0400)] 
docs-v4: integrity doc/source check. Fixed discrepencies in the expressions.adoc files

2 months agotweaks and formatting
Alan T. DeKok [Tue, 24 Mar 2026 22:27:22 +0000 (11:27 +1300)] 
tweaks and formatting

2 months agodocs-v4: doc integrity fixes to the foreach.adoc file
nolade [Tue, 24 Mar 2026 19:04:59 +0000 (15:04 -0400)] 
docs-v4: doc integrity fixes to the foreach.adoc file