]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
2 years agocomment out unused function
Alan T. DeKok [Sat, 30 Mar 2024 22:27:36 +0000 (18:27 -0400)] 
comment out unused function

2 years agoonly build radclient-ng if we're testing the bio code
Alan T. DeKok [Sat, 30 Mar 2024 22:26:27 +0000 (18:26 -0400)] 
only build radclient-ng if we're testing the bio code

2 years agotypo
Alan T. DeKok [Sat, 30 Mar 2024 21:07:45 +0000 (17:07 -0400)] 
typo

2 years agoRADIUS client bio can now send and receive a packet
Alan T. DeKok [Sat, 30 Mar 2024 21:06:39 +0000 (17:06 -0400)] 
RADIUS client bio can now send and receive a packet

if anything happens radclient-ng asserts, but the basic functionality
is now there and tested.

2 years agominor fixes, and allow for logging
Alan T. DeKok [Sat, 30 Mar 2024 21:05:44 +0000 (17:05 -0400)] 
minor fixes, and allow for logging

2 years agominor fixes
Alan T. DeKok [Sat, 30 Mar 2024 20:44:41 +0000 (16:44 -0400)] 
minor fixes

the uctx for the timer is the bio, not the item.

call rewrite() with our bio, not the next one

check that things are initialized

clean up all outstanding timers when there's nothing left to do

2 years agothere can't be a previous bio
Alan T. DeKok [Sat, 30 Mar 2024 20:31:39 +0000 (16:31 -0400)] 
there can't be a previous bio

2 years agouse request_ctx for reply and reply_pairs
Alan T. DeKok [Sat, 30 Mar 2024 19:58:45 +0000 (15:58 -0400)] 
use request_ctx for reply and reply_pairs

we really need a better way to allocate these.  Perhaps the caller
should always just pre-allocate the reply?

2 years agoadd and use outstanding API
Alan T. DeKok [Sat, 30 Mar 2024 19:58:31 +0000 (15:58 -0400)] 
add and use outstanding API

2 years agoadd "cancel packet" API
Alan T. DeKok [Sat, 30 Mar 2024 17:52:58 +0000 (13:52 -0400)] 
add "cancel packet" API

2 years agowe don't need or use a "cancelled" entry
Alan T. DeKok [Sat, 30 Mar 2024 15:42:27 +0000 (11:42 -0400)] 
we don't need or use a "cancelled" entry

2 years agoadd error and set outobund bio to the top-level retry
Alan T. DeKok [Sat, 30 Mar 2024 14:56:58 +0000 (10:56 -0400)] 
add error and set outobund bio to the top-level retry

2 years agoverify needs a read_size
Alan T. DeKok [Sat, 30 Mar 2024 14:56:14 +0000 (10:56 -0400)] 
verify needs a read_size

2 years agoreturn errors
Alan T. DeKok [Sat, 30 Mar 2024 14:55:48 +0000 (10:55 -0400)] 
return errors

2 years agoreturn allocated ptr
Alan T. DeKok [Sat, 30 Mar 2024 14:48:06 +0000 (10:48 -0400)] 
return allocated ptr

2 years agominor tweaks
Alan T. DeKok [Sat, 30 Mar 2024 14:09:49 +0000 (10:09 -0400)] 
minor tweaks

2 years agoupdate format arg
Alan T. DeKok [Sat, 30 Mar 2024 13:51:55 +0000 (09:51 -0400)] 
update format arg

2 years agoUse the same scheme as the other runtime features
Arran Cudbard-Bell [Fri, 29 Mar 2024 23:50:55 +0000 (19:50 -0400)] 
Use the same scheme as the other runtime features

2 years agoIndicate if we were built with gperftools support and whether we're being profiled
Arran Cudbard-Bell [Fri, 29 Mar 2024 23:45:18 +0000 (19:45 -0400)] 
Indicate if we were built with gperftools support and whether we're being profiled

2 years agoAdd MSCHAPv2 to tests
Nick Porter [Fri, 29 Mar 2024 10:21:47 +0000 (10:21 +0000)] 
Add MSCHAPv2 to tests

2 years agoAdd tests of local mschap password change
Nick Porter [Fri, 29 Mar 2024 10:14:37 +0000 (10:14 +0000)] 
Add tests of local mschap password change

2 years agoAlign docs / examples with attribute name in dictionary
Nick Porter [Fri, 29 Mar 2024 08:35:42 +0000 (08:35 +0000)] 
Align docs / examples with attribute name in dictionary

2 years agoUse dummy scripts to test mschap ntlm_auth backend
Nick Porter [Wed, 13 Mar 2024 20:27:19 +0000 (20:27 +0000)] 
Use dummy scripts to test mschap ntlm_auth backend

2 years agoTidy up following false test failure
Nick Porter [Wed, 13 Mar 2024 19:51:46 +0000 (19:51 +0000)] 
Tidy up following false test failure

2 years agoUse call_env to remove xlat_eval from mschap password change
Nick Porter [Wed, 13 Mar 2024 19:50:17 +0000 (19:50 +0000)] 
Use call_env to remove xlat_eval from mschap password change

2 years agoAdd parsing of chap_error to mschap auth call_env
Nick Porter [Wed, 13 Mar 2024 14:49:32 +0000 (14:49 +0000)] 
Add parsing of chap_error to mschap auth call_env

2 years agoUse tmpl to determine attribute containing MS-CHAP-NT-Enc-PW
Nick Porter [Wed, 13 Mar 2024 12:32:23 +0000 (12:32 +0000)] 
Use tmpl to determine attribute containing MS-CHAP-NT-Enc-PW

2 years agoAutomatically append "\n" to string written to child process
Nick Porter [Tue, 12 Mar 2024 17:35:47 +0000 (17:35 +0000)] 
Automatically append "\n" to string written to child process

2 years agoReduce fuzzer timeout as main CI job is finishing first
Nick Porter [Fri, 29 Mar 2024 12:30:12 +0000 (12:30 +0000)] 
Reduce fuzzer timeout as main CI job is finishing first

Lengthy fuzzing is still running as a daily scheduled job

2 years agoReport correct config items in warning message
Nick Porter [Fri, 29 Mar 2024 11:13:30 +0000 (11:13 +0000)] 
Report correct config items in warning message

2 years agosql_set_user is only used in rlm_sql.c
Nick Porter [Fri, 29 Mar 2024 11:12:12 +0000 (11:12 +0000)] 
sql_set_user is only used in rlm_sql.c

And the username option is always NULL - so remove it

2 years agoUpdate %(xlat:) to %xlat() in docs
Nick Porter [Thu, 28 Mar 2024 19:15:16 +0000 (19:15 +0000)] 
Update %(xlat:) to %xlat() in docs

2 years agoUpdate %{xlat:} to %xlat() in comments / docs
Nick Porter [Thu, 28 Mar 2024 17:55:27 +0000 (17:55 +0000)] 
Update %{xlat:} to %xlat() in comments / docs

2 years agoremove typo
Alan T. DeKok [Wed, 27 Mar 2024 12:50:09 +0000 (08:50 -0400)] 
remove typo

2 years ago':' is no longer special in xlats
Alan T. DeKok [Tue, 26 Mar 2024 15:29:47 +0000 (11:29 -0400)] 
':' is no longer special in xlats

2 years agoremove more tmp-*
Alan T. DeKok [Tue, 26 Mar 2024 13:30:08 +0000 (09:30 -0400)] 
remove more tmp-*

2 years agoremove PAIR_ENCODE_SKIPPED. we just return 0 instead.
Alan T. DeKok [Tue, 26 Mar 2024 11:27:32 +0000 (07:27 -0400)] 
remove PAIR_ENCODE_SKIPPED. we just return 0 instead.

PAIR_ENCODE_SKIPPED is redundant with 0.  It's also negative,
which means it's an error.  And therefore any code which wants to
NOT treat it as an error needs to check for it specifically

2 years agonote @todo for Acct-Delay-Time
Alan T. DeKok [Tue, 26 Mar 2024 11:25:18 +0000 (07:25 -0400)] 
note @todo for Acct-Delay-Time

2 years agoremove old-style functions %(foo:bar)
Alan T. DeKok [Tue, 26 Mar 2024 11:15:24 +0000 (07:15 -0400)] 
remove old-style functions %(foo:bar)

2 years agotypo
Alan T. DeKok [Mon, 25 Mar 2024 15:47:42 +0000 (11:47 -0400)] 
typo

2 years agodouble-quote strings
Alan T. DeKok [Mon, 25 Mar 2024 15:24:00 +0000 (11:24 -0400)] 
double-quote strings

2 years agoremove more old-style function calls
Alan T. DeKok [Mon, 25 Mar 2024 14:21:48 +0000 (10:21 -0400)] 
remove more old-style function calls

2 years agoadd test for large ints
Alan T. DeKok [Mon, 25 Mar 2024 14:20:50 +0000 (10:20 -0400)] 
add test for large ints

2 years agomove %(foo:bar) to %foo(bar)
Alan T. DeKok [Mon, 25 Mar 2024 14:11:59 +0000 (10:11 -0400)] 
move %(foo:bar) to %foo(bar)

2 years agotry to link test points at compile time
Alan T. DeKok [Mon, 25 Mar 2024 00:56:30 +0000 (20:56 -0400)] 
try to link test points at compile time

instead of using dlsym(), which seems to confuse the fuzzer
coverage tool.

Also create protocol-specific fuzzer_PROTO.c files, to make it
clear that the fuzzers are different.

2 years agoadd fr_radius_client_bio_connect()
Alan T. DeKok [Tue, 19 Mar 2024 00:40:37 +0000 (10:40 +1000)] 
add fr_radius_client_bio_connect()

which will do TCP (or eventually TLS) connected sockets

2 years agoallow for per-packet rewrite rules
Alan T. DeKok [Sun, 17 Mar 2024 04:40:47 +0000 (14:40 +1000)] 
allow for per-packet rewrite rules

2 years agoRTLD_DEFAULT for Linux
Arran Cudbard-Bell [Fri, 22 Mar 2024 17:01:11 +0000 (13:01 -0400)] 
RTLD_DEFAULT for Linux

2 years agoHave the fuzzer search in its own symbols pace first before dynamically loading the...
Arran Cudbard-Bell [Fri, 22 Mar 2024 16:07:13 +0000 (12:07 -0400)] 
Have the fuzzer search in its own symbols pace first before dynamically loading the protocol library

This allows the binary to be statically or dynamically linked to fuzzing targets, which may help producing accurate coverage stats.

2 years agoCache TTL should return a time delta
Arran Cudbard-Bell [Thu, 21 Mar 2024 20:45:04 +0000 (16:45 -0400)] 
Cache TTL should return a time delta

2 years agoWhitespace
Arran Cudbard-Bell [Thu, 21 Mar 2024 20:36:55 +0000 (16:36 -0400)] 
Whitespace

2 years agoFix ordering?
Arran Cudbard-Bell [Thu, 21 Mar 2024 20:23:36 +0000 (16:23 -0400)] 
Fix ordering?

2 years agoRevert "+= isn't a comparison operator"
Arran Cudbard-Bell [Thu, 21 Mar 2024 19:59:57 +0000 (15:59 -0400)] 
Revert "+= isn't a comparison operator"

This reverts commit 8b5188c1fe179b588ddcab35baad5deb62a9c9e3.

2 years ago+= isn't a comparison operator
Arran Cudbard-Bell [Thu, 21 Mar 2024 19:57:03 +0000 (15:57 -0400)] 
+= isn't a comparison operator

2 years agoAdd missing comparison operators
Arran Cudbard-Bell [Thu, 21 Mar 2024 19:55:27 +0000 (15:55 -0400)] 
Add missing comparison operators

2 years agoFree the cache entry when we're done...
Arran Cudbard-Bell [Thu, 21 Mar 2024 05:35:33 +0000 (01:35 -0400)] 
Free the cache entry when we're done...

2 years agoAdd ttl.get function for cache module
Arran Cudbard-Bell [Thu, 21 Mar 2024 04:24:27 +0000 (00:24 -0400)] 
Add ttl.get function for cache module

2 years agoFix stupidity in xlat registration code
Arran Cudbard-Bell [Thu, 21 Mar 2024 04:24:04 +0000 (00:24 -0400)] 
Fix stupidity in xlat registration code

2 years agoAdd servers to cache_empty_update
Arran Cudbard-Bell [Wed, 20 Mar 2024 17:19:58 +0000 (13:19 -0400)] 
Add servers to cache_empty_update

2 years agoUnremove EAP
Arran Cudbard-Bell [Wed, 20 Mar 2024 17:18:48 +0000 (13:18 -0400)] 
Unremove EAP

2 years agoSupport empty cache sections
Arran Cudbard-Bell [Wed, 20 Mar 2024 17:07:17 +0000 (13:07 -0400)] 
Support empty cache sections

2 years agoAdd distinct store/update methods to rlm_cache
Arran Cudbard-Bell [Wed, 20 Mar 2024 16:35:56 +0000 (12:35 -0400)] 
Add distinct store/update methods to rlm_cache

2 years agoTyoi
Arran Cudbard-Bell [Tue, 19 Mar 2024 18:25:18 +0000 (14:25 -0400)] 
Tyoi

2 years agoProcess load module writes
Arran Cudbard-Bell [Tue, 19 Mar 2024 18:23:09 +0000 (14:23 -0400)] 
Process load module writes

2 years agoFix the default load test config
Arran Cudbard-Bell [Tue, 19 Mar 2024 18:22:50 +0000 (14:22 -0400)] 
Fix the default load test config

2 years agoRevert "Allow command timeout to be set"
Arran Cudbard-Bell [Tue, 19 Mar 2024 14:55:43 +0000 (10:55 -0400)] 
Revert "Allow command timeout to be set"

This only works for async I/O

2 years agoUse explicit truth values for if-skip
Arran Cudbard-Bell [Sun, 17 Mar 2024 01:22:33 +0000 (21:22 -0400)] 
Use explicit truth values for if-skip

2 years agoDocument command_timeout
Arran Cudbard-Bell [Sun, 17 Mar 2024 01:22:18 +0000 (21:22 -0400)] 
Document command_timeout

2 years agoFix some behavioural issues with logical or, and logical and
Arran Cudbard-Bell [Sun, 17 Mar 2024 01:11:15 +0000 (21:11 -0400)] 
Fix some behavioural issues with logical or, and logical and

%{0 || 0) was returning NULL, which is NOT correct (should return 0)

2 years agoQuiet clang scan
Arran Cudbard-Bell [Sat, 16 Mar 2024 20:16:02 +0000 (16:16 -0400)] 
Quiet clang scan

2 years agoAllow command timeout to be set
Arran Cudbard-Bell [Sat, 16 Mar 2024 20:02:16 +0000 (16:02 -0400)] 
Allow command timeout to be set

2 years agoCheck we actually allocated an attribute
Arran Cudbard-Bell [Sat, 16 Mar 2024 00:32:21 +0000 (20:32 -0400)] 
Check we actually allocated an attribute

2 years agoWS
Arran Cudbard-Bell [Sat, 16 Mar 2024 00:15:51 +0000 (20:15 -0400)] 
WS

2 years agoA functional DNS state machine
Arran Cudbard-Bell [Fri, 15 Mar 2024 23:35:13 +0000 (19:35 -0400)] 
A functional DNS state machine

2 years agoMake fr_pair_update_by_da_parent work as intended
Arran Cudbard-Bell [Sat, 16 Mar 2024 00:15:12 +0000 (20:15 -0400)] 
Make fr_pair_update_by_da_parent work as intended

2 years agoHack in pair_append_by_tmpl_parent to make key fields work
Arran Cudbard-Bell [Sat, 16 Mar 2024 00:14:47 +0000 (20:14 -0400)] 
Hack in pair_append_by_tmpl_parent to make key fields work

2 years agoDisable broken check for key attributes
Arran Cudbard-Bell [Sat, 16 Mar 2024 00:13:04 +0000 (20:13 -0400)] 
Disable broken check for key attributes

2 years agoWS
Arran Cudbard-Bell [Fri, 15 Mar 2024 23:34:49 +0000 (19:34 -0400)] 
WS

2 years agoAdd extra CALL macro which allows providing an initial rctx
Arran Cudbard-Bell [Fri, 15 Mar 2024 23:34:27 +0000 (19:34 -0400)] 
Add extra CALL macro which allows providing an initial rctx

2 years agoEOF can terminate barewords too
Arran Cudbard-Bell [Fri, 15 Mar 2024 23:33:51 +0000 (19:33 -0400)] 
EOF can terminate barewords too

2 years agoFix the struct encoder so it doesn't miss fields
Arran Cudbard-Bell [Fri, 15 Mar 2024 22:42:12 +0000 (18:42 -0400)] 
Fix the struct encoder so it doesn't miss fields

2 years agoCopy enum values from Question.Class to Resource-Record class
Arran Cudbard-Bell [Fri, 15 Mar 2024 22:41:37 +0000 (18:41 -0400)] 
Copy enum values from Question.Class to Resource-Record class

2 years agoTypo
Nick Porter [Fri, 15 Mar 2024 08:29:40 +0000 (08:29 +0000)] 
Typo

2 years agoTypos
Arran Cudbard-Bell [Fri, 15 Mar 2024 02:29:40 +0000 (22:29 -0400)] 
Typos

2 years agoPrint useful errors when autoloaders fail
Arran Cudbard-Bell [Fri, 15 Mar 2024 02:10:23 +0000 (22:10 -0400)] 
Print useful errors when autoloaders fail

Not sure when this stopped working...

2 years agoMinor renames
Arran Cudbard-Bell [Thu, 14 Mar 2024 22:53:33 +0000 (18:53 -0400)] 
Minor renames

2 years agoFix names of DNS operations
Arran Cudbard-Bell [Thu, 14 Mar 2024 22:53:05 +0000 (18:53 -0400)] 
Fix names of DNS operations

ff

2 years agomore attempts to get the retry bio working
Alan T. DeKok [Thu, 14 Mar 2024 14:29:41 +0000 (10:29 -0400)] 
more attempts to get the retry bio working

we still have to make radclient-ng use the event loop, and do
a few other cleanups.  Hopefully after that happens, we can start
testing the bios

2 years agoFix typos
Dimitri Papadopoulos [Thu, 14 Mar 2024 12:35:12 +0000 (13:35 +0100)] 
Fix typos

Misspellings found by codespell.

2 years agoReformat DNS attribute names to match every other dictionary in the server
Arran Cudbard-Bell [Wed, 13 Mar 2024 22:01:57 +0000 (16:01 -0600)] 
Reformat DNS attribute names to match every other dictionary in the server

Expand more of the pseudo-acronyms to make it easier for the unintiated.  We can add aliases back in later if we people complain.

2 years agoRemove separate packages for librfreeradius-util and libfreeradius-radius
Arran Cudbard-Bell [Wed, 13 Mar 2024 20:11:46 +0000 (14:11 -0600)] 
Remove separate packages  for librfreeradius-util and libfreeradius-radius

Create freeradius-common that's depended on by utilities and the server

2 years agomore rework to add request_ctx for packet BIOs
Alan T. DeKok [Wed, 13 Mar 2024 21:15:57 +0000 (17:15 -0400)] 
more rework to add request_ctx for packet BIOs

so that we can not only encode a packet + pairs, but also associate
that with a larger request context

2 years agoadd docs for coa test
Alan T. DeKok [Wed, 13 Mar 2024 13:52:27 +0000 (09:52 -0400)] 
add docs for coa test

2 years agorework to make the "receive CoA" functionality behave
Alan T. DeKok [Wed, 13 Mar 2024 12:34:00 +0000 (08:34 -0400)] 
rework to make the "receive CoA" functionality behave

2 years agoit helps to decode the coa packets before looking at attributes in them
Alan T. DeKok [Wed, 13 Mar 2024 02:15:45 +0000 (22:15 -0400)] 
it helps to decode the coa packets before looking at attributes in them

2 years agodelay looking up the CoA filter name until we load the dictionaries
Alan T. DeKok [Wed, 13 Mar 2024 02:08:57 +0000 (22:08 -0400)] 
delay looking up the CoA filter name until we load the dictionaries

2 years agotypo
Alan T. DeKok [Wed, 13 Mar 2024 01:54:48 +0000 (21:54 -0400)] 
typo

2 years agoadd rules to allow the running of only one test
Alan T. DeKok [Wed, 13 Mar 2024 01:35:56 +0000 (21:35 -0400)] 
add rules to allow the running of only one test

2 years agoUse MEM() in more places
Arran Cudbard-Bell [Tue, 12 Mar 2024 23:13:14 +0000 (17:13 -0600)] 
Use MEM() in more places

2 years agoDon't use sendto if ifindex is specified
Arran Cudbard-Bell [Tue, 12 Mar 2024 15:36:42 +0000 (09:36 -0600)] 
Don't use sendto if ifindex is specified