]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Nick Porter [Wed, 13 Nov 2024 14:52:33 +0000 (14:52 +0000)]
Re-enable EAP-PEAP tests
Nick Porter [Wed, 13 Nov 2024 14:11:15 +0000 (14:11 +0000)]
Add realm to identity 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
Nick Porter [Wed, 13 Nov 2024 14:33:53 +0000 (14:33 +0000)]
More old irrelevant proxy stuff
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.
Nick Porter [Wed, 13 Nov 2024 14:23:19 +0000 (14:23 +0000)]
Re-work eap_peap_process to work with async subrequest
Nick Porter [Wed, 13 Nov 2024 14:21:51 +0000 (14:21 +0000)]
Not applicable in v4 as proxying is totally changed
Nick Porter [Wed, 13 Nov 2024 11:30:43 +0000 (11:30 +0000)]
Use more consistent name for subrequest
Nick Porter [Wed, 13 Nov 2024 11:27:58 +0000 (11:27 +0000)]
Use new foreach syntax
Nick Porter [Wed, 13 Nov 2024 10:53:20 +0000 (10:53 +0000)]
Remove unused attributes
Nick Porter [Wed, 13 Nov 2024 10:51:18 +0000 (10:51 +0000)]
Restructure PEAP mod_handshake_resume for async subrequest
Nick Porter [Wed, 13 Nov 2024 10:18:23 +0000 (10:18 +0000)]
Tidy up
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
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.
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
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
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
Alan T. DeKok [Tue, 12 Nov 2024 20:19:17 +0000 (15:19 -0500)]
fixed-size structs can't contain fields of unknown length
Nick Porter [Wed, 13 Nov 2024 09:53:14 +0000 (09:53 +0000)]
Remove unused attributes
Arran Cudbard-Bell [Wed, 13 Nov 2024 01:59:43 +0000 (19:59 -0600)]
Add binding attributes for LDAP clients
Arran Cudbard-Bell [Wed, 13 Nov 2024 00:33:03 +0000 (18:33 -0600)]
Fix infinite loop when searching for a client
Arran Cudbard-Bell [Tue, 12 Nov 2024 20:25:29 +0000 (14:25 -0600)]
This dictionary is meant to be consumed by Pyrad
Arran Cudbard-Bell [Tue, 12 Nov 2024 15:51:29 +0000 (09:51 -0600)]
Explicitly pre-alloc numbers for defines
Alan T. DeKok [Tue, 12 Nov 2024 18:39:30 +0000 (13:39 -0500)]
use new BIO packet APIs.
Alan T. DeKok [Tue, 12 Nov 2024 18:38:33 +0000 (13:38 -0500)]
define and use write_blocked and write_resume callbacks
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
Alan T. DeKok [Tue, 12 Nov 2024 18:35:35 +0000 (13:35 -0500)]
update comment
Alan T. DeKok [Tue, 12 Nov 2024 18:33:36 +0000 (13:33 -0500)]
add CC_HINT
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.
Alan T. DeKok [Tue, 12 Nov 2024 15:38:13 +0000 (10:38 -0500)]
cbor doesn't have cb_tp_decode_proto()
Alan T. DeKok [Tue, 12 Nov 2024 14:45:12 +0000 (09:45 -0500)]
don't include full pathname
Alan T. DeKok [Tue, 12 Nov 2024 01:29:10 +0000 (20:29 -0500)]
clarify comment
Alan T. DeKok [Tue, 12 Nov 2024 01:00:08 +0000 (20:00 -0500)]
remove unused arguments from tmpl_preparse()
Alan T. DeKok [Tue, 12 Nov 2024 00:22:04 +0000 (19:22 -0500)]
compare "major" to "type", and not "major" to "major"
Alan T. DeKok [Tue, 12 Nov 2024 00:03:28 +0000 (19:03 -0500)]
add cbor corpus, and run the fuzzer tests
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.
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.
Nick Porter [Tue, 12 Nov 2024 09:25:20 +0000 (09:25 +0000)]
Use %sql.fetch() and %sql.modify() in SQL xlat tests
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.
Arran Cudbard-Bell [Mon, 11 Nov 2024 23:17:33 +0000 (17:17 -0600)]
Add finalisation safety checks
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
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
Arran Cudbard-Bell [Mon, 11 Nov 2024 20:12:35 +0000 (14:12 -0600)]
Apply clone fixups immediately if possible
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)
Arran Cudbard-Bell [Mon, 11 Nov 2024 19:26:26 +0000 (13:26 -0600)]
Don't duplicate the enum copying code
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
Alan T. DeKok [Mon, 11 Nov 2024 20:17:12 +0000 (15:17 -0500)]
better errors for double loads
Alan T. DeKok [Mon, 11 Nov 2024 19:08:35 +0000 (14:08 -0500)]
allow deferred siblings
Alan T. DeKok [Mon, 11 Nov 2024 19:03:48 +0000 (14:03 -0500)]
don't push NULL relative attributes
Alan T. DeKok [Mon, 11 Nov 2024 16:08:45 +0000 (11:08 -0500)]
check for zero-length strings and octets
Alan T. DeKok [Mon, 11 Nov 2024 15:32:51 +0000 (10:32 -0500)]
decode and encode unknown (raw), but typed data
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
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.
Alan T. DeKok [Mon, 11 Nov 2024 12:09:57 +0000 (07:09 -0500)]
allow passing type to "unknown from OID string"
Alan T. DeKok [Mon, 11 Nov 2024 11:45:17 +0000 (06:45 -0500)]
unknown / raw pairs can now be typed.
Alan T. DeKok [Mon, 11 Nov 2024 00:37:45 +0000 (19:37 -0500)]
guess the data type of unknown attributes
Alan T. DeKok [Mon, 11 Nov 2024 11:25:27 +0000 (06:25 -0500)]
point more clearly to the docs
Alan T. DeKok [Mon, 11 Nov 2024 11:22:45 +0000 (06:22 -0500)]
we're not smurfs. Module module module module is annoying
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.
Alan T. DeKok [Sun, 10 Nov 2024 21:55:39 +0000 (16:55 -0500)]
add support for encode / decode of time_delta
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
Alan T. DeKok [Sun, 10 Nov 2024 14:29:43 +0000 (09:29 -0500)]
clean up to quit static analyzer
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.
Alan T. DeKok [Sun, 10 Nov 2024 14:00:31 +0000 (09:00 -0500)]
install libfreeradius-cbor
Alan T. DeKok [Sun, 10 Nov 2024 13:34:55 +0000 (08:34 -0500)]
add enumv to value box decode
Alan T. DeKok [Sun, 10 Nov 2024 13:07:24 +0000 (08:07 -0500)]
shut up static analyzer
Alan T. DeKok [Sat, 9 Nov 2024 17:56:17 +0000 (12:56 -0500)]
copy before assigning to value-box
Alan T. DeKok [Sat, 9 Nov 2024 17:26:42 +0000 (12:26 -0500)]
more stupid format arg fixes
Alan T. DeKok [Sat, 9 Nov 2024 16:51:42 +0000 (11:51 -0500)]
encode / decode data type 'group'
Alan T. DeKok [Sat, 9 Nov 2024 16:45:21 +0000 (11:45 -0500)]
add %cbor.encode(), %cbor.decode(), and associated tests
Alan T. DeKok [Sat, 9 Nov 2024 14:00:20 +0000 (14:00 +0000)]
add decoding of ethernet, IPv4, IPv6, etc.
Alan T. DeKok [Fri, 8 Nov 2024 16:28:45 +0000 (16:28 +0000)]
stupid local compiler
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
Alan T. DeKok [Fri, 8 Nov 2024 16:21:09 +0000 (16:21 +0000)]
add cbor encoder and decoder
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
Arran Cudbard-Bell [Sun, 10 Nov 2024 14:01:53 +0000 (08:01 -0600)]
Allow multiple different auto-merge behaviours
Arran Cudbard-Bell [Sat, 9 Nov 2024 23:13:11 +0000 (17:13 -0600)]
Remove taint support from regexes, and add regex.safe()
Arran Cudbard-Bell [Sat, 9 Nov 2024 22:13:12 +0000 (16:13 -0600)]
Fix "too many args" error
Arran Cudbard-Bell [Sat, 9 Nov 2024 22:02:19 +0000 (16:02 -0600)]
Report push failures
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
Arran Cudbard-Bell [Sat, 9 Nov 2024 17:47:27 +0000 (11:47 -0600)]
Attempt to get auto-rebase and merge working again
Arran Cudbard-Bell [Sat, 9 Nov 2024 14:58:02 +0000 (08:58 -0600)]
Fix custom values for dynamic clients
Arran Cudbard-Bell [Sat, 9 Nov 2024 14:57:36 +0000 (08:57 -0600)]
Output test ports from the openresty-setup script
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...
Arran Cudbard-Bell [Sat, 9 Nov 2024 14:57:17 +0000 (08:57 -0600)]
Advance arg in the xlat argument tokenizer...
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.
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
Alan T. DeKok [Thu, 7 Nov 2024 13:07:16 +0000 (13:07 +0000)]
unused is used
Alan T. DeKok [Thu, 7 Nov 2024 12:58:09 +0000 (12:58 +0000)]
doxygen fixes
Nick Porter [Wed, 6 Nov 2024 07:50:17 +0000 (07:50 +0000)]
Pacify Coverity (CID #
1634478 )
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
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.
Nick Porter [Tue, 5 Nov 2024 15:46:25 +0000 (15:46 +0000)]
Update warnings to reflect v4 process section names
Nick Porter [Tue, 5 Nov 2024 14:55:47 +0000 (14:55 +0000)]
Typo
Nick Porter [Tue, 5 Nov 2024 13:20:31 +0000 (13:20 +0000)]
Remove references to old style proxy in tests
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
Nick Porter [Fri, 1 Nov 2024 15:40:16 +0000 (15:40 +0000)]
Enable 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
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.
Nick Porter [Fri, 1 Nov 2024 14:50:33 +0000 (14:50 +0000)]
Copy certificate pairs to verify certificate virtual server