]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
15 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
github-actions[bot] [Thu, 6 Jun 2024 09:34:31 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar

15 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Thu, 6 Jun 2024 09:34:28 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar

15 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Thu, 6 Jun 2024 09:34:26 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar

15 months agoIf it's unused... remove it...
Arran Cudbard-Bell [Thu, 6 Jun 2024 00:02:44 +0000 (20:02 -0400)] 
If it's unused... remove it...

15 months agoGet the dictionary direct from the virtual server
Arran Cudbard-Bell [Wed, 5 Jun 2024 20:18:04 +0000 (16:18 -0400)] 
Get the dictionary direct from the virtual server

15 months agoCentOS Stream 8 is EoL
Nick Porter [Wed, 5 Jun 2024 07:39:36 +0000 (08:39 +0100)] 
CentOS Stream 8 is EoL

15 months agoBuild warning fix
Jiayu Hu [Mon, 3 Jun 2024 18:06:12 +0000 (14:06 -0400)] 
Build warning fix

15 months agoresolved missing previous extern declaration for fr_table_num_sorted_t by declaring...
ethan-thompson [Mon, 3 Jun 2024 18:54:13 +0000 (14:54 -0400)] 
resolved missing previous extern declaration for fr_table_num_sorted_t by declaring it as static

15 months agowe now need the async version of the MySQL APIs
Alan T. DeKok [Mon, 3 Jun 2024 17:46:36 +0000 (13:46 -0400)] 
we now need the async version of the MySQL APIs

15 months agoadd missing CR
Alan T. DeKok [Mon, 3 Jun 2024 17:28:58 +0000 (13:28 -0400)] 
add missing CR

15 months agomore OSX bootstrapping
Alan T. DeKok [Mon, 3 Jun 2024 17:24:02 +0000 (13:24 -0400)] 
more OSX bootstrapping

15 months agorearrange to put reference docs at the start
Alan T. DeKok [Mon, 3 Jun 2024 15:37:40 +0000 (11:37 -0400)] 
rearrange to put reference docs at the start

and add some text in the main reference page

15 months agoremove unused assigmnet
Alan T. DeKok [Mon, 3 Jun 2024 12:54:49 +0000 (08:54 -0400)] 
remove unused assigmnet

15 months agocleanups and corner cases for retry code
Alan T. DeKok [Fri, 31 May 2024 15:42:50 +0000 (11:42 -0400)] 
cleanups and corner cases for retry code

rename timer_tree to next_retry_tree

add a call to blocked / resume when we run out of free entries

15 months agoregenerate from source
Alan T. DeKok [Fri, 31 May 2024 12:06:34 +0000 (08:06 -0400)] 
regenerate from source

15 months agoupdate docs on "suppress_secrets"
Alan T. DeKok [Fri, 31 May 2024 11:54:21 +0000 (07:54 -0400)] 
update docs on "suppress_secrets"

15 months agomore tests and notes on what we want to do
Alan T. DeKok [Tue, 28 May 2024 12:23:52 +0000 (08:23 -0400)] 
more tests and notes on what we want to do

15 months agoglue in activation routines
Alan T. DeKok [Sat, 25 May 2024 19:11:06 +0000 (15:11 -0400)] 
glue in activation routines

15 months agoactivate returns a value
Alan T. DeKok [Sat, 25 May 2024 18:36:14 +0000 (14:36 -0400)] 
activate returns a value

15 months agoremove unused function
Alan T. DeKok [Sat, 25 May 2024 18:31:37 +0000 (14:31 -0400)] 
remove unused function

15 months agoclean up callbacks
Alan T. DeKok [Sat, 25 May 2024 18:26:04 +0000 (14:26 -0400)] 
clean up callbacks

and "set cb" functions can't error, so they return void

15 months agoswitch to using the expiry tree when writes are blocked
Alan T. DeKok [Fri, 24 May 2024 17:04:06 +0000 (13:04 -0400)] 
switch to using the expiry tree when writes are blocked

which lets us expire items in the tree while we're waiting for the
socket to become writable

15 months agorename for clarity
Alan T. DeKok [Fri, 24 May 2024 17:03:45 +0000 (13:03 -0400)] 
rename for clarity

15 months agoglue in expiry tree
Alan T. DeKok [Fri, 24 May 2024 16:51:14 +0000 (12:51 -0400)] 
glue in expiry tree

15 months agoclarifications
Alan T. DeKok [Fri, 24 May 2024 14:27:26 +0000 (10:27 -0400)] 
clarifications

and glue in write blocked / resume

15 months agoadd "end" to retry structure
Alan T. DeKok [Fri, 24 May 2024 14:26:24 +0000 (10:26 -0400)] 
add "end" to retry structure

so that we know when the timers will end.

for MDR==0, we forcibly set "end" to one day.  There are very,
very, few reasons for anything to be operating for that long.

15 months agomultiple time deltas by numbers
Alan T. DeKok [Fri, 24 May 2024 12:59:33 +0000 (08:59 -0400)] 
multiple time deltas by numbers

it doesn't make much sense to multiple two time deltas together.

15 months agocatch divide by zero at run time
Alan T. DeKok [Fri, 24 May 2024 12:53:27 +0000 (08:53 -0400)] 
catch divide by zero at run time

15 months agorename in preparation for adding timer tree
Alan T. DeKok [Fri, 24 May 2024 12:32:23 +0000 (08:32 -0400)] 
rename in preparation for adding timer tree

15 months agoplumb in more write blocked / resume
Alan T. DeKok [Fri, 24 May 2024 11:50:08 +0000 (07:50 -0400)] 
plumb in more write blocked / resume

the functions now return values, so that the BIOs can return
errors on failed write blocked / resume.

Added blocked / resume calls to mem and retry BIOs.

Call those from the RADIUS client code

15 months agoclarifications
Alan T. DeKok [Thu, 23 May 2024 22:54:38 +0000 (18:54 -0400)] 
clarifications

15 months agorename function for clarity
Alan T. DeKok [Thu, 23 May 2024 17:10:08 +0000 (13:10 -0400)] 
rename function for clarity

15 months agopreliminary support for reserved items
Alan T. DeKok [Thu, 23 May 2024 16:25:19 +0000 (12:25 -0400)] 
preliminary support for reserved items

in order to implement application-layer watchdog packets

15 months agoif retries are 1, timeout is IRT, not MRD
Alan T. DeKok [Thu, 23 May 2024 11:46:04 +0000 (07:46 -0400)] 
if retries are 1, timeout is IRT, not MRD

15 months agomove to struct initialization
Alan T. DeKok [Thu, 23 May 2024 11:45:43 +0000 (07:45 -0400)] 
move to struct initialization

to ensure that all fields are initialized

15 months agoAdd missing quotes
Tim van Dijen [Tue, 28 May 2024 14:51:31 +0000 (16:51 +0200)] 
Add missing quotes

15 months agoAdd str.printable to check if a string only consists of printable i.e. non-whitespace...
Arran Cudbard-Bell [Mon, 27 May 2024 23:23:24 +0000 (19:23 -0400)] 
Add str.printable to check if a string only consists of printable i.e. non-whitespace, non-control chars, and valid utf8 sequences

15 months agoReduce iterations
Arran Cudbard-Bell [Mon, 27 May 2024 21:35:55 +0000 (17:35 -0400)] 
Reduce iterations

15 months agoAdd str.uf8 validation function
Arran Cudbard-Bell [Mon, 27 May 2024 15:35:06 +0000 (11:35 -0400)] 
Add str.uf8 validation function

15 months agoSort module methods to ensure a consistent order
Arran Cudbard-Bell [Mon, 27 May 2024 03:38:35 +0000 (23:38 -0400)] 
Sort module methods to ensure a consistent order

15 months agoReference count dl modules from 1
Arran Cudbard-Bell [Mon, 27 May 2024 03:04:11 +0000 (23:04 -0400)] 
Reference count dl modules from 1

15 months agoDefine a common section name struct, and use pointers to those structs
Arran Cudbard-Bell [Sun, 26 May 2024 03:07:38 +0000 (23:07 -0400)] 
Define a common section name struct, and use pointers to those structs

Will allow slightly faster comparisons in some cases, and allow common module method names to be defined

15 months agoFix include
Arran Cudbard-Bell [Sun, 26 May 2024 01:43:58 +0000 (21:43 -0400)] 
Fix include

15 months agoNeed syserror in dependency.c
Arran Cudbard-Bell [Sat, 25 May 2024 11:57:41 +0000 (07:57 -0400)] 
Need syserror in dependency.c

15 months agoBase more operations around virtual_server_t
Arran Cudbard-Bell [Sat, 25 May 2024 03:06:25 +0000 (23:06 -0400)] 
Base more operations around virtual_server_t

15 months agoRegister sections to compile against individual virtual_server_t structs
Arran Cudbard-Bell [Sat, 25 May 2024 02:19:27 +0000 (22:19 -0400)] 
Register sections to compile against individual virtual_server_t structs

15 months agoRename cf_debug to cf_item_debug
Arran Cudbard-Bell [Sat, 25 May 2024 02:03:50 +0000 (22:03 -0400)] 
Rename cf_debug to cf_item_debug

15 months agoRemove server/base.h from some source files
Arran Cudbard-Bell [Sat, 25 May 2024 02:03:13 +0000 (22:03 -0400)] 
Remove server/base.h from some source files

15 months agoFixup parent search functions to take CONF_ITEMs not just CONF_SECTIONs
Arran Cudbard-Bell [Fri, 24 May 2024 22:51:42 +0000 (18:51 -0400)] 
Fixup parent search functions to take CONF_ITEMs not just CONF_SECTIONs

15 months agoRemove the last of the XLAT_MONO code
Arran Cudbard-Bell [Fri, 24 May 2024 16:13:22 +0000 (12:13 -0400)] 
Remove the last of the XLAT_MONO code

Looks like this enables some purification that wasn't happening previously.  The parts of tests removed were either useless, or the tests were incorrect.

15 months agoReinstate default begin and commit queries
Nick Porter [Fri, 24 May 2024 10:56:44 +0000 (11:56 +0100)] 
Reinstate default begin and commit queries

15 months agoMark src dirctory safe for crossbuild
Nick Porter [Fri, 24 May 2024 10:19:08 +0000 (11:19 +0100)] 
Mark src dirctory safe for crossbuild

15 months agoWhen ldap sync callback returns < 0, avoid path that frees msg
Nick Porter [Thu, 23 May 2024 17:17:23 +0000 (18:17 +0100)] 
When ldap sync callback returns < 0, avoid path that frees msg

The callback has already freed the msg

15 months agoGive different response when cookie is being ignored
Nick Porter [Thu, 23 May 2024 17:14:28 +0000 (18:14 +0100)] 
Give different response when cookie is being ignored

So we don't also give the "Missing cookie" error

15 months agoimplement callback for "no reply to sent packet"
Alan T. DeKok [Thu, 23 May 2024 02:03:11 +0000 (22:03 -0400)] 
implement callback for "no reply to sent packet"

along with various other cleanups to make it work better.

15 months agoadd retry && release callbacks for packet bio
Alan T. DeKok [Wed, 22 May 2024 18:50:31 +0000 (14:50 -0400)] 
add retry && release callbacks for packet bio

so that the application can do something (e.g. print stuff)
on retry.  And then clean up the packet on release.

It's partially glued into radclint-ng, via the simple expedient
of having an assert() on release.  Later code will add actual
cleanups

15 months agotypos and minor fixes
Alan T. DeKok [Wed, 22 May 2024 17:41:31 +0000 (13:41 -0400)] 
typos and minor fixes

15 months agoreset timer, and add some assertions
Alan T. DeKok [Wed, 22 May 2024 17:41:08 +0000 (13:41 -0400)] 
reset timer, and add some assertions

15 months agostart of updating Acct-Delay-Time
Alan T. DeKok [Wed, 22 May 2024 17:05:34 +0000 (13:05 -0400)] 
start of updating Acct-Delay-Time

15 months agoexpose the fr_retry_t, and add rewrite_ctx
Alan T. DeKok [Wed, 22 May 2024 14:49:09 +0000 (10:49 -0400)] 
expose the fr_retry_t, and add rewrite_ctx

15 months agoAdd test for 'zero' index in substr
Arran Cudbard-Bell [Wed, 22 May 2024 17:41:45 +0000 (13:41 -0400)] 
Add test for 'zero' index in substr

15 months agotrack sent / replied timers
Alan T. DeKok [Tue, 21 May 2024 19:23:38 +0000 (15:23 -0400)] 
track sent / replied timers

in preparation for adding application-layer watchdogs

15 months agohandle WOULD_BLOCK on connect()
Alan T. DeKok [Tue, 21 May 2024 18:12:29 +0000 (14:12 -0400)] 
handle WOULD_BLOCK on connect()

15 months agoglue in activate / shutdown to fd bio.
Alan T. DeKok [Mon, 20 May 2024 12:55:25 +0000 (08:55 -0400)] 
glue in activate / shutdown to fd bio.

call activate() when the socket is ready, i.e. when it's
connected.

call shutdown() when the socket is closed, in the destructor.

when fr_bio_shutdown() is called manually, it also mangles the
shutdown callback, so that the fd bio doesn't call it again in
its destructor.

15 months agoadd Proxy-State if requested
Alan T. DeKok [Sun, 19 May 2024 14:40:44 +0000 (10:40 -0400)] 
add Proxy-State if requested

15 months agohoist encode / sign to client bio
Alan T. DeKok [Fri, 17 May 2024 15:48:09 +0000 (11:48 -0400)] 
hoist encode / sign to client bio

which isn't much more code, but allows us to add functionality
from rlm_radius_udp

15 months agoRemove MONO functions for the majority of modules
Arran Cudbard-Bell [Mon, 20 May 2024 21:46:28 +0000 (17:46 -0400)] 
Remove MONO functions for the majority of modules

15 months agoCoverity 1598300 is a false positive. The array IS terminated correctly
Arran Cudbard-Bell [Mon, 20 May 2024 15:59:32 +0000 (11:59 -0400)] 
Coverity 1598300 is a false positive.  The array IS terminated correctly

We should likely just default to not allowing any arguments unless they're explicitly set.

This commit doesn't fix anything, it just removes the call to "xlat_func_mono_set" which we should be moving away from.

15 months agoStupid const
Arran Cudbard-Bell [Sun, 19 May 2024 17:22:57 +0000 (11:22 -0600)] 
Stupid const

15 months agoWords hard
Arran Cudbard-Bell [Sun, 19 May 2024 17:14:48 +0000 (11:14 -0600)] 
Words hard

15 months agoImprove the performance of `if ('rcode')` by doing the string to integer conversion...
Arran Cudbard-Bell [Sun, 19 May 2024 17:10:07 +0000 (11:10 -0600)] 
Improve the performance of `if ('rcode')` by doing the string to integer conversion, once, on startup

This also involves splitting the function into two, one that does the comparison, and one that can return the current rcode.

15 months agoOnly update request->rcode for a few unlang_ops
Arran Cudbard-Bell [Sun, 19 May 2024 01:10:52 +0000 (19:10 -0600)] 
Only update request->rcode for a few unlang_ops

15 months agos/set_rcode/rcode_set/
Arran Cudbard-Bell [Sun, 19 May 2024 01:09:32 +0000 (19:09 -0600)] 
s/set_rcode/rcode_set/

15 months agoRename resume function in call...
Arran Cudbard-Bell [Sun, 19 May 2024 01:08:49 +0000 (19:08 -0600)] 
Rename resume function in call...

15 months agoAdd unpredictable macro
Arran Cudbard-Bell [Sun, 19 May 2024 00:53:47 +0000 (18:53 -0600)] 
Add unpredictable macro

15 months agoQuiet coverity
Arran Cudbard-Bell [Fri, 17 May 2024 20:53:30 +0000 (14:53 -0600)] 
Quiet coverity

15 months agoMake DEBUG3 output less noisy
Nick Porter [Fri, 17 May 2024 17:21:21 +0000 (18:21 +0100)] 
Make DEBUG3 output less noisy

15 months agoDon't crash when we fail thread instantiation
Arran Cudbard-Bell [Fri, 17 May 2024 16:15:44 +0000 (10:15 -0600)] 
Don't crash when we fail thread instantiation

15 months agodefine enough things to shut up compiler
Alan T. DeKok [Fri, 17 May 2024 14:46:18 +0000 (10:46 -0400)] 
define enough things to shut up compiler

15 months agoadd read / write pause / resume debounce functions
Alan T. DeKok [Fri, 17 May 2024 14:27:29 +0000 (10:27 -0400)] 
add read / write pause / resume debounce functions

15 months agoundef const
Alan T. DeKok [Fri, 17 May 2024 14:26:51 +0000 (10:26 -0400)] 
undef const

15 months agoTypo
Arran Cudbard-Bell [Fri, 17 May 2024 14:30:28 +0000 (08:30 -0600)] 
Typo

15 months ago...and actually use the new enum
Arran Cudbard-Bell [Fri, 17 May 2024 14:29:36 +0000 (08:29 -0600)] 
...and actually use the new enum

15 months agoshhh compiler
Arran Cudbard-Bell [Fri, 17 May 2024 14:28:53 +0000 (08:28 -0600)] 
shhh compiler

15 months agoRemove components (MOD_AUTHORIZE, MOD_AUTHENTICATE, etc..) from the server
Arran Cudbard-Bell [Fri, 17 May 2024 00:21:32 +0000 (18:21 -0600)] 
Remove components (MOD_AUTHORIZE, MOD_AUTHENTICATE, etc..) from the server

We rely entirely on named methods now.

This breaks policy lookups, where the policy name is <policy>.<component>.  This needs to be fixed, by looking up <policy>[.<name1>][.<name2>].

15 months agos/name/name1/g
Arran Cudbard-Bell [Thu, 16 May 2024 22:48:01 +0000 (16:48 -0600)] 
s/name/name1/g

15 months agoSome minor tweaks to expose problems in rlm_rest
Arran Cudbard-Bell [Thu, 16 May 2024 22:00:28 +0000 (16:00 -0600)] 
Some minor tweaks to expose problems in rlm_rest

15 months agoPull in the dictionary header in module_method.h
Arran Cudbard-Bell [Thu, 16 May 2024 16:39:57 +0000 (10:39 -0600)] 
Pull in the dictionary header in module_method.h

15 months agoIt's fine to allocate pool data from the module_instance_t
Arran Cudbard-Bell [Thu, 16 May 2024 14:39:31 +0000 (08:39 -0600)] 
It's fine to allocate pool data from the module_instance_t

15 months agotypo
Alan T. DeKok [Thu, 16 May 2024 13:38:31 +0000 (09:38 -0400)] 
typo

15 months agomake cast const-qualified
Alan T. DeKok [Thu, 16 May 2024 13:29:18 +0000 (09:29 -0400)] 
make cast const-qualified

15 months agomove pasue / resume callbacks to client config structure
Alan T. DeKok [Thu, 16 May 2024 13:13:26 +0000 (09:13 -0400)] 
move pasue / resume callbacks to client config structure

15 months agoAllow '.' back in, for now
Arran Cudbard-Bell [Thu, 16 May 2024 05:54:24 +0000 (23:54 -0600)] 
Allow '.' back in, for now

15 months agoTypo
Arran Cudbard-Bell [Thu, 16 May 2024 05:40:59 +0000 (23:40 -0600)] 
Typo

15 months agoAdd allowed chars merge function
Arran Cudbard-Bell [Thu, 16 May 2024 05:18:38 +0000 (23:18 -0600)] 
Add allowed chars merge function

15 months agoMake module instance allowed chars available
Arran Cudbard-Bell [Thu, 16 May 2024 05:18:28 +0000 (23:18 -0600)] 
Make module instance allowed chars available

15 months agoUnconst the module instance
Arran Cudbard-Bell [Thu, 16 May 2024 05:17:56 +0000 (23:17 -0600)] 
Unconst the module instance

15 months agoPass in the module instance to the rlm_mschap connection function
Arran Cudbard-Bell [Wed, 15 May 2024 23:32:20 +0000 (17:32 -0600)] 
Pass in the module instance to the rlm_mschap connection function

15 months agoRestrict the acceptable char set for module names
Arran Cudbard-Bell [Wed, 15 May 2024 23:22:58 +0000 (17:22 -0600)] 
Restrict the acceptable char set for module names

15 months agoRemove more module-list specific lookup functions
Arran Cudbard-Bell [Wed, 15 May 2024 21:50:10 +0000 (15:50 -0600)] 
Remove more module-list specific lookup functions

rlm_sql_ippool and rlm_sql_counter won't work with dynamic modules... but that's OK, because the way they depend on other modules is stupid, and needs to be fixed anyway.