]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
9 months agoAdd return values to doxygen comments
Nick Porter [Tue, 7 Jan 2025 14:06:40 +0000 (14:06 +0000)] 
Add return values to doxygen comments

9 months agoLDAP modifies do have a result which can be checked for errors
Nick Porter [Tue, 7 Jan 2025 13:30:22 +0000 (13:30 +0000)] 
LDAP modifies do have a result which can be checked for errors

9 months agoAdd call_env parsing of LDAP mods
Nick Porter [Mon, 6 Jan 2025 19:57:00 +0000 (19:57 +0000)] 
Add call_env parsing of LDAP mods

Mods are parsed from

<name 1> {
  <name 2> {
    update {
      ...
    }
  }
}

9 months agoComment corrections
Nick Porter [Mon, 6 Jan 2025 12:08:22 +0000 (12:08 +0000)] 
Comment corrections

9 months agoBetter error reporting for missing queries
Nick Porter [Mon, 6 Jan 2025 11:50:06 +0000 (11:50 +0000)] 
Better error reporting for missing queries

9 months agoCorrect comment
Nick Porter [Mon, 6 Jan 2025 10:31:18 +0000 (10:31 +0000)] 
Correct comment

9 months agoadd callback to parse protocol-specific data types
Alan T. DeKok [Mon, 6 Jan 2025 23:44:47 +0000 (18:44 -0500)] 
add callback to parse protocol-specific data types

9 months agounify error path
Alan T. DeKok [Mon, 30 Dec 2024 16:12:53 +0000 (11:12 -0500)] 
unify error path

9 months agoMove to a single Python script that implements dd (#5444)
James Jones [Mon, 6 Jan 2025 16:30:01 +0000 (10:30 -0600)] 
Move to a single Python script that implements dd (#5444)

This will pro9bably be the schema for any future commands added to
gdb and lldb.

9 months agoDon't directly use buffer set in sbuff (CID #1634622) (#5460)
James Jones [Mon, 6 Jan 2025 16:29:38 +0000 (10:29 -0600)] 
Don't directly use buffer set in sbuff (CID #1634622) (#5460)

Another case of an uninitialized local buffer used in an sbuff but
referenced by name to print out. Coverity complains about it, not
recognizing the the sbuff operation puts a value there. Referencing
the start of the sbuff gets the same effect without complaint.

10 months agoadoc typo
James Jones [Wed, 2 Oct 2024 18:28:45 +0000 (13:28 -0500)] 
adoc typo

10 months agoAnother typo
James Jones [Thu, 3 Oct 2024 12:28:41 +0000 (07:28 -0500)] 
Another typo

10 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
github-actions[bot] [Sun, 5 Jan 2025 09:35:07 +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] [Sun, 5 Jan 2025 09:35:01 +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] [Sun, 5 Jan 2025 09:34:44 +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] [Sun, 5 Jan 2025 09:34:40 +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] [Sun, 5 Jan 2025 09:34:35 +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] [Sun, 5 Jan 2025 09:34:25 +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] [Sun, 5 Jan 2025 09:34:22 +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] [Sun, 5 Jan 2025 09:34:19 +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] [Sun, 5 Jan 2025 09:34:16 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar

10 months agoRework extraction of pairs from Subject Alternate Name
Nick Porter [Fri, 3 Jan 2025 18:15:35 +0000 (18:15 +0000)] 
Rework extraction of pairs from Subject Alternate Name

Some valid certificates have been seen where X509_get_ext_by_NID() fails
to find the SAN extension even though it is present.

The extension is then found when walking the list of extensions.

10 months agoAttempt to parse unknown extensions when extracting
Nick Porter [Thu, 2 Jan 2025 19:23:33 +0000 (19:23 +0000)] 
Attempt to parse unknown extensions when extracting

10 months agoReport when certificate extensions fail to be extracted
Nick Porter [Thu, 2 Jan 2025 19:22:18 +0000 (19:22 +0000)] 
Report when certificate extensions fail to be extracted

10 months agoPass nested attributes to Python functions (fixes #5456)
Nick Porter [Thu, 2 Jan 2025 13:04:38 +0000 (13:04 +0000)] 
Pass nested attributes to Python functions (fixes #5456)

10 months agoAdd test for list reference in exec output parsing
Nick Porter [Tue, 31 Dec 2024 11:32:32 +0000 (11:32 +0000)] 
Add test for list reference in exec output parsing

10 months agoSimplify libcurl certificate parsing
Nick Porter [Tue, 31 Dec 2024 09:39:15 +0000 (09:39 +0000)] 
Simplify libcurl certificate parsing

10 months agorequire_cert is a long not a pointer
Nick Porter [Tue, 31 Dec 2024 09:05:56 +0000 (09:05 +0000)] 
require_cert is a long not a pointer

10 months agoSet correct curl option for TLS SRP auth
Nick Porter [Tue, 31 Dec 2024 08:57:15 +0000 (08:57 +0000)] 
Set correct curl option for TLS SRP auth

10 months agoAttempt to pacify Coverity (CID #1604608)
Nick Porter [Mon, 30 Dec 2024 18:06:11 +0000 (18:06 +0000)] 
Attempt to pacify Coverity (CID #1604608)

10 months agoCorrect coverity annotation syntax
Nick Porter [Mon, 30 Dec 2024 17:54:55 +0000 (17:54 +0000)] 
Correct coverity annotation syntax

10 months agoAlways populate h_out when a connection is initialised
Nick Porter [Mon, 30 Dec 2024 17:35:18 +0000 (17:35 +0000)] 
Always populate h_out when a connection is initialised

10 months agofr_dlist takes real objects in the list, not the `entry` pointer
Nick Porter [Mon, 30 Dec 2024 17:01:37 +0000 (17:01 +0000)] 
fr_dlist takes real objects in the list, not the `entry` pointer

10 months agoUse .asc extension for ASCII gpg keys
Nick Porter [Mon, 30 Dec 2024 12:02:32 +0000 (12:02 +0000)] 
Use .asc extension for ASCII gpg keys

10 months agoAnother -1 error indicator (CID #1604616)
Nick Porter [Mon, 30 Dec 2024 09:21:13 +0000 (09:21 +0000)] 
Another -1 error indicator (CID #1604616)

10 months agoWe only need -1 as an error indicator (CID #1604605)
Nick Porter [Mon, 30 Dec 2024 09:09:32 +0000 (09:09 +0000)] 
We only need -1 as an error indicator (CID #1604605)

10 months agoNo need for intermediate variable
Nick Porter [Mon, 30 Dec 2024 08:59:40 +0000 (08:59 +0000)] 
No need for intermediate variable

Also pacifies Coverity (CID #1604602)

10 months agoapt-key add is long deprecated
Nick Porter [Mon, 30 Dec 2024 08:51:06 +0000 (08:51 +0000)] 
apt-key add is long deprecated

10 months agotrunk can have pending connections on open.
Alan T. DeKok [Sat, 28 Dec 2024 18:42:01 +0000 (13:42 -0500)] 
trunk can have pending connections on open.

see previous commits for details

10 months agono, it's the pending queue.
Alan T. DeKok [Sat, 28 Dec 2024 17:19:49 +0000 (12:19 -0500)] 
no, it's the pending queue.

CI passes, but CI static analyzer doesn't pass, likely due to
different timings.

10 months agorequests can be in the backlog when the trunk is initially connected
Alan T. DeKok [Sat, 28 Dec 2024 16:20:32 +0000 (11:20 -0500)] 
requests can be in the backlog when the trunk is initially connected

this behavior is needed by rlm_radius, which opens trunks to new
destinations, and then immediately enqueues requests onto them.

10 months agoit helps to set the eof flag
Alan T. DeKok [Sat, 28 Dec 2024 16:16:08 +0000 (11:16 -0500)] 
it helps to set the eof flag

10 months agohandle more corner cases of blocking IO
Alan T. DeKok [Sat, 28 Dec 2024 12:43:36 +0000 (07:43 -0500)] 
handle more corner cases of blocking IO

10 months agoa failed xlat is a "false" condition
Alan T. DeKok [Sat, 28 Dec 2024 12:48:11 +0000 (07:48 -0500)] 
a failed xlat is a "false" condition

10 months agohoist proxy loop checks to one location
Alan T. DeKok [Fri, 27 Dec 2024 21:20:46 +0000 (16:20 -0500)] 
hoist proxy loop checks to one location

and apply the CHAP-Challenge etc. fixups to %proxy.sendto.ipaddr()

10 months agostart of stats cleanups
Alan T. DeKok [Fri, 27 Dec 2024 19:59:19 +0000 (14:59 -0500)] 
start of stats cleanups

10 months agomove SNMP declarations to their own header
Alan T. DeKok [Fri, 27 Dec 2024 19:48:46 +0000 (14:48 -0500)] 
move SNMP declarations to their own header

10 months agomove to new unlang_xlat_yield_to_retry() API
Alan T. DeKok [Fri, 27 Dec 2024 18:36:51 +0000 (13:36 -0500)] 
move to new unlang_xlat_yield_to_retry() API

10 months agoadd unlang_xlat_yield_to_retry()
Alan T. DeKok [Fri, 27 Dec 2024 18:35:49 +0000 (13:35 -0500)] 
add unlang_xlat_yield_to_retry()

which mirrors the functionality of unlang_module_yield_to_retry()

10 months agonu_events can't be <0 if it's checked earlier
Alan T. DeKok [Fri, 27 Dec 2024 15:03:44 +0000 (10:03 -0500)] 
nu_events can't be <0 if it's checked earlier

10 months agomake our own Proxy-State 64-bit
Alan T. DeKok [Fri, 27 Dec 2024 14:18:26 +0000 (09:18 -0500)] 
make our own Proxy-State 64-bit

which means that collisions are essentially impossible.

10 months agocomplain about proxy loops
Alan T. DeKok [Fri, 27 Dec 2024 13:53:22 +0000 (08:53 -0500)] 
complain about proxy loops

10 months agoset attr_packet_type
Alan T. DeKok [Fri, 27 Dec 2024 13:35:21 +0000 (08:35 -0500)] 
set attr_packet_type

so that we get names out of the packet codes

10 months agoadd test for %proxy.sendto.ipaddr(...)
Alan T. DeKok [Fri, 27 Dec 2024 13:27:25 +0000 (08:27 -0500)] 
add test for %proxy.sendto.ipaddr(...)

which checks that proxying is a success

10 months agomove common code to function
Alan T. DeKok [Thu, 26 Dec 2024 23:52:03 +0000 (18:52 -0500)] 
move common code to function

10 months agosave a copy of the packet only if we're going to resend it
Alan T. DeKok [Thu, 26 Dec 2024 23:51:45 +0000 (18:51 -0500)] 
save a copy of the packet only if we're going to resend it

10 months agominor cleanups
Alan T. DeKok [Thu, 26 Dec 2024 23:36:38 +0000 (18:36 -0500)] 
minor cleanups

10 months agoregenerate from module configuration
Alan T. DeKok [Thu, 26 Dec 2024 22:32:33 +0000 (17:32 -0500)] 
regenerate from module configuration

10 months agoquiet compiler
Alan T. DeKok [Thu, 26 Dec 2024 21:01:29 +0000 (16:01 -0500)] 
quiet compiler

10 months agomore docs
Alan T. DeKok [Thu, 26 Dec 2024 20:56:33 +0000 (15:56 -0500)] 
more docs

10 months agominor tweaks to the example
Alan T. DeKok [Thu, 26 Dec 2024 20:53:55 +0000 (15:53 -0500)] 
minor tweaks to the example

10 months agoadd and use idle_timeout configuration
Alan T. DeKok [Wed, 25 Dec 2024 17:54:54 +0000 (12:54 -0500)] 
add and use idle_timeout configuration

10 months agotrack more per-connection stats
Alan T. DeKok [Wed, 25 Dec 2024 17:54:22 +0000 (12:54 -0500)] 
track more per-connection stats

10 months agoquiet analyzer
Alan T. DeKok [Thu, 26 Dec 2024 19:35:31 +0000 (14:35 -0500)] 
quiet analyzer

10 months agoquiet analyzer
Alan T. DeKok [Thu, 26 Dec 2024 19:35:20 +0000 (14:35 -0500)] 
quiet analyzer

10 months agodirfd() is a C library function, and not a variable name
Alan T. DeKok [Thu, 26 Dec 2024 19:34:05 +0000 (14:34 -0500)] 
dirfd() is a C library function, and not a variable name

10 months agoexpire old home servers, on a fixed 60s timer
Alan T. DeKok [Thu, 26 Dec 2024 19:21:49 +0000 (14:21 -0500)] 
expire old home servers, on a fixed 60s timer

10 months agoallow modules to be commented out trivially
Alan T. DeKok [Thu, 26 Dec 2024 17:09:05 +0000 (12:09 -0500)] 
allow modules to be commented out trivially

10 months agoadd support for dynamic proxying
Alan T. DeKok [Thu, 26 Dec 2024 16:56:22 +0000 (11:56 -0500)] 
add support for dynamic proxying

The home servers are never cleaned up or timed out.  The home
servers also can't have their secrets changed.

10 months agoadd API for RB trees with expiry timers
Alan T. DeKok [Thu, 26 Dec 2024 17:07:33 +0000 (12:07 -0500)] 
add API for RB trees with expiry timers

10 months agomove common elements to one data structure
Alan T. DeKok [Thu, 26 Dec 2024 16:37:32 +0000 (11:37 -0500)] 
move common elements to one data structure

in preparation for adding trunked home servers

10 months agodon't complain about limit_proxy_state if we have Message-Authenticator
Alan T. DeKok [Thu, 26 Dec 2024 14:02:38 +0000 (09:02 -0500)] 
don't complain about limit_proxy_state if we have Message-Authenticator

if we set "require_message_authenticator = yes", then we don't need
to set (or complain about) limit_proxy_state

10 months agoget rid of bio_result_t
Alan T. DeKok [Thu, 26 Dec 2024 12:07:44 +0000 (07:07 -0500)] 
get rid of bio_result_t

now that we have them unified, they don't need to be two different
data structures and variables.  We can just always use one.

10 months agorename functions for clarity
Alan T. DeKok [Wed, 25 Dec 2024 22:25:08 +0000 (17:25 -0500)] 
rename functions for clarity

we're sending initial negotiation packets, so let's not name the
functions "status_check".  This makes it clearer that later "ping"
packets are different from the initial negotiation / setup

10 months agounify bio_result_t and bio_request_t
Alan T. DeKok [Wed, 25 Dec 2024 22:08:18 +0000 (17:08 -0500)] 
unify bio_result_t and bio_request_t

they have the same lifetime, so there is no need for them to be
separate data structures.

10 months agowe don't need to include <talloc.h>
Alan T. DeKok [Wed, 25 Dec 2024 15:04:20 +0000 (10:04 -0500)] 
we don't need to include <talloc.h>

10 months agoremove last bits of rlm_radius_udp
Alan T. DeKok [Tue, 24 Dec 2024 13:27:11 +0000 (08:27 -0500)] 
remove last bits of rlm_radius_udp

10 months agoonly complain if the user sets "interface = foo"
Alan T. DeKok [Tue, 24 Dec 2024 12:42:01 +0000 (07:42 -0500)] 
only complain if the user sets "interface = foo"

10 months agominor tweaks and clarifications
Alan T. DeKok [Tue, 24 Dec 2024 12:39:09 +0000 (07:39 -0500)] 
minor tweaks and clarifications

OSX has IP_BOUND_IF.

*BSD has IP_RECVIF, but no IP_SENDIF.  And IP_RECVIF is a socket
option which is set, and then causes any _subsequent_ recvmsg()
call to have another cmsg structure added, with the sockaddr_dl
containing the interface.  The application is then responsible
for comparing the interface IDs, and discarding packets which
don't match.

10 months agoAnother cbor negative limit fix
Nick Porter [Tue, 24 Dec 2024 10:31:15 +0000 (10:31 +0000)] 
Another cbor negative limit fix

10 months agoThe new radius module doesn't create rlm_radius_udp.so
Nick Porter [Tue, 24 Dec 2024 09:14:58 +0000 (09:14 +0000)] 
The new radius module doesn't create rlm_radius_udp.so

10 months agoenable the new radius module
Alan T. DeKok [Mon, 23 Dec 2024 14:32:11 +0000 (09:32 -0500)] 
enable the new radius module

10 months agominor tweaks
Alan T. DeKok [Mon, 23 Dec 2024 12:40:54 +0000 (07:40 -0500)] 
minor tweaks

10 months agouse unconnected-proxy and unconnected-replicate
Alan T. DeKok [Sun, 22 Dec 2024 14:12:33 +0000 (09:12 -0500)] 
use unconnected-proxy and unconnected-replicate

10 months agoactually set SO_RCVBUF to zero
Alan T. DeKok [Fri, 20 Dec 2024 23:08:35 +0000 (18:08 -0500)] 
actually set SO_RCVBUF to zero

10 months agoCorrect limit on negative cbor decode
Nick Porter [Mon, 23 Dec 2024 12:35:22 +0000 (12:35 +0000)] 
Correct limit on negative cbor decode

10 months agoBetter Coverity hint (CID #1619299)
Nick Porter [Mon, 23 Dec 2024 09:43:46 +0000 (09:43 +0000)] 
Better Coverity hint (CID #1619299)

In normal use, fr_nbo_from_uint64v will return 1 to 8 - telling Coverity
it can return 0 then leads to another false positive.

10 months agoPacify Coverity (CID #1634622)
Nick Porter [Mon, 23 Dec 2024 08:50:08 +0000 (08:50 +0000)] 
Pacify Coverity (CID #1634622)

Coverity doesn't see that buffer is being used as an output for
fr_pair_print, so complains about uninitialised use.

10 months agoMove pointer check before first use (CID #1635782)
Nick Porter [Mon, 23 Dec 2024 08:34:38 +0000 (08:34 +0000)] 
Move pointer check before first use (CID #1635782)

10 months agoCheck return of fr_pair_list_copy (CID #1636884)
Nick Porter [Sun, 22 Dec 2024 20:27:31 +0000 (20:27 +0000)] 
Check return of fr_pair_list_copy (CID #1636884)

10 months agoUse an attribute to record the type of TLS session resumption used
Nick Porter [Tue, 10 Dec 2024 17:29:39 +0000 (17:29 +0000)] 
Use an attribute to record the type of TLS session resumption used

10 months agoAdd placeholder establish session section
Nick Porter [Tue, 10 Dec 2024 12:04:34 +0000 (12:04 +0000)] 
Add placeholder establish session section

10 months agoAdd an optional "establish session" session
Nick Porter [Tue, 10 Dec 2024 11:55:52 +0000 (11:55 +0000)] 
Add an optional "establish session" session

Called after a TLS session is established, primarily intended for
logging.

10 months agoDon't duplicate TLS session info attributes
Nick Porter [Tue, 10 Dec 2024 11:41:06 +0000 (11:41 +0000)] 
Don't duplicate TLS session info attributes

They may already exist if the session is being resumed.

10 months agoAdd sample "new session" section
Nick Porter [Mon, 2 Dec 2024 13:25:45 +0000 (13:25 +0000)] 
Add sample "new session" section

10 months agoUse control attributes to set TLS min/max version
Nick Porter [Mon, 2 Dec 2024 13:24:00 +0000 (13:24 +0000)] 
Use control attributes to set TLS min/max version

10 months agoDefine attributes for setting TLS min/max versions
Nick Porter [Mon, 2 Dec 2024 12:07:59 +0000 (12:07 +0000)] 
Define attributes for setting TLS min/max versions

10 months agoIf a "new session" section exists run that before creating TLS session
Nick Porter [Mon, 2 Dec 2024 12:07:13 +0000 (12:07 +0000)] 
If a "new session" section exists run that before creating TLS session

10 months agoDetect if "new session" section exists
Nick Porter [Wed, 11 Dec 2024 12:30:13 +0000 (12:30 +0000)] 
Detect if "new session" section exists

10 months agoAdd fr_tls_new_session_push
Nick Porter [Wed, 11 Dec 2024 12:15:05 +0000 (12:15 +0000)] 
Add fr_tls_new_session_push

To run a subrequest though "new session"