]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
2 years agoFix formatting in dhcpv6 (#5053)
Jorge Pereira [Tue, 13 Jun 2023 17:33:34 +0000 (14:33 -0300)] 
Fix formatting in dhcpv6 (#5053)

2 years agotls: Make request optional in more places
Arran Cudbard-Bell [Tue, 13 Jun 2023 17:32:31 +0000 (13:32 -0400)] 
tls: Make request optional in more places

2 years agoAdd TEST_CHECK_SLEN_RETURN() and use as appropriate in sbuff tests (#5050)
James Jones [Tue, 13 Jun 2023 15:18:12 +0000 (10:18 -0500)] 
Add TEST_CHECK_SLEN_RETURN() and use as appropriate in sbuff tests (#5050)

Test code typically only looks at check results to the extent
necessary to report errors. That means that even if the functions
tests call are correctly modeled, coverity will rightly see that,
for example, some buffers may not be initialized.

We therefore write TEST_CHECK_SLEN_RETURN(), which does what
TEST_CHECK_SLEN() does and then returns if the check fails.

2 years agoClean up remains of SoH protocol (#5052)
Jorge Pereira [Tue, 13 Jun 2023 08:36:34 +0000 (05:36 -0300)] 
Clean up remains of SoH protocol (#5052)

Related to the previous 309f347 commit.

2 years agoRemove unused variable (#5049)
Jorge Pereira [Mon, 12 Jun 2023 19:57:10 +0000 (16:57 -0300)] 
Remove unused variable (#5049)

2 years agoCI: fix with latest mariadb 11 docker image
Matthew Newton [Mon, 12 Jun 2023 19:14:35 +0000 (20:14 +0100)] 
CI: fix with latest mariadb 11 docker image

ref https://jira.mariadb.org/browse/MDBF-568

2 years agotls: SSL_set_verify is used in the session alloc functions, so we don't need to call...
Arran Cudbard-Bell [Mon, 12 Jun 2023 17:57:32 +0000 (13:57 -0400)] 
tls: SSL_set_verify is used in the session alloc functions, so we don't need to call it in the SSL_CTX alloc function

2 years agojust nuke erroneous Proxy-State attributes
Alan T. DeKok [Mon, 12 Jun 2023 17:40:33 +0000 (13:40 -0400)] 
just nuke erroneous Proxy-State attributes

There's no reason for a policy or module to create / inspect / use
Proxy-State.  It's strictly a RADIUS client-server signalling
attribute.

2 years agoremove SoH protocol API.
Alan T. DeKok [Mon, 12 Jun 2023 17:34:09 +0000 (13:34 -0400)] 
remove SoH protocol API.

It's been dead for a long time.

2 years agoAdd new Huawei VSA, Closes #5016
Arran Cudbard-Bell [Mon, 12 Jun 2023 16:44:49 +0000 (12:44 -0400)] 
Add new Huawei VSA, Closes #5016

2 years agoTLS changes required for native redis TLS support (#5046)
Max Khon [Mon, 12 Jun 2023 16:41:06 +0000 (17:41 +0100)] 
TLS changes required for native redis TLS support (#5046)

* Allow empty tls configuration

2 years agoModel tmpl_print()
James Jones [Mon, 12 Jun 2023 13:58:19 +0000 (08:58 -0500)] 
Model tmpl_print()

2 years agoRemove needless benign redefinition of TEST_CHECK_SLEN()
James Jones [Mon, 12 Jun 2023 15:39:08 +0000 (10:39 -0500)] 
Remove needless benign redefinition of TEST_CHECK_SLEN()

2 years agoRemove dup macros from dbuff_tests
Arran Cudbard-Bell [Mon, 12 Jun 2023 16:34:59 +0000 (12:34 -0400)] 
Remove dup macros from dbuff_tests

2 years agotls: Make fr_tls_session_alloc_client work without a bound request
Arran Cudbard-Bell [Mon, 12 Jun 2023 16:07:27 +0000 (12:07 -0400)] 
tls: Make fr_tls_session_alloc_client work without a bound request

2 years agounlang: Component isn't used for module compilation anymore
Arran Cudbard-Bell [Fri, 9 Jun 2023 18:19:00 +0000 (14:19 -0400)] 
unlang: Component isn't used for module compilation anymore

2 years agoradius: Don't add proxy state if there's already proxy state attributes in the reponse.
Arran Cudbard-Bell [Fri, 9 Jun 2023 15:31:04 +0000 (11:31 -0400)] 
radius: Don't add proxy state if there's already proxy state attributes in the reponse.

2 years agosubrequest: Don't crash in debug builds when a detached subrequest is about to exit
Arran Cudbard-Bell [Fri, 9 Jun 2023 15:22:02 +0000 (11:22 -0400)] 
subrequest:  Don't crash in debug builds when a detached subrequest is about to exit

2 years agoUse module method names to set methods for DHCP send sections
Nick Porter [Thu, 8 Jun 2023 09:50:51 +0000 (10:50 +0100)] 
Use module method names to set methods for DHCP send sections

2 years agoRemove tmpls from rlm_redis_ippool_t
Nick Porter [Thu, 8 Jun 2023 09:08:57 +0000 (10:08 +0100)] 
Remove tmpls from rlm_redis_ippool_t

2 years agoRemove un-used ippool_pool_name()
Nick Porter [Thu, 8 Jun 2023 09:02:06 +0000 (10:02 +0100)] 
Remove un-used ippool_pool_name()

2 years agoRe-work redis_ippool method calls to use call environment
Nick Porter [Thu, 8 Jun 2023 08:39:14 +0000 (09:39 +0100)] 
Re-work redis_ippool method calls to use call environment

2 years agoAdd a call environment to rlm_redis_ippool
Nick Porter [Wed, 7 Jun 2023 16:23:34 +0000 (17:23 +0100)] 
Add a call environment to rlm_redis_ippool

2 years agoAdd check that tmpl exands to attr ref when type == FR_TYPE_ATTRIBUTE
Nick Porter [Thu, 8 Jun 2023 08:41:05 +0000 (09:41 +0100)] 
Add check that tmpl exands to attr ref when type == FR_TYPE_ATTRIBUTE

2 years agoAdd tmpl only call environment entries
Nick Porter [Wed, 7 Jun 2023 13:44:24 +0000 (14:44 +0100)] 
Add tmpl only call environment entries

For use where the requirement is just a tmpl to produce output pair(s)

2 years agoCorrect function name in comment
James Jones [Thu, 8 Jun 2023 16:09:00 +0000 (11:09 -0500)] 
Correct function name in comment

2 years agoTest get_chunk() return value in some simple cases
James Jones [Thu, 1 Jun 2023 15:00:49 +0000 (10:00 -0500)] 
Test get_chunk() return value in some simple cases

Those are cases that use a byte-swapped value, which sets off
coverity's tainted data alarms. Adding the same check used for
the more complex cases shoulo placate coverity and let us get
rid of the annotations that follow get_check() invocations.

2 years agoAdd test of removing static IP assignment
Nick Porter [Tue, 30 May 2023 15:13:09 +0000 (16:13 +0100)] 
Add test of removing static IP assignment

2 years agoSplit static and dynamic leases in redis_ippool_tool statistics
Nick Porter [Tue, 30 May 2023 12:26:31 +0000 (13:26 +0100)] 
Split static and dynamic leases in redis_ippool_tool statistics

2 years agoAdd un-assignment of static leases to redis_ippool_tool
Nick Porter [Tue, 30 May 2023 09:43:18 +0000 (10:43 +0100)] 
Add un-assignment of static leases to redis_ippool_tool

2 years agoTidy other redis_ippool tests
Nick Porter [Thu, 25 May 2023 14:32:25 +0000 (15:32 +0100)] 
Tidy other redis_ippool tests

2 years agoAdd tests of static redis_ippool assignments
Nick Porter [Thu, 25 May 2023 12:44:08 +0000 (13:44 +0100)] 
Add tests of static redis_ippool assignments

2 years agoUpdate rlm_redis_ippool_tool to be able to add static assignments
Nick Porter [Mon, 15 May 2023 16:47:53 +0000 (17:47 +0100)] 
Update rlm_redis_ippool_tool to be able to add static assignments

2 years agoAdd a uctx to redis_ippool_queue_t callback
Nick Porter [Mon, 15 May 2023 16:49:32 +0000 (17:49 +0100)] 
Add a uctx to redis_ippool_queue_t callback

Allows call specific data to be passed

2 years agoRenumber lines in redis_ippool Lua scripts
Nick Porter [Tue, 30 May 2023 07:59:19 +0000 (08:59 +0100)] 
Renumber lines in redis_ippool Lua scripts

2 years agoUpdate redis_ippool to allow for static IP allocation
Nick Porter [Mon, 15 May 2023 16:42:21 +0000 (17:42 +0100)] 
Update redis_ippool to allow for static IP allocation

Static allocations are defined by a ZSCORE with bit 52 set in the <pool_name>:pool ZSET and pre-created entries in the <pool_name>:ip:<address> hash and <pool_name>:device:<owner> key

2 years agoremove SoH support
Alan T. DeKok [Thu, 8 Jun 2023 08:03:04 +0000 (10:03 +0200)] 
remove SoH support

2 years agobuild out make util library, too
Alan T. DeKok [Thu, 8 Jun 2023 08:02:01 +0000 (10:02 +0200)] 
build out make util library, too

2 years agoremove SoH tests
Alan T. DeKok [Thu, 8 Jun 2023 07:57:11 +0000 (09:57 +0200)] 
remove SoH tests

2 years agouse IPV6_BOUND_IF, too.
Alan T. DeKok [Thu, 8 Jun 2023 07:37:36 +0000 (09:37 +0200)] 
use IPV6_BOUND_IF, too.

And minor cleanups and consistency changes

2 years agoRemove rlm_soh
Alan T. DeKok [Mon, 29 May 2023 19:42:46 +0000 (15:42 -0400)] 
Remove rlm_soh

Microsoft deprecated SoH / NAP in Windows Server 2012 E2, and
removed it from Windows Server 2016.  The NAP client was removed
in Windows 10, in 2015

2 years agoCorrect calculation of tmpl pointer
Nick Porter [Wed, 7 Jun 2023 14:54:44 +0000 (15:54 +0100)] 
Correct calculation of tmpl pointer

2 years agoUse udp_len in UDP length checks
James Jones [Fri, 2 Jun 2023 13:45:24 +0000 (08:45 -0500)] 
Use udp_len in UDP length checks

Coverity appears to be faked out by the use of diff to
validate udp_len, and hence complains about tainted data.

2 years agoRewrite check on length in dhcpv6_print_hex()
James Jones [Fri, 2 Jun 2023 18:44:47 +0000 (13:44 -0500)] 
Rewrite check on length in dhcpv6_print_hex()

We suspect that coverity is confused by the check as written, and
so rewrite it so that the variable checked is alone on the LHS of
the comparison.

2 years agoradius: Make it impossible for the user to modify Proxy-State attributes, as we do...
Arran Cudbard-Bell [Tue, 6 Jun 2023 16:41:37 +0000 (12:41 -0400)] 
radius: Make it impossible for the user to modify Proxy-State attributes, as we do with DHCPv6 and response fields

2 years agoRemove NO_RCTX state machine macros, there's always an RCTX now
Arran Cudbard-Bell [Tue, 6 Jun 2023 16:41:08 +0000 (12:41 -0400)] 
Remove NO_RCTX state machine macros, there's always an RCTX now

2 years agoRevert "Quick hack to try and get tests passing again"
Arran Cudbard-Bell [Tue, 6 Jun 2023 13:20:38 +0000 (09:20 -0400)] 
Revert "Quick hack to try and get tests passing again"

This reverts commit 82ef4fc33b2d61fe3da92501b036f6db59fde5c5.

2 years agoDO_NOT_RESPOND is a valid reply packet type for DHCP
Nick Porter [Tue, 6 Jun 2023 11:29:50 +0000 (12:29 +0100)] 
DO_NOT_RESPOND is a valid reply packet type for DHCP

2 years agoUpdate tests to match echoed back Proxy-State
Nick Porter [Tue, 6 Jun 2023 10:11:30 +0000 (11:11 +0100)] 
Update tests to match echoed back Proxy-State

The module accounting tests use Access-Request packets but call the
modules in accouning context.

Since Access-Request packets are used, the Proxy-State in the request is
reflected back in the Access-Accept

2 years agoSet pool min and start defaults to 0, to ensure they are < max
Nick Porter [Tue, 6 Jun 2023 09:40:39 +0000 (10:40 +0100)] 
Set pool min and start defaults to 0, to ensure they are < max

2 years agoSet default for "max" in pool for rlm_redis_ippool_tool
Nick Porter [Tue, 6 Jun 2023 09:20:12 +0000 (10:20 +0100)] 
Set default for "max" in pool for rlm_redis_ippool_tool

2 years agoCheck vb is allocated (CID #1532274)
Nick Porter [Tue, 6 Jun 2023 07:24:40 +0000 (08:24 +0100)] 
Check vb is allocated (CID #1532274)

2 years agoAdd support for destination = stdout and destination = stderr
Max Khon [Mon, 5 Jun 2023 16:11:20 +0000 (17:11 +0100)] 
Add support for destination = stdout and destination = stderr

2 years agoQuick hack to try and get tests passing again
Arran Cudbard-Bell [Mon, 5 Jun 2023 17:36:27 +0000 (13:36 -0400)] 
Quick hack to try and get tests passing again

Can't replicate on local system because a bug in make makes it difficult to run these tests

2 years agoprocess_radius: Correctly store/restore proxy-state values
Arran Cudbard-Bell [Mon, 5 Jun 2023 17:34:16 +0000 (13:34 -0400)] 
process_radius:  Correctly store/restore proxy-state values

As this is required by RFC2865 we should copy proxy-state implicitly.  The values are available in the relevant send sections so can still be removed/modified if the user wants.  If there are complaints we can always add a toggle.

2 years agomake: Add toupper and tolower to reduce calls to $(shell)
Arran Cudbard-Bell [Fri, 2 Jun 2023 19:14:44 +0000 (15:14 -0400)] 
make: Add toupper and tolower to reduce calls to $(shell)

2 years agoset pool max default internally
Arran Cudbard-Bell [Wed, 31 May 2023 23:22:40 +0000 (19:22 -0400)] 
set pool max default internally

2 years agoDon't set a default value
Arran Cudbard-Bell [Wed, 31 May 2023 22:40:44 +0000 (18:40 -0400)] 
Don't set a default value

2 years agoDon't mess with the default core count
Arran Cudbard-Bell [Wed, 31 May 2023 22:30:01 +0000 (18:30 -0400)] 
Don't mess with the default core count

2 years agoUse '0' to mean error
Arran Cudbard-Bell [Wed, 31 May 2023 22:22:57 +0000 (18:22 -0400)] 
Use '0' to mean error

2 years agoWarn when we can't retrieve a core count
Arran Cudbard-Bell [Wed, 31 May 2023 22:17:45 +0000 (18:17 -0400)] 
Warn when we can't retrieve a core count

2 years agoPass parent through to common functions
Arran Cudbard-Bell [Wed, 31 May 2023 19:53:48 +0000 (15:53 -0400)] 
Pass parent through to common functions

2 years agoFixup kafka default functions
Arran Cudbard-Bell [Wed, 31 May 2023 19:39:55 +0000 (15:39 -0400)] 
Fixup kafka default functions

2 years agoSet num_workers default value earlier
Arran Cudbard-Bell [Wed, 31 May 2023 19:15:34 +0000 (15:15 -0400)] 
Set num_workers default value earlier

2 years agoWhy OpenSSL why...
Arran Cudbard-Bell [Wed, 31 May 2023 19:09:17 +0000 (15:09 -0400)] 
Why OpenSSL why...

2 years agoFix 'start' pool values
Jorge Pereira [Wed, 31 May 2023 13:36:02 +0000 (10:36 -0300)] 
Fix 'start' pool values

2 years agoRemove unnecessary return in fr_pool_init()
Jorge Pereira [Wed, 31 May 2023 16:21:50 +0000 (13:21 -0300)] 
Remove unnecessary return in fr_pool_init()

2 years agoDeprecate Debian 10 and add Ubuntu 22.04 to full deb packaging tests
Nick Porter [Wed, 31 May 2023 06:54:18 +0000 (07:54 +0100)] 
Deprecate Debian 10 and add Ubuntu 22.04 to full deb packaging tests

Debian 10 does not have Python 3.8 packages which are required for
rlm_python

2 years agoPull check for non-NULL randle after check for NULL randle
James Jones [Tue, 30 May 2023 20:06:07 +0000 (15:06 -0500)] 
Pull check for non-NULL randle after check for NULL randle

randle is local to mod_authenticate(), so in the then clause
of an if checking for randle being NULL, randle won't be non-NULL.

2 years agoDeprecate CentOS 7 and add Rocky 9 to full RPM build tests
Nick Porter [Tue, 30 May 2023 15:25:39 +0000 (16:25 +0100)] 
Deprecate CentOS 7 and add Rocky 9 to full RPM build tests

CentOS 7 doesn't have Python 3.8 which is now required for rlm_python,
and is EoL in June 2024

2 years agoInitialize num_commands to 0, the actual initial number of commands.
James Jones [Tue, 30 May 2023 18:48:48 +0000 (13:48 -0500)] 
Initialize num_commands to 0, the actual initial number of commands.

Doing this should keep coverity from getting confused and requiring
annotations.

2 years agoCorrect maths in redis_ippool_tool statistics
Nick Porter [Tue, 30 May 2023 11:41:43 +0000 (12:41 +0100)] 
Correct maths in redis_ippool_tool statistics

2 years agoFix segfault in redis_ippool_tool stats
Nick Porter [Tue, 30 May 2023 11:23:25 +0000 (12:23 +0100)] 
Fix segfault in redis_ippool_tool stats

2 years agomake DHCPv4 use flat or nested attributes
Jorge Pereira [Fri, 26 May 2023 01:54:26 +0000 (22:54 -0300)] 
make DHCPv4 use flat or nested attributes

2 years agomake TTLS use flat or nested attributes
Jorge Pereira [Fri, 26 May 2023 01:54:26 +0000 (22:54 -0300)] 
make TTLS use flat or nested attributes

2 years agomake TACACS use flat or nested attributes
Jorge Pereira [Fri, 26 May 2023 01:54:25 +0000 (22:54 -0300)] 
make TACACS use flat or nested attributes

2 years agomake RADIUS use flat or nested attributes
Jorge Pereira [Fri, 26 May 2023 01:54:25 +0000 (22:54 -0300)] 
make RADIUS use flat or nested attributes

2 years agomake Stats use flat or nested attributes
Jorge Pereira [Fri, 26 May 2023 01:54:25 +0000 (22:54 -0300)] 
make Stats use flat or nested attributes

2 years agomake MSCHAP use flat or nested attributes
Jorge Pereira [Fri, 26 May 2023 01:54:24 +0000 (22:54 -0300)] 
make MSCHAP use flat or nested attributes

2 years agomake LDAP use flat or nested attributes
Jorge Pereira [Fri, 26 May 2023 01:54:24 +0000 (22:54 -0300)] 
make LDAP use flat or nested attributes

2 years agomake Digest use flat or nested attributes
Jorge Pereira [Fri, 26 May 2023 01:54:24 +0000 (22:54 -0300)] 
make Digest use flat or nested attributes

2 years agomake BFD use flat or nested attributes
Jorge Pereira [Fri, 26 May 2023 01:54:24 +0000 (22:54 -0300)] 
make BFD use flat or nested attributes

2 years agomake EAP use flat or nested attributes
Jorge Pereira [Fri, 26 May 2023 01:54:24 +0000 (22:54 -0300)] 
make EAP use flat or nested attributes

2 years agomake radclient use flat or nested attributes
Jorge Pereira [Fri, 26 May 2023 01:51:34 +0000 (22:51 -0300)] 
make radclient use flat or nested attributes

2 years agoInitialize all of find.addr in fr_redis_cluster_pool_by_node_addr()
James Jones [Mon, 29 May 2023 01:14:13 +0000 (20:14 -0500)] 
Initialize all of find.addr in fr_redis_cluster_pool_by_node_addr()

Coverity rightly pointed out that only parts of it were set.
Better to initialize it fully than to annotate the defect.

2 years agoname the individual listeners
Alan T. DeKok [Mon, 29 May 2023 14:42:34 +0000 (10:42 -0400)] 
name the individual listeners

as per commit 99b2e070e27

2 years agoprint out which listener had the error
Alan T. DeKok [Mon, 29 May 2023 14:32:04 +0000 (10:32 -0400)] 
print out which listener had the error

2 years agodefine DHCPV6_MAX_ATTRIBUTES
Alan T. DeKok [Mon, 29 May 2023 14:27:27 +0000 (10:27 -0400)] 
define DHCPV6_MAX_ATTRIBUTES

as it was used, but wasn't defined

2 years agominor cleanups
Alan T. DeKok [Wed, 24 May 2023 14:19:25 +0000 (10:19 -0400)] 
minor cleanups

the key is now expanded to a local value-box, instead of pointing
to an attribute which might be edited by the operations we're
doing.  As a result, we don't need to copy the key to a local
buffer.

2 years agomacos: eapol_test seems to build against OpenSSL 3.0, albeit with lots of warnings
Arran Cudbard-Bell [Sun, 28 May 2023 03:09:16 +0000 (22:09 -0500)] 
macos: eapol_test seems to build against OpenSSL 3.0, albeit with lots of warnings

2 years agojlibtool: Print environment in verbose mode
Arran Cudbard-Bell [Sun, 28 May 2023 02:57:35 +0000 (21:57 -0500)] 
jlibtool: Print environment in verbose mode

2 years agoRemove potentially unecessary explicit framework includes
Arran Cudbard-Bell [Fri, 26 May 2023 23:24:33 +0000 (19:24 -0400)] 
Remove potentially unecessary explicit framework includes

2 years agoSearch in the place we found the last OpenSSL libary for subsequent libraries
Arran Cudbard-Bell [Fri, 26 May 2023 23:19:04 +0000 (19:19 -0400)] 
Search in the place we found the last OpenSSL libary for subsequent libraries

2 years agorecord where we found the library
Arran Cudbard-Bell [Fri, 26 May 2023 23:18:43 +0000 (19:18 -0400)] 
record where we found the library

2 years agomacos: Search in the new ARM homebrew location by default
Arran Cudbard-Bell [Fri, 26 May 2023 23:18:24 +0000 (19:18 -0400)] 
macos: Search in the new ARM homebrew location by default

2 years agorlm_totp: Convert to call_env
Arran Cudbard-Bell [Fri, 26 May 2023 15:08:09 +0000 (11:08 -0400)] 
rlm_totp: Convert to call_env

2 years agoSkip recursive _raddict_export() call if children == NULL
James Jones [Fri, 26 May 2023 11:59:47 +0000 (06:59 -0500)] 
Skip recursive _raddict_export() call if children == NULL

Arguably a redundant test, but the alternative would be to
model talloc_array_length() to make clear to coverity that
it returns zero if handed NULL, and we're not sure that
modeling functions can check their parameters.

2 years agoradclient: Allow source IP address to be set on the command line
Arran Cudbard-Bell [Thu, 25 May 2023 21:56:25 +0000 (17:56 -0400)] 
radclient: Allow source IP address to be set on the command line

2 years agoradhttpcheck: Should probably just default to status-server out of the box
Arran Cudbard-Bell [Thu, 25 May 2023 21:50:53 +0000 (17:50 -0400)] 
radhttpcheck: Should probably just default to status-server out of the box

2 years agoRemove uninit_use_in_call annotations to verity model
James Jones [Thu, 25 May 2023 18:37:11 +0000 (13:37 -0500)] 
Remove uninit_use_in_call annotations to verity model