]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
6 months agounlock mutex before logging
Alan T. DeKok [Fri, 23 Jan 2026 21:15:33 +0000 (16:15 -0500)] 
unlock mutex before logging

6 months agoaddress locking issues. CID #1680642
Alan T. DeKok [Fri, 23 Jan 2026 21:00:57 +0000 (16:00 -0500)] 
address locking issues.  CID #1680642

6 months agoset cp->referenced if it's referenced
Alan T. DeKok [Fri, 23 Jan 2026 18:17:10 +0000 (13:17 -0500)] 
set cp->referenced if it's referenced

which lowers the number of warning / complaint messages

6 months agomove util API tests to src/lib/util/test
Alan T. DeKok [Fri, 23 Jan 2026 18:11:22 +0000 (13:11 -0500)] 
move util API tests to src/lib/util/test

they were starting to clutter up the directory.

These tests are not in src/tests, because they create binaries
which test the APIs.

6 months agodefine and use SBUFF_CHAR_CLASS
Alan T. DeKok [Fri, 23 Jan 2026 16:50:50 +0000 (11:50 -0500)] 
define and use SBUFF_CHAR_CLASS

for arrays of characters.  This is clearer than UINT8_MAX+1

6 months agoParse suppress_secrets for additional log destinations
Nick Porter [Fri, 23 Jan 2026 17:04:22 +0000 (17:04 +0000)] 
Parse suppress_secrets for additional log destinations

6 months agoadd policy on AI agents
Alan T. DeKok [Fri, 23 Jan 2026 15:55:02 +0000 (10:55 -0500)] 
add policy on AI agents

6 months agoTidy up on decode failure
Nick Porter [Fri, 23 Jan 2026 09:19:01 +0000 (09:19 +0000)] 
Tidy up on decode failure

6 months agoIf we have DER decoded certs pass them to verify certificate
Nick Porter [Fri, 23 Jan 2026 09:13:03 +0000 (09:13 +0000)] 
If we have DER decoded certs pass them to verify certificate

6 months agoEnsure DER decoded certificates are cleared up on error
Nick Porter [Fri, 23 Jan 2026 09:12:03 +0000 (09:12 +0000)] 
Ensure DER decoded certificates are cleared up on error

6 months agoInsert DER decoded certificates in client, issuer etc sequence
Nick Porter [Fri, 23 Jan 2026 09:11:21 +0000 (09:11 +0000)] 
Insert DER decoded certificates in client, issuer etc sequence

OpenSSL present deepest certificate first, so prepend each decoded one
to the session state list in order to get them in the desired sequence.

6 months agoAdd rlm_interval to RHEL packaging
Nick Porter [Fri, 23 Jan 2026 08:46:51 +0000 (08:46 +0000)] 
Add rlm_interval to RHEL packaging

6 months agoAttribute not found errors are consistent regardsless of having list specifier
Nick Porter [Fri, 23 Jan 2026 08:28:40 +0000 (08:28 +0000)] 
Attribute not found errors are consistent regardsless of having list specifier

now that the tokenizing parent is consistent in the two cases.

6 months agoWhen a list ref is found in a tmpl set the namespace to NULL
Nick Porter [Thu, 22 Jan 2026 18:27:08 +0000 (18:27 +0000)] 
When a list ref is found in a tmpl set the namespace to NULL

This means that parsing `<list>.<attr>` behaves the same as parsing
`<attr>`

Specifically this allows `<list>.<proto>.<attr>` to work.  Previously,
`<proto>.<attr>` would work for allowing access to attributes from other
namespaces in the `request` list, but `<list>.<proto>.<attr>` would not.

6 months agoClarifying comments around release_reset
Arran Cudbard-Bell [Thu, 22 Jan 2026 23:31:47 +0000 (15:31 -0800)] 
Clarifying comments around release_reset

6 months agoAdd rlm_interval to enforce rate limiting within policies
Arran Cudbard-Bell [Thu, 22 Jan 2026 21:34:27 +0000 (13:34 -0800)] 
Add rlm_interval to enforce rate limiting within policies

6 months agoFix typo that meant thread instance data wasn't passed into xlats.
Arran Cudbard-Bell [Thu, 22 Jan 2026 21:32:31 +0000 (13:32 -0800)] 
Fix typo that meant thread instance data wasn't passed into xlats.

6 months agoAdd notes for around uses of timer lists
Arran Cudbard-Bell [Thu, 22 Jan 2026 15:28:29 +0000 (07:28 -0800)] 
Add notes for around uses of timer lists

6 months agoFix some duplicate log IDs
Arran Cudbard-Bell [Thu, 22 Jan 2026 13:55:46 +0000 (05:55 -0800)] 
Fix some duplicate log IDs

6 months agoClaude is private for now
Arran Cudbard-Bell [Thu, 22 Jan 2026 13:54:51 +0000 (05:54 -0800)] 
Claude is private for now

6 months agoAdd pointer comprisons for voids
Arran Cudbard-Bell [Thu, 22 Jan 2026 13:54:27 +0000 (05:54 -0800)] 
Add pointer comprisons for voids

Add shallow copy function for voids too

This is wrong in 80%+ of cases, but useful where it's right :)

6 months agoFix typo in variable name for pre-file execution
Arran Cudbard-Bell [Thu, 22 Jan 2026 23:24:45 +0000 (15:24 -0800)] 
Fix typo in variable name for pre-file execution

6 months agodelay cleaning session-state until after finally { ... }
Alan T. DeKok [Thu, 22 Jan 2026 22:09:24 +0000 (17:09 -0500)] 
delay cleaning session-state until after finally { ... }

6 months agofr_state_discard() can just call request_data_get()
Alan T. DeKok [Thu, 22 Jan 2026 21:44:04 +0000 (16:44 -0500)] 
fr_state_discard() can just call request_data_get()

6 months agorename fr_state_() functions for consistency
Alan T. DeKok [Thu, 22 Jan 2026 21:28:10 +0000 (16:28 -0500)] 
rename fr_state_() functions for consistency

6 months agoremove old comment
Alan T. DeKok [Thu, 22 Jan 2026 21:27:54 +0000 (16:27 -0500)] 
remove old comment

6 months agodiscard state on Protocol-Error, too
Alan T. DeKok [Thu, 22 Jan 2026 20:44:18 +0000 (15:44 -0500)] 
discard state on Protocol-Error, too

i.e. if we're sending a Protocol-Error back to the client, then
we can't do anything else with the State attribute

6 months agomove state data to a config structure
Alan T. DeKok [Thu, 22 Jan 2026 12:47:44 +0000 (07:47 -0500)] 
move state data to a config structure

6 months agoremove extraneous %{} when printing xlat functions
Alan T. DeKok [Thu, 22 Jan 2026 12:47:25 +0000 (07:47 -0500)] 
remove extraneous %{} when printing xlat functions

6 months agodocument new behavior, we don't need to comment out config sections
Alan T. DeKok [Thu, 22 Jan 2026 12:15:16 +0000 (07:15 -0500)] 
document new behavior, we don't need to comment out config sections

instead we just remove `type = ...`, and the corresponding config
section is ignored.

6 months agoAlso copy allow_vulnerable_clients for dynamic clients
Nick Porter [Wed, 21 Jan 2026 19:27:33 +0000 (19:27 +0000)] 
Also copy allow_vulnerable_clients for dynamic clients

6 months agoVirtual server `catch timeout` is now testing `timeout` in `finally`
Nick Porter [Wed, 21 Jan 2026 14:49:40 +0000 (14:49 +0000)] 
Virtual server `catch timeout` is now testing `timeout` in `finally`

6 months agoDon't print full attriubte paths on each attribute in %pairs.debug()
Nick Porter [Wed, 21 Jan 2026 14:21:07 +0000 (14:21 +0000)] 
Don't print full attriubte paths on each attribute in %pairs.debug()

6 months agoAdd shortname to common der attributes
Nick Porter [Wed, 21 Jan 2026 10:14:24 +0000 (10:14 +0000)] 
Add shortname to common der attributes

6 months agoFailure to set shortname is the error
Nick Porter [Wed, 21 Jan 2026 10:43:04 +0000 (10:43 +0000)] 
Failure to set shortname is the error

6 months agoadd API for "shortname=foo" so we can print OpenSSL names for things
Alan T. DeKok [Tue, 20 Jan 2026 23:17:43 +0000 (18:17 -0500)] 
add API for "shortname=foo" so we can print OpenSSL names for things

6 months agoupdate "add alias" API to allow for non-public aliases
Alan T. DeKok [Tue, 20 Jan 2026 22:15:17 +0000 (17:15 -0500)] 
update "add alias" API to allow for non-public aliases

for the public dicts, we require that the aliases are within the
same parent node.  For aliases added internally, we can with some
care, allow for more generic aliases

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/cbor.tar
github-actions[bot] [Tue, 20 Jan 2026 04:46:49 +0000 (04:46 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/cbor.tar

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/der.tar
github-actions[bot] [Tue, 20 Jan 2026 04:46:19 +0000 (04:46 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/der.tar

6 months agoremove more uses of 'Tmp-*'
Alan T. DeKok [Mon, 19 Jan 2026 15:50:18 +0000 (10:50 -0500)] 
remove more uses of 'Tmp-*'

6 months agoadd missing '.' for consistency
Alan T. DeKok [Mon, 19 Jan 2026 15:49:39 +0000 (10:49 -0500)] 
add missing '.' for consistency

6 months agofix doc link
Alan T. DeKok [Mon, 19 Jan 2026 15:00:19 +0000 (10:00 -0500)] 
fix doc link

6 months agofree input arguments after running a function
Alan T. DeKok [Sun, 18 Jan 2026 20:52:50 +0000 (15:52 -0500)] 
free input arguments after running a function

6 months agoadd provisions for htrie iterators.
Alan T. DeKok [Sat, 17 Jan 2026 15:36:00 +0000 (10:36 -0500)] 
add provisions for htrie iterators.

not for patricia tries right now.  That can be added later.

6 months agothe input value-box is already allocated in the output context
Alan T. DeKok [Sat, 17 Jan 2026 15:30:07 +0000 (10:30 -0500)] 
the input value-box is already allocated in the output context

but if we're moving a child of a group, we do have to re-parent it.

6 months agothe node in the iterator is the next one, not the current node
Alan T. DeKok [Sat, 17 Jan 2026 15:15:32 +0000 (10:15 -0500)] 
the node in the iterator is the next one, not the current node

6 months agomake unit tests run in series again
Alan T. DeKok [Sat, 17 Jan 2026 13:10:57 +0000 (08:10 -0500)] 
make unit tests run in series again

which means that they actually run.  We'll need to track down why
the current rules sometimes fail to run.

This reverts commit b10d283d34c and commit 4908edb115

6 months agoreplace foreach_safe() with a safe foreach()
Alan T. DeKok [Sat, 17 Jan 2026 13:10:28 +0000 (08:10 -0500)] 
replace foreach_safe() with a safe foreach()

6 months agoadd function to copy xlat argument to output cursor
Alan T. DeKok [Sat, 17 Jan 2026 12:44:39 +0000 (07:44 -0500)] 
add function to copy xlat argument to output cursor

because the input arguments might (eventually) be a value-box
cursor.  And we want to copy the cursor output, not the cursor
itself.

6 months agoadd "kv" the table of datastores, too
Alan T. DeKok [Fri, 16 Jan 2026 22:21:35 +0000 (17:21 -0500)] 
add "kv" the table of datastores, too

6 months agotry to quiet UBSAN on OSX
Alan T. DeKok [Fri, 16 Jan 2026 21:29:44 +0000 (16:29 -0500)] 
try to quiet UBSAN on OSX

6 months agoassociate data with the mutable struct
Alan T. DeKok [Fri, 16 Jan 2026 21:18:48 +0000 (16:18 -0500)] 
associate data with the mutable struct

so that it's cleaned up automatically on exit

6 months agotweak RB iterators to use same API layout as other tables
Alan T. DeKok [Fri, 16 Jan 2026 20:49:33 +0000 (15:49 -0500)] 
tweak RB iterators to use same API layout as other tables

hash / etc. all use (thing, iter), whereas the RB code either
used (iter, thing), or just (iter).

Using the same API means that we can then add iterators to the
htrie code.

6 months agoadd sample configuration, and update docs to match
Alan T. DeKok [Fri, 16 Jan 2026 13:49:43 +0000 (08:49 -0500)] 
add sample configuration, and update docs to match

6 months agoadd script to automatically get a list of URLs for RFCs we support
Alan T. DeKok [Fri, 16 Jan 2026 19:26:55 +0000 (14:26 -0500)] 
add script to automatically get a list of URLs for RFCs we support

6 months agoadd in-memory KV module and tests
Alan T. DeKok [Fri, 16 Jan 2026 12:24:59 +0000 (07:24 -0500)] 
add in-memory KV module and tests

6 months agojust rely on fr_pair_print_value_quoted()
Alan T. DeKok [Fri, 16 Jan 2026 00:15:02 +0000 (19:15 -0500)] 
just rely on fr_pair_print_value_quoted()

6 months agoadd one more suppression for OSX
Alan T. DeKok [Thu, 15 Jan 2026 22:22:17 +0000 (17:22 -0500)] 
add one more suppression for OSX

6 months agoinstall stats file, too.
Alan T. DeKok [Thu, 15 Jan 2026 17:32:22 +0000 (12:32 -0500)] 
install stats file, too.

so that the RPM build doesn't complain

6 months agomore "squash nested names"
Alan T. DeKok [Thu, 15 Jan 2026 16:38:48 +0000 (11:38 -0500)] 
more "squash nested names"

add it to more code, and correct the output for all code paths.

6 months agodisable leak detection on CI runs for OSX
Alan T. DeKok [Thu, 15 Jan 2026 15:58:19 +0000 (10:58 -0500)] 
disable leak detection on CI runs for OSX

the underlying OSX libraries produce a ton of false positives,
and we don't have time right now to track them all down and add
suppression rules for each one.

6 months agodoc: update new_client tutorial for FreeRADIUS 4.0
tharkadharshana [Thu, 15 Jan 2026 14:13:00 +0000 (19:43 +0530)] 
doc: update new_client tutorial for FreeRADIUS 4.0

6 months agodoc: add combined test for all entries
tharkadharshana [Thu, 15 Jan 2026 03:05:13 +0000 (08:35 +0530)] 
doc: add combined test for all entries

6 months agodoc: add combined test for entries 1 and 2
tharkadharshana [Thu, 15 Jan 2026 03:04:18 +0000 (08:34 +0530)] 
doc: add combined test for entries 1 and 2

6 months agodoc: add exercise 3 default framed user
tharkadharshana [Thu, 15 Jan 2026 03:03:34 +0000 (08:33 +0530)] 
doc: add exercise 3 default framed user

6 months agodoc: add exercise 2 PPP configuration
tharkadharshana [Thu, 15 Jan 2026 03:02:45 +0000 (08:32 +0530)] 
doc: add exercise 2 PPP configuration

6 months agodoc: add exercise 1 basic configuration
tharkadharshana [Thu, 15 Jan 2026 03:01:22 +0000 (08:31 +0530)] 
doc: add exercise 1 basic configuration

6 months agotweak and add headings, which makes it easier to understand
Alan T. DeKok [Thu, 15 Jan 2026 13:36:42 +0000 (08:36 -0500)] 
tweak and add headings, which makes it easier to understand

6 months agodoc: add CHAP verification details
tharkadharshana [Thu, 15 Jan 2026 03:28:16 +0000 (08:58 +0530)] 
doc: add CHAP verification details

6 months agodoc: add logging instructions and specific error message examples
tharkadharshana [Thu, 15 Jan 2026 03:26:09 +0000 (08:56 +0530)] 
doc: add logging instructions and specific error message examples

6 months agodoc: add detailed verification output and radclient test command
tharkadharshana [Thu, 15 Jan 2026 03:24:38 +0000 (08:54 +0530)] 
doc: add detailed verification output and radclient test command

6 months agodoc: add command to edit authorize file
tharkadharshana [Thu, 15 Jan 2026 03:22:39 +0000 (08:52 +0530)] 
doc: add command to edit authorize file

6 months agodoc: update file paths and formatting
tharkadharshana [Thu, 15 Jan 2026 03:18:46 +0000 (08:48 +0530)] 
doc: update file paths and formatting

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar
github-actions[bot] [Thu, 15 Jan 2026 04:34:49 +0000 (04:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Thu, 15 Jan 2026 04:34:23 +0000 (04:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Thu, 15 Jan 2026 04:33:41 +0000 (04:33 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar
github-actions[bot] [Thu, 15 Jan 2026 04:32:59 +0000 (04:32 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
github-actions[bot] [Thu, 15 Jan 2026 04:32:07 +0000 (04:32 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar

6 months agosquash the nested names down when debugging
Alan T. DeKok [Wed, 14 Jan 2026 16:33:30 +0000 (11:33 -0500)] 
squash the nested names down when debugging

6 months agotweak rules and test harness to do nothing if there's nothing to do
Alan T. DeKok [Wed, 14 Jan 2026 18:41:28 +0000 (13:41 -0500)] 
tweak rules and test harness to do nothing if there's nothing to do

6 months agomake debug functions private
Alan T. DeKok [Wed, 14 Jan 2026 16:07:34 +0000 (11:07 -0500)] 
make debug functions private

no one else uses them, and they don't need to be exported.

6 months agofix typo in attribute name
Alan T. DeKok [Wed, 14 Jan 2026 11:39:35 +0000 (06:39 -0500)] 
fix typo in attribute name

6 months agoadd doxygen and more utility functions
Alan T. DeKok [Wed, 14 Jan 2026 01:39:53 +0000 (20:39 -0500)] 
add doxygen and more utility functions

6 months agoquiet compiler warning
Alan T. DeKok [Wed, 14 Jan 2026 01:30:34 +0000 (20:30 -0500)] 
quiet compiler warning

6 months agouse value-box function to copy memory. CID #1680331 5707/head
Alan T. DeKok [Tue, 13 Jan 2026 21:31:36 +0000 (16:31 -0500)] 
use value-box function to copy memory.  CID #1680331

6 months agoadd function to get integer, etc. from memory
Alan T. DeKok [Tue, 13 Jan 2026 21:26:32 +0000 (16:26 -0500)] 
add function to get integer, etc. from memory

which can then be used by the statistics functions

6 months agoadd fr_stats_radius_acc_serv_t
Alan T. DeKok [Tue, 13 Jan 2026 19:23:45 +0000 (14:23 -0500)] 
add fr_stats_radius_acc_serv_t

Names are bad because the MIB people don't like using "acct".

6 months agoadd dynamic auth server/client MIBs
Alan T. DeKok [Tue, 13 Jan 2026 19:21:39 +0000 (14:21 -0500)] 
add dynamic auth server/client MIBs

6 months agoupdate copyright
Alan T. DeKok [Tue, 13 Jan 2026 19:06:15 +0000 (14:06 -0500)] 
update copyright

6 months agoadd libfreeradius-radius-stats.la along with framework
Alan T. DeKok [Tue, 13 Jan 2026 12:55:21 +0000 (07:55 -0500)] 
add libfreeradius-radius-stats.la along with framework

6 months agoGNU Make rules to automatically run radict
Alan T. DeKok [Tue, 13 Jan 2026 02:14:14 +0000 (21:14 -0500)] 
GNU Make rules to automatically run radict

and build the various "dict to C" and "dict to header file"
outputs

6 months agoremove dups and sort
Alan T. DeKok [Tue, 13 Jan 2026 02:02:48 +0000 (21:02 -0500)] 
remove dups and sort

6 months agolinelog: Complete the fr_time_delta_t refactor and set the default timeout value...
Arran Cudbard-Bell [Tue, 13 Jan 2026 15:07:15 +0000 (07:07 -0800)] 
linelog: Complete the fr_time_delta_t refactor and set the default timeout value for TCP and UDP linelog requests to "1s" instead of "1000s".  Previous the unit was MS *sigh*.

6 months agotweaks and cleanups for the statistics structures
Alan T. DeKok [Mon, 12 Jan 2026 22:42:04 +0000 (17:42 -0500)] 
tweaks and cleanups for the statistics structures

6 months agoadd preliminary RADIUS MIB
Alan T. DeKok [Mon, 12 Jan 2026 19:51:38 +0000 (14:51 -0500)] 
add preliminary RADIUS MIB

./scripts/bin/radict -F struct -M -p radius mib-2.radiusAuthServ

which doesn't have the client table, but it's a start.  And the
resulting structure isn't too bad.

Todo:

* have callbacks for specific fields.  e.g. uptime.
  * Those callbacks should be defined globally, and passed a uctx.
  * the callback can then update the field before it's copied out
    to the caller

6 months agoprint out more stats, and start defining statistics structs and APIs
Alan T. DeKok [Mon, 12 Jan 2026 16:39:33 +0000 (11:39 -0500)] 
print out more stats, and start defining statistics structs and APIs

the plan is to:

* define the stats in the dictionaries
* have radict load up a statistics structure, and
  * print out variable definitions for dict autoload
  * print out dict autoload entries
  * print out a C structure which holds the statistics
  * print out a "linking" structure which ties the C structure
    to the autoloaded DAs
  * glue all of this into the build with GNU Make magic.

Right now, we can / have:
* define an "instance" of a statistics thing, which can be linked
  to other instances of the same struct type
* allow instance data to be merged, so that we can collate all of
  the similar statistics.
* functions to convert the C struct to pairs, and back
* functions to iterate over statistics

6 months agoadd vb_ipv4addr and vb_ipv6addr to mirror their vp_ equivalents
Alan T. DeKok [Mon, 12 Jan 2026 17:31:31 +0000 (12:31 -0500)] 
add vb_ipv4addr and vb_ipv6addr to mirror their vp_ equivalents

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
github-actions[bot] [Mon, 12 Jan 2026 04:39:13 +0000 (04:39 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Mon, 12 Jan 2026 04:38:37 +0000 (04:38 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar
github-actions[bot] [Mon, 12 Jan 2026 04:38:11 +0000 (04:38 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar