]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
7 months agoUse ROPTIONAL where request may not be set
Nick Porter [Fri, 10 Jan 2025 21:35:48 +0000 (21:35 +0000)] 
Use ROPTIONAL where request may not be set

When TLS connections are outbound there is not a dummy request
associated with the socket.

7 months agoCorrect signature for SQL driver mod_instantiate
Nick Porter [Fri, 10 Jan 2025 21:08:15 +0000 (21:08 +0000)] 
Correct signature for SQL driver mod_instantiate

7 months agotweaks
Alan T. DeKok [Wed, 8 Jan 2025 20:07:34 +0000 (15:07 -0500)] 
tweaks

7 months agonotes on debugging using OSX utilities.
Alan T. DeKok [Wed, 8 Jan 2025 16:18:31 +0000 (11:18 -0500)] 
notes on debugging using OSX utilities.

7 months agoactually print out the config
Alan T. DeKok [Wed, 8 Jan 2025 15:58:37 +0000 (10:58 -0500)] 
actually print out the config

7 months agohashes aren't rlm_rcode_t
Alan T. DeKok [Tue, 7 Jan 2025 22:03:22 +0000 (17:03 -0500)] 
hashes aren't rlm_rcode_t

7 months agoon double-checking, this isn't necessary
Alan T. DeKok [Tue, 7 Jan 2025 15:19:20 +0000 (10:19 -0500)] 
on double-checking, this isn't necessary

7 months agoadd CRL distribution points. Fixes #4992
Alan T. DeKok [Tue, 7 Jan 2025 14:44:28 +0000 (09:44 -0500)] 
add CRL distribution points.  Fixes #4992

Add TLS-Client-Cert-CRL-Distribution-Points and
TLS-Cert-CRL-Distribution-Points

7 months agomore stats for TCP sockets, too
Alan T. DeKok [Tue, 7 Jan 2025 13:19:33 +0000 (08:19 -0500)] 
more stats for TCP sockets, too

7 months agoDon't crash when the OSCP URL is invalid. Fixes #5433
Aren Sandersen [Tue, 7 Jan 2025 12:59:38 +0000 (07:59 -0500)] 
Don't crash when the OSCP URL is invalid.  Fixes #5433

7 months agoix eap tls preload certificate chains for realms Fixes #5299
Alan T. DeKok [Mon, 6 Jan 2025 19:28:46 +0000 (14:28 -0500)] 
ix eap tls preload certificate chains for realms Fixes #5299

7 months agominor tweaks to debug output
Alan T. DeKok [Mon, 6 Jan 2025 16:26:42 +0000 (11:26 -0500)] 
minor tweaks to debug output

7 months agodocument new behavior of the EAP in pre-proxy
Alan T. DeKok [Mon, 6 Jan 2025 15:13:00 +0000 (10:13 -0500)] 
document new behavior of the EAP in pre-proxy

7 months agonote recent changes
Alan T. DeKok [Mon, 6 Jan 2025 14:16:19 +0000 (09:16 -0500)] 
note recent changes

7 months agoCalculate length of EAP-Message only. Fixes #5486
Mark Donnelly [Mon, 6 Jan 2025 14:12:24 +0000 (09:12 -0500)] 
Calculate length of EAP-Message only.  Fixes #5486

The calculation of EAP message length needs to total the length
of all the EAP message attributes, rather than the length of the
first EAP message attribute and all subsequent attributes of all
types.  Also, enhance the error message to include the calculated
lengths.

7 months agobetter handle single-character expansions. Fixes #2216
Alan T. DeKok [Sun, 5 Jan 2025 14:53:11 +0000 (09:53 -0500)] 
better handle single-character expansions.  Fixes #2216

7 months agoupdate example flags. Fixes #5346
Alan T. DeKok [Sun, 5 Jan 2025 14:08:54 +0000 (09:08 -0500)] 
update example flags.  Fixes #5346

7 months agorename to --show-config. Fixes #5442
Alan T. DeKok [Sun, 5 Jan 2025 13:59:40 +0000 (08:59 -0500)] 
rename to --show-config.  Fixes #5442

This avoids conflict with clang's --config option.

We should probably instead have a special "--" option which
signifies "end of jlibtool options.

Arguably jlibtool should have

7 months agoit's now safe to do request_done() for QUEUED requests
Alan T. DeKok [Sun, 5 Jan 2025 03:06:43 +0000 (22:06 -0500)] 
it's now safe to do request_done() for QUEUED requests

7 months agobe more aggressive about cleaning up full queues
Alan T. DeKok [Sun, 5 Jan 2025 02:53:26 +0000 (21:53 -0500)] 
be more aggressive about cleaning up full queues

7 months agoAPI to see if the fifo is full
Alan T. DeKok [Sun, 5 Jan 2025 02:52:59 +0000 (21:52 -0500)] 
API to see if the fifo is full

7 months agoremember to unlock the mutex
Alan T. DeKok [Sat, 4 Jan 2025 21:40:00 +0000 (16:40 -0500)] 
remember to unlock the mutex

7 months agoremove dups and minor tweaks
Alan T. DeKok [Sat, 4 Jan 2025 21:15:34 +0000 (16:15 -0500)] 
remove dups and minor tweaks

7 months agonote recent changes
Alan T. DeKok [Sat, 4 Jan 2025 20:25:30 +0000 (15:25 -0500)] 
note recent changes

7 months agobetter handle "queue full" states
Alan T. DeKok [Sat, 4 Jan 2025 18:27:11 +0000 (13:27 -0500)] 
better handle "queue full" states

we already have a request state which indicates that the request
is owned by the queue.  We add a new request state which says that
the queue code should free the request on dequeue.

Double-checked the rest of the code, and added more cleanups
for requests which should handle the "queue full" case a bit
better.

7 months agoclear errors on CTRL-C
Alan T. DeKok [Sat, 4 Jan 2025 16:51:26 +0000 (11:51 -0500)] 
clear errors on CTRL-C

7 months agoadd support for timeout. Fixes #5417
Alan T. DeKok [Sat, 4 Jan 2025 16:41:31 +0000 (11:41 -0500)] 
add support for timeout.  Fixes #5417

7 months agoremove unnecessary code, and add comment explaining why
Alan T. DeKok [Sat, 4 Jan 2025 13:47:41 +0000 (08:47 -0500)] 
remove unnecessary code, and add comment explaining why

7 months agoadd stress test script as posted to github PR #5480
Alan T. DeKok [Sat, 4 Jan 2025 13:57:46 +0000 (08:57 -0500)] 
add stress test script as posted to github PR #5480

7 months agoremove extraneous assert
Alan T. DeKok [Fri, 3 Jan 2025 21:26:12 +0000 (16:26 -0500)] 
remove extraneous assert

7 months agonote the behavior of the various listen states
Alan T. DeKok [Fri, 3 Jan 2025 21:25:29 +0000 (16:25 -0500)] 
note the behavior of the various listen states

7 months agoHandle label only used on TLS builds
Nick Porter [Fri, 3 Jan 2025 20:00:01 +0000 (20:00 +0000)] 
Handle label only used on TLS builds

7 months agoAllow for PGRES_TUPLES_CHUNK when checking PostgreSQL status codes
Nick Porter [Fri, 3 Jan 2025 19:56:00 +0000 (19:56 +0000)] 
Allow for PGRES_TUPLES_CHUNK when checking PostgreSQL status codes

7 months agoHandle clang scan warnings
Nick Porter [Fri, 3 Jan 2025 19:43:03 +0000 (19:43 +0000)] 
Handle clang scan warnings

7 months agoHide TLS code on non-tls builds
Nick Porter [Fri, 3 Jan 2025 19:21:46 +0000 (19:21 +0000)] 
Hide TLS code on non-tls builds

7 months agoclean up TLS connection checking
Alan T. DeKok [Fri, 3 Jan 2025 18:13:29 +0000 (13:13 -0500)] 
clean up TLS connection checking

move the "read from socket" to the main event loop, which solves
a number of issues.

7 months agolet's add a reject delay
Alan T. DeKok [Fri, 3 Jan 2025 16:39:16 +0000 (11:39 -0500)] 
let's add a reject delay

7 months agolet's make it executable
Alan T. DeKok [Fri, 3 Jan 2025 16:36:05 +0000 (11:36 -0500)] 
let's make it executable

7 months agocatch more corner cases when using check_client_connections=yes
Alan T. DeKok [Fri, 3 Jan 2025 16:24:39 +0000 (11:24 -0500)] 
catch more corner cases when using check_client_connections=yes

7 months agoscripts and tests for rejected user
Alan T. DeKok [Fri, 3 Jan 2025 16:10:30 +0000 (11:10 -0500)] 
scripts and tests for rejected user

7 months agoadd sample configuration for checking client connections
Alan T. DeKok [Fri, 3 Jan 2025 15:12:29 +0000 (10:12 -0500)] 
add sample configuration for checking client connections

7 months agoautomatically choose password if no eap type is set
Alan T. DeKok [Fri, 3 Jan 2025 03:29:47 +0000 (22:29 -0500)] 
automatically choose password if no eap type is set

and update the documentation to match

7 months agouse arrays
Alan T. DeKok [Fri, 3 Jan 2025 03:07:29 +0000 (22:07 -0500)] 
use arrays

in preparation for simple password configuration

7 months agotypo
Alan T. DeKok [Fri, 3 Jan 2025 02:58:17 +0000 (21:58 -0500)] 
typo

7 months agoadd sample TEAP configuration files for eapol_test
Alan T. DeKok [Thu, 2 Jan 2025 21:35:32 +0000 (16:35 -0500)] 
add sample TEAP configuration files for eapol_test

7 months agocleanups, debug, and implement Basic-Password-Auth-Resp
Alan T. DeKok [Thu, 2 Jan 2025 16:44:46 +0000 (11:44 -0500)] 
cleanups, debug, and implement Basic-Password-Auth-Resp

7 months agoadd example, because it's hard to read the docs
Alan T. DeKok [Thu, 2 Jan 2025 13:12:21 +0000 (08:12 -0500)] 
add example, because it's hard to read the docs

7 months agomore debugging
Alan T. DeKok [Thu, 2 Jan 2025 03:05:56 +0000 (22:05 -0500)] 
more debugging

7 months agohoist allocation of fake request
Alan T. DeKok [Wed, 1 Jan 2025 16:14:31 +0000 (11:14 -0500)] 
hoist allocation of fake request

in preparation for supporting basic password

7 months agoset default to ""
Alan T. DeKok [Wed, 1 Jan 2025 14:53:06 +0000 (09:53 -0500)] 
set default to ""

7 months agocatch misconfiguration between required and received
Alan T. DeKok [Wed, 1 Jan 2025 14:30:14 +0000 (09:30 -0500)] 
catch misconfiguration between required and received

7 months agomake errors REDEBUG
Alan T. DeKok [Wed, 1 Jan 2025 14:28:25 +0000 (09:28 -0500)] 
make errors REDEBUG

7 months agoextract outer TLVs from peer, and use them in Crypto-Binding
Alan T. DeKok [Wed, 1 Jan 2025 14:02:03 +0000 (09:02 -0500)] 
extract outer TLVs from peer, and use them in Crypto-Binding

7 months agoAllow sending of Basic-Password-Auth-Req
Alan T. DeKok [Wed, 1 Jan 2025 01:55:56 +0000 (20:55 -0500)] 
Allow sending of Basic-Password-Auth-Req

then check for and validate Basic-Password-Auth-Resp

It doesn't yet handle password responses.  That requires some
more rearchitecture.

7 months agodon't default to MD5 for inner EAP. It's not supported.
Alan T. DeKok [Wed, 1 Jan 2025 01:55:02 +0000 (20:55 -0500)] 
don't default to MD5 for inner EAP.  It's not supported.

7 months agomore sanity checks
Alan T. DeKok [Wed, 1 Jan 2025 00:06:24 +0000 (19:06 -0500)] 
more sanity checks

7 months agorefuse to do anything other than TEAPv1
Alan T. DeKok [Tue, 31 Dec 2024 19:41:24 +0000 (14:41 -0500)] 
refuse to do anything other than TEAPv1

7 months agoHandle the case where we have Outer TLVs with TEAP
Alan T. DeKok [Tue, 31 Dec 2024 19:12:51 +0000 (14:12 -0500)] 
Handle the case where we have Outer TLVs with TEAP

7 months agosanity check outer TLV length even if 'L' bit is not set
Alan T. DeKok [Tue, 31 Dec 2024 19:00:01 +0000 (14:00 -0500)] 
sanity check outer TLV length even if 'L' bit is not set

7 months agouse newer options for OSX, ported from v4
Alan T. DeKok [Tue, 31 Dec 2024 18:35:04 +0000 (13:35 -0500)] 
use newer options for OSX, ported from v4

7 months agoremove debugging
Alan T. DeKok [Tue, 31 Dec 2024 18:32:13 +0000 (13:32 -0500)] 
remove debugging

7 months agoquiet compiler
Alan T. DeKok [Tue, 31 Dec 2024 17:03:35 +0000 (12:03 -0500)] 
quiet compiler

7 months agostart of work to allow TEAP 'O' bit without 'L' bit
Alan T. DeKok [Tue, 31 Dec 2024 16:36:09 +0000 (11:36 -0500)] 
start of work to allow TEAP 'O' bit without 'L' bit

7 months agouse macros instead of magic numbers
Alan T. DeKok [Tue, 31 Dec 2024 15:23:20 +0000 (10:23 -0500)] 
use macros instead of magic numbers

and add commented-out debugging messages

7 months agoupdate docs to say that "authenticate" means User-Name / User-Password
Alan T. DeKok [Tue, 31 Dec 2024 15:36:04 +0000 (10:36 -0500)] 
update docs to say that "authenticate" means User-Name / User-Password

7 months agodebug updates for clarity
Alan T. DeKok [Tue, 31 Dec 2024 14:23:36 +0000 (09:23 -0500)] 
debug updates for clarity

7 months agoUbuntu 24 runners already use OpenSSL 3.0
Nick Porter [Tue, 31 Dec 2024 09:49:48 +0000 (09:49 +0000)] 
Ubuntu 24 runners already use OpenSSL 3.0

7 months agoSwitch CI runners to Ubuntu 24
Nick Porter [Tue, 31 Dec 2024 09:29:31 +0000 (09:29 +0000)] 
Switch CI runners to Ubuntu 24

Self hosted runners are already using Ubuntu 24 based images - so make
GitHub hosted the same

7 months agobetter debugging and state machine fixes
Alan T. DeKok [Mon, 30 Dec 2024 23:16:19 +0000 (18:16 -0500)] 
better debugging and state machine fixes

only go to the provisioning stage after all authentications have
succeeded.

7 months agoclean up debug output
Alan T. DeKok [Mon, 30 Dec 2024 21:41:00 +0000 (16:41 -0500)] 
clean up debug output

most people don't care about hex blobs, so those are made DEBUG3

7 months agochoose Identity-Type sent by the peer
Alan T. DeKok [Mon, 30 Dec 2024 19:53:24 +0000 (14:53 -0500)] 
choose Identity-Type sent by the peer

and not what we're asking for next

7 months agoset phase2 properly
Alan T. DeKok [Mon, 30 Dec 2024 19:31:10 +0000 (14:31 -0500)] 
set phase2 properly

7 months agocleanups, and let's not send too many Identity-Type exchanges
Alan T. DeKok [Mon, 30 Dec 2024 19:24:11 +0000 (14:24 -0500)] 
cleanups, and let's not send too many Identity-Type exchanges

7 months agoadd provisions for handling Outer TLVs for peer, too
Alan T. DeKok [Mon, 30 Dec 2024 18:52:56 +0000 (13:52 -0500)] 
add provisions for handling Outer TLVs for peer, too

7 months agoset flag if we're an EAP inner tunnel
Alan T. DeKok [Mon, 30 Dec 2024 00:48:54 +0000 (19:48 -0500)] 
set flag if we're an EAP inner tunnel

and then use the flag to disallow session resumption for the
inner TLS-based method.  The caller should instead do resumption
for the outer TLS-based EAP method.

7 months agoallow only a limited subset of inner EAP types
Alan T. DeKok [Sun, 29 Dec 2024 21:40:14 +0000 (16:40 -0500)] 
allow only a limited subset of inner EAP types

some are just not suitable, as they do not derive MSK or EMSK

7 months agoadd more aliases. Fixes #5484
Alan T. DeKok [Sun, 29 Dec 2024 17:32:24 +0000 (12:32 -0500)] 
add more aliases.  Fixes #5484

7 months agominor cleanups
Alan T. DeKok [Sun, 29 Dec 2024 15:02:36 +0000 (10:02 -0500)] 
minor cleanups

7 months agonote recent changes
Alan T. DeKok [Mon, 23 Dec 2024 12:37:29 +0000 (07:37 -0500)] 
note recent changes

7 months agoallow stats for home server with src_ipaddr set. Fixes #5483
Alan T. DeKok [Mon, 23 Dec 2024 12:36:00 +0000 (07:36 -0500)] 
allow stats for home server with src_ipaddr set.  Fixes #5483

7 months agonote changes for TEAP
Alan T. DeKok [Sat, 21 Dec 2024 13:03:08 +0000 (08:03 -0500)] 
note changes for TEAP

7 months agofinalize TEAP auto state machine
Alan T. DeKok [Sat, 21 Dec 2024 12:20:25 +0000 (07:20 -0500)] 
finalize TEAP auto state machine

7 months agoadd configuration for machine + user
Alan T. DeKok [Sat, 21 Dec 2024 11:48:13 +0000 (06:48 -0500)] 
add configuration for machine + user

and disable PAC provisioning.  Tho this needs source code changes
to wpa_supplicant in order to work.

7 months agomore debugging, and set fake->config instead of request
Alan T. DeKok [Sat, 21 Dec 2024 11:47:43 +0000 (06:47 -0500)] 
more debugging, and set fake->config instead of request

7 months agomore debugging for showing how we get EAP-Type
Alan T. DeKok [Sat, 21 Dec 2024 11:47:08 +0000 (06:47 -0500)] 
more debugging for showing how we get EAP-Type

7 months agoformat
Alan T. DeKok [Sat, 21 Dec 2024 11:05:17 +0000 (06:05 -0500)] 
format

7 months agoprint names instead of numbers for friendliness
Alan T. DeKok [Sat, 21 Dec 2024 10:47:58 +0000 (05:47 -0500)] 
print names instead of numbers for friendliness

7 months agocorrect order of fields
Alan T. DeKok [Thu, 12 Dec 2024 13:45:29 +0000 (08:45 -0500)] 
correct order of fields

8 months agocomplain if we get TEAP inside of TEAP
Alan T. DeKok [Wed, 11 Dec 2024 14:35:00 +0000 (09:35 -0500)] 
complain if we get TEAP inside of TEAP

8 months agonote recent changes
Alan T. DeKok [Tue, 10 Dec 2024 15:36:59 +0000 (10:36 -0500)] 
note recent changes

8 months agoadd support for xlat of filename
Alan T. DeKok [Tue, 10 Dec 2024 15:30:12 +0000 (10:30 -0500)] 
add support for xlat of filename

8 months agoAdd handling for Subject Alternative Name (SAN) URIs Closes #5450
Alan T. DeKok [Tue, 10 Dec 2024 14:46:07 +0000 (09:46 -0500)] 
Add handling for Subject Alternative Name (SAN) URIs  Closes #5450

Manual merge with minor changes

8 months agoAdd options to control return behaviour in group and policy sections
Nick Porter [Mon, 9 Dec 2024 20:06:13 +0000 (20:06 +0000)] 
Add options to control return behaviour in group and policy sections

8 months agotypo: User is 1
Alan T. DeKok [Fri, 6 Dec 2024 13:45:03 +0000 (08:45 -0500)] 
typo: User is 1

8 months agoset t->received_version
Alan T. DeKok [Thu, 5 Dec 2024 15:45:27 +0000 (10:45 -0500)] 
set t->received_version

8 months agoCorrect handling of "untrusted" certs. Fixes #5466
Nick Porter [Thu, 5 Dec 2024 13:06:51 +0000 (13:06 +0000)] 
Correct handling of "untrusted" certs. Fixes #5466

OpenSSL calls all certificates presented by a client that aren't in the
local trust store "untrusted".

Therefore when verifying a client certificate, that will always be
untrusted - so we only have untrusted CAs in the chain if there is more
than one untrusted certificate.

8 months agoadded more debug output
Alan T. DeKok [Thu, 5 Dec 2024 13:13:04 +0000 (08:13 -0500)] 
added more debug output

8 months agofix typos
Alan T. DeKok [Thu, 5 Dec 2024 12:40:04 +0000 (07:40 -0500)] 
fix typos

8 months agoUse PyEval_RestoreThread to swap to main thread. Fixes #5111
Nick Porter [Thu, 5 Dec 2024 09:44:18 +0000 (09:44 +0000)] 
Use PyEval_RestoreThread to swap to main thread. Fixes #5111

Py_Finalize wants the GIL locked, and PyThreadState_Swap doesn't do
that.

8 months agoDon't run Python detach function on config check
Nick Porter [Thu, 5 Dec 2024 09:40:55 +0000 (09:40 +0000)] 
Don't run Python detach function on config check