]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
19 hours agonew URL as per hostap list v3.2.x
Alan T. DeKok [Sun, 26 Oct 2025 12:09:21 +0000 (08:09 -0400)] 
new URL as per hostap list

2 days agofor Access-Request, swap Protocol-Error to Access-Reject if necessary
Alan T. DeKok [Fri, 24 Oct 2025 18:23:19 +0000 (14:23 -0400)] 
for Access-Request, swap Protocol-Error to Access-Reject if necessary

RFC8559 already says that failed CoA can send a NAK with Error-Cause

2 days agoTIMER is a valid event, too
Alan T. DeKok [Fri, 24 Oct 2025 15:04:29 +0000 (17:04 +0200)] 
TIMER is a valid event, too

3 days agomove assert to run-time check with message
Alan T. DeKok [Thu, 23 Oct 2025 12:27:04 +0000 (14:27 +0200)] 
move assert to run-time check with message

3 days agojust use stdbool instead of defining true / false ourselves
Alan T. DeKok [Thu, 23 Oct 2025 09:08:23 +0000 (11:08 +0200)] 
just use stdbool instead of defining true / false ourselves

3 days agohoist return to inside of ifdef
Alan T. DeKok [Thu, 23 Oct 2025 09:04:08 +0000 (11:04 +0200)] 
hoist return to inside of ifdef

3 days agodisable more compiler warnings
Alan T. DeKok [Thu, 23 Oct 2025 07:55:55 +0000 (09:55 +0200)] 
disable more compiler warnings

4 days agohoist "decode packet" to before "run Post-Proxy"
Alan T. DeKok [Thu, 23 Oct 2025 07:04:04 +0000 (09:04 +0200)] 
hoist "decode packet" to before "run Post-Proxy"

because we would like to be able to re-proxy some Protocol-Error
packets

and this also removes the reply from the proxy hash before running
the Post-Proxy section.  Which means that the server is more likely
to have free IDs for proxying other packets

4 days agoadd missing quote. Fixes #5662
Alan T. DeKok [Thu, 23 Oct 2025 06:57:24 +0000 (08:57 +0200)] 
add missing quote.  Fixes #5662

4 days agodon't close the main listen() socket. Fixes #5661
Alan T. DeKok [Thu, 23 Oct 2025 06:55:49 +0000 (08:55 +0200)] 
don't close the main listen() socket.  Fixes #5661

4 days agoadd missing quotes
Alan T. DeKok [Wed, 22 Oct 2025 15:02:18 +0000 (17:02 +0200)] 
add missing quotes

4 days agoquiet analyzer
Alan T. DeKok [Wed, 22 Oct 2025 14:59:25 +0000 (16:59 +0200)] 
quiet analyzer

4 days agonoted on Protocol-Error
Alan T. DeKok [Wed, 22 Oct 2025 14:50:52 +0000 (16:50 +0200)] 
noted on Protocol-Error

4 days agodon't add Error-Cause if the policy adds it
Alan T. DeKok [Wed, 22 Oct 2025 14:47:09 +0000 (16:47 +0200)] 
don't add Error-Cause if the policy adds it

4 days agoreturn Protocol-Failure if the request can't be queued
Alan T. DeKok [Wed, 22 Oct 2025 14:14:18 +0000 (16:14 +0200)] 
return Protocol-Failure if the request can't be queued

4 days agoit helps to add the VP to the proxy_reply
Alan T. DeKok [Wed, 22 Oct 2025 13:21:43 +0000 (15:21 +0200)] 
it helps to add the VP to the proxy_reply

4 days agoadd VALUEs copied from dictionary.freeradius.internal
Alan T. DeKok [Wed, 22 Oct 2025 12:40:37 +0000 (14:40 +0200)] 
add VALUEs copied from dictionary.freeradius.internal

4 days agoadd commented-out example for Protocol-Error
Alan T. DeKok [Wed, 22 Oct 2025 12:27:29 +0000 (14:27 +0200)] 
add commented-out example for Protocol-Error

4 days agouse :=, not =
Alan T. DeKok [Wed, 22 Oct 2025 12:21:47 +0000 (14:21 +0200)] 
use :=, not =

4 days agoallow module to return NOTFOUND if the realm wasn't found
Alan T. DeKok [Wed, 22 Oct 2025 09:41:18 +0000 (11:41 +0200)] 
allow module to return NOTFOUND if the realm wasn't found

This behavior change is controlled by a new configuration flag

4 days agoensure that we don't decode a synthesized Protocol-Error packet
Alan T. DeKok [Wed, 22 Oct 2025 09:20:50 +0000 (11:20 +0200)] 
ensure that we don't decode a synthesized Protocol-Error packet

4 days agoif the client supports Protocol-Error, then send one to it.
Alan T. DeKok [Wed, 22 Oct 2025 09:17:34 +0000 (11:17 +0200)] 
if the client supports Protocol-Error, then send one to it.

4 days agocatch corner case / race condition, and turn it into protocol-error
Alan T. DeKok [Wed, 22 Oct 2025 09:14:19 +0000 (11:14 +0200)] 
catch corner case / race condition, and turn it into protocol-error

4 days agoadd notes on disabled warnings needed by modern compilers
Alan T. DeKok [Wed, 22 Oct 2025 08:51:00 +0000 (10:51 +0200)] 
add notes on disabled warnings needed by modern compilers

4 days agomake definition static
Alan T. DeKok [Wed, 22 Oct 2025 08:49:44 +0000 (10:49 +0200)] 
make definition static

4 days agostatic declarations of arrays create the array, not define it
Alan T. DeKok [Wed, 22 Oct 2025 08:14:16 +0000 (10:14 +0200)] 
static declarations of arrays create the array, not define it

4 days agotypo
Alan T. DeKok [Wed, 22 Oct 2025 08:12:42 +0000 (10:12 +0200)] 
typo

4 days agomove declaration for consistency with the rest of the code
Alan T. DeKok [Wed, 22 Oct 2025 08:08:57 +0000 (10:08 +0200)] 
move declaration for consistency with the rest of the code

4 days agoVALUE names can include a '.' C defines cannot.
Alan T. DeKok [Wed, 22 Oct 2025 08:07:13 +0000 (10:07 +0200)] 
VALUE names can include a '.'  C defines cannot.

4 days agoFreeRADIUS-Client-Protocol-Error can now be of type "bool"
Alan T. DeKok [Wed, 22 Oct 2025 07:53:00 +0000 (09:53 +0200)] 
FreeRADIUS-Client-Protocol-Error can now be of type "bool"

4 days agoadd boolean to values and encoder / decoder
Alan T. DeKok [Wed, 22 Oct 2025 07:40:19 +0000 (09:40 +0200)] 
add boolean to values and encoder / decoder

5 days agoplace-holder for receiving Protocol-Error from home server
Alan T. DeKok [Tue, 21 Oct 2025 14:47:15 +0000 (16:47 +0200)] 
place-holder for receiving Protocol-Error from home server

we need to re-proxy it in the request state machine, and we do not
(yet) try to proxy it from the request_running() routine.

5 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.

5 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

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

6 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.

6 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

6 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

6 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

6 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

6 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

11 days 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

11 days 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

12 days 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

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

12 days 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

13 days 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

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

13 days 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

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

2 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

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

3 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

3 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

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

4 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

4 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

4 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

5 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

5 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

5 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

5 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

5 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

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

6 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

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

6 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

7 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

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

7 weeks 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

7 weeks 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

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

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

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

2 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

2 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

2 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

2 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

2 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