]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
10 months agoCorrect query
Nick Porter [Tue, 8 Oct 2024 17:14:19 +0000 (18:14 +0100)] 
Correct query

10 months agoAllow for PGRES_TUPLES_CHUNK when checking PostgreSQL status codes
Nick Porter [Tue, 8 Oct 2024 15:01:26 +0000 (16:01 +0100)] 
Allow for PGRES_TUPLES_CHUNK when checking PostgreSQL status codes

10 months agoRevert "one more attempt to build the bio for RADIUS"
Alan T. DeKok [Tue, 8 Oct 2024 17:48:07 +0000 (13:48 -0400)] 
Revert "one more attempt to build the bio for RADIUS"

This reverts commit 24240010727d0484755b8be0acc0a712d9a2f07d.

10 months agoone more attempt to build the bio for RADIUS
Alan T. DeKok [Tue, 8 Oct 2024 17:20:59 +0000 (13:20 -0400)] 
one more attempt to build the bio for RADIUS

10 months agowe don't need an intermediate file
Alan T. DeKok [Tue, 8 Oct 2024 15:24:47 +0000 (11:24 -0400)] 
we don't need an intermediate file

10 months agoAnd this return
Nick Porter [Tue, 8 Oct 2024 14:23:14 +0000 (15:23 +0100)] 
And this return

10 months agoRevert "let's always build with BIOs"
Alan T. DeKok [Tue, 8 Oct 2024 14:23:59 +0000 (10:23 -0400)] 
Revert "let's always build with BIOs"

This reverts commit 360c2ecd751854b2f033d00a2fbfe838d54af90d.

10 months agoand this
Alan T. DeKok [Tue, 8 Oct 2024 14:17:00 +0000 (10:17 -0400)] 
and this

10 months agoCorrect return
Nick Porter [Tue, 8 Oct 2024 14:11:30 +0000 (15:11 +0100)] 
Correct return

10 months agoFix up DHCP packet sorting for nested attributes
Nick Porter [Tue, 8 Oct 2024 13:42:55 +0000 (14:42 +0100)] 
Fix up DHCP packet sorting for nested attributes

10 months agoNo need for a trailing zero byte after DHCPv4 end of options
Nick Porter [Mon, 7 Oct 2024 15:56:04 +0000 (16:56 +0100)] 
No need for a trailing zero byte after DHCPv4 end of options

10 months agoMark request as runnable if query fails
Nick Porter [Mon, 7 Oct 2024 13:54:21 +0000 (14:54 +0100)] 
Mark request as runnable if query fails

10 months agoit helps to commit files
Alan T. DeKok [Tue, 8 Oct 2024 14:10:13 +0000 (10:10 -0400)] 
it helps to commit files

10 months agoreturn error
Alan T. DeKok [Tue, 8 Oct 2024 14:04:05 +0000 (10:04 -0400)] 
return error

10 months agolet's always build with BIOs
Alan T. DeKok [Tue, 8 Oct 2024 13:52:30 +0000 (09:52 -0400)] 
let's always build with BIOs

10 months agouse UUIDv4 format for configuration file
Alan T. DeKok [Thu, 3 Oct 2024 15:25:52 +0000 (11:25 -0400)] 
use UUIDv4 format for configuration file

10 months agoadd fr_bio_fd_reopen() API
Alan T. DeKok [Thu, 3 Oct 2024 14:29:52 +0000 (10:29 -0400)] 
add fr_bio_fd_reopen() API

so that we can re-open a file BIO

10 months agoadd provisions for making directories when doing fopen()
Alan T. DeKok [Thu, 3 Oct 2024 14:06:21 +0000 (10:06 -0400)] 
add provisions for making directories when doing fopen()

10 months agoadd function for common case of mkdir
Alan T. DeKok [Thu, 3 Oct 2024 14:02:52 +0000 (10:02 -0400)] 
add function for common case of mkdir

10 months agouse shutdown() on connected sockets
Alan T. DeKok [Thu, 3 Oct 2024 13:27:54 +0000 (09:27 -0400)] 
use shutdown() on connected sockets

10 months agoEnsure query rcode is set if MySQL actions return immediately
Nick Porter [Fri, 4 Oct 2024 16:03:42 +0000 (17:03 +0100)] 
Ensure query rcode is set if MySQL actions return immediately

10 months agoWS
Nick Porter [Fri, 4 Oct 2024 16:01:58 +0000 (17:01 +0100)] 
WS

10 months agoMissing conn->result is not always an error
Nick Porter [Fri, 4 Oct 2024 15:00:54 +0000 (16:00 +0100)] 
Missing conn->result is not always an error

It either indicates no results returned, or an error - depending on the
error code reported by mysql_errno()

10 months agoOnly increment counter if error is populated
Nick Porter [Fri, 4 Oct 2024 14:45:17 +0000 (15:45 +0100)] 
Only increment counter if error is populated

10 months agoCorrect handling of MySQL call to stored proc returning no data
Nick Porter [Fri, 4 Oct 2024 13:16:45 +0000 (14:16 +0100)] 
Correct handling of MySQL call to stored proc returning no data

10 months agoAvoid reporting empty error messages
Nick Porter [Fri, 4 Oct 2024 12:59:54 +0000 (13:59 +0100)] 
Avoid reporting empty error messages

10 months agoTest data actually contains options after padding
Nick Porter [Fri, 4 Oct 2024 10:41:22 +0000 (11:41 +0100)] 
Test data actually contains options after padding

which were not correctly decoded before

10 months agoPadding is correctly handled by fr_dhcpv4_decode_option()
Nick Porter [Fri, 4 Oct 2024 10:11:25 +0000 (11:11 +0100)] 
Padding is correctly handled by fr_dhcpv4_decode_option()

10 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
github-actions[bot] [Fri, 4 Oct 2024 09:35:14 +0000 (09:35 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar

10 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Fri, 4 Oct 2024 09:35:07 +0000 (09:35 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar

10 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Fri, 4 Oct 2024 09:34:52 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar

10 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Fri, 4 Oct 2024 09:34:49 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar

10 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar
github-actions[bot] [Fri, 4 Oct 2024 09:34:43 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar

10 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar
github-actions[bot] [Fri, 4 Oct 2024 09:34:37 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar

10 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar
github-actions[bot] [Fri, 4 Oct 2024 09:34:34 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar

10 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
github-actions[bot] [Fri, 4 Oct 2024 09:34:31 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar

10 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Fri, 4 Oct 2024 09:34:28 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar

10 months agoUse a Python virtual env
Nick Porter [Thu, 3 Oct 2024 18:47:32 +0000 (19:47 +0100)] 
Use a Python virtual env

Ubuntu 24 really doesn't like running pip as root

10 months agoCheck %dhcpv4.decode and encode with VSAs
Nick Porter [Thu, 3 Oct 2024 13:50:53 +0000 (14:50 +0100)] 
Check %dhcpv4.decode and encode with VSAs

10 months agoencode_vsio can be called with the da_stack built
Nick Porter [Thu, 3 Oct 2024 13:32:12 +0000 (14:32 +0100)] 
encode_vsio can be called with the da_stack built

When called from %dhcpv4.encode()

This is almost a revert of d6d160a, but with the option header and
length handled in encode_vsio()

10 months agofr_md5_ctx_free takes a fr_md5_ctx_t **
Nick Porter [Thu, 3 Oct 2024 09:05:35 +0000 (10:05 +0100)] 
fr_md5_ctx_free takes a fr_md5_ctx_t **

10 months agoAdd tests of multiple vendors inside DHCPv4 V-I-Vendor-Specific
Nick Porter [Wed, 2 Oct 2024 16:46:25 +0000 (17:46 +0100)] 
Add tests of multiple vendors inside DHCPv4 V-I-Vendor-Specific

10 months agoCorrect encoding of DHCPv4 vendor specific options
Nick Porter [Wed, 2 Oct 2024 16:12:35 +0000 (17:12 +0100)] 
Correct encoding of DHCPv4 vendor specific options

So that all children of V-I-Vendor-Specific will just create one option
rather than one per vendor.

10 months agoRemove DHCPv4 encoder for flat list VSAs
Nick Porter [Wed, 2 Oct 2024 16:07:12 +0000 (17:07 +0100)] 
Remove DHCPv4 encoder for flat list VSAs

10 months agotrack configuration versions
Alan T. DeKok [Wed, 2 Oct 2024 20:17:26 +0000 (16:17 -0400)] 
track configuration versions

so we can tell if someone mangles the config, and claims otherwise

10 months agolinelog: Add option to fsync on every write
Arran Cudbard-Bell [Tue, 1 Oct 2024 20:34:38 +0000 (22:34 +0200)] 
linelog: Add option to fsync on every write

10 months agoMove decode failure reasons
Arran Cudbard-Bell [Mon, 30 Sep 2024 19:11:45 +0000 (21:11 +0200)] 
Move decode failure reasons

10 months agounit_test_attribute: Allow setting the current attribute root passed to the decoder
Arran Cudbard-Bell [Mon, 30 Sep 2024 16:32:39 +0000 (18:32 +0200)] 
unit_test_attribute: Allow setting the current attribute root passed to the decoder

10 months agoMove dictionary selection to common code
Arran Cudbard-Bell [Fri, 27 Sep 2024 08:16:46 +0000 (10:16 +0200)] 
Move dictionary selection to common code

11 months agoOnly FR_TYPE_STRUCT need sorted children
Nick Porter [Tue, 24 Sep 2024 11:05:50 +0000 (12:05 +0100)] 
Only FR_TYPE_STRUCT need sorted children

11 months agoRe-enable testing of nested attributes from Perl
Nick Porter [Mon, 23 Sep 2024 10:56:55 +0000 (11:56 +0100)] 
Re-enable testing of nested attributes from Perl

11 months agoDecode nested hashes from Perl to nested attributes
Nick Porter [Thu, 19 Sep 2024 18:36:20 +0000 (19:36 +0100)] 
Decode nested hashes from Perl to nested attributes

11 months agoMore testing of nested attribute data in Perl
Nick Porter [Thu, 19 Sep 2024 14:29:43 +0000 (15:29 +0100)] 
More testing of nested attribute data in Perl

11 months agoCheck passing of octet data
Nick Porter [Thu, 19 Sep 2024 14:28:27 +0000 (15:28 +0100)] 
Check passing of octet data

11 months agoCheck multiple instances of an attribute appear as an array
Nick Porter [Thu, 19 Sep 2024 14:27:56 +0000 (15:27 +0100)] 
Check multiple instances of an attribute appear as an array

11 months agoAdd debugging of nested attributes to sample Perl
Nick Porter [Thu, 19 Sep 2024 14:17:54 +0000 (15:17 +0100)] 
Add debugging of nested attributes to sample Perl

11 months agoConvert structural data into Perl hashes
Nick Porter [Thu, 19 Sep 2024 13:32:54 +0000 (14:32 +0100)] 
Convert structural data into Perl hashes

11 months agoMake Perl variable debug output optional
Nick Porter [Thu, 19 Sep 2024 10:57:52 +0000 (11:57 +0100)] 
Make Perl variable debug output optional

In preparation for nested attributes - the nested structure is printed
out at the top level, so no need to print again at each child level.

11 months agoSimplify Perl debug output building
Nick Porter [Thu, 19 Sep 2024 10:34:21 +0000 (11:34 +0100)] 
Simplify Perl debug output building

11 months agoRemove unused argument
Nick Porter [Thu, 19 Sep 2024 10:24:37 +0000 (11:24 +0100)] 
Remove unused argument

11 months agoVerify that list changes aren't copied back
Nick Porter [Thu, 19 Sep 2024 09:29:56 +0000 (10:29 +0100)] 
Verify that list changes aren't copied back

11 months agoBy default don't replace attribute lists after perl module calls
Nick Porter [Thu, 19 Sep 2024 09:20:31 +0000 (10:20 +0100)] 
By default don't replace attribute lists after perl module calls

11 months agoUpdate CI status badge
Nick Porter [Fri, 20 Sep 2024 20:42:59 +0000 (21:42 +0100)] 
Update CI status badge

11 months agoSet correct depth on cloned child attributes
Nick Porter [Fri, 20 Sep 2024 16:03:59 +0000 (17:03 +0100)] 
Set correct depth on cloned child attributes

11 months agoDownload PGP key from inkbridgenetworks.com
Nick Porter [Fri, 20 Sep 2024 13:34:49 +0000 (14:34 +0100)] 
Download PGP key from inkbridgenetworks.com

11 months agoAdd support for Linux SLL2 link type to radsniff
Nick Porter [Fri, 20 Sep 2024 12:47:17 +0000 (13:47 +0100)] 
Add support for Linux SLL2 link type to radsniff

11 months agoclear cursor on non-editable, too
Alan T. DeKok [Thu, 19 Sep 2024 12:22:53 +0000 (08:22 -0400)] 
clear cursor on non-editable, too

11 months agomove to "edit" flag for foreach / edits
Alan T. DeKok [Wed, 18 Sep 2024 16:32:21 +0000 (12:32 -0400)] 
move to "edit" flag for foreach / edits

which does more protection than using immutable, and catches more
cases.

11 months agoallow for structural types to have flags
Alan T. DeKok [Wed, 18 Sep 2024 15:07:02 +0000 (11:07 -0400)] 
allow for structural types to have flags

by doing some sneaky overlaps of data structures.

11 months agofr_pair_delete() returns "int", not prev pair
Alan T. DeKok [Tue, 17 Sep 2024 19:25:27 +0000 (15:25 -0400)] 
fr_pair_delete() returns "int", not prev pair

11 months agouse fr_pair_foreach() instead of manual loop
Alan T. DeKok [Tue, 17 Sep 2024 19:21:50 +0000 (15:21 -0400)] 
use fr_pair_foreach() instead of manual loop

which means we don't care about the return value of fr_pair_delete()

11 months agoCorrect comment
Nick Porter [Thu, 19 Sep 2024 08:31:43 +0000 (09:31 +0100)] 
Correct comment

11 months agoPacify UBSAN
Nick Porter [Tue, 17 Sep 2024 15:53:08 +0000 (16:53 +0100)] 
Pacify UBSAN

11 months agoLookup the correct status code
Nick Porter [Tue, 17 Sep 2024 12:40:45 +0000 (13:40 +0100)] 
Lookup the correct status code

11 months agoConvert rlm_sql_sqlite to use trunk connections
Nick Porter [Fri, 6 Sep 2024 12:43:32 +0000 (13:43 +0100)] 
Convert rlm_sql_sqlite to use trunk connections

11 months agoHandle requeueing of trunk requests on always writeable connections
Nick Porter [Tue, 17 Sep 2024 12:40:13 +0000 (13:40 +0100)] 
Handle requeueing of trunk requests on always writeable connections

11 months agoAllow for expected behaviour of synchronous SQL drivers
Nick Porter [Fri, 6 Sep 2024 12:36:42 +0000 (13:36 +0100)] 
Allow for expected behaviour of synchronous SQL drivers

11 months agoSQL drivers that don't have connection_notify are always writable
Nick Porter [Fri, 6 Sep 2024 12:35:36 +0000 (13:35 +0100)] 
SQL drivers that don't have connection_notify are always writable

11 months agoTidy up sqlite driver
Nick Porter [Thu, 5 Sep 2024 18:38:19 +0000 (19:38 +0100)] 
Tidy up sqlite driver

All the #ifdef function checks were for functions which have been
released at least 13 years ago.

11 months agoSkip to next xlat arg after handling empty group
Nick Porter [Mon, 16 Sep 2024 20:17:16 +0000 (21:17 +0100)] 
Skip to next xlat arg after handling empty group

11 months agoCall correct module
Nick Porter [Mon, 16 Sep 2024 17:21:03 +0000 (18:21 +0100)] 
Call correct module

11 months agoprint quotes around string values
Alan T. DeKok [Mon, 16 Sep 2024 13:05:11 +0000 (09:05 -0400)] 
print quotes around string values

which make the debug output more clear

11 months agoupdate for key data and key name
Alan T. DeKok [Mon, 16 Sep 2024 12:23:44 +0000 (08:23 -0400)] 
update for key data and key name

11 months agofix dcursor counting, and add test-case
Alan T. DeKok [Sun, 15 Sep 2024 16:37:48 +0000 (12:37 -0400)] 
fix dcursor counting, and add test-case

11 months agoremove unnecessary debugging
Alan T. DeKok [Sun, 15 Sep 2024 12:34:22 +0000 (08:34 -0400)] 
remove unnecessary debugging

11 months agoAdd test of enum key for rlm_files
Nick Porter [Mon, 16 Sep 2024 09:07:36 +0000 (10:07 +0100)] 
Add test of enum key for rlm_files

11 months agoAllow use of enums as rlm_files key values
Nick Porter [Mon, 16 Sep 2024 08:54:08 +0000 (09:54 +0100)] 
Allow use of enums as rlm_files key values

11 months agotypo
Alan T. DeKok [Sat, 14 Sep 2024 21:11:44 +0000 (17:11 -0400)] 
typo

11 months agocheck if key exists before updating it
Alan T. DeKok [Sat, 14 Sep 2024 21:00:34 +0000 (17:00 -0400)] 
check if key exists before updating it

11 months agoinitialize variable
Alan T. DeKok [Sat, 14 Sep 2024 12:41:05 +0000 (08:41 -0400)] 
initialize variable

11 months agofixes for numerical key in xlats
Alan T. DeKok [Fri, 13 Sep 2024 23:04:32 +0000 (19:04 -0400)] 
fixes for numerical key in xlats

11 months agoreturn correct value
Alan T. DeKok [Fri, 13 Sep 2024 14:54:35 +0000 (10:54 -0400)] 
return correct value

11 months agotests for assigning via refs
Alan T. DeKok [Fri, 13 Sep 2024 14:38:11 +0000 (10:38 -0400)] 
tests for assigning via refs

and update indentation stuff in edit.c, which apparently wasn't
being fixed correctly for this corner case

11 months agoLHS can be expansions, so allow it
Alan T. DeKok [Fri, 13 Sep 2024 13:54:06 +0000 (09:54 -0400)] 
LHS can be expansions, so allow it

11 months agoparse key variable, create it, and test it
Alan T. DeKok [Fri, 13 Sep 2024 12:55:07 +0000 (08:55 -0400)] 
parse key variable, create it, and test it

string path "foo.bar.baz[0]" for attributes, and a numerical index
for xlat expansions

11 months agoadd tmpl_dcursor_print()
Alan T. DeKok [Fri, 13 Sep 2024 12:44:07 +0000 (08:44 -0400)] 
add tmpl_dcursor_print()

which prints out the path to the current vp

11 months agoadd syntax parsing for key,value in foreach
Alan T. DeKok [Thu, 12 Sep 2024 19:58:39 +0000 (15:58 -0400)] 
add syntax parsing for key,value in foreach

foreach string key, integer value (...)

missing:

* key da / variable is not created
* there's no way to turn a tmpl_dcursor into a string

so we will first need to add a tmpl_dcursor_print() to print
the dcursor

11 months agoargv[argc] is not valid
Alan T. DeKok [Fri, 13 Sep 2024 13:38:42 +0000 (09:38 -0400)] 
argv[argc] is not valid

11 months agoremove '&'
Alan T. DeKok [Thu, 12 Sep 2024 19:52:36 +0000 (15:52 -0400)] 
remove '&'

11 months agorename key -> value
Alan T. DeKok [Thu, 12 Sep 2024 19:08:08 +0000 (15:08 -0400)] 
rename key -> value

in preparation for adding an actual key