]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
8 months agoSimplify sql_error_t
Nick Porter [Mon, 25 Nov 2024 17:05:53 +0000 (17:05 +0000)] 
Simplify sql_error_t

No driver uses the SQL module config when fetching error messages.

8 months agoRe-work rlm_sql_cassandra to work async and use trunks
Nick Porter [Mon, 25 Nov 2024 15:39:00 +0000 (15:39 +0000)] 
Re-work rlm_sql_cassandra to work async and use trunks

8 months agoOnly re-parent query_ctx if there is a cancel mux function
Nick Porter [Mon, 25 Nov 2024 15:33:30 +0000 (15:33 +0000)] 
Only re-parent query_ctx if there is a cancel mux function

8 months agoRemove reference to ancient deprecated function call
Nick Porter [Mon, 25 Nov 2024 14:56:13 +0000 (14:56 +0000)] 
Remove reference to ancient deprecated function call

8 months agoAdd a uctx to fr_sql_query_t
Nick Porter [Mon, 25 Nov 2024 14:33:58 +0000 (14:33 +0000)] 
Add a uctx to fr_sql_query_t

Allowing additional driver specific data needs to be held against a
query ctx.

8 months agoAdd SQL driver flag to allow mulitple queries per connection
Nick Porter [Mon, 25 Nov 2024 14:32:49 +0000 (14:32 +0000)] 
Add SQL driver flag to allow mulitple queries per connection

Whilst most SQL drivers don't allow this, Cassandra does

8 months agoWS
Nick Porter [Mon, 25 Nov 2024 11:36:32 +0000 (11:36 +0000)] 
WS

8 months agoFree old result before looking for the next
Nick Porter [Sat, 23 Nov 2024 15:01:09 +0000 (15:01 +0000)] 
Free old result before looking for the next

Otherwise, the NO_MORE_ROWS response still has the previous result in
query_ctx->row

8 months agoCreate mutable data for Cassandra module instance
Nick Porter [Sat, 23 Nov 2024 14:46:07 +0000 (14:46 +0000)] 
Create mutable data for Cassandra module instance

Module instance data cannot be modified after instantiation - so the
indicator and mutex for initial connection need to be moved to a mutable
structure.

8 months agomod_instantiate doesn't return RLM_SQL_*
Nick Porter [Sat, 23 Nov 2024 13:45:43 +0000 (13:45 +0000)] 
mod_instantiate doesn't return RLM_SQL_*

8 months agoDon't create tls conf section if it's not in the config
Nick Porter [Sat, 23 Nov 2024 13:08:37 +0000 (13:08 +0000)] 
Don't create tls conf section if it's not in the config

8 months agoRemove libcassandra driver options deprecated over 5 years ago
Nick Porter [Sat, 23 Nov 2024 12:06:22 +0000 (12:06 +0000)] 
Remove libcassandra driver options deprecated over 5 years ago

8 months agopop any log we pushed for a virtual server
Alan T. DeKok [Mon, 25 Nov 2024 14:19:15 +0000 (09:19 -0500)] 
pop any log we pushed for a virtual server

8 months agoquiet clang scan
Alan T. DeKok [Mon, 25 Nov 2024 12:57:54 +0000 (07:57 -0500)] 
quiet clang scan

9 months agonote triple-quoted strings, and word smithing
Alan T. DeKok [Sat, 23 Nov 2024 20:19:10 +0000 (15:19 -0500)] 
note triple-quoted strings, and word smithing

9 months agoadd and document "log = ..." in a virtual server.
Alan T. DeKok [Sat, 23 Nov 2024 17:31:51 +0000 (12:31 -0500)] 
add and document "log = ..." in a virtual server.

so each virtual server can add a diffeent logging destination
for all requests which get processed through it

9 months agodon't mash log->file. Or, set it from the input file
Alan T. DeKok [Sat, 23 Nov 2024 17:25:48 +0000 (12:25 -0500)] 
don't mash log->file.  Or, set it from the input file

9 months agotypo
Alan T. DeKok [Sat, 23 Nov 2024 14:37:27 +0000 (09:37 -0500)] 
typo

9 months agotypo
Alan T. DeKok [Sat, 23 Nov 2024 14:36:09 +0000 (09:36 -0500)] 
typo

9 months agowe don't need these tests any more
Alan T. DeKok [Sat, 23 Nov 2024 14:26:36 +0000 (09:26 -0500)] 
we don't need these tests any more

9 months agoremove back-ticks
Alan T. DeKok [Sat, 23 Nov 2024 14:24:26 +0000 (09:24 -0500)] 
remove back-ticks

9 months agomacro to return better errors
Alan T. DeKok [Sat, 23 Nov 2024 14:06:40 +0000 (09:06 -0500)] 
macro to return better errors

9 months agouse num_elements() to get more deterministic encoding
Alan T. DeKok [Sat, 23 Nov 2024 13:51:08 +0000 (08:51 -0500)] 
use num_elements() to get more deterministic encoding

9 months agoit helps to set "triple"
Alan T. DeKok [Fri, 22 Nov 2024 20:55:11 +0000 (15:55 -0500)] 
it helps to set "triple"

9 months agoUpdate sample Oracle driver config
Nick Porter [Fri, 22 Nov 2024 15:18:25 +0000 (15:18 +0000)] 
Update sample Oracle driver config

9 months agoRe-work rlm_sql_oracle to work async with trunks
Nick Porter [Fri, 22 Nov 2024 15:17:35 +0000 (15:17 +0000)] 
Re-work rlm_sql_oracle to work async with trunks

9 months agoParse SQL trunk config before instantiating the driver
Nick Porter [Tue, 19 Nov 2024 17:25:21 +0000 (17:25 +0000)] 
Parse SQL trunk config before instantiating the driver

So the driver can use the parsed options

9 months agoparse triple-quoted strings in expressions
Alan T. DeKok [Fri, 22 Nov 2024 19:17:42 +0000 (14:17 -0500)] 
parse triple-quoted strings in expressions

9 months agoadd terminals and parse rules for triple-quoted strings
Alan T. DeKok [Fri, 22 Nov 2024 19:13:43 +0000 (14:13 -0500)] 
add terminals and parse rules for triple-quoted strings

9 months agoadd missing file
Alan T. DeKok [Fri, 22 Nov 2024 15:44:03 +0000 (10:44 -0500)] 
add missing file

9 months agoadd and document support for tripled-quoted strings
Alan T. DeKok [Fri, 22 Nov 2024 15:38:33 +0000 (10:38 -0500)] 
add and document support for tripled-quoted strings

secret = """foo " bar " baz ! """

9 months agoMove sample certificate checking policy
Nick Porter [Fri, 22 Nov 2024 08:47:27 +0000 (08:47 +0000)] 
Move sample certificate checking policy

The virtual server referenced in mods-available/eap is now "tls-cache",
with certificate verification done in the "verify certificate" section
rather than through the "check-eap-tls" virtual server.

The old sample code gives useful hints as to what could be done in this
section and why.

9 months agoUse v4 section names
Nick Porter [Fri, 22 Nov 2024 08:19:54 +0000 (08:19 +0000)] 
Use v4 section names

9 months agobetter error messages
Alan T. DeKok [Thu, 21 Nov 2024 18:54:55 +0000 (13:54 -0500)] 
better error messages

If I run into a problem because of a typo, and the error message
isn't clear enough to me, then it should be clarified for others, too

9 months agoadd and document aliases which make MS-CHAP easier to configure
Alan T. DeKok [Thu, 21 Nov 2024 18:49:59 +0000 (13:49 -0500)] 
add and document aliases which make MS-CHAP easier to configure

9 months agorefresh after changes
Alan T. DeKok [Thu, 21 Nov 2024 18:47:13 +0000 (13:47 -0500)] 
refresh after changes

9 months agoupdate comments and documentation
Alan T. DeKok [Thu, 21 Nov 2024 18:46:08 +0000 (13:46 -0500)] 
update comments and documentation

9 months agocorrect encoding / decode of prefixes
Alan T. DeKok [Thu, 21 Nov 2024 16:16:23 +0000 (11:16 -0500)] 
correct encoding / decode of prefixes

and add tests

9 months agouse correct values for string / octets
Alan T. DeKok [Thu, 21 Nov 2024 16:15:04 +0000 (11:15 -0500)] 
use correct values for string / octets

they were swapped :(

9 months agoensure that shutdowns are called appropriately, and work
Alan T. DeKok [Wed, 20 Nov 2024 20:25:23 +0000 (15:25 -0500)] 
ensure that shutdowns are called appropriately, and work

the BIO which has produced the fatal error calls the shutdown
routine

9 months agoadd and use OOM error
Alan T. DeKok [Wed, 20 Nov 2024 19:59:54 +0000 (14:59 -0500)] 
add and use OOM error

9 months agofirst try at fr_bio_fd_accept()
Alan T. DeKok [Tue, 19 Nov 2024 20:16:47 +0000 (15:16 -0500)] 
first try at fr_bio_fd_accept()

which creates a new BIO from a parent of type LISTEN

9 months agorework the write_blocked() handlers
Alan T. DeKok [Tue, 19 Nov 2024 19:30:26 +0000 (14:30 -0500)] 
rework the write_blocked() handlers

to match the EOF handlers, so I'm more convinced taht they're
correct.

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

9 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

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

9 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

9 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

9 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

9 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

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

9 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

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

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

9 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

9 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

9 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

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

9 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

9 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

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

9 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

9 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

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

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

9 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

9 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

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