]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
20 months agoupdate write_blocked() API
Alan T. DeKok [Tue, 19 Nov 2024 19:10:54 +0000 (14:10 -0500)] 
update write_blocked() API

to notify previous BIOs that subsequent ones are blocked.

20 months agothese functions don't need to be public
Alan T. DeKok [Tue, 19 Nov 2024 18:50:25 +0000 (13:50 -0500)] 
these functions don't need to be public

20 months agominor comments
Alan T. DeKok [Tue, 19 Nov 2024 17:50:55 +0000 (12:50 -0500)] 
minor comments

20 months agodon't break out of the loop in all paths
Alan T. DeKok [Tue, 19 Nov 2024 13:22:14 +0000 (08:22 -0500)] 
don't break out of the loop in all paths

we need to continue if the callback says that we can continue

20 months agoAlign Oracle group membership with other DB schemas
Nick Porter [Tue, 19 Nov 2024 09:15:52 +0000 (09:15 +0000)] 
Align Oracle group membership with other DB schemas

20 months agoRemove non-standard tables from Oracle schema
Nick Porter [Tue, 19 Nov 2024 08:17:42 +0000 (08:17 +0000)] 
Remove non-standard tables from Oracle schema

20 months agoAdd missing triggers to Oracle schema
Nick Porter [Tue, 19 Nov 2024 08:15:00 +0000 (08:15 +0000)] 
Add missing triggers to Oracle schema

20 months agoupdate the handling of EOF
Alan T. DeKok [Mon, 18 Nov 2024 18:48:40 +0000 (13:48 -0500)] 
update the handling of EOF

one BIO can tell fr_bio_eof() that it's at EOF.  That function
will take care of calling the various BIO internal EOF functions
until such time as it's at the first BIO.  At which point it will
call the application EOF function.

20 months agoput connect data into its own struct
Alan T. DeKok [Mon, 18 Nov 2024 16:40:25 +0000 (11:40 -0500)] 
put connect data into its own struct

20 months agoremove duplicate section
Alan T. DeKok [Fri, 15 Nov 2024 20:33:52 +0000 (15:33 -0500)] 
remove duplicate section

20 months agoStrip vendor name from attributes
Nick Porter [Fri, 15 Nov 2024 15:38:52 +0000 (15:38 +0000)] 
Strip vendor name from attributes

20 months agoEnsure CONF_SECTION used to create dynamic clients is visible
Nick Porter [Fri, 15 Nov 2024 15:32:00 +0000 (15:32 +0000)] 
Ensure CONF_SECTION used to create dynamic clients is visible

So that %client(<attribute>) works the same for dynamic clients as
static ones

20 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

20 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

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

20 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

20 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

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

20 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

20 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

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

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

20 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

20 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

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

20 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

20 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

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

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

20 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

20 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

20 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

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

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

20 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

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

20 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

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

20 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

20 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

20 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

20 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

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

20 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

20 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

20 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

20 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

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

20 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

20 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

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

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

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

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

20 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

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

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

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

20 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

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

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

20 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

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

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

21 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

21 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

21 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

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

21 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

21 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

21 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

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

21 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

21 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

21 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

21 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

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

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

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

21 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

21 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

21 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

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

21 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

21 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

21 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

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

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

21 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

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

21 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

21 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

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

21 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

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

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

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