]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
8 months agoUpdate sample mschap config to reflect slab parameters
Nick Porter [Tue, 3 Dec 2024 11:11:42 +0000 (11:11 +0000)] 
Update sample mschap config to reflect slab parameters

8 months agoSwitch mschap from fr_pool_t to slab allocation for conneciton ctx
Nick Porter [Tue, 3 Dec 2024 11:11:09 +0000 (11:11 +0000)] 
Switch mschap from fr_pool_t to slab allocation for conneciton ctx

8 months agoPass auth_ctx to do_auth_wbclient()
Nick Porter [Tue, 3 Dec 2024 10:52:32 +0000 (10:52 +0000)] 
Pass auth_ctx to do_auth_wbclient()

8 months agoSimplify arguments to do_mschap()
Nick Porter [Tue, 3 Dec 2024 10:37:06 +0000 (10:37 +0000)] 
Simplify arguments to do_mschap()

8 months agoSimplify arguments to mschap_process_v2_response()
Nick Porter [Tue, 3 Dec 2024 10:16:43 +0000 (10:16 +0000)] 
Simplify arguments to mschap_process_v2_response()

8 months agoWS
Nick Porter [Tue, 3 Dec 2024 10:13:15 +0000 (10:13 +0000)] 
WS

8 months agoSimplify arguments to mschap_process_response()
Nick Porter [Mon, 2 Dec 2024 18:32:15 +0000 (18:32 +0000)] 
Simplify arguments to mschap_process_response()

8 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Thu, 5 Dec 2024 09:35:31 +0000 (09:35 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar

8 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Thu, 5 Dec 2024 09:35:14 +0000 (09:35 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar

8 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Thu, 5 Dec 2024 09:35:10 +0000 (09:35 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar

8 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
github-actions[bot] [Thu, 5 Dec 2024 09:35:08 +0000 (09:35 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar

8 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar
github-actions[bot] [Thu, 5 Dec 2024 09:35:04 +0000 (09:35 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar

8 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar
github-actions[bot] [Thu, 5 Dec 2024 09:34:55 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar

8 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar
github-actions[bot] [Thu, 5 Dec 2024 09:34:52 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar

8 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
github-actions[bot] [Thu, 5 Dec 2024 09:34:49 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar

8 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Thu, 5 Dec 2024 09:34:46 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar

8 months agoIf rlm_python instantiation fails, free the interpreter
Nick Porter [Wed, 4 Dec 2024 09:29:07 +0000 (09:29 +0000)] 
If rlm_python instantiation fails, free the interpreter

Without this, Py_Finalize() crashes

8 months agoReport progress of loading Python funcitons
Nick Porter [Wed, 4 Dec 2024 09:26:15 +0000 (09:26 +0000)] 
Report progress of loading Python funcitons

8 months agoSwitch linking test function for rlm_python
Nick Porter [Wed, 4 Dec 2024 08:33:52 +0000 (08:33 +0000)] 
Switch linking test function for rlm_python

Py_SetProgramName() is deprecated in Python 3.11 - causing the test to
fail.

8 months agoadd FR_CONF_OFFSET_REF()
Alan T. DeKok [Wed, 4 Dec 2024 01:08:39 +0000 (20:08 -0500)] 
add FR_CONF_OFFSET_REF()

which allows you to reference another conf_parser_t, without
requiring an intermediary CONF_SECTION

8 months agomove rule parsing to its own function
Alan T. DeKok [Wed, 4 Dec 2024 00:18:09 +0000 (19:18 -0500)] 
move rule parsing to its own function

in preparation for the next bit of functionality

8 months agorearrange configuration into subsections
Alan T. DeKok [Tue, 3 Dec 2024 19:30:48 +0000 (14:30 -0500)] 
rearrange configuration into subsections

8 months agoRemove unused variables
Nick Porter [Tue, 3 Dec 2024 18:32:08 +0000 (18:32 +0000)] 
Remove unused variables

8 months agoNo need for OpenSSL version formatting for versions < 3
Nick Porter [Tue, 3 Dec 2024 18:24:39 +0000 (18:24 +0000)] 
No need for OpenSSL version formatting for versions < 3

FreeRADIUS v4 requires OpenSSL >= 3

8 months agoOpenSSL >= 3.0 has API/ABI compatibility within major version numbers
Nick Porter [Tue, 3 Dec 2024 18:12:57 +0000 (18:12 +0000)] 
OpenSSL >= 3.0 has API/ABI compatibility within major version numbers

So differing minor numbers are not an issue.

8 months agoadd cbor to the fuzzer, and fix a few issues it found
Alan T. DeKok [Mon, 2 Dec 2024 19:30:46 +0000 (14:30 -0500)] 
add cbor to the fuzzer, and fix a few issues it found

8 months agoadd fr_dict_t* to test_ctx parameters
Alan T. DeKok [Mon, 2 Dec 2024 19:11:39 +0000 (14:11 -0500)] 
add fr_dict_t* to test_ctx parameters

which lets CBOR / DER know what protocol they're using

8 months agoATOMIC_VAR_INIT has been removed from C23
Alan T. DeKok [Mon, 2 Dec 2024 16:48:20 +0000 (11:48 -0500)] 
ATOMIC_VAR_INIT has been removed from C23

8 months agoAdd libfreeradius-bio-config.so to RHEL packaging
Nick Porter [Mon, 2 Dec 2024 12:33:40 +0000 (12:33 +0000)] 
Add libfreeradius-bio-config.so to RHEL packaging

8 months agoTypo
Nick Porter [Mon, 2 Dec 2024 12:14:54 +0000 (12:14 +0000)] 
Typo

8 months agoformat string cleanups
Alan T. DeKok [Sat, 30 Nov 2024 21:54:24 +0000 (16:54 -0500)] 
format string cleanups

8 months agoremove extraneous ;
Alan T. DeKok [Sat, 30 Nov 2024 21:30:00 +0000 (16:30 -0500)] 
remove extraneous ;

8 months agotrue and false are in stdbool, we don't need to redefine them
Alan T. DeKok [Sat, 30 Nov 2024 21:50:04 +0000 (16:50 -0500)] 
true and false are in stdbool, we don't need to redefine them

8 months agoC23 defines static_assert
Alan T. DeKok [Sat, 30 Nov 2024 21:34:07 +0000 (16:34 -0500)] 
C23 defines static_assert

8 months agominor tweaks
Alan T. DeKok [Sat, 30 Nov 2024 18:08:19 +0000 (13:08 -0500)] 
minor tweaks

8 months agomove to common functions for parsing permissions
Alan T. DeKok [Sat, 30 Nov 2024 14:44:53 +0000 (09:44 -0500)] 
move to common functions for parsing permissions

and extend the permission parsing code to allow for text-based
permissions

8 months agoparse named permissions, too
Alan T. DeKok [Sat, 30 Nov 2024 14:37:05 +0000 (09:37 -0500)] 
parse named permissions, too

and don't allow world-writeable files

8 months agoadd conf_parser_t for FD BIO
Alan T. DeKok [Fri, 29 Nov 2024 20:17:07 +0000 (15:17 -0500)] 
add conf_parser_t for FD BIO

and put it into a separate library, as some things want the BIOs,
but don't want to pull in all of libfreeradius-server, unlang, etc.

8 months agoAdd fr_perm_mode_from_str()
Alan T. DeKok [Fri, 29 Nov 2024 20:03:46 +0000 (15:03 -0500)] 
Add fr_perm_mode_from_str()

8 months agopermissions are octal, not binary
Alan T. DeKok [Fri, 29 Nov 2024 20:02:55 +0000 (15:02 -0500)] 
permissions are octal, not binary

8 months agoAdd notes about behaviour of control.EAP-Type
Nick Porter [Fri, 29 Nov 2024 15:22:30 +0000 (15:22 +0000)] 
Add notes about behaviour of control.EAP-Type

8 months agoalways allocate track, even when replicating
Alan T. DeKok [Fri, 29 Nov 2024 14:56:55 +0000 (09:56 -0500)] 
always allocate track, even when replicating

8 months agoensure cbor_guess_type() always returns a type
Alan T. DeKok [Fri, 29 Nov 2024 14:21:55 +0000 (09:21 -0500)] 
ensure cbor_guess_type() always returns a type

and push error messages to that function

8 months agoremove replication-specific functions
Alan T. DeKok [Thu, 28 Nov 2024 20:20:52 +0000 (15:20 -0500)] 
remove replication-specific functions

request_mux_replicate() is now just 3 lines in request_mux()

8 months agoremove unused code
Alan T. DeKok [Thu, 28 Nov 2024 18:57:35 +0000 (13:57 -0500)] 
remove unused code

the status checks are handled separately, and not by the main
request_mux() code.

8 months agomove rlm_radius to using the unlang retry functionality
Alan T. DeKok [Thu, 28 Nov 2024 18:50:12 +0000 (13:50 -0500)] 
move rlm_radius to using the unlang retry functionality

8 months agoevents are parented from the "state" in the stack frame
Alan T. DeKok [Thu, 28 Nov 2024 18:39:56 +0000 (13:39 -0500)] 
events are parented from the "state" in the stack frame

so that they are cleaned up when the stack frame exits.

8 months agopush more things to rlm_radius_udp
Alan T. DeKok [Wed, 27 Nov 2024 19:39:25 +0000 (14:39 -0500)] 
push more things to rlm_radius_udp

in preparation for BIO handling

8 months agoPacify Coverity (CID #1634587)
Nick Porter [Fri, 29 Nov 2024 13:39:55 +0000 (13:39 +0000)] 
Pacify Coverity (CID #1634587)

Coverity doesn't see that the fixed arguments aways have variadic set,
so thought the loop would walk beyond the end of the argument list.

8 months agoCorrect comment on free ID range
Nick Porter [Fri, 29 Nov 2024 12:35:19 +0000 (12:35 +0000)] 
Correct comment on free ID range

8 months agoCatch failure returned by cbor_guess_type() (CID #1634805)
Nick Porter [Fri, 29 Nov 2024 12:34:45 +0000 (12:34 +0000)] 
Catch failure returned by cbor_guess_type() (CID #1634805)

8 months agoAdd support for inline BEGIN keyword for protocols
Arran Cudbard-Bell [Fri, 29 Nov 2024 02:01:03 +0000 (20:01 -0600)] 
Add support for inline BEGIN keyword for protocols

8 months agoRename BEGIN-TLV and END-TLV to BEGIN and END, and make them work for TLVs too
Arran Cudbard-Bell [Thu, 28 Nov 2024 23:17:16 +0000 (17:17 -0600)] 
Rename BEGIN-TLV and END-TLV to BEGIN and END, and make them work for TLVs too

8 months agoRework nest values so its a bit field
Arran Cudbard-Bell [Thu, 28 Nov 2024 20:34:17 +0000 (14:34 -0600)] 
Rework nest values so its a bit field

8 months agoFix clang analyzer builds
Arran Cudbard-Bell [Thu, 28 Nov 2024 20:33:00 +0000 (14:33 -0600)] 
Fix clang analyzer builds

8 months agoIntegrate the nesting type when we push frames onto the stack
Arran Cudbard-Bell [Thu, 28 Nov 2024 17:28:21 +0000 (11:28 -0600)] 
Integrate the nesting type when we push frames onto the stack

8 months agoVarious dict_tokenize renames
Arran Cudbard-Bell [Thu, 28 Nov 2024 17:07:22 +0000 (11:07 -0600)] 
Various dict_tokenize renames

8 months agoRun finalise when we're done processing the file also
Arran Cudbard-Bell [Thu, 28 Nov 2024 16:23:21 +0000 (10:23 -0600)] 
Run finalise when we're done processing the file also

8 months agoMove member processing to the keyword dispatch
Arran Cudbard-Bell [Thu, 28 Nov 2024 16:17:03 +0000 (10:17 -0600)] 
Move member processing to the keyword dispatch

8 months agoAlternative method to set fake DB conneciton handle
Nick Porter [Thu, 28 Nov 2024 09:00:06 +0000 (09:00 +0000)] 
Alternative method to set fake DB conneciton handle

May pacify Coverity...

8 months agoBreak out more parsing functions
Arran Cudbard-Bell [Thu, 28 Nov 2024 02:24:08 +0000 (20:24 -0600)] 
Break out more parsing functions

8 months agoStart breaking out keyword parsers in dict_tokenize
Arran Cudbard-Bell [Thu, 28 Nov 2024 02:20:12 +0000 (20:20 -0600)] 
Start breaking out keyword parsers in dict_tokenize

8 months agorest: Add xlat argument for headers
Arran Cudbard-Bell [Thu, 28 Nov 2024 01:07:31 +0000 (19:07 -0600)] 
rest: Add xlat argument for headers

8 months agoHave fr_sbuff_extend_lowat check the eof state of the sbuff. Fixes #5462
Arran Cudbard-Bell [Wed, 27 Nov 2024 23:36:29 +0000 (17:36 -0600)] 
Have fr_sbuff_extend_lowat check the eof state of the sbuff.  Fixes #5462

Don't extend the sbuff in the fr_sbuff_terminal_search function

8 months agoRealign fields
Arran Cudbard-Bell [Wed, 27 Nov 2024 23:10:36 +0000 (17:10 -0600)] 
Realign fields

8 months agoAdd test case from https://github.com/FreeRADIUS/freeradius-server/issues/5462
Arran Cudbard-Bell [Wed, 27 Nov 2024 23:33:35 +0000 (17:33 -0600)] 
Add test case from https://github.com/FreeRADIUS/freeradius-server/issues/5462

8 months agoUse memory safe functions when searching for needles
Arran Cudbard-Bell [Wed, 27 Nov 2024 23:08:37 +0000 (17:08 -0600)] 
Use memory safe functions when searching for needles

Probably slightly higher performance

8 months agopass the current sbuff, not the parent one
Alan T. DeKok [Wed, 27 Nov 2024 16:36:28 +0000 (11:36 -0500)] 
pass the current sbuff, not the parent one

8 months agoreset the input pointer if it changes. Fixex #5462
Alan T. DeKok [Wed, 27 Nov 2024 16:30:29 +0000 (11:30 -0500)] 
reset the input pointer if it changes.  Fixex #5462

There are larger underlying problems, though.  The API to
fr_sbuff_terminal_search() is wrong.  It accepts an input pointer
"p", which points to somewhere in the middle of the sbuff.

As a result, if the sbuff is shifted due to reads, the sbuff->p
pointer changes, and the "cached" p passed to fr_sbuff_terminal_search()
points to somewhere wild.

As a result, most _callers_ of fr_sbuff_terminal_search() are
likely wrong, too, as they cache p = sbuff->p, and don't expect
that pointer to change under them.

8 months agohelper macro for laziness
Alan T. DeKok [Wed, 27 Nov 2024 16:30:13 +0000 (11:30 -0500)] 
helper macro for laziness

8 months agoBuild eap round data if needed
Nick Porter [Wed, 27 Nov 2024 15:34:36 +0000 (15:34 +0000)] 
Build eap round data if needed

If eap is called in `send Access-Reject` and the reject is caused by
something before the eap module is called, then the eap round data has
not been built.

Without this data, the fake eap Failure message can't be correctly
constructed.

8 months agoCorrect freeing of Cassandra results
Nick Porter [Wed, 27 Nov 2024 12:30:06 +0000 (12:30 +0000)] 
Correct freeing of Cassandra results

8 months agoIn-progress eap returns ok or updated
Nick Porter [Wed, 27 Nov 2024 12:03:21 +0000 (12:03 +0000)] 
In-progress eap returns ok or updated

Adjust default policy to reflect that - usually it makes no sense to
call data stores etc part way through eap.

8 months agoFree Cassandra statement after executing
Nick Porter [Wed, 27 Nov 2024 12:01:33 +0000 (12:01 +0000)] 
Free Cassandra statement after executing

8 months agoEnsure arg is initialised
Nick Porter [Wed, 27 Nov 2024 08:47:18 +0000 (08:47 +0000)] 
Ensure arg is initialised

8 months agoDoxygen fix ups
Nick Porter [Wed, 27 Nov 2024 08:47:01 +0000 (08:47 +0000)] 
Doxygen fix ups

8 months agoUpdate sample SQL module config now all drivers use trunks
Nick Porter [Tue, 26 Nov 2024 21:03:03 +0000 (21:03 +0000)] 
Update sample SQL module config now all drivers use trunks

8 months agoRemove pool from SQL instance data
Nick Porter [Tue, 26 Nov 2024 17:44:26 +0000 (17:44 +0000)] 
Remove pool from SQL instance data

8 months agoRemove un-used code
Nick Porter [Tue, 26 Nov 2024 17:42:23 +0000 (17:42 +0000)] 
Remove un-used code

8 months agoRemove rlm_sql_handle_t
Nick Porter [Tue, 26 Nov 2024 17:41:13 +0000 (17:41 +0000)] 
Remove rlm_sql_handle_t

8 months agoRemove legacy query functions
Nick Porter [Tue, 26 Nov 2024 17:35:27 +0000 (17:35 +0000)] 
Remove legacy query functions

8 months agoRemove legacy functions from sql driver data
Nick Porter [Tue, 26 Nov 2024 13:50:07 +0000 (13:50 +0000)] 
Remove legacy functions from sql driver data

8 months agoRemove SQL pool connection function
Nick Porter [Tue, 26 Nov 2024 17:27:56 +0000 (17:27 +0000)] 
Remove SQL pool connection function

8 months agoConvert rlm_sql_null to trunk connections
Nick Porter [Tue, 26 Nov 2024 13:47:15 +0000 (13:47 +0000)] 
Convert rlm_sql_null to trunk connections

8 months agoRemove handle from sql_escape_uctx_t
Nick Porter [Tue, 26 Nov 2024 17:19:00 +0000 (17:19 +0000)] 
Remove handle from sql_escape_uctx_t

8 months agoRemove handle from sqlippool ctxs
Nick Porter [Tue, 26 Nov 2024 13:36:39 +0000 (13:36 +0000)] 
Remove handle from sqlippool ctxs

8 months agoRemove handle from sql_group_xlat_ctx_t
Nick Porter [Tue, 26 Nov 2024 13:32:25 +0000 (13:32 +0000)] 
Remove handle from sql_group_xlat_ctx_t

8 months agoRemove handle from sql_redundant_ctx_t
Nick Porter [Tue, 26 Nov 2024 13:30:59 +0000 (13:30 +0000)] 
Remove handle from sql_redundant_ctx_t

8 months agoRemove handle from sql_autz_ctx_t
Nick Porter [Tue, 26 Nov 2024 17:17:47 +0000 (17:17 +0000)] 
Remove handle from sql_autz_ctx_t

8 months agoRemove handle from fr_sql_query_t
Nick Porter [Tue, 26 Nov 2024 13:25:32 +0000 (13:25 +0000)] 
Remove handle from fr_sql_query_t

8 months agoRemove transitional uses_trunks flag and associated code paths
Nick Porter [Tue, 26 Nov 2024 12:48:47 +0000 (12:48 +0000)] 
Remove transitional uses_trunks flag and associated code paths

All drivers now use trunks

8 months agoRemove defunct EAP policies
Arran Cudbard-Bell [Tue, 26 Nov 2024 15:43:43 +0000 (09:43 -0600)] 
Remove defunct EAP policies

8 months agoUse sqlcli1.h to access connection attribute setting API
Nick Porter [Tue, 26 Nov 2024 12:33:03 +0000 (12:33 +0000)] 
Use sqlcli1.h to access connection attribute setting API

8 months agoRe-work rlm_sql_db2 to use trunks
Nick Porter [Tue, 26 Nov 2024 12:12:59 +0000 (12:12 +0000)] 
Re-work rlm_sql_db2 to use trunks

The client library doesn't support async

8 months agoFix db2 build errors
Nick Porter [Tue, 26 Nov 2024 11:07:49 +0000 (11:07 +0000)] 
Fix db2 build errors

8 months agoencode and decode interface definitions with prefix and scope ID
Alan T. DeKok [Mon, 25 Nov 2024 20:31:32 +0000 (15:31 -0500)] 
encode and decode interface definitions with prefix and scope ID

8 months agoadd test for known vendor and unknown attribute
Alan T. DeKok [Mon, 25 Nov 2024 20:10:09 +0000 (15:10 -0500)] 
add test for known vendor and unknown attribute

8 months agoset prefix for IPs
Alan T. DeKok [Mon, 25 Nov 2024 19:33:18 +0000 (14:33 -0500)] 
set prefix for IPs

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