]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
9 months agoRe-enable EAP-PEAP tests
Nick Porter [Wed, 13 Nov 2024 14:52:33 +0000 (14:52 +0000)] 
Re-enable EAP-PEAP tests

9 months agoAdd realm to identity for EAP-PEAP tests
Nick Porter [Wed, 13 Nov 2024 14:11:15 +0000 (14:11 +0000)] 
Add realm to identity for EAP-PEAP tests

9 months agoFix up FreeRADIUS configs for EAP-PEAP tests
Nick Porter [Wed, 13 Nov 2024 14:10:34 +0000 (14:10 +0000)] 
Fix up FreeRADIUS configs for EAP-PEAP tests

9 months agoMore old irrelevant proxy stuff
Nick Porter [Wed, 13 Nov 2024 14:33:53 +0000 (14:33 +0000)] 
More old irrelevant proxy stuff

9 months agoOnly reject nested TLS if the eap method is TLS
Nick Porter [Wed, 13 Nov 2024 14:26:27 +0000 (14:26 +0000)] 
Only reject nested TLS if the eap method is TLS

Nested requests are used for PEAP now, so you do get
request->parent->parent when processing the inner tunnel.

9 months agoRe-work eap_peap_process to work with async subrequest
Nick Porter [Wed, 13 Nov 2024 14:23:19 +0000 (14:23 +0000)] 
Re-work eap_peap_process to work with async subrequest

9 months agoNot applicable in v4 as proxying is totally changed
Nick Porter [Wed, 13 Nov 2024 14:21:51 +0000 (14:21 +0000)] 
Not applicable in v4 as proxying is totally changed

9 months agoUse more consistent name for subrequest
Nick Porter [Wed, 13 Nov 2024 11:30:43 +0000 (11:30 +0000)] 
Use more consistent name for subrequest

9 months agoUse new foreach syntax
Nick Porter [Wed, 13 Nov 2024 11:27:58 +0000 (11:27 +0000)] 
Use new foreach syntax

9 months agoRemove unused attributes
Nick Porter [Wed, 13 Nov 2024 10:53:20 +0000 (10:53 +0000)] 
Remove unused attributes

9 months agoRestructure PEAP mod_handshake_resume for async subrequest
Nick Porter [Wed, 13 Nov 2024 10:51:18 +0000 (10:51 +0000)] 
Restructure PEAP mod_handshake_resume for async subrequest

9 months agoTidy up
Nick Porter [Wed, 13 Nov 2024 10:18:23 +0000 (10:18 +0000)] 
Tidy up

9 months agoSimplify setting up subrequest
Nick Porter [Wed, 13 Nov 2024 10:16:20 +0000 (10:16 +0000)] 
Simplify setting up subrequest

FreeRADIUS.Proxied-To isn't needed in v4

9 months agomove common code to common functions
Alan T. DeKok [Wed, 13 Nov 2024 15:49:25 +0000 (10:49 -0500)] 
move common code to common functions

in preparation for more sanity checks and cleanups

defining a structural type with "clone=..." should NOT cause a
dict_gctx_push().  But that kind of thing happens in multiple
places, so we simplify before adding functionality.

9 months agoMYSQL_OPT_RECONNECT is deprecated in 8.0.34 and later
Alan T. DeKok [Wed, 13 Nov 2024 15:03:57 +0000 (10:03 -0500)] 
MYSQL_OPT_RECONNECT is deprecated in 8.0.34 and later

9 months agoprint casts for values of raw attributes
Alan T. DeKok [Wed, 13 Nov 2024 13:01:00 +0000 (08:01 -0500)] 
print casts for values of raw attributes

now that we parse the cast, they should be printed, too

9 months agoimplement more of CBOR
Alan T. DeKok [Wed, 13 Nov 2024 12:43:35 +0000 (07:43 -0500)] 
implement more of CBOR

encode BOOL as one-byte boolean

if we're asked to decode a NULL type, then try to guess the type

encode empty structual elements as one byte with NULL value

9 months agofixed-size structs can't contain fields of unknown length
Alan T. DeKok [Tue, 12 Nov 2024 20:19:17 +0000 (15:19 -0500)] 
fixed-size structs can't contain fields of unknown length

9 months agoRemove unused attributes
Nick Porter [Wed, 13 Nov 2024 09:53:14 +0000 (09:53 +0000)] 
Remove unused attributes

9 months agoAdd binding attributes for LDAP clients
Arran Cudbard-Bell [Wed, 13 Nov 2024 01:59:43 +0000 (19:59 -0600)] 
Add binding attributes for LDAP clients

9 months agoFix infinite loop when searching for a client
Arran Cudbard-Bell [Wed, 13 Nov 2024 00:33:03 +0000 (18:33 -0600)] 
Fix infinite loop when searching for a client

9 months agoThis dictionary is meant to be consumed by Pyrad
Arran Cudbard-Bell [Tue, 12 Nov 2024 20:25:29 +0000 (14:25 -0600)] 
This dictionary is meant to be consumed by Pyrad

9 months agoExplicitly pre-alloc numbers for defines
Arran Cudbard-Bell [Tue, 12 Nov 2024 15:51:29 +0000 (09:51 -0600)] 
Explicitly pre-alloc numbers for defines

9 months agouse new BIO packet APIs.
Alan T. DeKok [Tue, 12 Nov 2024 18:39:30 +0000 (13:39 -0500)] 
use new BIO packet APIs.

9 months agodefine and use write_blocked and write_resume callbacks
Alan T. DeKok [Tue, 12 Nov 2024 18:38:33 +0000 (13:38 -0500)] 
define and use write_blocked and write_resume callbacks

9 months agothe packet BIO tells all of the other ones that write is blocked
Alan T. DeKok [Tue, 12 Nov 2024 18:37:38 +0000 (13:37 -0500)] 
the packet BIO tells all of the other ones that write is blocked

so that the application doesn't have to do this

9 months agoupdate comment
Alan T. DeKok [Tue, 12 Nov 2024 18:35:35 +0000 (13:35 -0500)] 
update comment

9 months agoadd CC_HINT
Alan T. DeKok [Tue, 12 Nov 2024 18:33:36 +0000 (13:33 -0500)] 
add CC_HINT

9 months agomove struct checking to explicit "is closed"
Alan T. DeKok [Tue, 12 Nov 2024 16:04:13 +0000 (11:04 -0500)] 
move struct checking to explicit "is closed"

instead of checking for a few special cases.

We already have flags->is_known_width, so we set that in more
places, and then in the MEMBER parsing, check if the current
MEMBER is !flags->is_known_width,  If so, the struct is closed.

9 months agocbor doesn't have cb_tp_decode_proto()
Alan T. DeKok [Tue, 12 Nov 2024 15:38:13 +0000 (10:38 -0500)] 
cbor doesn't have cb_tp_decode_proto()

9 months agodon't include full pathname
Alan T. DeKok [Tue, 12 Nov 2024 14:45:12 +0000 (09:45 -0500)] 
don't include full pathname

9 months agoclarify comment
Alan T. DeKok [Tue, 12 Nov 2024 01:29:10 +0000 (20:29 -0500)] 
clarify comment

9 months agoremove unused arguments from tmpl_preparse()
Alan T. DeKok [Tue, 12 Nov 2024 01:00:08 +0000 (20:00 -0500)] 
remove unused arguments from tmpl_preparse()

9 months agocompare "major" to "type", and not "major" to "major"
Alan T. DeKok [Tue, 12 Nov 2024 00:22:04 +0000 (19:22 -0500)] 
compare "major" to "type", and not "major" to "major"

9 months agoadd cbor corpus, and run the fuzzer tests
Alan T. DeKok [Tue, 12 Nov 2024 00:03:28 +0000 (19:03 -0500)] 
add cbor corpus, and run the fuzzer tests

9 months agocheck value to quiet coverity
Alan T. DeKok [Mon, 11 Nov 2024 21:18:50 +0000 (16:18 -0500)] 
check value to quiet coverity

the dbuff code ensures that we don't loop over too much data, but
Coverity doesn't know that.

9 months agoallow actions {...} in more sections
Alan T. DeKok [Mon, 11 Nov 2024 21:15:01 +0000 (16:15 -0500)] 
allow actions {...} in more sections

and document why they can't be in redundant, etc.

9 months agoUse %sql.fetch() and %sql.modify() in SQL xlat tests
Nick Porter [Tue, 12 Nov 2024 09:25:20 +0000 (09:25 +0000)] 
Use %sql.fetch() and %sql.modify() in SQL xlat tests

9 months agoAdd %sql.fetch() and %sql.modify() xlats
Nick Porter [Tue, 12 Nov 2024 08:29:13 +0000 (08:29 +0000)] 
Add %sql.fetch() and %sql.modify() xlats

The generic %sql() xlat attempts to determine whether a query is
expected to return data based on the initial key word in the statement.

That is not guarunteed to be correct in all situations, e.g. `UPDATE ...
RETURNING ...` does return data unlike other queries starting `UPDATE`

%sql.fetch() is expected to return data.
%sql.modify() is expected to return the number of rows affected.

9 months agoAdd finalisation safety checks
Arran Cudbard-Bell [Mon, 11 Nov 2024 23:17:33 +0000 (17:17 -0600)] 
Add finalisation safety checks

9 months agoBe _EXPLICIT_ about when we want to refer to attributes primarily by name
Arran Cudbard-Bell [Mon, 11 Nov 2024 22:40:33 +0000 (16:40 -0600)] 
Be _EXPLICIT_ about when we want to refer to attributes primarily by name

9 months agoWe can't _rely_ on deffered cloning to make this work anymore
Arran Cudbard-Bell [Mon, 11 Nov 2024 21:05:32 +0000 (15:05 -0600)] 
We can't _rely_ on deffered cloning to make this work anymore

9 months agoApply clone fixups immediately if possible
Arran Cudbard-Bell [Mon, 11 Nov 2024 20:12:35 +0000 (14:12 -0600)] 
Apply clone fixups immediately if possible

9 months agoDon't automatically enter sections for deferred attributes (they don't exist yet)
Arran Cudbard-Bell [Mon, 11 Nov 2024 19:13:56 +0000 (13:13 -0600)] 
Don't automatically enter sections for deferred attributes (they don't exist yet)

9 months agoDon't duplicate the enum copying code
Arran Cudbard-Bell [Mon, 11 Nov 2024 19:26:26 +0000 (13:26 -0600)] 
Don't duplicate the enum copying code

9 months agoHave dict_attr_flags_valid operate on a da
Arran Cudbard-Bell [Mon, 11 Nov 2024 20:27:09 +0000 (14:27 -0600)] 
Have dict_attr_flags_valid operate on a da

Allow internal with has_value

9 months agobetter errors for double loads
Alan T. DeKok [Mon, 11 Nov 2024 20:17:12 +0000 (15:17 -0500)] 
better errors for double loads

9 months agoallow deferred siblings
Alan T. DeKok [Mon, 11 Nov 2024 19:08:35 +0000 (14:08 -0500)] 
allow deferred siblings

9 months agodon't push NULL relative attributes
Alan T. DeKok [Mon, 11 Nov 2024 19:03:48 +0000 (14:03 -0500)] 
don't push NULL relative attributes

9 months agocheck for zero-length strings and octets
Alan T. DeKok [Mon, 11 Nov 2024 16:08:45 +0000 (11:08 -0500)] 
check for zero-length strings and octets

9 months agodecode and encode unknown (raw), but typed data
Alan T. DeKok [Mon, 11 Nov 2024 15:32:51 +0000 (10:32 -0500)] 
decode and encode unknown (raw), but typed data

9 months agoallow casts in RHS of raw attributes
Alan T. DeKok [Mon, 11 Nov 2024 14:04:56 +0000 (09:04 -0500)] 
allow casts in RHS of raw attributes

so that we can set the data type

9 months agodisallow changing types in raw / unknown attributes
Alan T. DeKok [Mon, 11 Nov 2024 12:33:11 +0000 (07:33 -0500)] 
disallow changing types in raw / unknown attributes

raw.User-Name = 0xabcdef

is OK

raw.User-Name = (ipv4addr) 192.0.2.1

is not OK.

9 months agoallow passing type to "unknown from OID string"
Alan T. DeKok [Mon, 11 Nov 2024 12:09:57 +0000 (07:09 -0500)] 
allow passing type to "unknown from OID string"

9 months agounknown / raw pairs can now be typed.
Alan T. DeKok [Mon, 11 Nov 2024 11:45:17 +0000 (06:45 -0500)] 
unknown / raw pairs can now be typed.

9 months agoguess the data type of unknown attributes
Alan T. DeKok [Mon, 11 Nov 2024 00:37:45 +0000 (19:37 -0500)] 
guess the data type of unknown attributes

9 months agopoint more clearly to the docs
Alan T. DeKok [Mon, 11 Nov 2024 11:25:27 +0000 (06:25 -0500)] 
point more clearly to the docs

9 months agowe're not smurfs. Module module module module is annoying
Alan T. DeKok [Mon, 11 Nov 2024 11:22:45 +0000 (06:22 -0500)] 
we're not smurfs.  Module module module module is annoying

9 months agoDon't return on `notfound` module codes in accounting
Nick Porter [Mon, 11 Nov 2024 12:32:18 +0000 (12:32 +0000)] 
Don't return on `notfound` module codes in accounting

It's perfectly valid to return `notfound` when looking up a user in
accounting, and still carry on processing.

9 months agoadd support for encode / decode of time_delta
Alan T. DeKok [Sun, 10 Nov 2024 21:55:39 +0000 (16:55 -0500)] 
add support for encode / decode of time_delta

9 months agohandle raw / unknown attributes
Alan T. DeKok [Sun, 10 Nov 2024 15:30:38 +0000 (10:30 -0500)] 
handle raw / unknown attributes

with a "todo" to discover the actual type

9 months agoclean up to quit static analyzer
Alan T. DeKok [Sun, 10 Nov 2024 14:29:43 +0000 (09:29 -0500)] 
clean up to quit static analyzer

9 months agoinitialize output to shut up clang scan
Alan T. DeKok [Sun, 10 Nov 2024 14:28:29 +0000 (09:28 -0500)] 
initialize output to shut up clang scan

it doesn't see that the memcpy() call either initialized the
output, or fails.  So just poke it to quiet the analyzer.

However, we don't want to do this in a normal build.

9 months agoinstall libfreeradius-cbor
Alan T. DeKok [Sun, 10 Nov 2024 14:00:31 +0000 (09:00 -0500)] 
install libfreeradius-cbor

9 months agoadd enumv to value box decode
Alan T. DeKok [Sun, 10 Nov 2024 13:34:55 +0000 (08:34 -0500)] 
add enumv to value box decode

9 months agoshut up static analyzer
Alan T. DeKok [Sun, 10 Nov 2024 13:07:24 +0000 (08:07 -0500)] 
shut up static analyzer

9 months agocopy before assigning to value-box
Alan T. DeKok [Sat, 9 Nov 2024 17:56:17 +0000 (12:56 -0500)] 
copy before assigning to value-box

9 months agomore stupid format arg fixes
Alan T. DeKok [Sat, 9 Nov 2024 17:26:42 +0000 (12:26 -0500)] 
more stupid format arg fixes

9 months agoencode / decode data type 'group'
Alan T. DeKok [Sat, 9 Nov 2024 16:51:42 +0000 (11:51 -0500)] 
encode / decode data type 'group'

9 months agoadd %cbor.encode(), %cbor.decode(), and associated tests
Alan T. DeKok [Sat, 9 Nov 2024 16:45:21 +0000 (11:45 -0500)] 
add %cbor.encode(), %cbor.decode(), and associated tests

9 months agoadd decoding of ethernet, IPv4, IPv6, etc.
Alan T. DeKok [Sat, 9 Nov 2024 14:00:20 +0000 (14:00 +0000)] 
add decoding of ethernet, IPv4, IPv6, etc.

9 months agostupid local compiler
Alan T. DeKok [Fri, 8 Nov 2024 16:28:45 +0000 (16:28 +0000)] 
stupid local compiler

9 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

9 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

9 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

9 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

9 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()

9 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

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

9 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

9 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

9 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

9 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

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

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

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

9 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

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

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

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

9 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

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

9 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

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

9 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

9 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

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

9 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

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

9 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