]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
21 months agoadd fake cbor protocol, only for testing. and add cbor tests
Alan T. DeKok [Fri, 8 Nov 2024 16:21:50 +0000 (16:21 +0000)] 
add fake cbor protocol, only for testing. and add cbor tests

21 months agoadd cbor encoder and decoder
Alan T. DeKok [Fri, 8 Nov 2024 16:21:09 +0000 (16:21 +0000)] 
add cbor encoder and decoder

21 months agoDon't use memcpy when grabbing single bytes from the buffer
Arran Cudbard-Bell [Sun, 10 Nov 2024 14:27:55 +0000 (08:27 -0600)] 
Don't use memcpy when grabbing single bytes from the buffer

21 months agoAllow multiple different auto-merge behaviours
Arran Cudbard-Bell [Sun, 10 Nov 2024 14:01:53 +0000 (08:01 -0600)] 
Allow multiple different auto-merge behaviours

21 months agoRemove taint support from regexes, and add regex.safe()
Arran Cudbard-Bell [Sat, 9 Nov 2024 23:13:11 +0000 (17:13 -0600)] 
Remove taint support from regexes, and add regex.safe()

21 months agoFix "too many args" error
Arran Cudbard-Bell [Sat, 9 Nov 2024 22:13:12 +0000 (16:13 -0600)] 
Fix "too many args" error

21 months agoReport push failures
Arran Cudbard-Bell [Sat, 9 Nov 2024 22:02:19 +0000 (16:02 -0600)] 
Report push failures

21 months agoMerge instead of rebase, to keep signatures intact, and avoid local conflicts
Arran Cudbard-Bell [Sat, 9 Nov 2024 20:54:20 +0000 (14:54 -0600)] 
Merge instead of rebase, to keep signatures intact, and avoid local conflicts

21 months agoAttempt to get auto-rebase and merge working again
Arran Cudbard-Bell [Sat, 9 Nov 2024 17:47:27 +0000 (11:47 -0600)] 
Attempt to get auto-rebase and merge working again

21 months agoFix custom values for dynamic clients
Arran Cudbard-Bell [Sat, 9 Nov 2024 14:58:02 +0000 (08:58 -0600)] 
Fix custom values for dynamic clients

21 months agoOutput test ports from the openresty-setup script
Arran Cudbard-Bell [Sat, 9 Nov 2024 14:57:36 +0000 (08:57 -0600)] 
Output test ports from the openresty-setup script

21 months agoUse current argument parser for rest xlat, instead of rolling our own weird thing...
Arran Cudbard-Bell [Sat, 9 Nov 2024 05:04:18 +0000 (23:04 -0600)] 
Use current argument parser for rest xlat, instead of rolling our own weird thing...

21 months agoAdvance arg in the xlat argument tokenizer...
Arran Cudbard-Bell [Sat, 9 Nov 2024 14:57:17 +0000 (08:57 -0600)] 
Advance arg in the xlat argument tokenizer...

21 months agoAdd RuntimeDirectoryPreserve=yes to systemd service definitions
Nick Porter [Fri, 8 Nov 2024 08:23:18 +0000 (08:23 +0000)] 
Add RuntimeDirectoryPreserve=yes to systemd service definitions

Control socket virtual servers typically create files in the runtime
directory.
If this is not kept, FreeRADIUS can't be started in debug mode if those
virtual servers are enabled.

21 months agoCorrect debian systemd service file to grant capabilities
Nick Porter [Fri, 8 Nov 2024 08:11:30 +0000 (08:11 +0000)] 
Correct debian systemd service file to grant capabilities

AmbientCapablilites grants capabilities
CapablilityBoudingSet limits, but does not grant

21 months agounused is used
Alan T. DeKok [Thu, 7 Nov 2024 13:07:16 +0000 (13:07 +0000)] 
unused is used

21 months agodoxygen fixes
Alan T. DeKok [Thu, 7 Nov 2024 12:58:09 +0000 (12:58 +0000)] 
doxygen fixes

21 months agoPacify Coverity (CID #1634478)
Nick Porter [Wed, 6 Nov 2024 07:50:17 +0000 (07:50 +0000)] 
Pacify Coverity (CID #1634478)

21 months agoAdd Samba to the list of identified LDAP directories
Nick Porter [Tue, 5 Nov 2024 16:27:32 +0000 (16:27 +0000)] 
Add Samba to the list of identified LDAP directories

It's behaviour is a mimic of AD, so the same warnings apply

21 months agoSimpler checking for password attributes now all lists are nested
Nick Porter [Tue, 5 Nov 2024 15:50:57 +0000 (15:50 +0000)] 
Simpler checking for password attributes now all lists are nested

Previous switch of search list was transitional when both nested and
flat lists were in place.

21 months agoUpdate warnings to reflect v4 process section names
Nick Porter [Tue, 5 Nov 2024 15:46:25 +0000 (15:46 +0000)] 
Update warnings to reflect v4 process section names

21 months agoTypo
Nick Porter [Tue, 5 Nov 2024 14:55:47 +0000 (14:55 +0000)] 
Typo

21 months agoRemove references to old style proxy in tests
Nick Porter [Tue, 5 Nov 2024 13:20:31 +0000 (13:20 +0000)] 
Remove references to old style proxy in tests

21 months agoNo need for comments about OpenSSL 1.x 5457/head
Nick Porter [Mon, 4 Nov 2024 16:17:13 +0000 (16:17 +0000)] 
No need for comments about OpenSSL 1.x

We only support OpenSSL 3.x now

21 months agoEnable EAP-TTLS tests
Nick Porter [Fri, 1 Nov 2024 15:40:16 +0000 (15:40 +0000)] 
Enable EAP-TTLS tests

21 months agoAdd config for each of the EAP-TTLS tests
Nick Porter [Fri, 1 Nov 2024 15:34:57 +0000 (15:34 +0000)] 
Add config for each of the EAP-TTLS tests

21 months agoDon't check content type if it wasn't set by a received message
Nick Porter [Fri, 1 Nov 2024 14:59:36 +0000 (14:59 +0000)] 
Don't check content type if it wasn't set by a received message

This is seen in EAP-TTLS-MSCHAPv2, where the final client -> server
message is an ACK with zero data length.

21 months agoCopy certificate pairs to verify certificate virtual server
Nick Porter [Fri, 1 Nov 2024 14:50:33 +0000 (14:50 +0000)] 
Copy certificate pairs to verify certificate virtual server

21 months agoRework rlm_eap_ttls to work as module methods
Nick Porter [Fri, 1 Nov 2024 14:49:18 +0000 (14:49 +0000)] 
Rework rlm_eap_ttls to work as module methods

21 months agoIf a subrequest does not set the rcode, use noop
Nick Porter [Fri, 1 Nov 2024 13:58:39 +0000 (13:58 +0000)] 
If a subrequest does not set the rcode, use noop

21 months agoDon't store session state for child requests
Nick Porter [Tue, 5 Nov 2024 08:52:48 +0000 (08:52 +0000)] 
Don't store session state for child requests

This allows the parent request to use fr_state_store_in_parent to store
the child's session state.

21 months agoUpdate EAP methods that use eap_virutal_server()
Nick Porter [Mon, 4 Nov 2024 17:32:37 +0000 (17:32 +0000)] 
Update EAP methods that use eap_virutal_server()

Resolve the virtual server once during instantiation

21 months agoRe-work eap_virtual_server to work async
Nick Porter [Fri, 1 Nov 2024 13:55:53 +0000 (13:55 +0000)] 
Re-work eap_virtual_server to work async

Using the correct method to call a virtual server rather than the
deprecated rad_virtual_server

21 months agoWe expect inner identities to be user@realm format
Nick Porter [Fri, 1 Nov 2024 12:23:51 +0000 (12:23 +0000)] 
We expect inner identities to be user@realm format

21 months agoAdd sample verify certificate section
Nick Porter [Wed, 30 Oct 2024 11:15:49 +0000 (11:15 +0000)] 
Add sample verify certificate section

21 months agoAlign section names with module compile list
Nick Porter [Wed, 30 Oct 2024 10:54:29 +0000 (10:54 +0000)] 
Align section names with module compile list

21 months agoCorrect name of sample virtual server for stateful tls cache
Nick Porter [Wed, 30 Oct 2024 08:25:10 +0000 (08:25 +0000)] 
Correct name of sample virtual server for stateful tls cache

21 months agoCorrect namespace for tls cache virtual server
Nick Porter [Wed, 30 Oct 2024 08:24:28 +0000 (08:24 +0000)] 
Correct namespace for tls cache virtual server

21 months agoUse correct function to trim strings
Nick Porter [Tue, 29 Oct 2024 14:57:40 +0000 (14:57 +0000)] 
Use correct function to trim strings

21 months agoDecode EAP ttls data to nested attributes
Nick Porter [Tue, 29 Oct 2024 14:56:48 +0000 (14:56 +0000)] 
Decode EAP ttls data to nested attributes

21 months agoMatch the RADIUS instance with the whole test name
Nick Porter [Mon, 28 Oct 2024 17:42:54 +0000 (17:42 +0000)] 
Match the RADIUS instance with the whole test name

21 months agoRe-name eap tests
Nick Porter [Mon, 28 Oct 2024 17:42:09 +0000 (17:42 +0000)] 
Re-name eap tests

Some test configs are <method>.conf others are <method>-<inner
method>.conf

We need to distinguish between them correctly for determining the
dependency (e.g. there is an rlm_eap_aka_prime.la, but not an rlm
_eap_ttls_pap.la)

21 months agoRemove un-used auto loaded dict attrs
Nick Porter [Thu, 24 Oct 2024 18:22:55 +0000 (19:22 +0100)] 
Remove un-used auto loaded dict attrs

21 months agoEnsure rlm_sql_mysql logs have an appropraite prefix
Nick Porter [Mon, 4 Nov 2024 10:00:50 +0000 (10:00 +0000)] 
Ensure rlm_sql_mysql logs have an appropraite prefix

Use the connection name if available, the instance name before the
connection is made, and fall back to rlm_sql_mysql for library loading.

21 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
github-actions[bot] [Mon, 4 Nov 2024 09:35:14 +0000 (09:35 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar

21 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Mon, 4 Nov 2024 09:35:07 +0000 (09:35 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar

21 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Mon, 4 Nov 2024 09:34:52 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar

21 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Mon, 4 Nov 2024 09:34:49 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar

21 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar
github-actions[bot] [Mon, 4 Nov 2024 09:34:43 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar

21 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar
github-actions[bot] [Mon, 4 Nov 2024 09:34:37 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar

21 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar
github-actions[bot] [Mon, 4 Nov 2024 09:34:35 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar

21 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
github-actions[bot] [Mon, 4 Nov 2024 09:34:31 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar

21 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Mon, 4 Nov 2024 09:34:29 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar

21 months agoExplicitly ensure this is \0 terminated
Arran Cudbard-Bell [Mon, 4 Nov 2024 05:22:34 +0000 (07:22 +0200)] 
Explicitly ensure this is \0 terminated

21 months agoSimplify dynamic client generation code
Arran Cudbard-Bell [Sun, 3 Nov 2024 08:03:29 +0000 (10:03 +0200)] 
Simplify dynamic client generation code

21 months agoCheck return code
Arran Cudbard-Bell [Sun, 3 Nov 2024 07:54:28 +0000 (09:54 +0200)] 
Check return code

21 months agoRemove sprintf as macOS (rightly) deprecates its use
Arran Cudbard-Bell [Sun, 3 Nov 2024 07:48:55 +0000 (09:48 +0200)] 
Remove sprintf as macOS (rightly) deprecates its use

21 months agoHomebrew is dropping support for macos-12
Arran Cudbard-Bell [Sun, 3 Nov 2024 07:34:38 +0000 (09:34 +0200)] 
Homebrew is dropping support for macos-12

21 months agoUpdate copyrights on code that was substantially modified during the dictionary fixup...
Arran Cudbard-Bell [Sun, 3 Nov 2024 06:22:45 +0000 (08:22 +0200)] 
Update copyrights on code that was substantially modified during the dictionary fixup work

21 months agoLine numbers are no longer common to all fixup types
Arran Cudbard-Bell [Sun, 3 Nov 2024 06:20:39 +0000 (08:20 +0200)] 
Line numbers are no longer common to all fixup types

21 months agoUse common parsing functions for all references.
Arran Cudbard-Bell [Sun, 3 Nov 2024 05:43:22 +0000 (07:43 +0200)] 
Use common parsing functions for all references.

Add support for '@', so that '..' works as one would expect.

Stop clones adding a pre-cloned version of the attribute to the dictionary.

Allow clones, and enum references to reference foreign attributes, but only when they share the same base protocol.

Use the file and line numbers from refs, instead of from the fixup structs.

21 months agoAdd fr_tolower to smash strings to lowercase
Arran Cudbard-Bell [Sun, 3 Nov 2024 05:39:21 +0000 (07:39 +0200)] 
Add fr_tolower to smash strings to lowercase

21 months agoSupport adding non-nested attributes to dynamic clients
Arran Cudbard-Bell [Fri, 1 Nov 2024 21:08:20 +0000 (23:08 +0200)] 
Support adding non-nested attributes to dynamic clients

We could support nested attributes are create nested attributes, not its not necessary for now.

21 months agoDuplicate cookie is not an error
Nick Porter [Thu, 31 Oct 2024 19:27:57 +0000 (19:27 +0000)] 
Duplicate cookie is not an error

sync_new_cookie returns -1 for error and -2 for duplicate

21 months agoadd the worker directly to the network thread
Alan T. DeKok [Wed, 30 Oct 2024 13:44:36 +0000 (09:44 -0400)] 
add the worker directly to the network thread

@todo - perhaps assert that we don't mix "same-thread" workers
with "different-thread" workers?

21 months agoSearch protocol flags first
Arran Cudbard-Bell [Tue, 29 Oct 2024 18:25:41 +0000 (19:25 +0100)] 
Search protocol flags first

21 months agopull "raw" out as separate flag for unknown attributes
Alan T. DeKok [Tue, 29 Oct 2024 13:48:32 +0000 (09:48 -0400)] 
pull "raw" out as separate flag for unknown attributes

and update for key fields

21 months agoremove debugging text
Alan T. DeKok [Tue, 29 Oct 2024 11:57:31 +0000 (07:57 -0400)] 
remove debugging text

21 months agoa bit better decoding of structs with raw fields
Alan T. DeKok [Mon, 28 Oct 2024 23:34:28 +0000 (19:34 -0400)] 
a bit better decoding of structs with raw fields

21 months agofr_struct_from_network() always creates nested attributes
Alan T. DeKok [Mon, 28 Oct 2024 23:27:52 +0000 (19:27 -0400)] 
fr_struct_from_network() always creates nested attributes

21 months agoFix protocol-specific flags docs
Arran Cudbard-Bell [Tue, 29 Oct 2024 12:04:12 +0000 (13:04 +0100)] 
Fix protocol-specific flags docs

21 months ago"to" is not const
Arran Cudbard-Bell [Tue, 29 Oct 2024 12:00:36 +0000 (13:00 +0100)] 
"to" is not const

21 months agoThe default type for unknown attributes is octets...
Arran Cudbard-Bell [Tue, 29 Oct 2024 11:37:48 +0000 (12:37 +0100)] 
The default type for unknown attributes is octets...

21 months agoAdd support for custom protocol-specific flag copy functions and comparators
Arran Cudbard-Bell [Tue, 29 Oct 2024 11:22:58 +0000 (12:22 +0100)] 
Add support for custom protocol-specific flag copy functions and comparators

21 months agoFix additional uses of subtype in the dns encoder and decoder
Arran Cudbard-Bell [Tue, 29 Oct 2024 11:22:32 +0000 (12:22 +0100)] 
Fix additional uses of subtype in the dns encoder and decoder

21 months agoMove flags into their own struct within fr_dict_protocol_t
Arran Cudbard-Bell [Tue, 29 Oct 2024 11:20:08 +0000 (12:20 +0100)] 
Move flags into their own struct within fr_dict_protocol_t

21 months agoClear errors
Arran Cudbard-Bell [Tue, 29 Oct 2024 09:31:06 +0000 (10:31 +0100)] 
Clear errors

21 months agodon't depend on file which no longer exists
Alan T. DeKok [Mon, 28 Oct 2024 19:19:31 +0000 (15:19 -0400)] 
don't depend on file which no longer exists

it prevents the unit tests from running

21 months agono need to copy the entire hierarchy
Alan T. DeKok [Mon, 28 Oct 2024 19:09:14 +0000 (15:09 -0400)] 
no need to copy the entire hierarchy

21 months agoCorrect fixup of TLS session cache mode
Nick Porter [Mon, 28 Oct 2024 20:14:08 +0000 (20:14 +0000)] 
Correct fixup of TLS session cache mode

21 months agorename fr_dict_unknown... to fr_dict_attr_unknown...
Alan T. DeKok [Mon, 28 Oct 2024 18:28:07 +0000 (14:28 -0400)] 
rename fr_dict_unknown... to fr_dict_attr_unknown...

for API consistency

21 months agomove fr_dict_unknown_attr_afrom_num() to common function
Alan T. DeKok [Mon, 28 Oct 2024 18:11:57 +0000 (14:11 -0400)] 
move fr_dict_unknown_attr_afrom_num() to common function

21 months agomove r_dict_unknown_vendor_afrom_num() to common function
Alan T. DeKok [Mon, 28 Oct 2024 18:07:57 +0000 (14:07 -0400)] 
move r_dict_unknown_vendor_afrom_num() to common function

21 months agoda_p is used
Alan T. DeKok [Mon, 28 Oct 2024 18:07:36 +0000 (14:07 -0400)] 
da_p is used

21 months agorename unknown_tlv_afrom_num() to unknown_typed_afrom_num()
Alan T. DeKok [Mon, 28 Oct 2024 17:06:49 +0000 (13:06 -0400)] 
rename unknown_tlv_afrom_num() to unknown_typed_afrom_num()

in preparation for allowing unknown attributes with known types
in the DER decoder.

21 months agoRemove subtype table
Arran Cudbard-Bell [Fri, 25 Oct 2024 05:45:11 +0000 (23:45 -0600)] 
Remove subtype table

21 months agoSwitch DNS to using custom flag parsers
Arran Cudbard-Bell [Fri, 25 Oct 2024 05:42:49 +0000 (23:42 -0600)] 
Switch DNS to using custom flag parsers

21 months agoSwitch DHCPv6 to using custom flag parsers
Arran Cudbard-Bell [Fri, 25 Oct 2024 05:20:36 +0000 (23:20 -0600)] 
Switch DHCPv6 to using custom flag parsers

21 months agoSwitch DHCPv4 to using custom flag parsers
Arran Cudbard-Bell [Fri, 25 Oct 2024 05:03:32 +0000 (23:03 -0600)] 
Switch DHCPv4 to using custom flag parsers

21 months agoSwitch EAP-AKA-SIM to using custom flag parsers
Arran Cudbard-Bell [Fri, 25 Oct 2024 03:53:11 +0000 (21:53 -0600)] 
Switch EAP-AKA-SIM to using custom flag parsers

21 months agoRefactor protocol specific attribute validation functions
Arran Cudbard-Bell [Fri, 25 Oct 2024 03:06:57 +0000 (21:06 -0600)] 
Refactor protocol specific attribute validation functions

Switch RADIUS to using custom flags parsers

21 months agoRead custom dictionary _AFTER_ bootstrap has completed
Arran Cudbard-Bell [Thu, 24 Oct 2024 23:03:33 +0000 (17:03 -0600)] 
Read custom dictionary _AFTER_ bootstrap has completed

21 months agoAllow certain structural attirbutes to contain duplicates
Arran Cudbard-Bell [Thu, 24 Oct 2024 23:02:44 +0000 (17:02 -0600)] 
Allow certain structural attirbutes to contain duplicates

21 months agoAdd comparator for dictionary attributes based on their contents
Arran Cudbard-Bell [Thu, 24 Oct 2024 23:00:50 +0000 (17:00 -0600)] 
Add comparator for dictionary attributes based on their contents

21 months agoRemove unused code
Arran Cudbard-Bell [Thu, 24 Oct 2024 23:00:29 +0000 (17:00 -0600)] 
Remove unused code

21 months agoDon't load the RADIUS dictionary in the xlat library
Arran Cudbard-Bell [Thu, 24 Oct 2024 23:00:10 +0000 (17:00 -0600)] 
Don't load the RADIUS dictionary in the xlat library

21 months agoDon't load the RADIUS dictionary in our TLS library
Arran Cudbard-Bell [Thu, 24 Oct 2024 22:59:49 +0000 (16:59 -0600)] 
Don't load the RADIUS dictionary in our TLS library

21 months agoRemove the explicit checks for flags values
Arran Cudbard-Bell [Wed, 23 Oct 2024 17:31:40 +0000 (11:31 -0600)] 
Remove the explicit checks for flags values

21 months agoAllow "needs_value" to be set for flag parsing so that flag parsing functions don...
Arran Cudbard-Bell [Wed, 23 Oct 2024 17:30:48 +0000 (11:30 -0600)] 
Allow "needs_value" to be set for flag parsing so that flag parsing functions don't need to explicitly check

21 months agoWe now just use aliases so this is no longer needed
Arran Cudbard-Bell [Wed, 23 Oct 2024 17:01:27 +0000 (11:01 -0600)] 
We now just use aliases so this is no longer needed