]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
3 months agomove duplicate check to assert
Alan T. DeKok [Thu, 12 Feb 2026 01:37:29 +0000 (20:37 -0500)] 
move duplicate check to assert

pwlen could never be larger than 253, so there's no need to check
for it being larger than 256

3 months agofix typo for tag, and clarify messages
Alan T. DeKok [Thu, 12 Feb 2026 01:32:47 +0000 (20:32 -0500)] 
fix typo for tag, and clarify messages

3 months agohoist encode tag byte for Tunnel-Password
Alan T. DeKok [Thu, 12 Feb 2026 01:30:21 +0000 (20:30 -0500)] 
hoist encode tag byte for Tunnel-Password

so that we don't double-tag things

3 months agofix decode of NAS-Filter-Rule
Alan T. DeKok [Thu, 12 Feb 2026 00:58:39 +0000 (19:58 -0500)] 
fix decode of NAS-Filter-Rule

check the number of attributes, not the total data length

3 months agofeat: Added batch logging to the linelog module
ethan-thompson [Thu, 29 Jan 2026 20:33:11 +0000 (20:33 +0000)] 
feat: Added batch logging to the linelog module

Signed-off-by: ethan-thompson <ethan.thompson@networkradius.com>
3 months agofeat: Added max_idle config option to linelog file structure which can be useful...
ethan-thompson [Thu, 29 Jan 2026 20:27:35 +0000 (20:27 +0000)] 
feat: Added max_idle config option to linelog file structure which can be useful in testing

Signed-off-by: ethan-thompson <ethan.thompson@networkradius.com>
3 months agomore debug output to show which value failed
Alan T. DeKok [Wed, 11 Feb 2026 19:13:21 +0000 (14:13 -0500)] 
more debug output to show which value failed

3 months agoreplace smart quotes, emdash, etc. with ASCII
Alan T. DeKok [Wed, 11 Feb 2026 16:54:50 +0000 (11:54 -0500)] 
replace smart quotes, emdash, etc. with ASCII

3 months agorule to check for non-ASCII characters.
Alan T. DeKok [Wed, 11 Feb 2026 16:32:52 +0000 (11:32 -0500)] 
rule to check for non-ASCII characters.

while smart quotes are nice, ASCII is nicer. And emdashes are bad.

Add additional rule to clean up non-ASCII characters

3 months agodoc: add introduction and sections overview to virtual tutorial
98manu [Thu, 29 Jan 2026 09:52:37 +0000 (15:22 +0530)] 
doc: add introduction and sections overview to virtual tutorial

doc: add default behavior and best practice to virtual tutorial

doc: add create and enable virtual server sections to virtual tutorial

3 months agodocs: add introduction and goals for proxy tutorial
Tharka Karunanayake [Tue, 3 Feb 2026 09:16:46 +0000 (14:46 +0530)] 
docs: add introduction and goals for proxy tutorial

docs: add Step 1 for creating proxy module instance

docs: add Step 2 for modifying the virtual server

docs: add Step 3 for verifying config and restarting

docs: add Step 4 (Local Testing) to proxy tutorial

docs: add Proxied Testing results and debug output to proxy tutorial

docs: complete proxy tutorial with Questions and Copyright footer

3 months agoupdate now that we have a home_server_pool example.
Alan T. DeKok [Wed, 11 Feb 2026 13:46:25 +0000 (08:46 -0500)] 
update now that we have a home_server_pool example.

3 months agoadd example of converting v3 home_server_pool to v4
Alan T. DeKok [Wed, 11 Feb 2026 13:36:39 +0000 (08:36 -0500)] 
add example of converting v3 home_server_pool to v4

3 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Wed, 11 Feb 2026 05:11:52 +0000 (05:11 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar

3 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
github-actions[bot] [Wed, 11 Feb 2026 05:10:20 +0000 (05:10 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar

3 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar
github-actions[bot] [Wed, 11 Feb 2026 05:09:49 +0000 (05:09 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar

3 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Wed, 11 Feb 2026 05:03:41 +0000 (05:03 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar

3 months agoadd proxy.conf as a helpful hint
Alan T. DeKok [Wed, 11 Feb 2026 00:20:28 +0000 (19:20 -0500)] 
add proxy.conf as a helpful hint

which contains pointers to the real docs, and examples of how
the old proxy.conf has moved to the new configuration.

3 months agoallow virtual modules for load-balance and redundant-load-balance
Alan T. DeKok [Tue, 10 Feb 2026 23:25:47 +0000 (18:25 -0500)] 
allow virtual modules for load-balance and redundant-load-balance

so that they can have second names, and also a key.

3 months agoadd sample "proxy" virtual server
Alan T. DeKok [Tue, 10 Feb 2026 17:46:42 +0000 (12:46 -0500)] 
add sample "proxy" virtual server

3 months agofix links and script to produce the right things
Alan T. DeKok [Tue, 10 Feb 2026 17:44:39 +0000 (12:44 -0500)] 
fix links and script to produce the right things

3 months agoadd notes on call vs subrequest
Alan T. DeKok [Tue, 10 Feb 2026 17:30:49 +0000 (12:30 -0500)] 
add notes on call vs subrequest

3 months agoAnother instance of hard coded "Packet-Type"
Alan T. DeKok [Tue, 10 Feb 2026 16:28:46 +0000 (11:28 -0500)] 
Another instance of hard coded "Packet-Type"

it's still not all gone, as we should really update fr_dict_protocol_t
to have a pointer to the packet type attribute.  But it's at least
better.

3 months agominor tweaks and cleanups
Alan T. DeKok [Tue, 10 Feb 2026 14:48:20 +0000 (09:48 -0500)] 
minor tweaks and cleanups

4 months agoadd copyright
Alan T. DeKok [Sun, 8 Feb 2026 22:34:05 +0000 (17:34 -0500)] 
add copyright

4 months agoprint URL help for "Failed binding to socket"
Alan T. DeKok [Sun, 8 Feb 2026 16:50:06 +0000 (11:50 -0500)] 
print URL help for "Failed binding to socket"

and add preliminary page with a description

4 months agodo SUID up/down when binding to low ports
Alan T. DeKok [Sun, 8 Feb 2026 15:54:54 +0000 (10:54 -0500)] 
do SUID up/down when binding to low ports

4 months agoadd trampoline functions for SUID up/down
Alan T. DeKok [Sun, 8 Feb 2026 15:48:44 +0000 (10:48 -0500)] 
add trampoline functions for SUID up/down

some libraries should call suid up/down, but we don't want to
link them to libfreeradius-server.  So we instead createxi
trampoline functions.

4 months agolimit src port ranges to >1024
Alan T. DeKok [Sat, 7 Feb 2026 17:28:57 +0000 (12:28 -0500)] 
limit src port ranges to >1024

and do a few more cleanups.

4 months agoARP should do SUID up/down around binding
Alan T. DeKok [Sat, 7 Feb 2026 16:09:32 +0000 (11:09 -0500)] 
ARP should do SUID up/down around binding

4 months agouse cf_log_err() instead of ERROR()
Alan T. DeKok [Sat, 7 Feb 2026 16:06:26 +0000 (11:06 -0500)] 
use cf_log_err() instead of ERROR()

which prints out more descriptive messages

We should really look at moving to the BIOs.  There is a lot of
code duplication here. :(

4 months agoadd CONF_SECTION to listener
Alan T. DeKok [Sat, 7 Feb 2026 15:18:05 +0000 (10:18 -0500)] 
add CONF_SECTION to listener

so that the APP IO stuff can print out better error messages

4 months agofix and re-enable dictionary parsing tests
Alan T. DeKok [Fri, 6 Feb 2026 21:03:14 +0000 (16:03 -0500)] 
fix and re-enable dictionary parsing tests

4 months agofeature: Added mkdir and rmdir xlats and updated docs and tests
ethan-thompson [Fri, 6 Feb 2026 18:35:12 +0000 (18:35 +0000)] 
feature: Added mkdir and rmdir xlats and updated docs and tests

Signed-off-by: ethan-thompson <ethan.thompson@networkradius.com>
4 months agouse auto-generated tables
Alan T. DeKok [Fri, 6 Feb 2026 18:18:14 +0000 (13:18 -0500)] 
use auto-generated tables

4 months agoas generated
Alan T. DeKok [Fri, 6 Feb 2026 18:10:49 +0000 (13:10 -0500)] 
as generated

4 months agoprint out partial tables
Alan T. DeKok [Fri, 6 Feb 2026 18:08:56 +0000 (13:08 -0500)] 
print out partial tables

4 months agorearrangement and reorganization
Alan T. DeKok [Fri, 6 Feb 2026 17:10:08 +0000 (12:10 -0500)] 
rearrangement and reorganization

split different protocols into different pages

4 months agowhitespace and word smithing
Alan T. DeKok [Fri, 6 Feb 2026 16:43:25 +0000 (11:43 -0500)] 
whitespace and word smithing

4 months agodocs-v4: Update RFCs and organized into section. Updated all links to point to IETF...
nolade [Thu, 5 Feb 2026 23:20:39 +0000 (18:20 -0500)] 
docs-v4: Update RFCs and organized into section. Updated all links to point to IETF site.

4 months agodon't print out redundant messages on OSX
Alan T. DeKok [Thu, 5 Feb 2026 21:23:23 +0000 (16:23 -0500)] 
don't print out redundant messages on OSX

4 months agoTypo
Nick Porter [Fri, 6 Feb 2026 13:54:33 +0000 (13:54 +0000)] 
Typo

4 months agoOnly allocate the next message if there are leftover bytes
Nick Porter [Fri, 6 Feb 2026 12:31:30 +0000 (12:31 +0000)] 
Only allocate the next message if there are leftover bytes

4 months agoAvoid use after free in sql_trunk_query_cancel
Nick Porter [Wed, 4 Feb 2026 19:08:01 +0000 (19:08 +0000)] 
Avoid use after free in sql_trunk_query_cancel

Some SQL drivers will immediately cancel in response to
trunk_request_signal_cancel() resulting the freeing of treq, and due to
the re-parenting, query_ctx.

4 months agofix: Use the more optimized openat method to open a directory since we already can...
Ethan Thompson [Fri, 6 Feb 2026 01:30:37 +0000 (20:30 -0500)] 
fix: Use the more optimized openat method to open a directory since we already can get the fd from a previous mkdir call. Also close the directory fd as we use them, since we no longer need them to be open (#5737)

Signed-off-by: ethan-thompson <ethan.thompson@networkradius.com>
4 months agoprint out the full socket information when decoding fails
Alan T. DeKok [Thu, 5 Feb 2026 18:36:05 +0000 (13:36 -0500)] 
print out the full socket information when decoding fails

4 months agoadd listener to tracking structure
Alan T. DeKok [Thu, 5 Feb 2026 18:28:42 +0000 (13:28 -0500)] 
add listener to tracking structure

which is easier than the alternatives of adding it to all of the
other APIs

4 months agomove duplicate struct to common definition
Alan T. DeKok [Thu, 5 Feb 2026 16:09:20 +0000 (11:09 -0500)] 
move duplicate struct to common definition

4 months agoadd WDEBUG / EDEBUG macros and use them in proto_radius
Alan T. DeKok [Thu, 5 Feb 2026 15:33:33 +0000 (10:33 -0500)] 
add WDEBUG / EDEBUG macros and use them in proto_radius

4 months agoadd more errors with URLs
Alan T. DeKok [Thu, 5 Feb 2026 13:13:48 +0000 (08:13 -0500)] 
add more errors with URLs

4 months agomore docs on networking issues
Alan T. DeKok [Thu, 5 Feb 2026 02:13:08 +0000 (21:13 -0500)] 
more docs on networking issues

4 months agoremove unnecessary code
Alan T. DeKok [Wed, 4 Feb 2026 23:57:32 +0000 (18:57 -0500)] 
remove unnecessary code

4 months agoadd one more file, and print out URL to troubleshooting pages
Alan T. DeKok [Tue, 3 Feb 2026 20:42:01 +0000 (15:42 -0500)] 
add one more file, and print out URL to troubleshooting pages

4 months agotweaks to make it clearer
Alan T. DeKok [Tue, 3 Feb 2026 19:57:12 +0000 (14:57 -0500)] 
tweaks to make it clearer

4 months agoupdate docs for configurable failover and module behavior
Alan T. DeKok [Tue, 3 Feb 2026 19:46:14 +0000 (14:46 -0500)] 
update docs for configurable failover and module behavior

4 months agotypo
Alan T. DeKok [Tue, 3 Feb 2026 17:24:59 +0000 (12:24 -0500)] 
typo

4 months agoAutz-Type is not in v4
Alan T. DeKok [Tue, 3 Feb 2026 14:22:34 +0000 (09:22 -0500)] 
Autz-Type is not in v4

remove all references to it, and note this in the upgrade
documentation.

4 months agotweak and fix typos
Alan T. DeKok [Sun, 1 Feb 2026 21:52:27 +0000 (16:52 -0500)] 
tweak and fix typos

4 months agomove directory and links
Alan T. DeKok [Sun, 1 Feb 2026 21:47:41 +0000 (16:47 -0500)] 
move directory and links

4 months agoadd initial very rough content for common errors
Alan T. DeKok [Sun, 1 Feb 2026 19:01:43 +0000 (14:01 -0500)] 
add initial very rough content for common errors

4 months agodocs-v4: Troubleshooting section updated as top-level section. Nav panels modified...
nolade [Fri, 30 Jan 2026 19:29:31 +0000 (14:29 -0500)] 
docs-v4: Troubleshooting section updated as top-level section. Nav panels modified and all ts files located in the troubleshootin folder.
docs-v4: Troubleshooting section reorg'd and to be a top-level section. Nav panels/xrefs/module updated and all the relevant filesi(ts) moved into the troublshooting folder.

4 months agotweak error messages to be clearer
Alan T. DeKok [Fri, 30 Jan 2026 19:24:23 +0000 (14:24 -0500)] 
tweak error messages to be clearer

4 months agomore consistent error messages from RADIUS.
Alan T. DeKok [Fri, 30 Jan 2026 17:20:03 +0000 (12:20 -0500)] 
more consistent error messages from RADIUS.

4 months agoadd more decode errors, and add reason to decode_ctx
Alan T. DeKok [Fri, 30 Jan 2026 13:09:26 +0000 (08:09 -0500)] 
add more decode errors, and add reason to decode_ctx

4 months agouse FR_RADIUS prefix for DECODE_FAIL
Alan T. DeKok [Fri, 30 Jan 2026 12:58:49 +0000 (07:58 -0500)] 
use FR_RADIUS prefix for DECODE_FAIL

perl -p -i -e 's/DECODE_FAIL/FR_RADIUS_FAIL/g' $(git grep -l DECODE_FAIL src | egrep -v dns)

4 months agoexport longer messages and start cleaning up
Alan T. DeKok [Fri, 30 Jan 2026 12:55:35 +0000 (07:55 -0500)] 
export longer messages and start cleaning up

4 months agoadd extra packages to CI docker image
Matthew Newton [Thu, 29 Jan 2026 22:09:17 +0000 (22:09 +0000)] 
add extra packages to CI docker image

4 months agocomplain about _all_ unused processing sections, not just one
Alan T. DeKok [Thu, 29 Jan 2026 19:37:42 +0000 (14:37 -0500)] 
complain about _all_ unused processing sections, not just one

so that people don't have to run the server many times in order to
see all of the errors.

4 months agoremove references to pre/post proxy
Alan T. DeKok [Thu, 29 Jan 2026 19:56:50 +0000 (14:56 -0500)] 
remove references to pre/post proxy

4 months agomark sections as parsed when they're parsed, and complain on -C
Alan T. DeKok [Thu, 29 Jan 2026 18:58:20 +0000 (13:58 -0500)] 
mark sections as parsed when they're parsed, and complain on -C

if we have "send FOO" or "recv BAR" which is unused, then that's
an error when using -C.

Otherwise, a warning message is produced.

4 months agomove to using cf_item_mark_parsed() and cf_item_is_parsed()
Alan T. DeKok [Thu, 29 Jan 2026 18:34:08 +0000 (13:34 -0500)] 
move to using cf_item_mark_parsed() and cf_item_is_parsed()

4 months agomove parsed / referenced bools to CONF_ITEM
Alan T. DeKok [Thu, 29 Jan 2026 18:26:49 +0000 (13:26 -0500)] 
move parsed / referenced bools to CONF_ITEM

so that we can also use them for CONF_SECTION

4 months agoExfile allow immediate cleanup if idle_time is 0
Arran Cudbard-Bell [Thu, 29 Jan 2026 18:53:24 +0000 (10:53 -0800)] 
Exfile allow immediate cleanup if idle_time is 0

4 months agoGet radsnmp to a PONGable state (again)
Arran Cudbard-Bell [Thu, 29 Jan 2026 04:03:52 +0000 (20:03 -0800)] 
Get radsnmp to a PONGable state (again)

4 months agowe still need the suppression of parents when printing
Alan T. DeKok [Thu, 29 Jan 2026 13:47:36 +0000 (08:47 -0500)] 
we still need the suppression of parents when printing

so we can use %pV instead of %pP.

And %pV is better than fr_pair_print_value_quoted()

4 months agoUse %pV for values in %pairs.debug()
Nick Porter [Wed, 28 Jan 2026 09:01:04 +0000 (09:01 +0000)] 
Use %pV for values in %pairs.debug()

So that suppress_secrets is honoured

4 months agoUse %pP in log_request_pair
Nick Porter [Wed, 28 Jan 2026 10:19:26 +0000 (10:19 +0000)] 
Use %pP in log_request_pair

To honour suppress_secrets

4 months agodistinguish "load main config" from "load random config file"
Alan T. DeKok [Wed, 28 Jan 2026 21:43:29 +0000 (16:43 -0500)] 
distinguish "load main config" from "load random config file"

and ensure that we add a top-level "raddbdir", just in case some
configuration doesn't have the horrible mapping

raddbdir = foo
confdir = ${raddbdir}

Now that raddbdir is gone, we want to ensure that pre-4.0.0 configs
still work.

4 months agoreplace %debug_attr() with %pairs.debug()
Alan T. DeKok [Wed, 28 Jan 2026 20:14:13 +0000 (15:14 -0500)] 
replace %debug_attr() with %pairs.debug()

4 months agore-add %R, as "print with secrets suppressed"
Alan T. DeKok [Wed, 28 Jan 2026 18:51:09 +0000 (13:51 -0500)] 
re-add %R, as "print with secrets suppressed"

mainly for edit assignments and debug outputs.

Note that %pairs.print() will still print all of the data, even if
they're secret.  And any error messages will still print the data

4 months agojust use %pV.
Alan T. DeKok [Wed, 28 Jan 2026 18:35:05 +0000 (13:35 -0500)] 
just use %pV.

This was the only use of %pR, which prints un-escaped values.
except that the debug output also wrapped the output in quotes,
\"%pR\", which pretty much negated the utility of not escaping
the output

4 months agoupdate for recent changes
Alan T. DeKok [Wed, 28 Jan 2026 18:33:07 +0000 (13:33 -0500)] 
update for recent changes

4 months agofix macro redefine for OSX
Alan T. DeKok [Wed, 28 Jan 2026 18:29:24 +0000 (13:29 -0500)] 
fix macro redefine for OSX

4 months agomove $(raddbir) to $(confdir)
Alan T. DeKok [Wed, 28 Jan 2026 17:09:47 +0000 (12:09 -0500)] 
move $(raddbir) to $(confdir)

and ${raddb} in tests to ${raddbdir}

and ${maindir} in tests to ${raddb}, because "confdir" is set
automatically from '-d foo', and we still need to load the main
configuration files from the top-level "raddb" directory.

4 months agoupdate multiple module documentation for v4
Alan T. DeKok [Wed, 28 Jan 2026 14:46:03 +0000 (09:46 -0500)] 
update multiple module documentation for v4

4 months agodoc:add exec module explaination to the dynamic translation tutorial
98manu [Mon, 19 Jan 2026 06:24:24 +0000 (11:54 +0530)] 
doc:add exec module explaination to the dynamic translation tutorial

doc:Add explaination about `%exec()` function in dynamic translation

doc: fix the entry format in dynamic translation tutorial

doc:add mathematical operations sections in dynamic_translation tutorial

4 months agoRemove un-used files - all the functionality is in proto_cron*
Nick Porter [Wed, 28 Jan 2026 11:11:04 +0000 (11:11 +0000)] 
Remove un-used files - all the functionality is in proto_cron*

4 months agoAnother instance of hard coded "Packet-Type"
Nick Porter [Wed, 28 Jan 2026 11:23:01 +0000 (11:23 +0000)] 
Another instance of hard coded "Packet-Type"

4 months agoUse process module packet type attribute rather than looking a up fixed name
Nick Porter [Wed, 28 Jan 2026 10:21:29 +0000 (10:21 +0000)] 
Use process module packet type attribute rather than looking a up fixed name

4 months agoExport packet_type attribute in test process module
Nick Porter [Wed, 28 Jan 2026 10:20:23 +0000 (10:20 +0000)] 
Export packet_type attribute in test process module

4 months agoAdd virtual_server_packet_type_by_cs
Nick Porter [Wed, 28 Jan 2026 10:16:58 +0000 (10:16 +0000)] 
Add virtual_server_packet_type_by_cs

To access the packet_type exported by the virtual server's process
module

4 months agoCONF_SECTION can be const
Nick Porter [Tue, 27 Jan 2026 15:34:56 +0000 (15:34 +0000)] 
CONF_SECTION can be const

4 months agoFix spurious failure in cipher tests
Arran Cudbard-Bell [Wed, 28 Jan 2026 03:25:09 +0000 (19:25 -0800)] 
Fix spurious failure in cipher tests

4 months agoFix issue where dynamic clients that failed definition for some reason would be perma...
Arran Cudbard-Bell [Wed, 28 Jan 2026 02:32:06 +0000 (18:32 -0800)] 
Fix issue where dynamic clients that failed definition for some reason would be permanently locked out

4 months agoAdd "block" xlat
Arran Cudbard-Bell [Wed, 28 Jan 2026 01:53:50 +0000 (17:53 -0800)] 
Add "block" xlat

4 months agomove build-radpaths.h to an inline GNU make rule.
Alan T. DeKok [Tue, 27 Jan 2026 21:30:28 +0000 (16:30 -0500)] 
move build-radpaths.h to an inline GNU make rule.

Which is a fair bit simpler.

4 months agoremove unused functionality
Alan T. DeKok [Tue, 27 Jan 2026 21:12:22 +0000 (16:12 -0500)] 
remove unused functionality

if we want to change the raddbdir directory at install time,
just use 'R=/path/to/stuf make install'

4 months agomove checkrad to confdir
Alan T. DeKok [Tue, 27 Jan 2026 21:10:53 +0000 (16:10 -0500)] 
move checkrad to confdir

we should probably just delete checkrad, as it is not used in v4

4 months agomove rlm_unbound "man" page to module configuration file, and antora
Alan T. DeKok [Tue, 27 Jan 2026 21:07:37 +0000 (16:07 -0500)] 
move rlm_unbound "man" page to module configuration file, and antora

4 months agoremove unused attribute
Alan T. DeKok [Tue, 27 Jan 2026 16:20:06 +0000 (11:20 -0500)] 
remove unused attribute