]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
4 months agoAdd dynamic_timeout
Nick Porter [Mon, 30 Jun 2025 12:55:45 +0000 (13:55 +0100)] 
Add dynamic_timeout

To separate timeout of connected clients from dynamic clients.

Dynamic client definitions often want long(ish) lifetimes to avoid
repeated verifications of the same client.

4 months agomove unlang_ext_t fields to unlang_op_t
Alan T. DeKok [Mon, 30 Jun 2025 16:09:25 +0000 (12:09 -0400)] 
move unlang_ext_t fields to unlang_op_t

in preparation for adding function-style arguments to keywords

4 months agojust pass xlat_arg_parser_t*, not xlat_t*
Alan T. DeKok [Mon, 30 Jun 2025 10:11:07 +0000 (06:11 -0400)] 
just pass xlat_arg_parser_t*, not xlat_t*

the argument parser only needs the arguments, and not the rest
of the function definition

4 months agoprint out size of unlang structs, too
Alan T. DeKok [Sun, 29 Jun 2025 17:47:52 +0000 (13:47 -0400)] 
print out size of unlang structs, too

4 months agorearrange for syntax change
Alan T. DeKok [Sun, 29 Jun 2025 10:38:55 +0000 (06:38 -0400)] 
rearrange for syntax change

4 months agoEnsure we only fetch one URL
Nick Porter [Mon, 30 Jun 2025 11:17:39 +0000 (12:17 +0100)] 
Ensure we only fetch one URL

4 months agoAdd Cisco VSA 90
Nick Porter [Mon, 30 Jun 2025 09:58:02 +0000 (10:58 +0100)] 
Add Cisco VSA 90

Found in
https://www.cisco.com/c/en/us/td/docs/routers/asr9000/software/710x/bng/configuration/guide/b-bng-cg-asr9000-710x/radius-attributes.pdf

4 months agorearrange in preparation for function arguments
Alan T. DeKok [Sat, 28 Jun 2025 15:11:41 +0000 (11:11 -0400)] 
rearrange in preparation for function arguments

4 months agoFix test now emailAddress is in the dictionary
Nick Porter [Fri, 27 Jun 2025 18:59:23 +0000 (19:59 +0100)] 
Fix test now emailAddress is in the dictionary

4 months agoAdd dictionary entry for emailAddress in certificate subject
Nick Porter [Fri, 27 Jun 2025 16:34:04 +0000 (17:34 +0100)] 
Add dictionary entry for emailAddress in certificate subject

4 months agoMake fr_der_decode_pair_dbuff a public function
Nick Porter [Fri, 27 Jun 2025 16:33:29 +0000 (17:33 +0100)] 
Make fr_der_decode_pair_dbuff a public function

So the DER decoder can be used from other modules

4 months agoclean up parent/current/frame brace checking
Alan T. DeKok [Fri, 27 Jun 2025 18:01:44 +0000 (14:01 -0400)] 
clean up parent/current/frame brace checking

so that it works by looking at what it's supposed to be looking at,
and not sort of by accident

4 months agofix case where the section already exists
Alan T. DeKok [Fri, 27 Jun 2025 15:49:04 +0000 (11:49 -0400)] 
fix case where the section already exists

and check for dups

4 months agoadd SHUTDOWN error, too
Alan T. DeKok [Thu, 26 Jun 2025 20:42:14 +0000 (16:42 -0400)] 
add SHUTDOWN error, too

4 months agoon fatal error, shutdown the socket.
Alan T. DeKok [Thu, 26 Jun 2025 20:37:53 +0000 (16:37 -0400)] 
on fatal error, shutdown the socket.

don't silently change r/w to functions which don't do anything

4 months agoon shutdown, set r/w to return new SHUTDOWN error
Alan T. DeKok [Thu, 26 Jun 2025 20:37:29 +0000 (16:37 -0400)] 
on shutdown, set r/w to return new SHUTDOWN error

4 months agofix: Resolved issue where CSR's where not having the full subject field decoded since...
Ethan Thompson [Fri, 27 Jun 2025 15:30:12 +0000 (11:30 -0400)] 
fix: Resolved issue where CSR's where not having the full subject field decoded since the dictionary did not denote that it is a sequence of sets. (#5614)

Signed-off-by: ethan-thompson <ethan.thompson@networkradius.com>
4 months agomove UDP check so that it's always run
Alan T. DeKok [Thu, 26 Jun 2025 15:36:38 +0000 (11:36 -0400)] 
move UDP check so that it's always run

4 months agoadd @policy example with pre/post proxy
Alan T. DeKok [Thu, 26 Jun 2025 14:41:43 +0000 (10:41 -0400)] 
add @policy example with pre/post proxy

Hmm... the "conf2adoc" functionality doesn't put the configuration
in-line for @policy statements.  We'll have to edit that, and then
regenerate the examples

4 months agoautomatically set DH parameters for ephemeral keying
Alan T. DeKok [Thu, 26 Jun 2025 14:18:01 +0000 (10:18 -0400)] 
automatically set DH parameters for ephemeral keying

and update sample config / docs to match

4 months agoadd and document example of using @policy for ldap
Alan T. DeKok [Thu, 26 Jun 2025 12:02:15 +0000 (08:02 -0400)] 
add and document example of using @policy for ldap

4 months agoadd documentation on @policy, and TBD for other policies
Alan T. DeKok [Thu, 26 Jun 2025 11:56:01 +0000 (07:56 -0400)] 
add documentation on @policy, and TBD for other policies

4 months agoonly use require_message_authenticator for Access-* packets
Alan T. DeKok [Wed, 25 Jun 2025 22:30:53 +0000 (18:30 -0400)] 
only use require_message_authenticator for Access-* packets

4 months agocheck *received_message_authenticator
Alan T. DeKok [Wed, 25 Jun 2025 22:30:34 +0000 (18:30 -0400)] 
check *received_message_authenticator

4 months agoprint out more information about require_message_authenticator
Alan T. DeKok [Wed, 25 Jun 2025 22:29:05 +0000 (18:29 -0400)] 
print out more information about require_message_authenticator

4 months agoadd assert to catch corner case
Alan T. DeKok [Wed, 25 Jun 2025 22:16:15 +0000 (18:16 -0400)] 
add assert to catch corner case

4 months agoprint out error when we can't sign the packet
Alan T. DeKok [Wed, 25 Jun 2025 22:07:54 +0000 (18:07 -0400)] 
print out error when we can't sign the packet

4 months agotypo
Alan T. DeKok [Wed, 25 Jun 2025 20:22:35 +0000 (16:22 -0400)] 
typo

4 months agoallow @policy foo {...} in module configuration and add test
Alan T. DeKok [Wed, 25 Jun 2025 18:53:47 +0000 (14:53 -0400)] 
allow @policy foo {...} in module configuration and add test

TBH we allow it almost anywhere, but this test is just for
module override

4 months agodon't grab the error
Alan T. DeKok [Wed, 25 Jun 2025 15:14:17 +0000 (11:14 -0400)] 
don't grab the error

4 months agoadd bare "tmpl" key word and tests
Alan T. DeKok [Wed, 25 Jun 2025 15:11:15 +0000 (11:11 -0400)] 
add bare "tmpl" key word and tests

because we didn't have them before.

We also need to go through the condition / xlat tests, and remove
duplication

4 months agoclarify text
Alan T. DeKok [Wed, 25 Jun 2025 10:49:23 +0000 (06:49 -0400)] 
clarify text

4 months agotypo
Alan T. DeKok [Wed, 25 Jun 2025 10:44:41 +0000 (06:44 -0400)] 
typo

4 months agoSimplify includes
Nick Porter [Wed, 25 Jun 2025 17:50:36 +0000 (18:50 +0100)] 
Simplify includes

4 months agoMove SQLite busy timeout to be a driver option
Nick Porter [Wed, 25 Jun 2025 13:13:42 +0000 (14:13 +0100)] 
Move SQLite busy timeout to be a driver option

This is a specific kind of timeout - how long to wait for database locks
to be released.

Due to SQLite's very basic locking, it's easy for multiple update
requests to conflict.  This provides a more graceful way to handle the
locks.

4 months agoSet query_ctx->status to ensure clearup happens
Nick Porter [Wed, 25 Jun 2025 12:58:06 +0000 (13:58 +0100)] 
Set query_ctx->status to ensure clearup happens

4 months agoReport the error SQLite returned
Nick Porter [Wed, 25 Jun 2025 12:56:34 +0000 (13:56 +0100)] 
Report the error SQLite returned

4 months agoClear up prepared query if it fails
Nick Porter [Wed, 25 Jun 2025 11:31:06 +0000 (12:31 +0100)] 
Clear up prepared query if it fails

4 months agosqlite3_busy_timeout takes ms not s
Nick Porter [Wed, 25 Jun 2025 10:25:13 +0000 (11:25 +0100)] 
sqlite3_busy_timeout takes ms not s

4 months agoWrap perl_clone() call in a mutex
Nick Porter [Wed, 25 Jun 2025 09:07:23 +0000 (10:07 +0100)] 
Wrap perl_clone() call in a mutex

It appears to not be safe to have multiple threads clone the same
inst->perl at the same time.

4 months agoDeal with call env expansion failures correctly
Arran Cudbard-Bell [Wed, 25 Jun 2025 22:47:46 +0000 (18:47 -0400)] 
Deal with call env expansion failures correctly

4 months agoprintf_push is not the correct function to use in RADIUS network functions, and resul...
Arran Cudbard-Bell [Wed, 25 Jun 2025 21:52:53 +0000 (17:52 -0400)] 
printf_push is not the correct function to use in RADIUS network functions, and results in garbage errors

4 months agoFix arguments to log message in LDAP
Arran Cudbard-Bell [Wed, 25 Jun 2025 21:25:02 +0000 (17:25 -0400)] 
Fix arguments to log message in LDAP

4 months agodocs: Update Concepts section and rearrange directory structure.
nolade [Fri, 13 Jun 2025 22:47:08 +0000 (18:47 -0400)] 
docs: Update Concepts section and rearrange directory structure.
- New intro/landing page, xrefs to link with other sections in docs.
- Added components section to include server, nas, datastore info
- Added radius session/message/processing sections.docs:
- Rename Module >> Protocol>> LDAP section to Authentication with LDAP and added relevant subsections

4 months agodocs: Update Concept section as top-level section, intro/landing page, xrefs. Added...
nolade [Tue, 27 May 2025 19:02:25 +0000 (15:02 -0400)] 
docs: Update Concept section as top-level section, intro/landing page, xrefs. Added components section to include server, nas, datastore infoi and radius session/message/processing sections.docs: update concepts and radius components section

4 months agoUse OUTPUT_DIR in rlm_crl tests for certs and crls
Nick Porter [Mon, 23 Jun 2025 08:02:57 +0000 (09:02 +0100)] 
Use OUTPUT_DIR in rlm_crl tests for certs and crls

4 months agoAdd OUTPUT_DIR env var to module tests
Nick Porter [Mon, 23 Jun 2025 07:59:46 +0000 (08:59 +0100)] 
Add OUTPUT_DIR env var to module tests

So it can easily be referred to in FR policy

4 months agoUse %file.cat() to read test crls
Nick Porter [Sat, 21 Jun 2025 17:15:31 +0000 (18:15 +0100)] 
Use %file.cat() to read test crls

4 months agoEnsure fd is closed on all error paths
Nick Porter [Sat, 21 Jun 2025 17:13:45 +0000 (18:13 +0100)] 
Ensure fd is closed on all error paths

4 months agoMinor fixes for cat xlat
Arran Cudbard-Bell [Fri, 20 Jun 2025 21:36:12 +0000 (17:36 -0400)] 
Minor fixes for cat xlat

4 months agoAdd %file.cat() xlat
Nick Porter [Fri, 20 Jun 2025 17:23:47 +0000 (18:23 +0100)] 
Add %file.cat() xlat

4 months agoReturn noop if the certificate does not contain a CRL dist point
Nick Porter [Fri, 20 Jun 2025 15:43:08 +0000 (16:43 +0100)] 
Return noop if the certificate does not contain a CRL dist point

4 months agoAdd ftp:// support to rlm_crl
Nick Porter [Fri, 20 Jun 2025 14:00:08 +0000 (15:00 +0100)] 
Add ftp:// support to rlm_crl

4 months agoAdd rlm_ftp
Nick Porter [Fri, 20 Jun 2025 13:45:26 +0000 (14:45 +0100)] 
Add rlm_ftp

Only provides `%ftp.get()` at present

4 months agoAdd %ldap and %ldap.profile notes to sample module config
Nick Porter [Fri, 20 Jun 2025 13:15:11 +0000 (14:15 +0100)] 
Add %ldap and %ldap.profile notes to sample module config

4 months agoCorrect search for default profile
Nick Porter [Thu, 19 Jun 2025 19:23:33 +0000 (20:23 +0100)] 
Correct search for default profile

4 months agoTrack whether attribute changes have happended to return the correct rcode
Nick Porter [Thu, 19 Jun 2025 18:42:54 +0000 (19:42 +0100)] 
Track whether attribute changes have happended to return the correct rcode

Since there are lots of async LDAP calls which can occur during
mod_authorize, some of which can legitimately return "notfound", we need
to record whether any of the states which could have updated attributes
actually did, so that:

 - object not found -> notfound
 - object found, no attriubtes updated -> ok
 - attriubtes updated -> updated

4 months agoCorrect return here as well
Nick Porter [Thu, 19 Jun 2025 17:19:50 +0000 (18:19 +0100)] 
Correct return here as well

4 months agoReturn UNLANG_ACTION_PUSHED_CHILD if a new frame is pushed
Nick Porter [Thu, 19 Jun 2025 16:47:03 +0000 (17:47 +0100)] 
Return UNLANG_ACTION_PUSHED_CHILD if a new frame is pushed

4 months agoCorrect way to handle result_p for detached subrequests
Nick Porter [Thu, 19 Jun 2025 13:25:29 +0000 (14:25 +0100)] 
Correct way to handle result_p for detached subrequests

4 months agoTidy rpm Dockerfiles
Nick Porter [Thu, 19 Jun 2025 10:09:10 +0000 (11:09 +0100)] 
Tidy rpm Dockerfiles

Removing conditional components related to non-supported platforms

4 months agoNewer docker is fussy about case
Nick Porter [Thu, 19 Jun 2025 09:53:01 +0000 (10:53 +0100)] 
Newer docker is fussy about case

4 months agoAdd Rocky 10 to Crossbuild tests
Nick Porter [Thu, 19 Jun 2025 09:45:20 +0000 (10:45 +0100)] 
Add Rocky 10 to Crossbuild tests

4 months agoRemove unsupported platforms from Docker data
Nick Porter [Thu, 19 Jun 2025 09:33:58 +0000 (10:33 +0100)] 
Remove unsupported platforms from Docker data

4 months agoAdd Rocky 10 to Docker builds
Nick Porter [Thu, 19 Jun 2025 09:32:19 +0000 (10:32 +0100)] 
Add Rocky 10 to Docker builds

4 months agoAdd Rocky 10 to rpm CI tests
Nick Porter [Thu, 19 Jun 2025 09:25:12 +0000 (10:25 +0100)] 
Add Rocky 10 to rpm CI tests

4 months agoCheck rcode is in the acceptable range (CID #1649513)
Nick Porter [Thu, 19 Jun 2025 08:23:45 +0000 (09:23 +0100)] 
Check rcode is in the acceptable range (CID #1649513)

4 months agoPacify Coverity (CID #1649515, #1649514 and #1649512)
Nick Porter [Thu, 19 Jun 2025 08:14:35 +0000 (09:14 +0100)] 
Pacify Coverity (CID #1649515, #1649514 and #1649512)

4 months agoEnsure detached requests don't try to access results in the parent
Nick Porter [Thu, 19 Jun 2025 08:03:36 +0000 (09:03 +0100)] 
Ensure detached requests don't try to access results in the parent

4 months agoAdd allow_core_dumps = yes to more test server configs for debugging
Nick Porter [Thu, 19 Jun 2025 07:53:38 +0000 (08:53 +0100)] 
Add allow_core_dumps = yes to more test server configs for debugging

4 months agoframe->state is not always populated
Nick Porter [Thu, 19 Jun 2025 07:21:10 +0000 (08:21 +0100)] 
frame->state is not always populated

4 months agoif xlat fails, then we return fail, too
Alan T. DeKok [Wed, 18 Jun 2025 19:22:51 +0000 (15:22 -0400)] 
if xlat fails, then we return fail, too

revert commit 4086074515

4 months agoremove unused structure
Alan T. DeKok [Wed, 18 Jun 2025 19:19:22 +0000 (15:19 -0400)] 
remove unused structure

4 months agoPacify clang scan
Nick Porter [Wed, 18 Jun 2025 15:58:01 +0000 (16:58 +0100)] 
Pacify clang scan

4 months agoReject users correctly in TACACS tests
Nick Porter [Wed, 18 Jun 2025 15:36:48 +0000 (16:36 +0100)] 
Reject users correctly in TACACS tests

4 months agoSet allow_core_dumps in module tests to allow debugger use
Nick Porter [Wed, 18 Jun 2025 15:01:27 +0000 (16:01 +0100)] 
Set allow_core_dumps in module tests to allow debugger use

4 months agoMark frame as repeatable when pushing tmpl
Nick Porter [Wed, 18 Jun 2025 15:00:47 +0000 (16:00 +0100)] 
Mark frame as repeatable when pushing tmpl

Allows for muplitple tmpls to be pushed on the stack before returning
UNLANG_ACTION_PUSHED_CHILD, and all of them will be evaluated.

4 months agostate->func_name and state->func are both NULL at this point
Nick Porter [Wed, 18 Jun 2025 13:18:12 +0000 (14:18 +0100)] 
state->func_name and state->func are both NULL at this point

4 months agoIf the frame is cancelled, don't run next
Nick Porter [Wed, 18 Jun 2025 10:33:47 +0000 (11:33 +0100)] 
If the frame is cancelled, don't run next

4 months agoCondition result is an unlang_result_t
Nick Porter [Wed, 18 Jun 2025 10:32:31 +0000 (11:32 +0100)] 
Condition result is an unlang_result_t

4 months agoUse unlang_result_t for edit xlat evaluation
Nick Porter [Wed, 18 Jun 2025 10:31:11 +0000 (11:31 +0100)] 
Use unlang_result_t for edit xlat evaluation

4 months agoUse correct return macro
Nick Porter [Wed, 18 Jun 2025 10:30:12 +0000 (11:30 +0100)] 
Use correct return macro

4 months agoSwitch rlm_crl to use unlang_result_t
Nick Porter [Tue, 17 Jun 2025 19:57:47 +0000 (20:57 +0100)] 
Switch rlm_crl to use unlang_result_t

4 months agoMore LDAP debugging
Arran Cudbard-Bell [Tue, 17 Jun 2025 16:54:47 +0000 (12:54 -0400)] 
More LDAP debugging

4 months agoOverwrite rcode if result->priority is equal to frame_result->priority
Arran Cudbard-Bell [Fri, 6 Jun 2025 06:05:30 +0000 (00:05 -0600)] 
Overwrite rcode if result->priority is equal to frame_result->priority

4 months agoAlways set repeatable if we have a repeat function
Arran Cudbard-Bell [Fri, 6 Jun 2025 06:04:53 +0000 (00:04 -0600)] 
Always set repeatable if we have a repeat function

This means the start function will run as the stack is burned down

4 months agoDon't check for operation failures in ldap_check_userobj_resume
Arran Cudbard-Bell [Fri, 6 Jun 2025 06:04:23 +0000 (00:04 -0600)] 
Don't check for operation failures in ldap_check_userobj_resume

4 months agoPrint list of attributes we're retrieving
Arran Cudbard-Bell [Fri, 6 Jun 2025 06:03:54 +0000 (00:03 -0600)] 
Print list of attributes we're retrieving

4 months agoUse correct field in map ctx
Arran Cudbard-Bell [Fri, 6 Jun 2025 06:02:34 +0000 (00:02 -0600)] 
Use correct field in map ctx

4 months agoDon't do exclusivity check if we're checking the config
Arran Cudbard-Bell [Fri, 6 Jun 2025 06:02:18 +0000 (00:02 -0600)] 
Don't do exclusivity check if we're checking the config

4 months agoOutput what group attribute we looked for
Arran Cudbard-Bell [Thu, 5 Jun 2025 17:14:22 +0000 (11:14 -0600)] 
Output what group attribute we looked for

4 months agoMake the query available immediately after resumption
Arran Cudbard-Bell [Thu, 5 Jun 2025 17:14:07 +0000 (11:14 -0600)] 
Make the query available immediately after resumption

4 months agoShouldn't default to returning ok in mod_authorize_resume
Arran Cudbard-Bell [Thu, 5 Jun 2025 17:13:47 +0000 (11:13 -0600)] 
Shouldn't default to returning ok in mod_authorize_resume

4 months agoAdd debugging functions to dump LDAP messages
Arran Cudbard-Bell [Thu, 5 Jun 2025 17:13:26 +0000 (11:13 -0600)] 
Add debugging functions to dump LDAP messages

4 months agoAdd sbuff array concat function
Arran Cudbard-Bell [Thu, 5 Jun 2025 17:12:48 +0000 (11:12 -0600)] 
Add sbuff array concat function

4 months agotmp;s failing should unwind the current frame
Arran Cudbard-Bell [Thu, 5 Jun 2025 04:02:07 +0000 (22:02 -0600)] 
tmp;s failing should unwind the current frame

regexes should return fail if they can't find a group

4 months agoAdd the ability to print instruction priorities to stack_dump
Arran Cudbard-Bell [Thu, 5 Jun 2025 03:59:37 +0000 (21:59 -0600)] 
Add the ability to print instruction priorities to stack_dump

4 months agoExplicitly check for failure
Arran Cudbard-Bell [Thu, 5 Jun 2025 02:23:06 +0000 (20:23 -0600)] 
Explicitly check for failure

4 months agoadd rctx into user_modify_resume if we're calling it directly
Arran Cudbard-Bell [Mon, 2 Jun 2025 05:25:00 +0000 (23:25 -0600)] 
add rctx into user_modify_resume if we're calling it directly

4 months agoUse correct check for ldap_initialize success
Arran Cudbard-Bell [Mon, 2 Jun 2025 05:20:29 +0000 (23:20 -0600)] 
Use correct check for ldap_initialize success