]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
11 days agoadd error_cause to process_proxy_reply()
Alan T. DeKok [Tue, 21 Oct 2025 14:33:25 +0000 (16:33 +0200)] 
add error_cause to process_proxy_reply()

the realm routing code tracks what kind of error occured.  It then
passes the error_cause to process_proxy_reply().

If there's no proxy_reply, AND Post-Proxy-Type Fail sets

&config:Response-Packet-Type := Protocol-Error

Then we create a proxy reply of Protocol-Error, and add Error-Cause
with the correct value.

Note that this failure case is where the proxy can't send the
packet anywhere, and not where we received a Protocol-Error after
proxying a request.

11 days agorun Protocol-Error through Post-Proxy-Type if it's configured
Alan T. DeKok [Tue, 21 Oct 2025 14:12:34 +0000 (16:12 +0200)] 
run Protocol-Error through Post-Proxy-Type if it's configured

11 days agodefine VALUEs, too
Alan T. DeKok [Tue, 21 Oct 2025 08:08:39 +0000 (10:08 +0200)] 
define VALUEs, too

11 days agoadd protocol_error configuration to clients
Alan T. DeKok [Tue, 21 Oct 2025 07:09:00 +0000 (09:09 +0200)] 
add protocol_error configuration to clients

by default, we don't send Protocol-Error to clients.  We have to
double-check that clients don't go crazy when they receive a
Protocol-Error reply.

If we find out that all clients are fine with Protocol-Error,
then this configuration item should be removed.

11 days agoadd more values for Error-Cause
Alan T. DeKok [Tue, 21 Oct 2025 06:09:17 +0000 (08:09 +0200)] 
add more values for Error-Cause

12 days agoallow Protocol-Error responses to proxied packets
Alan T. DeKok [Mon, 20 Oct 2025 14:45:34 +0000 (16:45 +0200)] 
allow Protocol-Error responses to proxied packets

12 days agoallow Protocol-Error replies in radclient
Alan T. DeKok [Mon, 20 Oct 2025 14:45:06 +0000 (16:45 +0200)] 
allow Protocol-Error replies in radclient

12 days agoencode, decode, sign, and verify Protocol-Error packets.
Alan T. DeKok [Mon, 20 Oct 2025 14:31:11 +0000 (16:31 +0200)] 
encode, decode, sign, and verify Protocol-Error packets.

RFC 7930 says:

   Regardless of the original packet code, the RADIUS Server calculates
   the Message-Authenticator attribute as if the original packet were an
   Access-Request packet.  The identifier is copied from the original
   request.

Except that it says nothing about the Response Authenticator field.
Given that all response packets have their Response Authenticator
calculated the same way, we just do the same for Protocol-Error

12 days agoadd Protocol-Error to the VALUEs for Packet-Type
Alan T. DeKok [Mon, 20 Oct 2025 14:30:45 +0000 (16:30 +0200)] 
add Protocol-Error to the VALUEs for Packet-Type

2 weeks agoThe child request can be either running or proxied
Nick Porter [Wed, 15 Oct 2025 10:54:20 +0000 (11:54 +0100)] 
The child request can be either running or proxied

2 weeks agoAdd input to choose config in debug launcher
Nick Porter [Wed, 15 Oct 2025 10:13:14 +0000 (11:13 +0100)] 
Add input to choose config in debug launcher

2 weeks agoUse correct order of arguments to calloc
Nick Porter [Wed, 15 Oct 2025 07:18:39 +0000 (08:18 +0100)] 
Use correct order of arguments to calloc

2 weeks agoremove unused assigment
Alan T. DeKok [Tue, 14 Oct 2025 10:36:44 +0000 (12:36 +0200)] 
remove unused assigment

2 weeks agoclean up request_done() after double-checking its callers
Alan T. DeKok [Tue, 14 Oct 2025 10:28:19 +0000 (12:28 +0200)] 
clean up request_done() after double-checking its callers

who only call it with a small number of actions

2 weeks agodon't mash child_state if it's queued
Alan T. DeKok [Mon, 13 Oct 2025 15:45:39 +0000 (17:45 +0200)] 
don't mash child_state if it's queued

2 weeks agoone more assert
Alan T. DeKok [Mon, 13 Oct 2025 12:42:36 +0000 (14:42 +0200)] 
one more assert

2 weeks agoadd more assertions to enforce assumptions
Alan T. DeKok [Mon, 13 Oct 2025 12:25:55 +0000 (14:25 +0200)] 
add more assertions to enforce assumptions

3 weeks agonote recent changes
Alan T. DeKok [Wed, 8 Oct 2025 14:48:15 +0000 (10:48 -0400)] 
note recent changes

3 weeks agoadd eduroam NAI filter example
Alan T. DeKok [Wed, 8 Oct 2025 13:41:00 +0000 (09:41 -0400)] 
add eduroam NAI filter example

4 weeks agoremove unused variable
Alan T. DeKok [Wed, 1 Oct 2025 22:13:10 +0000 (18:13 -0400)] 
remove unused variable

4 weeks agoreturn RECONNECT on connection failure. Fixes #5651
Alan T. DeKok [Wed, 1 Oct 2025 22:05:50 +0000 (18:05 -0400)] 
return RECONNECT on connection failure.  Fixes #5651

4 weeks agojust cache the parent TALLOC_CTX in the request
Alan T. DeKok [Mon, 29 Sep 2025 12:11:11 +0000 (08:11 -0400)] 
just cache the parent TALLOC_CTX in the request

4 weeks agouse correct end definition
Alan T. DeKok [Mon, 29 Sep 2025 11:53:35 +0000 (07:53 -0400)] 
use correct end definition

5 weeks agoTest that DHCP options are correctly sorted before encoding
Nick Porter [Fri, 26 Sep 2025 13:40:31 +0000 (14:40 +0100)] 
Test that DHCP options are correctly sorted before encoding

So that there's a single option 82 encoded at the end of the list with
its sub options in order

5 weeks agoSort DHCP pairs before encoding in radattr
Nick Porter [Fri, 26 Sep 2025 13:37:58 +0000 (14:37 +0100)] 
Sort DHCP pairs before encoding in radattr

So the test behaviour matches that of the DHCP module

5 weeks agoFix sorting of DHCP options
Nick Porter [Fri, 26 Sep 2025 13:04:09 +0000 (14:04 +0100)] 
Fix sorting of DHCP options

So that TLVs are first sorted on the option and then the sub-option

6 weeks agoalways set tcp cleanup routine
Alan T. DeKok [Tue, 16 Sep 2025 20:22:05 +0000 (16:22 -0400)] 
always set tcp cleanup routine

6 weeks agodo a better job of enforcing lifetime && idle_timeout
Alan T. DeKok [Tue, 16 Sep 2025 20:21:41 +0000 (16:21 -0400)] 
do a better job of enforcing lifetime && idle_timeout

6 weeks agograb the propxy mutex when freeing a proxy listener
Alan T. DeKok [Tue, 16 Sep 2025 20:21:08 +0000 (16:21 -0400)] 
grab the propxy mutex when freeing a proxy listener

6 weeks agofree the listener if we can't insert it into the packet list
Alan T. DeKok [Tue, 16 Sep 2025 20:20:44 +0000 (16:20 -0400)] 
free the listener if we can't insert it into the packet list

6 weeks agoenable fips workaround even when building in normal mode
Alan T. DeKok [Tue, 16 Sep 2025 16:10:12 +0000 (12:10 -0400)] 
enable fips workaround even when building in normal mode

7 weeks agocheck in thaw, too
Alan T. DeKok [Thu, 11 Sep 2025 12:12:24 +0000 (08:12 -0400)] 
check in thaw, too

7 weeks agodon't freeze a socket twice
Alan T. DeKok [Thu, 11 Sep 2025 12:11:25 +0000 (08:11 -0400)] 
don't freeze a socket twice

7 weeks agodocument %n
Alan T. DeKok [Thu, 11 Sep 2025 10:25:45 +0000 (06:25 -0400)] 
document %n

7 weeks agodon't load legacy provider on --enable-fips-workaround. Fixes #5644
Alan T. DeKok [Tue, 9 Sep 2025 11:03:21 +0000 (07:03 -0400)] 
don't load legacy provider on --enable-fips-workaround.  Fixes #5644

8 weeks agoadd backlog parameter for the listen() API
Alan T. DeKok [Mon, 1 Sep 2025 22:52:43 +0000 (18:52 -0400)] 
add backlog parameter for the listen() API

2 months agonote recent changes
Alan T. DeKok [Mon, 1 Sep 2025 14:25:16 +0000 (10:25 -0400)] 
note recent changes

2 months agouse native data types for 20+ year-old versions of OSX
Alan T. DeKok [Mon, 1 Sep 2025 14:25:04 +0000 (10:25 -0400)] 
use native data types for 20+ year-old versions of OSX

2 months agoreset "now". Fixes #5642
Alan T. DeKok [Mon, 1 Sep 2025 13:58:23 +0000 (09:58 -0400)] 
reset "now".  Fixes #5642

because if you change the OS date to 25 years in the future,
then bad things happen.

2 months agorun dir is moved to /run (#5637)
Gerald Vogt [Sun, 24 Aug 2025 12:27:52 +0000 (14:27 +0200)] 
run dir is moved to /run (#5637)

2 months agoUse of MemoryLimit is deprecated (#5639)
Gerald Vogt [Sun, 24 Aug 2025 12:27:25 +0000 (14:27 +0200)] 
Use of MemoryLimit is deprecated (#5639)

2 months agoCorrectly report when built with PCRE2
Nick Porter [Fri, 22 Aug 2025 18:59:37 +0000 (19:59 +0100)] 
Correctly report when built with PCRE2

2 months agoSet selinux boolean to allow PCRE2 JIT
Nick Porter [Fri, 22 Aug 2025 17:29:33 +0000 (18:29 +0100)] 
Set selinux boolean to allow PCRE2 JIT

2 months agoTypo
Nick Porter [Fri, 22 Aug 2025 11:21:13 +0000 (12:21 +0100)] 
Typo

2 months agorun-time disable JIT if PCRE can't allocate executable memory.
Alan T. DeKok [Fri, 22 Aug 2025 11:13:26 +0000 (07:13 -0400)] 
run-time disable JIT if PCRE can't allocate executable memory.

2 months agoPrioritise libpcre over libpcre2
Nick Porter [Fri, 22 Aug 2025 10:49:52 +0000 (11:49 +0100)] 
Prioritise libpcre over libpcre2

RHEL 9 has issues with PCRE2 JIT compilation, so prioritise PCRE until
those are resolved.

2 months agodocker release workflow on tags only again
Matthew Newton [Wed, 20 Aug 2025 19:00:08 +0000 (20:00 +0100)] 
docker release workflow on tags only again

github actions is weird on non-master branches

2 months agoBump for 3.2.9
Matthew Newton [Wed, 20 Aug 2025 18:57:24 +0000 (19:57 +0100)] 
Bump for 3.2.9

2 months agorelease 3.2.8 release_3_2_8
Matthew Newton [Wed, 20 Aug 2025 16:29:15 +0000 (17:29 +0100)] 
release 3.2.8

2 months agoadd actions job to build release multiarch docker images
Matthew Newton [Sun, 17 Aug 2025 21:14:15 +0000 (22:14 +0100)] 
add actions job to build release multiarch docker images

pushes to freeradius-test for the time being

2 months agodockerfiles: fix checkout for alpine
Matthew Newton [Mon, 18 Aug 2025 18:24:41 +0000 (19:24 +0100)] 
dockerfiles: fix checkout for alpine

refresh dockerfiles

2 months agochange "fips=no" to "-fips"
Alan T. DeKok [Mon, 11 Aug 2025 14:47:34 +0000 (10:47 -0400)] 
change "fips=no" to "-fips"

based on discussions with the OpenSSL developers in

https://github.com/FreeRADIUS/freeradius-server/issues/5631

and

https://docs.openssl.org/3.5/man7/property/#global-and-local

2 months agoAdd Debian 13 to docker and crossbuild tests
Nick Porter [Mon, 11 Aug 2025 09:36:30 +0000 (10:36 +0100)] 
Add Debian 13 to docker and crossbuild tests

2 months agoAdd Debian 13 to .deb builds
Nick Porter [Mon, 11 Aug 2025 09:25:11 +0000 (10:25 +0100)] 
Add Debian 13 to .deb builds

2 months agoAll .deb platforms have libpcre2 or libpcre3
Nick Porter [Mon, 11 Aug 2025 09:24:49 +0000 (10:24 +0100)] 
All .deb platforms have libpcre2 or libpcre3

2 months agoCreate correct pair
Nick Porter [Fri, 8 Aug 2025 16:52:34 +0000 (17:52 +0100)] 
Create correct pair

2 months agoAlign Ruckus-DPSK-Params attribute no with dictionary
Nick Porter [Fri, 8 Aug 2025 16:52:05 +0000 (17:52 +0100)] 
Align Ruckus-DPSK-Params attribute no with dictionary

2 months agoMake debug message read correctly
Nick Porter [Mon, 4 Aug 2025 12:03:51 +0000 (13:03 +0100)] 
Make debug message read correctly

3 months agoUse pcre2 in standard CI
Nick Porter [Mon, 28 Jul 2025 10:58:42 +0000 (11:58 +0100)] 
Use pcre2 in standard CI

3 months agoPrefer PCRE2 on .deb platforms
Nick Porter [Mon, 28 Jul 2025 10:09:03 +0000 (11:09 +0100)] 
Prefer PCRE2 on .deb platforms

3 months agoRHEL 10 has dropped pcre
Nick Porter [Mon, 28 Jul 2025 09:54:10 +0000 (10:54 +0100)] 
RHEL 10 has dropped pcre

3 months agoUse MariaDB client library on RHEL 10
Nick Porter [Tue, 17 Jun 2025 14:05:20 +0000 (15:05 +0100)] 
Use MariaDB client library on RHEL 10

3 months agoAdd Rocky 10 to CI tests
Nick Porter [Tue, 17 Jun 2025 13:31:57 +0000 (14:31 +0100)] 
Add Rocky 10 to CI tests

3 months agoAdd Rocky 10 to docker and crossbuild jobs
Nick Porter [Tue, 17 Jun 2025 13:30:10 +0000 (14:30 +0100)] 
Add Rocky 10 to docker and crossbuild jobs

3 months agoAdd support for pcre2 in place of pcre
Nick Porter [Mon, 28 Jul 2025 09:53:43 +0000 (10:53 +0100)] 
Add support for pcre2 in place of pcre

3 months agoAdd keyword tests to vscode launcher
Nick Porter [Fri, 25 Jul 2025 12:50:35 +0000 (13:50 +0100)] 
Add keyword tests to vscode launcher

3 months agonote recent changes
Alan T. DeKok [Fri, 25 Jul 2025 10:23:11 +0000 (12:23 +0200)] 
note recent changes

3 months agobe closer to the paper
Alan T. DeKok [Fri, 25 Jul 2025 08:11:29 +0000 (10:11 +0200)] 
be closer to the paper

3 months agoactually free the cache
Alan T. DeKok [Fri, 25 Jul 2025 07:37:54 +0000 (09:37 +0200)] 
actually free the cache

3 months agoRevert "Free expired cache entries"
Alan T. DeKok [Fri, 25 Jul 2025 07:36:04 +0000 (09:36 +0200)] 
Revert "Free expired cache entries"

This reverts commit 10f6be583c5538f2fd98643d490f62fc17e2f4dd.

3 months agoFree expired cache entries
Nick Porter [Thu, 24 Jul 2025 14:33:30 +0000 (15:33 +0100)] 
Free expired cache entries

3 months agoParent the cache entries off the cache
Nick Porter [Thu, 24 Jul 2025 14:32:45 +0000 (15:32 +0100)] 
Parent the cache entries off the cache

3 months agominor tweaks
Alan T. DeKok [Thu, 24 Jul 2025 13:00:18 +0000 (15:00 +0200)] 
minor tweaks

3 months agominor fixes
Alan T. DeKok [Thu, 24 Jul 2025 12:50:39 +0000 (14:50 +0200)] 
minor fixes

add "todo" for consistent-keyed-balance.  This should be addressed
before the next release.

For non-redundant types, if the chosen home server is alive, then
return that immediately without going through the loop.  Otherwise
fall back to load-balance.

This is a change from ealier versions, and should help with better
load balancing, instead of always picking the "next" home server.

Update the documentation to match, and document keyed-load-balance

3 months agomore "shut up compiler"
Alan T. DeKok [Wed, 23 Jul 2025 15:10:07 +0000 (17:10 +0200)] 
more "shut up compiler"

clang scan passes, but the normal compiler complains

3 months agofixes for variable initialization
Alan T. DeKok [Wed, 23 Jul 2025 14:48:32 +0000 (16:48 +0200)] 
fixes for variable initialization

3 months agohoist variables so that they're not over-written
Alan T. DeKok [Wed, 23 Jul 2025 14:36:48 +0000 (16:36 +0200)] 
hoist variables so that they're not over-written

3 months agorearrange and rewrite
Alan T. DeKok [Wed, 23 Jul 2025 14:24:38 +0000 (16:24 +0200)] 
rearrange and rewrite

it might not be entirely clearer, but it definitely has more
functionality.

3 months agoadd tests for DPSK
Alan T. DeKok [Wed, 23 Jul 2025 13:28:42 +0000 (15:28 +0200)] 
add tests for DPSK

3 months agoa better way to do K-way hashing
Alan T. DeKok [Tue, 22 Jul 2025 16:08:15 +0000 (18:08 +0200)] 
a better way to do K-way hashing

3 months agotypo
Alan T. DeKok [Tue, 22 Jul 2025 15:36:35 +0000 (17:36 +0200)] 
typo

3 months agoRevert "hoist "id" into the array"
Alan T. DeKok [Tue, 22 Jul 2025 15:25:17 +0000 (17:25 +0200)] 
Revert "hoist "id" into the array"

This reverts commit 9987442d0e9df1e773ce57f50213821d5d0c681e.

let's do it a better way

3 months agospecial error for EMSGSIZ
Alan T. DeKok [Tue, 22 Jul 2025 11:45:51 +0000 (13:45 +0200)] 
special error for EMSGSIZ

Azure and other things cause issues, so we make the error message
clearer.  Not use "too long", but "UDP fragmentation is broken"

3 months agohoist "id" into the array
Alan T. DeKok [Tue, 22 Jul 2025 11:40:02 +0000 (13:40 +0200)] 
hoist "id" into the array

so that we have better locality of reference for the O(N^2)
loop for consistent keyed balance.  For other situations, it
increases the memory usage slightly, but doesn't have a large
effect on other use-cases

3 months agoadd consistent-keyed-balance
Alan T. DeKok [Tue, 22 Jul 2025 10:53:10 +0000 (12:53 +0200)] 
add consistent-keyed-balance

which tries to pick a consistent server for the hash, rather than
picking one based on randomness. :(

3 months agotweak error message
Alan T. DeKok [Tue, 22 Jul 2025 10:04:36 +0000 (12:04 +0200)] 
tweak error message

3 months agomake the error messages clearer
Alan T. DeKok [Sun, 20 Jul 2025 13:57:42 +0000 (15:57 +0200)] 
make the error messages clearer

3 months agoallow 0.5 for reject delay
Alan T. DeKok [Wed, 16 Jul 2025 19:08:09 +0000 (15:08 -0400)] 
allow 0.5 for reject delay

3 months agoAdd timestamp option to log config
Nick Porter [Tue, 15 Jul 2025 16:03:47 +0000 (17:03 +0100)] 
Add timestamp option to log config

So that timestamps can be added to debug logs at level 1 and 2 if
needed.

3 months agoDebian 10 repos have been removed
Nick Porter [Mon, 14 Jul 2025 16:15:02 +0000 (17:15 +0100)] 
Debian 10 repos have been removed

3 months agoAvoid spurious User-Name errors on EAP-TLS
Nick Porter [Mon, 14 Jul 2025 15:50:02 +0000 (16:50 +0100)] 
Avoid spurious User-Name errors on EAP-TLS

There is no inner / outer User-Name - so when calling the virtual server
to validate certificates, there is nothing to check / warn about.

3 months agoupdate docs and debug message for wildcard clients
Alan T. DeKok [Mon, 7 Jul 2025 15:20:37 +0000 (11:20 -0400)] 
update docs and debug message for wildcard clients

3 months agodocs-v3: Add Tutorials section and update xrefs.
nolade [Thu, 3 Jul 2025 20:12:58 +0000 (16:12 -0400)] 
docs-v3: Add Tutorials section and update xrefs.

3 months agodocs-v3: Added Concepts section, copy/edit, formatted, & other small tweaks
nolade [Fri, 27 Jun 2025 18:53:32 +0000 (14:53 -0400)] 
docs-v3: Added Concepts section, copy/edit, formatted, & other small tweaks

3 months agodocs-v3: Fix docsite build errors, update nav panel, and modify xrefs. Remove non...
nolade [Wed, 18 Jun 2025 18:30:58 +0000 (14:30 -0400)] 
docs-v3: Fix docsite build errors, update nav panel, and modify xrefs. Remove non-existent modules in v3.2.x - raddb and tutorials

3 months agodocs: remove non-existent modules in v3.2.x - raddb and tutorials
nolade [Wed, 18 Jun 2025 18:30:58 +0000 (14:30 -0400)] 
docs: remove non-existent modules in v3.2.x - raddb and tutorials

3 months agopoint to new corporate page
Alan T. DeKok [Fri, 4 Jul 2025 18:37:27 +0000 (14:37 -0400)] 
point to new corporate page

3 months agoupdate docs and links
Alan T. DeKok [Fri, 4 Jul 2025 18:37:13 +0000 (14:37 -0400)] 
update docs and links

3 months agopoint to new packages site
Alan T. DeKok [Fri, 4 Jul 2025 18:20:11 +0000 (14:20 -0400)] 
point to new packages site

3 months agoupdate docs
Alan T. DeKok [Wed, 25 Jun 2025 11:42:36 +0000 (07:42 -0400)] 
update docs