]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
6 months agoquiet analyzer. CID #1642927
Alan T. DeKok [Sat, 15 Feb 2025 13:42:10 +0000 (08:42 -0500)] 
quiet analyzer.  CID #1642927

the buffer is always big enough.

6 months agorefactor encode_len. Outcome of CID #1642928
Alan T. DeKok [Sat, 15 Feb 2025 13:39:39 +0000 (08:39 -0500)] 
refactor encode_len.  Outcome of CID #1642928

the encode_len() function doesn't need to be passed a data length,
that information is already in the dbuff.

Refactor and rearrange the code.

6 months agolen can be zero. CID #1642930
Alan T. DeKok [Sat, 15 Feb 2025 13:39:22 +0000 (08:39 -0500)] 
len can be zero.  CID #1642930

6 months agouse FUNCTION_RETURN() rather than function() CID #1642929
Alan T. DeKok [Fri, 14 Feb 2025 21:48:12 +0000 (16:48 -0500)] 
use FUNCTION_RETURN() rather than function() CID #1642929

6 months agouse DER types, now that we can use the DER names
Alan T. DeKok [Fri, 14 Feb 2025 19:35:22 +0000 (14:35 -0500)] 
use DER types, now that we can use the DER names

6 months agoallow protocol-specific data types to over-ride standard ones
Alan T. DeKok [Fri, 14 Feb 2025 19:29:14 +0000 (14:29 -0500)] 
allow protocol-specific data types to over-ride standard ones

6 months agomake ubsan happy by removing duplication
Alan T. DeKok [Fri, 14 Feb 2025 14:02:59 +0000 (09:02 -0500)] 
make ubsan happy by removing duplication

6 months agofix ubsan warning about shifting signed numbers
Alan T. DeKok [Fri, 14 Feb 2025 13:10:58 +0000 (08:10 -0500)] 
fix ubsan warning about shifting signed numbers

6 months agoarrays don't go in header files
Alan T. DeKok [Thu, 13 Feb 2025 21:55:27 +0000 (16:55 -0500)] 
arrays don't go in header files

6 months agouse "der_type" and not "subtype"
Alan T. DeKok [Thu, 13 Feb 2025 21:53:38 +0000 (16:53 -0500)] 
use "der_type" and not "subtype"

along with some associated cleanups

6 months agoadd fuzzer for DER
Alan T. DeKok [Thu, 13 Feb 2025 21:16:59 +0000 (16:16 -0500)] 
add fuzzer for DER

6 months agoadded unit tests for DER
Ethan Thompson [Thu, 13 Feb 2025 20:56:28 +0000 (15:56 -0500)] 
added unit tests for DER

6 months agofeat: Wrote DER decoder
ethan-thompson [Wed, 12 Feb 2025 18:35:22 +0000 (13:35 -0500)] 
feat: Wrote DER decoder

Signed-off-by: ethan-thompson <ethan.thompson@networkradius.com>
6 months agoenforce only int64 integers.
Alan T. DeKok [Thu, 13 Feb 2025 18:45:32 +0000 (13:45 -0500)] 
enforce only int64 integers.

that's all the decoder/encoder can handle right now

6 months agoAdd DER encoder
Ethan Thompson [Thu, 13 Feb 2025 17:48:15 +0000 (12:48 -0500)] 
Add DER encoder

6 months agofeat: Wrote dictionaries for DER related things (certificates and CSR's)
ethan-thompson [Wed, 12 Feb 2025 18:36:08 +0000 (13:36 -0500)] 
feat: Wrote dictionaries for DER related things (certificates and CSR's)

Signed-off-by: ethan-thompson <ethan.thompson@networkradius.com>
6 months agofeat: DER dictionary parser and validator
ethan-thompson [Wed, 12 Feb 2025 18:34:59 +0000 (13:34 -0500)] 
feat: DER dictionary parser and validator

Signed-off-by: ethan-thompson <ethan.thompson@networkradius.com>
6 months agochore: Added DER to the list of fuzzer binary folders to ignore.
ethan-thompson [Wed, 12 Feb 2025 18:34:33 +0000 (13:34 -0500)] 
chore: Added DER to the list of fuzzer binary folders to ignore.

Signed-off-by: ethan-thompson <ethan.thompson@networkradius.com>
6 months agoSimplify ldap.authenticate
Nick Porter [Thu, 13 Feb 2025 13:54:08 +0000 (13:54 +0000)] 
Simplify ldap.authenticate

The module now expects the DN to be found / populated prior to calling
ldap.authenticate.

This is consistent with other authentication methods which expect all
the data to be in the correct place before attempting authenticaiton.

6 months agoNot all calls to fr_tls_call_push require the session cache
Nick Porter [Thu, 13 Feb 2025 12:14:26 +0000 (12:14 +0000)] 
Not all calls to fr_tls_call_push require the session cache

6 months agoAdd more VSAs. Fixes #5511
Alan T. DeKok [Thu, 13 Feb 2025 12:16:20 +0000 (07:16 -0500)] 
Add more VSAs.  Fixes #5511

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/cbor.tar
github-actions[bot] [Thu, 13 Feb 2025 09:34:59 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/cbor.tar

6 months agoignore auto-generated fuzzer_*.c files, too
Alan T. DeKok [Wed, 12 Feb 2025 20:16:28 +0000 (15:16 -0500)] 
ignore auto-generated fuzzer_*.c files, too

6 months agoremove pdf output
Alan T. DeKok [Wed, 12 Feb 2025 20:13:37 +0000 (15:13 -0500)] 
remove pdf output

it hasn't worked for a long time.  If we need PDFs, then we should
use an Antora to PDF plugin

6 months agoremove HTML output.
Alan T. DeKok [Wed, 12 Feb 2025 20:10:46 +0000 (15:10 -0500)] 
remove HTML output.

it was there temporarily before we moved to Antora.  Now that
antora works, the HTML can be deleted.

6 months agoremove references to doc/raddb
Alan T. DeKok [Wed, 12 Feb 2025 20:01:23 +0000 (15:01 -0500)] 
remove references to doc/raddb

6 months agoregenerate
Alan T. DeKok [Wed, 12 Feb 2025 20:00:56 +0000 (15:00 -0500)] 
regenerate

6 months agoregenerate
Alan T. DeKok [Wed, 12 Feb 2025 20:00:32 +0000 (15:00 -0500)] 
regenerate

6 months agoci: bump crossbuild up from ubuntu 20.04
Matthew Newton [Wed, 12 Feb 2025 19:39:20 +0000 (19:39 +0000)] 
ci: bump crossbuild up from ubuntu 20.04

6 months agoci: bump action version
Matthew Newton [Wed, 12 Feb 2025 19:38:38 +0000 (19:38 +0000)] 
ci: bump action version

6 months agoci: couple more fixes to docker-refresh job
Matthew Newton [Wed, 12 Feb 2025 19:15:38 +0000 (19:15 +0000)] 
ci: couple more fixes to docker-refresh job

6 months agoci: give docker refresh job ability to handle more than one os
Matthew Newton [Wed, 12 Feb 2025 18:42:41 +0000 (18:42 +0000)] 
ci: give docker refresh job ability to handle more than one os

6 months agoadd home_server_lifetime, and update docs
Alan T. DeKok [Wed, 12 Feb 2025 15:58:50 +0000 (10:58 -0500)] 
add home_server_lifetime, and update docs

6 months agowarn if the secret changes
Alan T. DeKok [Wed, 12 Feb 2025 15:45:24 +0000 (10:45 -0500)] 
warn if the secret changes

6 months agoMinor fixup to source port hunt & peck
Nick Porter [Wed, 12 Feb 2025 15:04:55 +0000 (15:04 +0000)] 
Minor fixup to source port hunt & peck

6 months agohunt and peck for an open source port
Alan T. DeKok [Wed, 12 Feb 2025 13:08:13 +0000 (08:08 -0500)] 
hunt and peck for an open source port

6 months agoonly the replication modes allow for a single source socket
Alan T. DeKok [Wed, 12 Feb 2025 13:02:10 +0000 (08:02 -0500)] 
only the replication modes allow for a single source socket

so XLAT_PROXY uses the normal code path

6 months agomove src_port_start and src_port_end to FD BIO
Alan T. DeKok [Wed, 12 Feb 2025 12:29:53 +0000 (07:29 -0500)] 
move src_port_start and src_port_end to FD BIO

so that other applications can use them too

6 months agothese files shouldn't be here
Alan T. DeKok [Tue, 11 Feb 2025 21:59:43 +0000 (16:59 -0500)] 
these files shouldn't be here

or are no longer needed

6 months agolet's comment these out by default
Alan T. DeKok [Tue, 11 Feb 2025 20:06:52 +0000 (15:06 -0500)] 
let's comment these out by default

6 months agoadd and document src_port_start and src_port_end
Alan T. DeKok [Tue, 11 Feb 2025 19:01:10 +0000 (14:01 -0500)] 
add and document src_port_start and src_port_end

which currently only work for mode=dynamic-proxy

6 months agoadd reuseport config, and use common function
Alan T. DeKok [Tue, 11 Feb 2025 15:54:15 +0000 (10:54 -0500)] 
add reuseport config, and use common function

6 months agonotes on "connected" UDP sockets
Alan T. DeKok [Tue, 11 Feb 2025 16:57:28 +0000 (11:57 -0500)] 
notes on "connected" UDP sockets

6 months agoAdd extension parsing to LDAP map URIs
Nick Porter [Tue, 11 Feb 2025 18:22:27 +0000 (18:22 +0000)] 
Add extension parsing to LDAP map URIs

6 months agoAdd freeradiusClientRegion to LDAP schema
Nick Porter [Tue, 11 Feb 2025 18:07:55 +0000 (18:07 +0000)] 
Add freeradiusClientRegion to LDAP schema

6 months agoAdd LDAP xlat test using server side extensions
Nick Porter [Tue, 11 Feb 2025 11:12:59 +0000 (11:12 +0000)] 
Add LDAP xlat test using server side extensions

6 months agoAdd check_attribute to sample ldap module config
Nick Porter [Tue, 11 Feb 2025 11:03:24 +0000 (11:03 +0000)] 
Add check_attribute to sample ldap module config

6 months agoAdd ORDERING to freeradiusClientIdentifier
Nick Porter [Tue, 11 Feb 2025 10:59:34 +0000 (10:59 +0000)] 
Add ORDERING to freeradiusClientIdentifier

To allow for server side sorting

6 months agoInvalid IP address family is an error
Nick Porter [Tue, 11 Feb 2025 10:58:21 +0000 (10:58 +0000)] 
Invalid IP address family is an error

6 months agoDefine DO_NOT_RESPOND code for tls
Nick Porter [Tue, 11 Feb 2025 08:59:00 +0000 (08:59 +0000)] 
Define DO_NOT_RESPOND code for tls

Allows use of `handled` in verify certificate policies

6 months agoupdate counters when nuking the pending list
Alan T. DeKok [Mon, 10 Feb 2025 20:28:37 +0000 (15:28 -0500)] 
update counters when nuking the pending list

6 months agoreset the counter when there are no pending clients
Alan T. DeKok [Mon, 10 Feb 2025 20:08:38 +0000 (15:08 -0500)] 
reset the counter when there are no pending clients

6 months agotweak pending tracking
Alan T. DeKok [Mon, 10 Feb 2025 19:47:35 +0000 (14:47 -0500)] 
tweak pending tracking

6 months agorate-limit complaints for injected packets
Alan T. DeKok [Mon, 10 Feb 2025 19:33:06 +0000 (14:33 -0500)] 
rate-limit complaints for injected packets

when we open a new connected UDP socket, the main socket might
still have some packets in the inbound kernel queue.  We normally
read those, and push them to the connected socket.  But if the
connected socket / message queue is full, then we complain loudly.

6 months agoadd more error messages
Alan T. DeKok [Mon, 10 Feb 2025 19:27:39 +0000 (14:27 -0500)] 
add more error messages

6 months agoadd IP address to timer message
Alan T. DeKok [Mon, 10 Feb 2025 17:48:02 +0000 (12:48 -0500)] 
add IP address to timer message

6 months agoTypo
Nick Porter [Mon, 10 Feb 2025 15:44:46 +0000 (15:44 +0000)] 
Typo

6 months agoProtect against too many extensions in LDAP URI
Nick Porter [Mon, 10 Feb 2025 15:20:30 +0000 (15:20 +0000)] 
Protect against too many extensions in LDAP URI

6 months agoTerminate after each control is created
Nick Porter [Mon, 10 Feb 2025 15:17:43 +0000 (15:17 +0000)] 
Terminate after each control is created

So error clearup, will find a terminated array of controls

6 months agoAdd parsing of vlv extension in LDAP URIs
Nick Porter [Mon, 10 Feb 2025 14:12:55 +0000 (14:12 +0000)] 
Add parsing of vlv extension in LDAP URIs

6 months agoEnsure ldap controls are freed on error
Nick Porter [Mon, 10 Feb 2025 14:03:21 +0000 (14:03 +0000)] 
Ensure ldap controls are freed on error

6 months agoUse sbuff for parsing LDAP URI extensions
Nick Porter [Mon, 10 Feb 2025 13:58:42 +0000 (13:58 +0000)] 
Use sbuff for parsing LDAP URI extensions

6 months agoEnsure server controls start of NULL terminated
Nick Porter [Mon, 10 Feb 2025 11:48:31 +0000 (11:48 +0000)] 
Ensure server controls start of NULL terminated

6 months agocheck rule exists
Alan T. DeKok [Sun, 9 Feb 2025 21:07:53 +0000 (16:07 -0500)] 
check rule exists

6 months agoone more pass through messages for dynamic clients
Alan T. DeKok [Sun, 9 Feb 2025 17:09:49 +0000 (12:09 -0500)] 
one more pass through messages for dynamic clients

6 months agoqualify listener instance names a bit more cleanly
Alan T. DeKok [Sun, 9 Feb 2025 17:10:22 +0000 (12:10 -0500)] 
qualify listener instance names a bit more cleanly

which doesn't matter now, but may matter when we need to have
better debug messages about them.

6 months agobe more forgiving for debug messages
Alan T. DeKok [Sun, 9 Feb 2025 17:09:29 +0000 (12:09 -0500)] 
be more forgiving for debug messages

6 months agoRevert "duplicate of FAQ, and not linked from anywhere"
Alan T. DeKok [Sun, 9 Feb 2025 13:55:40 +0000 (08:55 -0500)] 
Revert "duplicate of FAQ, and not linked from anywhere"

This reverts commit 65dc4633fc6c62e5356754d23e8321cb6429fa5b.

6 months agoadd rate-limited messages about unknown clients
Alan T. DeKok [Sat, 8 Feb 2025 21:40:25 +0000 (16:40 -0500)] 
add rate-limited messages about unknown clients

6 months agoupdate error message
Alan T. DeKok [Sat, 8 Feb 2025 22:05:13 +0000 (17:05 -0500)] 
update error message

6 months agoadd DECODE_FAIL_VERIFY
Alan T. DeKok [Sat, 8 Feb 2025 20:58:55 +0000 (15:58 -0500)] 
add DECODE_FAIL_VERIFY

and push the decode fail reasons throughout the source

6 months agoone more info message for unconnected sockets
Alan T. DeKok [Sat, 8 Feb 2025 20:42:18 +0000 (15:42 -0500)] 
one more info message for unconnected sockets

6 months agoSet module name in bio handle ctx
Nick Porter [Sat, 8 Feb 2025 21:45:33 +0000 (21:45 +0000)] 
Set module name in bio handle ctx

6 months agoSet trunk in bio handle ctx
Nick Porter [Sat, 8 Feb 2025 21:44:58 +0000 (21:44 +0000)] 
Set trunk in bio handle ctx

6 months agoadd INFO messages for dynamic client start verification, success, and fail
Alan T. DeKok [Sat, 8 Feb 2025 14:39:58 +0000 (09:39 -0500)] 
add INFO messages for dynamic client start verification, success, and fail

6 months agoconversion script now includes copyright statements
Alan T. DeKok [Sat, 8 Feb 2025 14:10:44 +0000 (09:10 -0500)] 
conversion script now includes copyright statements

6 months agoadd copyright footer to all adoc files
Alan T. DeKok [Sat, 8 Feb 2025 14:02:22 +0000 (09:02 -0500)] 
add copyright footer to all adoc files

for x in $(for x in $(find . -name "*.adoc" -print | egrep -v 'raddb'); do y=$(grep -l '// Copyright' $x); if [ "$x" != "$y" ]; then print $x; fi; done); do cat copyright.txt >> $x; done

6 months agofr_dlist_ functions return the real object, not an fr_dlist_t
Nick Porter [Fri, 7 Feb 2025 19:37:08 +0000 (19:37 +0000)] 
fr_dlist_ functions return the real object, not an fr_dlist_t

6 months agoduplicate of FAQ, and not linked from anywhere
Alan T. DeKok [Fri, 7 Feb 2025 02:09:33 +0000 (21:09 -0500)] 
duplicate of FAQ, and not linked from anywhere

6 months agoreformat
Alan T. DeKok [Fri, 7 Feb 2025 02:06:23 +0000 (21:06 -0500)] 
reformat

6 months agotypos
Alan T. DeKok [Fri, 7 Feb 2025 02:06:11 +0000 (21:06 -0500)] 
typos

6 months agoif the xlat won't yield, don't create a new interpreter
Alan T. DeKok [Thu, 6 Feb 2025 21:14:07 +0000 (16:14 -0500)] 
if the xlat won't yield, don't create a new interpreter

i.e. if it's "pure", and doesn't have any external side effects.

which should save a fair bit on most xlat calls.

we also check if there's an interpreter.  which is only necessary
for the test.xlat code path.  This should arguably be changed
before a v4 release

6 months agoreflow, fix issues, and add more formatting
Alan T. DeKok [Thu, 6 Feb 2025 21:00:48 +0000 (16:00 -0500)] 
reflow, fix issues, and add more formatting

6 months agomove SVG and include it in the right place
Alan T. DeKok [Thu, 6 Feb 2025 20:50:56 +0000 (15:50 -0500)] 
move SVG and include it in the right place

6 months agoNav topo changes and files added. Incorporated editorial comments from PR and updated...
nolade [Tue, 4 Feb 2025 13:44:00 +0000 (08:44 -0500)] 
Nav topo changes and files added. Incorporated editorial comments from PR and updated spacing/heading levels.

6 months agoAdd running flag to unlang_interpret()
Nick Porter [Thu, 6 Feb 2025 17:04:31 +0000 (17:04 +0000)] 
Add running flag to unlang_interpret()

Needed for the case when the interpreter is called to evaluate
expressions within an already running request

6 months agoupdate docs and examples
Alan T. DeKok [Wed, 5 Feb 2025 19:00:18 +0000 (14:00 -0500)] 
update docs and examples

6 months agoadd compile-time checks for values.
Alan T. DeKok [Wed, 5 Feb 2025 17:54:34 +0000 (12:54 -0500)] 
add compile-time checks for values.

this follows up commit 2b8351c622

6 months agomore updates to the users file format.
Alan T. DeKok [Wed, 5 Feb 2025 17:53:44 +0000 (12:53 -0500)] 
more updates to the users file format.

This page is huge, and should likely be broken up into multiple
sub-pages

6 months agorearrange T_OP_CMP_TRUE code
Alan T. DeKok [Wed, 5 Feb 2025 16:42:40 +0000 (11:42 -0500)] 
rearrange T_OP_CMP_TRUE code

6 months agocomplain if antora doesn't exist
Alan T. DeKok [Mon, 3 Feb 2025 13:57:38 +0000 (08:57 -0500)] 
complain if antora doesn't exist

6 months agoAdd nas and nasreload to MS SQL schema
Nick Porter [Wed, 5 Feb 2025 12:27:10 +0000 (12:27 +0000)] 
Add nas and nasreload to MS SQL schema

6 months agoAdd require_ma and limit_proxy_state to nas table schema
Nick Porter [Wed, 5 Feb 2025 12:25:50 +0000 (12:25 +0000)] 
Add require_ma and limit_proxy_state to nas table schema

To support Blast-RADIUS mitigation options when using SQL defined
clients.

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
github-actions[bot] [Wed, 5 Feb 2025 09:35:07 +0000 (09:35 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Wed, 5 Feb 2025 09:35:01 +0000 (09:35 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Wed, 5 Feb 2025 09:34:43 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Wed, 5 Feb 2025 09:34:40 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar
github-actions[bot] [Wed, 5 Feb 2025 09:34:35 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar
github-actions[bot] [Wed, 5 Feb 2025 09:34:25 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar
github-actions[bot] [Wed, 5 Feb 2025 09:34:22 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar