]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
2 months agoRemove unnecessary includes
Nick Porter [Thu, 12 Jun 2025 11:56:14 +0000 (12:56 +0100)] 
Remove unnecessary includes

2 months agoUse separate CRL file for each test
Nick Porter [Thu, 12 Jun 2025 07:45:25 +0000 (08:45 +0100)] 
Use separate CRL file for each test

To avoid conflicts when running in parallel

2 months agoAdd application/pkix-crl to known REST Content-Type values
Nick Porter [Thu, 12 Jun 2025 07:30:08 +0000 (08:30 +0100)] 
Add application/pkix-crl to known REST Content-Type values

2 months ago%M is supposed to be microseconds, not milliseconds
Nick Porter [Thu, 12 Jun 2025 07:19:30 +0000 (08:19 +0100)] 
%M is supposed to be microseconds, not milliseconds

2 months agoCorrect module name
Nick Porter [Wed, 11 Jun 2025 13:05:07 +0000 (14:05 +0100)] 
Correct module name

2 months agoCan't test rlm_crl if FreeRADIUS was built without SSL
Nick Porter [Wed, 11 Jun 2025 09:04:22 +0000 (10:04 +0100)] 
Can't test rlm_crl if FreeRADIUS was built without SSL

2 months agoAdd basic tests of rlm_crl
Nick Porter [Wed, 11 Jun 2025 08:01:23 +0000 (09:01 +0100)] 
Add basic tests of rlm_crl

2 months agoSet allow_core_dumps to yes for developer builds
Nick Porter [Tue, 10 Jun 2025 15:07:25 +0000 (16:07 +0100)] 
Set allow_core_dumps to yes for developer builds

Required to allow debuggers to attach to processes.

2 months agoCorrect ZSCORE check after unassigning a static IP
Nick Porter [Tue, 10 Jun 2025 14:01:12 +0000 (15:01 +0100)] 
Correct ZSCORE check after unassigning a static IP

Particularly when running under sanitizers, %l ends up in the past

2 months agoRemove stray %
Nick Porter [Tue, 10 Jun 2025 13:36:29 +0000 (14:36 +0100)] 
Remove stray %

2 months agoAllow reading binary data using rlm_exec
Nick Porter [Tue, 10 Jun 2025 09:11:41 +0000 (10:11 +0100)] 
Allow reading binary data using rlm_exec

2 months agoUpdate rlm_mruby docs from raddb
Nick Porter [Tue, 10 Jun 2025 08:20:34 +0000 (09:20 +0100)] 
Update rlm_mruby docs from raddb

2 months agoFix RHEL packaging for rlm_mruby
Nick Porter [Tue, 10 Jun 2025 08:17:35 +0000 (09:17 +0100)] 
Fix RHEL packaging for rlm_mruby

2 months agoMove sample Ruby to raddb so it gets packaged
Nick Porter [Tue, 10 Jun 2025 07:43:16 +0000 (08:43 +0100)] 
Move sample Ruby to raddb so it gets packaged

2 months agoTidy sample Ruby
Nick Porter [Tue, 10 Jun 2025 07:40:50 +0000 (08:40 +0100)] 
Tidy sample Ruby

2 months agoUpdate mruby sample config with notes on attribute access
Nick Porter [Tue, 10 Jun 2025 07:39:07 +0000 (08:39 +0100)] 
Update mruby sample config with notes on attribute access

2 months agoAdd tests of pair list access from mruby
Nick Porter [Mon, 9 Jun 2025 19:10:38 +0000 (20:10 +0100)] 
Add tests of pair list access from mruby

2 months agoDon't run instantiate module if it doesn't exist
Nick Porter [Mon, 9 Jun 2025 18:12:04 +0000 (19:12 +0100)] 
Don't run instantiate module if it doesn't exist

2 months agoAdd `append` method to mruby Pair class
Nick Porter [Mon, 9 Jun 2025 17:24:32 +0000 (18:24 +0100)] 
Add `append` method to mruby Pair class

To add an instance of an attribute

2 months agoAdd `del` method to mruby Pair class
Nick Porter [Mon, 9 Jun 2025 16:46:22 +0000 (17:46 +0100)] 
Add `del` method to mruby Pair class

2 months agoRemove redundant mruby add_vp_tuple
Nick Porter [Mon, 9 Jun 2025 16:32:35 +0000 (17:32 +0100)] 
Remove redundant mruby add_vp_tuple

2 months agoOnly allow fixednum return now mruby can set pairs directly
Nick Porter [Mon, 9 Jun 2025 16:29:26 +0000 (17:29 +0100)] 
Only allow fixednum return now mruby can set pairs directly

2 months agoRemove mruby pair list marshalling functions
Nick Porter [Mon, 9 Jun 2025 16:14:33 +0000 (17:14 +0100)] 
Remove mruby pair list marshalling functions

2 months agoReport what is being called
Nick Porter [Mon, 9 Jun 2025 16:11:13 +0000 (17:11 +0100)] 
Report what is being called

2 months agoUse mruby PairList class for passing list roots to module method
Nick Porter [Mon, 9 Jun 2025 16:10:45 +0000 (17:10 +0100)] 
Use mruby PairList class for passing list roots to module method

2 months agoAdd `method_missing` method to mruby PairList class
Nick Porter [Mon, 9 Jun 2025 16:09:16 +0000 (17:09 +0100)] 
Add `method_missing` method to mruby PairList class

To allow access to child attributes.

2 months agoAdd `set` method to mruby Pair class
Nick Porter [Mon, 9 Jun 2025 15:51:06 +0000 (16:51 +0100)] 
Add `set` method to mruby Pair class

To set pair values

2 months agoAdd `get` method to mruby Pair class
Nick Porter [Mon, 9 Jun 2025 15:49:33 +0000 (16:49 +0100)] 
Add `get` method to mruby Pair class

For getting the value of the pair.

2 months agoAdd `keys` method to mruby PairList
Nick Porter [Mon, 9 Jun 2025 15:47:47 +0000 (16:47 +0100)] 
Add `keys` method to mruby PairList

To fetch a list of child attributes

2 months agoAdd mruby Pair class
Nick Porter [Mon, 9 Jun 2025 15:40:39 +0000 (16:40 +0100)] 
Add mruby Pair class

For leaf pairs

2 months agoDefine mruby PairList class and its initialize function
Nick Porter [Mon, 9 Jun 2025 15:35:53 +0000 (16:35 +0100)] 
Define mruby PairList class and its initialize function

for holding structural pairs

2 months agoChange default mruby module name to FreeRADIUS
Nick Porter [Mon, 9 Jun 2025 15:30:57 +0000 (16:30 +0100)] 
Change default mruby module name to FreeRADIUS

2 months agoAdd Ptr class to use for passing C pointers
Nick Porter [Mon, 9 Jun 2025 15:29:51 +0000 (16:29 +0100)] 
Add Ptr class to use for passing C pointers

2 months agoDefine mruby_pair_t
Nick Porter [Mon, 9 Jun 2025 15:22:52 +0000 (16:22 +0100)] 
Define mruby_pair_t

For holding C data pointers associated with a pair in mruby objects

2 months agoDefine mruby data types and functions for accessing C data pointers
Nick Porter [Mon, 9 Jun 2025 15:14:15 +0000 (16:14 +0100)] 
Define mruby data types and functions for accessing C data pointers

2 months agoMove rlm_mruby_t definition to shared header
Nick Porter [Mon, 9 Jun 2025 15:18:10 +0000 (16:18 +0100)] 
Move rlm_mruby_t definition to shared header

2 months agoPacify Coverity (CID #1648478)
Nick Porter [Mon, 9 Jun 2025 07:48:48 +0000 (08:48 +0100)] 
Pacify Coverity (CID #1648478)

It doesn't understand about required xlat args

2 months agoCheck box is allocated (CID #1648479)
Nick Porter [Mon, 9 Jun 2025 07:45:16 +0000 (08:45 +0100)] 
Check box is allocated (CID #1648479)

2 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Mon, 9 Jun 2025 04:33:40 +0000 (04:33 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar

2 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar
github-actions[bot] [Mon, 9 Jun 2025 04:33:31 +0000 (04:33 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar

2 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Mon, 9 Jun 2025 04:33:16 +0000 (04:33 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar

2 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
github-actions[bot] [Mon, 9 Jun 2025 04:32:40 +0000 (04:32 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar

2 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar
github-actions[bot] [Mon, 9 Jun 2025 04:32:37 +0000 (04:32 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar

2 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar
github-actions[bot] [Mon, 9 Jun 2025 04:32:22 +0000 (04:32 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar

2 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
github-actions[bot] [Mon, 9 Jun 2025 04:31:47 +0000 (04:31 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar

2 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Mon, 9 Jun 2025 04:31:10 +0000 (04:31 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar

2 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Mon, 9 Jun 2025 04:30:34 +0000 (04:30 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar

2 months agoAdd rlm_crl docs from sample config
Nick Porter [Thu, 5 Jun 2025 08:53:59 +0000 (09:53 +0100)] 
Add rlm_crl docs from sample config

2 months agoUpdate docs from raddb changes
Nick Porter [Thu, 5 Jun 2025 08:24:17 +0000 (09:24 +0100)] 
Update docs from raddb changes

2 months agoDocument %ldap.uri.attr_option
Nick Porter [Thu, 5 Jun 2025 08:20:43 +0000 (09:20 +0100)] 
Document %ldap.uri.attr_option

2 months agoAdd tests of %ldap.uri.attr_option
Nick Porter [Thu, 5 Jun 2025 08:17:00 +0000 (09:17 +0100)] 
Add tests of %ldap.uri.attr_option

2 months agoAdd %ldap.uri.attr_option
Nick Porter [Thu, 5 Jun 2025 08:16:20 +0000 (09:16 +0100)] 
Add %ldap.uri.attr_option

2 months agoPacify Coverity (CID #1648447)
Nick Porter [Thu, 5 Jun 2025 07:21:37 +0000 (08:21 +0100)] 
Pacify Coverity (CID #1648447)

2 months agoCheck return value (CID #1648446)
Nick Porter [Thu, 5 Jun 2025 07:05:12 +0000 (08:05 +0100)] 
Check return value (CID #1648446)

2 months agoCheck return code from base CRL lookup
Nick Porter [Wed, 4 Jun 2025 19:12:52 +0000 (20:12 +0100)] 
Check return code from base CRL lookup

2 months agorlm_crl requires OpenSSL to build
Nick Porter [Wed, 4 Jun 2025 19:09:42 +0000 (20:09 +0100)] 
rlm_crl requires OpenSSL to build

2 months agoAdd rlm_crl to RHEL packaging
Nick Porter [Wed, 4 Jun 2025 18:46:01 +0000 (19:46 +0100)] 
Add rlm_crl to RHEL packaging

2 months agoAllow soft failure when ldap expansion is not configured
Nick Porter [Wed, 4 Jun 2025 18:31:36 +0000 (19:31 +0100)] 
Allow soft failure when ldap expansion is not configured

2 months agoWhen a base CRL expires, expire the deltas
Nick Porter [Wed, 4 Jun 2025 10:07:45 +0000 (11:07 +0100)] 
When a base CRL expires, expire the deltas

Since deltas are changes from a base, they need to be re-fetched when
the base changes

2 months agoLimit extracted CDP to those covering all reasons
Nick Porter [Wed, 4 Jun 2025 08:31:05 +0000 (09:31 +0100)] 
Limit extracted CDP to those covering all reasons

We want the full picture for doing CRL checks - so no need to handle
segmented CRLs.

RFC5280 page 47:

When a conforming CA includes a cRLDistributionPoints extension in a
certificate, it MUST include at least one DistributionPoint that points
to a CRL that covers the certificate for all reasons.

2 months agoAdd crlNumber to dummy CRL
Nick Porter [Wed, 4 Jun 2025 08:05:49 +0000 (09:05 +0100)] 
Add crlNumber to dummy CRL

2 months agoAdd notes on CDP with ldap:/// prefix
Nick Porter [Wed, 4 Jun 2025 08:03:54 +0000 (09:03 +0100)] 
Add notes on CDP with ldap:/// prefix

2 months agoCheck for delta CRL in crl_check_serial
Nick Porter [Wed, 4 Jun 2025 07:45:27 +0000 (08:45 +0100)] 
Check for delta CRL in crl_check_serial

And fetch the delta if we don't already have it.

2 months agoReturn found crl entry from crl_check_serial
Nick Porter [Wed, 4 Jun 2025 07:40:33 +0000 (08:40 +0100)] 
Return found crl entry from crl_check_serial

So base CRL can be referenced when fetching a delta

2 months agoHaving retrieved a base CRL, check the delta if the CRL has it defined
Nick Porter [Wed, 4 Jun 2025 07:33:48 +0000 (08:33 +0100)] 
Having retrieved a base CRL, check the delta if the CRL has it defined

Deltas can have more than one URI for HA.
If none of the delta CRLs are available then re-use the same mechanism
to fetch one.

2 months agoAllow different forced expiry interval for delta CRLs
Nick Porter [Wed, 4 Jun 2025 07:08:59 +0000 (08:08 +0100)] 
Allow different forced expiry interval for delta CRLs

Typically delta CRLs are published more frequently than base ones, so
may require a shorter forced expiry interval.

2 months agoUse reference to base_crl to indicate we're reading data from a delta
Nick Porter [Wed, 4 Jun 2025 07:05:36 +0000 (08:05 +0100)] 
Use reference to base_crl to indicate we're reading data from a delta

2 months agoCorrect comment
Nick Porter [Wed, 4 Jun 2025 07:02:03 +0000 (08:02 +0100)] 
Correct comment

2 months agoAdd a status to rlm_crl_ctx_t to track which type of CRL is being handled
Nick Porter [Wed, 4 Jun 2025 06:58:58 +0000 (07:58 +0100)] 
Add a status to rlm_crl_ctx_t to track which type of CRL is being handled

2 months agoCRL reason "remove from CRL" is different from not found
Nick Porter [Tue, 3 Jun 2025 18:06:17 +0000 (19:06 +0100)] 
CRL reason "remove from CRL" is different from not found

It is an override that occurs in delta CRLs - whereas if a serial is not
found in a delta, the base should be checked.

2 months agoRestructure processing of multiple CRL distrubution points
Nick Porter [Mon, 2 Jun 2025 15:26:35 +0000 (16:26 +0100)] 
Restructure processing of multiple CRL distrubution points

When a certificate lists multiple CRL distribution points (that cover
all revokation reasons) then they are different methods to retrieve the
same CRL.

If we have one CRL downloaded, then that can be used.

If none exist then try to retrieve from each of the distribution points
until one succeeds.

2 months agoFix comment
Nick Porter [Mon, 2 Jun 2025 11:12:48 +0000 (12:12 +0100)] 
Fix comment

2 months agoAdd verification of CRL signatures
Nick Porter [Mon, 2 Jun 2025 11:12:19 +0000 (12:12 +0100)] 
Add verification of CRL signatures

2 months agoAllow per scheme expansions for CRL retrieval
Nick Porter [Fri, 30 May 2025 16:03:12 +0000 (17:03 +0100)] 
Allow per scheme expansions for CRL retrieval

2 months agoExtract URIs from Freshest CRL extension
Nick Porter [Fri, 30 May 2025 15:20:39 +0000 (16:20 +0100)] 
Extract URIs from Freshest CRL extension

Which tells us that the CRL has delta updates

2 months agoExtract and store CRL number
Nick Porter [Fri, 30 May 2025 15:17:43 +0000 (16:17 +0100)] 
Extract and store CRL number

Needed to verify that delta CRLs are for the correct base

2 months agoAdd early_refresh option to rlm_crl
Nick Porter [Fri, 30 May 2025 12:56:03 +0000 (13:56 +0100)] 
Add early_refresh option to rlm_crl

Time interval before nextUpdate at which the CRL will be renewed.

2 months agoAdd application/x-pkcs7-crl to known Content-Type values
Nick Porter [Fri, 30 May 2025 12:36:45 +0000 (13:36 +0100)] 
Add application/x-pkcs7-crl to known Content-Type values

Allows rlm_rest to download CRLs without spurious warnings

2 months agoUse nextUpdate from CRL to set expiry timer
Nick Porter [Thu, 29 May 2025 11:03:52 +0000 (12:03 +0100)] 
Use nextUpdate from CRL to set expiry timer

If it is less than the time which would result from `force_expiry`

2 months agoFree crl when it's expired
Nick Porter [Thu, 29 May 2025 10:15:40 +0000 (11:15 +0100)] 
Free crl when it's expired

2 months agocrl->ev needs to hold the expiry timer event
Nick Porter [Thu, 29 May 2025 09:55:50 +0000 (10:55 +0100)] 
crl->ev needs to hold the expiry timer event

2 months agoMake sure errors are printed
Nick Porter [Thu, 29 May 2025 09:54:05 +0000 (10:54 +0100)] 
Make sure errors are printed

2 months agoCorrect handling of X509_CRL_get0_by_serial
Nick Porter [Thu, 29 May 2025 09:53:15 +0000 (10:53 +0100)] 
Correct handling of X509_CRL_get0_by_serial

The docs misleadingly use the word "failure" for the return value 0.
What that means is failure to find the certificate, i.e. the certificate
is not in the CRL list - not a failure in the software.

2 months agoAdd conf parser to get force_expiry value
Nick Porter [Thu, 29 May 2025 09:50:18 +0000 (10:50 +0100)] 
Add conf parser to get force_expiry value

2 months agoWe remove the data from the tree, not its node member
Nick Porter [Thu, 29 May 2025 08:32:29 +0000 (09:32 +0100)] 
We remove the data from the tree, not its node member

2 months agoReference module instance in crl
Nick Porter [Thu, 29 May 2025 08:30:52 +0000 (09:30 +0100)] 
Reference module instance in crl

2 months agoInsert CRL into tree
Nick Porter [Thu, 29 May 2025 08:30:34 +0000 (09:30 +0100)] 
Insert CRL into tree

2 months agoModule instance data is const
Nick Porter [Thu, 29 May 2025 08:29:48 +0000 (09:29 +0100)] 
Module instance data is const

2 months agoTalloc the crl off the tree it will live in
Nick Porter [Thu, 29 May 2025 07:29:55 +0000 (08:29 +0100)] 
Talloc the crl off the tree it will live in

2 months agoUse pair_update_request so we only have one CRL.CDP-URL instance
Nick Porter [Wed, 28 May 2025 19:42:33 +0000 (20:42 +0100)] 
Use pair_update_request so we only have one CRL.CDP-URL instance

2 months agocrl option is required
Nick Porter [Wed, 28 May 2025 19:41:43 +0000 (20:41 +0100)] 
crl option is required

Otherwise we don't know how to download CRLs

2 months agoCorrect autoload variable names
Nick Porter [Wed, 28 May 2025 19:30:10 +0000 (20:30 +0100)] 
Correct autoload variable names

2 months agoFill out sample rlm_crl module config
Nick Porter [Wed, 28 May 2025 19:24:04 +0000 (20:24 +0100)] 
Fill out sample rlm_crl module config

2 months agoExtract CRL distribution points from certificates
Nick Porter [Wed, 28 May 2025 19:23:02 +0000 (20:23 +0100)] 
Extract CRL distribution points from certificates

2 months agoSet CALL_ENV_FLAG_ATTRIBUTE where we want attribute references
Nick Porter [Wed, 28 May 2025 19:07:31 +0000 (20:07 +0100)] 
Set CALL_ENV_FLAG_ATTRIBUTE where we want attribute references

2 months agoPopulate rctx if it's missing
Nick Porter [Wed, 28 May 2025 19:06:01 +0000 (20:06 +0100)] 
Populate rctx if it's missing

2 months agoInstance mutable data needs NULL talloc ctx
Nick Porter [Wed, 28 May 2025 19:05:10 +0000 (20:05 +0100)] 
Instance mutable data needs NULL talloc ctx

And freeing in mod_detach

2 months agoThe default case statement meant we always returned... but I guess the compiler isn...
Arran Cudbard-Bell [Wed, 28 May 2025 14:31:18 +0000 (08:31 -0600)] 
The default case statement meant we always returned... but I guess the compiler isn't smart enough to realise that.

2 months agoBasic CRL module
Arran Cudbard-Bell [Wed, 28 May 2025 14:22:39 +0000 (08:22 -0600)] 
Basic CRL module

2 months agoRe-encode serial as DER
Arran Cudbard-Bell [Wed, 28 May 2025 05:21:30 +0000 (23:21 -0600)] 
Re-encode serial as DER