]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
14 months agoport from v3.2.x
Alan T. DeKok [Fri, 15 Nov 2024 14:26:10 +0000 (09:26 -0500)] 
port from v3.2.x

14 months agouse correct value. Fixes #5461
Alan T. DeKok [Fri, 15 Nov 2024 14:21:34 +0000 (09:21 -0500)] 
use correct value.  Fixes #5461

14 months agoupdate fr_bio_fd_connect()
Alan T. DeKok [Thu, 14 Nov 2024 18:46:07 +0000 (13:46 -0500)] 
update fr_bio_fd_connect()

so that it takes and uses callbacks for connections and timeouts.

14 months agoadd descriptions of structural types
Alan T. DeKok [Thu, 14 Nov 2024 21:02:38 +0000 (16:02 -0500)] 
add descriptions of structural types

14 months agoAdd notes on %ldap.group() xlat
Nick Porter [Thu, 14 Nov 2024 11:53:02 +0000 (11:53 +0000)] 
Add notes on %ldap.group() xlat

14 months agoTypos
Nick Porter [Thu, 14 Nov 2024 11:50:27 +0000 (11:50 +0000)] 
Typos

14 months agoOpenSSL 3.4 deprecates SSL_SESSION_get_time
Nick Porter [Wed, 13 Nov 2024 21:33:07 +0000 (21:33 +0000)] 
OpenSSL 3.4 deprecates SSL_SESSION_get_time

14 months agoWe only build against OpenSSL v3.x now
Nick Porter [Wed, 13 Nov 2024 20:56:10 +0000 (20:56 +0000)] 
We only build against OpenSSL v3.x now

14 months agocheck return code
Alan T. DeKok [Wed, 13 Nov 2024 21:17:32 +0000 (16:17 -0500)] 
check return code

14 months agocheck return code
Alan T. DeKok [Wed, 13 Nov 2024 21:03:48 +0000 (16:03 -0500)] 
check return code

14 months agoall for all data types
Alan T. DeKok [Wed, 13 Nov 2024 21:03:26 +0000 (16:03 -0500)] 
all for all data types

14 months agodelete attributes which are no longer necessary
Alan T. DeKok [Wed, 13 Nov 2024 17:59:01 +0000 (12:59 -0500)] 
delete attributes which are no longer necessary

14 months agoRe-enable EAP-PEAP tests
Nick Porter [Wed, 13 Nov 2024 14:52:33 +0000 (14:52 +0000)] 
Re-enable EAP-PEAP tests

14 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

14 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

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

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

14 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

14 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

14 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

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

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

14 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

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

14 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

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

14 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

14 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

14 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

14 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

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

14 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

14 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

14 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

14 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

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

14 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

14 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

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

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

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

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

14 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

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

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

14 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"

14 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

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

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

14 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

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

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

14 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

14 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

14 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

14 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)

14 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

14 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

14 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

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

14 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

14 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

14 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

14 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

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

14 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"

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

14 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

14 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

14 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

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

14 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

14 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

14 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

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

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

14 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

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

14 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

14 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

14 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'

14 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

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

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

14 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

14 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

14 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

14 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

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

14 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

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

14 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

14 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

14 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

14 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

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

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

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

14 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

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