]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Arran Cudbard-Bell [Sat, 2 Sep 2023 16:39:31 +0000 (10:39 -0600)]
Revert "as a temporary hack, just skip the LDAP tests"
This reverts commit
031246dbe0235f462f1b0d11a02a10c27474f111 .
Arran Cudbard-Bell [Sat, 2 Sep 2023 16:22:33 +0000 (10:22 -0600)]
ldap: More fixes
Seems like we hang on an improperly configured LDAP instance with SSL
Alan T. DeKok [Sat, 2 Sep 2023 14:14:40 +0000 (10:14 -0400)]
make Net.* mutable for tests, and delete them in json.encode
Alan T. DeKok [Sat, 2 Sep 2023 13:48:40 +0000 (09:48 -0400)]
as a temporary hack, just skip the LDAP tests
this lets us move forward verifying that the other changes
don't break CI
Alan T. DeKok [Sat, 2 Sep 2023 13:46:49 +0000 (09:46 -0400)]
remove old paircmp() tests
Alan T. DeKok [Sat, 2 Sep 2023 13:41:37 +0000 (09:41 -0400)]
remove unused references to port
Alan T. DeKok [Sat, 2 Sep 2023 13:39:36 +0000 (09:39 -0400)]
Packet-Dst-IP-Address --> Net.Dst.IP
Alan T. DeKok [Sat, 2 Sep 2023 13:37:55 +0000 (09:37 -0400)]
this should be nested, too
Alan T. DeKok [Sat, 2 Sep 2023 13:22:59 +0000 (09:22 -0400)]
force it
Alan T. DeKok [Sat, 2 Sep 2023 13:17:44 +0000 (09:17 -0400)]
!* is so v3. We do v4 now.
Alan T. DeKok [Sat, 2 Sep 2023 13:05:39 +0000 (09:05 -0400)]
move to Net.*
Alan T. DeKok [Sat, 2 Sep 2023 12:57:31 +0000 (08:57 -0400)]
move to using Net.* instead of Packet-*
Alan T. DeKok [Sat, 2 Sep 2023 12:44:17 +0000 (08:44 -0400)]
remove Packet-* from module configuration
Alan T. DeKok [Sat, 2 Sep 2023 12:44:00 +0000 (08:44 -0400)]
allow for per-module dictionaries
Alan T. DeKok [Sat, 2 Sep 2023 12:41:01 +0000 (08:41 -0400)]
re-realize Net.*
and update the pairs test so we don't need to look at Net.*
Jorge Pereira [Fri, 1 Sep 2023 19:20:38 +0000 (16:20 -0300)]
Fix 'join' keyword test
now that unit_test_module creates Net.*. the test output has
changed. So we update the test.
Jorge Pereira [Fri, 1 Sep 2023 19:13:51 +0000 (16:13 -0300)]
Fix 'concat' keyword test
Arran Cudbard-Bell [Fri, 1 Sep 2023 23:33:12 +0000 (17:33 -0600)]
ldap: Setup script fixes
Don't duplicate the ENTIRE script just to start a second LDAP instance. Add paths for homebrew on ARM. Kill existing slapd instances so we don't get errors about the database already existing.
ff
Arran Cudbard-Bell [Fri, 1 Sep 2023 23:31:53 +0000 (17:31 -0600)]
ldap: Just because there's a problem with group membership DOES NOT mean we should return notfound
Arran Cudbard-Bell [Fri, 1 Sep 2023 01:04:03 +0000 (19:04 -0600)]
ldap: Add support for custom access attribute negation values
Add support for using different profiles when the user is suspended, which is extremely common where suspension will place a user in a walled garden state.
Alan T. DeKok [Fri, 1 Sep 2023 19:32:50 +0000 (15:32 -0400)]
remove unused label
Alan T. DeKok [Fri, 1 Sep 2023 17:09:58 +0000 (13:09 -0400)]
we don't test detail here
Alan T. DeKok [Fri, 1 Sep 2023 17:08:33 +0000 (13:08 -0400)]
we don't test the detail module here
Alan T. DeKok [Fri, 1 Sep 2023 15:14:35 +0000 (11:14 -0400)]
this test doesn't need EAP
Alan T. DeKok [Fri, 1 Sep 2023 15:14:06 +0000 (11:14 -0400)]
this test doesn't need accounting
Alan T. DeKok [Fri, 1 Sep 2023 15:10:05 +0000 (11:10 -0400)]
these tests don't have to be Packet-Src-*
Alan T. DeKok [Fri, 1 Sep 2023 15:09:53 +0000 (11:09 -0400)]
make unit_test_module use Net.*
and update the xlat tests to match
Alan T. DeKok [Fri, 1 Sep 2023 14:03:52 +0000 (10:03 -0400)]
make radclient use Net.*
Alan T. DeKok [Fri, 1 Sep 2023 14:08:57 +0000 (10:08 -0400)]
make dhcpclient use Net.*
Jorge Pereira [Fri, 1 Sep 2023 04:31:11 +0000 (01:31 -0300)]
Add notes 'Packet-*' to 'Net.*' on upgrade doc
Jorge Pereira [Wed, 30 Aug 2023 01:14:03 +0000 (22:14 -0300)]
Add calls for load/set 'Net.*' pairs from packet
Alan T. DeKok [Fri, 1 Sep 2023 14:50:14 +0000 (10:50 -0400)]
use fr_pair_find_or_append_by_da()
Alan T. DeKok [Fri, 1 Sep 2023 14:49:32 +0000 (10:49 -0400)]
add fr_pair_find_or_append_by_da()
it's used a lot more with nested attributes
Alan T. DeKok [Fri, 1 Sep 2023 13:47:15 +0000 (09:47 -0400)]
add support for nested attributes
Alan T. DeKok [Fri, 1 Sep 2023 13:03:08 +0000 (09:03 -0400)]
add set_immutable
Alan T. DeKok [Fri, 1 Sep 2023 12:47:08 +0000 (08:47 -0400)]
add packet to Net.* and Net.* to packet functions
Jorge Pereira [Tue, 29 Aug 2023 19:16:38 +0000 (16:16 -0300)]
Define new 'Net.' attribute
Nick Porter [Fri, 1 Sep 2023 14:34:46 +0000 (15:34 +0100)]
Handle difference between TACACS and RADIUS MS-CHAP Response formats
Nick Porter [Fri, 1 Sep 2023 07:30:13 +0000 (08:30 +0100)]
Use consistent return values
Nick Porter [Thu, 31 Aug 2023 20:21:03 +0000 (21:21 +0100)]
More efficient tmpl only call_env evaluation
Nick Porter [Fri, 1 Sep 2023 07:28:48 +0000 (08:28 +0100)]
Change type to reduce casts
Nick Porter [Thu, 31 Aug 2023 18:11:11 +0000 (19:11 +0100)]
Allow tmpl to be at the start of call_env destination structure
A tmpl at the start of the structure will have offset 0, so make the "no
tmpl" offset -1.
github-actions[bot] [Fri, 1 Sep 2023 09:34:43 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar
github-actions[bot] [Fri, 1 Sep 2023 09:34:40 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Fri, 1 Sep 2023 09:34:37 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar
github-actions[bot] [Fri, 1 Sep 2023 09:34:33 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar
github-actions[bot] [Fri, 1 Sep 2023 09:34:31 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
github-actions[bot] [Fri, 1 Sep 2023 09:34:28 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Fri, 1 Sep 2023 09:34:24 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Fri, 1 Sep 2023 09:34:22 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Fri, 1 Sep 2023 09:34:18 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
Arran Cudbard-Bell [Thu, 31 Aug 2023 21:27:51 +0000 (15:27 -0600)]
Ldif too
Arran Cudbard-Bell [Thu, 31 Aug 2023 21:27:21 +0000 (15:27 -0600)]
Re-Use freeRADIUSClientIdentifier as the RDN attribute
Nick Porter [Thu, 31 Aug 2023 11:31:11 +0000 (12:31 +0100)]
Build with libwbclient for rpm packages
Nick Porter [Thu, 31 Aug 2023 13:40:55 +0000 (14:40 +0100)]
Add "required" option to call_env subsections
Avoids broken configurations from crashing the server where subsections
contain required options, which otherwise would not be parsed
Alan T. DeKok [Thu, 31 Aug 2023 15:50:27 +0000 (11:50 -0400)]
fix unit_test_module to actually check the results
and remove the dependency on the radius-only xlats
Alan T. DeKok [Thu, 31 Aug 2023 15:46:37 +0000 (11:46 -0400)]
remove unnecessary variable
Alan T. DeKok [Thu, 31 Aug 2023 15:31:21 +0000 (11:31 -0400)]
"can't parse" is "return 0"
Alan T. DeKok [Thu, 31 Aug 2023 15:27:14 +0000 (11:27 -0400)]
one more Packet-Authentication-Vector
Alan T. DeKok [Thu, 31 Aug 2023 15:03:11 +0000 (11:03 -0400)]
no local compiler errors, but CI complains
Alan T. DeKok [Thu, 31 Aug 2023 14:09:35 +0000 (10:09 -0400)]
remove Packet-Authentication-Vector here, too
Alan T. DeKok [Thu, 31 Aug 2023 13:42:47 +0000 (09:42 -0400)]
remove restrictions on attribute numbers
there are just too many attributes now which can go anywhere,
so these checks are significantly less useful
Alan T. DeKok [Thu, 31 Aug 2023 13:28:38 +0000 (09:28 -0400)]
it helps to remove unused things
Alan T. DeKok [Thu, 31 Aug 2023 13:21:22 +0000 (09:21 -0400)]
this is no longer virtual
it's only used for internal tests
Alan T. DeKok [Thu, 31 Aug 2023 13:17:49 +0000 (09:17 -0400)]
replace Packet-Authentication-Vector
It's still used for radius_tp_decode_proto, but the attribute
is no longer a virtual one
Alan T. DeKok [Wed, 30 Aug 2023 15:30:43 +0000 (11:30 -0400)]
s/vector/challenge/
it's only stupid RADIUS which puts the challenge into the packet
header / authentication vector
Alan T. DeKok [Wed, 30 Aug 2023 15:10:27 +0000 (11:10 -0400)]
move CHAP encode to src/lib/util
because it's no longer a RADIUS protocol function
Alan T. DeKok [Wed, 30 Aug 2023 15:09:49 +0000 (11:09 -0400)]
don't depend on CHAP length. Use MD5 length.
It's all 16 octets, but this removes an unnecessary dependency
on CHAP
Nick Porter [Wed, 30 Aug 2023 10:55:12 +0000 (11:55 +0100)]
Add CHAP tests to TACACS
Nick Porter [Wed, 30 Aug 2023 10:07:56 +0000 (11:07 +0100)]
Add CHAP options to command line of tacacs_client
Nick Porter [Wed, 30 Aug 2023 09:45:59 +0000 (10:45 +0100)]
No need for tacacs_pap policy now rlm_chap uses call_env
Nick Porter [Tue, 29 Aug 2023 16:28:43 +0000 (17:28 +0100)]
Use a call_env with rlm_chap
Nick Porter [Tue, 29 Aug 2023 16:30:24 +0000 (17:30 +0100)]
Update TACACS test to call rlm_pap
Nick Porter [Mon, 28 Aug 2023 17:10:57 +0000 (18:10 +0100)]
No need for tacacs_pap policy now rlm_pap uses call_env
Nick Porter [Mon, 28 Aug 2023 17:04:13 +0000 (18:04 +0100)]
Use a call environment for rlm_pap
Nick Porter [Wed, 30 Aug 2023 09:26:30 +0000 (10:26 +0100)]
Use min_challenge_len when checking length of CHAP-Challenge
Nick Porter [Wed, 30 Aug 2023 09:14:01 +0000 (10:14 +0100)]
Convert %(chap_password:) to a module xlat so we can pass in the instance data
Nick Porter [Wed, 30 Aug 2023 09:12:23 +0000 (10:12 +0100)]
Add min_challenge_len to CHAP module config
Un-documented as it should only be changed to handle insane client
devices.
Nick Porter [Wed, 30 Aug 2023 08:22:14 +0000 (09:22 +0100)]
Add vector_len to fr_radius_encode_chap_password
To allow for variable length challenges
Alan T. DeKok [Wed, 30 Aug 2023 00:50:11 +0000 (20:50 -0400)]
%{} vs %() is a dice roll
Alan T. DeKok [Tue, 29 Aug 2023 23:35:32 +0000 (19:35 -0400)]
remove last vestiges of Virtual-Server
Jorge Pereira [Tue, 29 Aug 2023 23:14:10 +0000 (20:14 -0300)]
Dictionaries prefix are not longer used (#5165)
Let's normalize all dictionaries to not use Vendor name as a prefix.
Alan T. DeKok [Tue, 29 Aug 2023 22:16:29 +0000 (18:16 -0400)]
remove unused Packet-Type
Alan T. DeKok [Tue, 29 Aug 2023 22:14:48 +0000 (18:14 -0400)]
removed unused attribute and functions
Alan T. DeKok [Tue, 29 Aug 2023 22:05:11 +0000 (18:05 -0400)]
Remove old virtual attributes
Module-Return-Code
Virtual-Server
Request-Processing-Stage
update examples, document them, etc.
Alan T. DeKok [Tue, 29 Aug 2023 21:47:14 +0000 (17:47 -0400)]
add %{interpreter:...} for virtual attributes
Module-Return-Code
Virtual-Server
Request-Processing-Stage
the processing stage _should_ be things like "recv Access-Request".
Due to various re-architecture issues, it's now hard-coded by the
src/process functions to be the name of the protocol.
We probably want to fix that
Alan T. DeKok [Tue, 29 Aug 2023 21:37:47 +0000 (17:37 -0400)]
typos
Alan T. DeKok [Tue, 29 Aug 2023 21:32:26 +0000 (17:32 -0400)]
remove extraneous "break"
Jorge Pereira [Tue, 29 Aug 2023 18:03:07 +0000 (15:03 -0300)]
Fixup Doxygen comments
Alan T. DeKok [Tue, 29 Aug 2023 15:41:53 +0000 (11:41 -0400)]
remove migration use_new_conditions
Jorge Pereira [Tue, 29 Aug 2023 15:06:56 +0000 (12:06 -0300)]
Dictionaries prefix are not longer used (#5163)
Nick Porter [Fri, 25 Aug 2023 11:34:06 +0000 (12:34 +0100)]
Use call env to evaluate password for LDAP bind
Makes module protocol agnostic for LDAP binds
Nick Porter [Mon, 28 Aug 2023 16:12:34 +0000 (17:12 +0100)]
SASL user binds do not need to look up the user DN
This means that if user binds use SASL, and the LDAP module has not
already been called to retrieve the user object, there is no need to
perform the initial lookup of the DN.
So, in the case that LDAP's sole purpose is to perform authentication
this reduces the number of LDAP calls made.
Nick Porter [Fri, 25 Aug 2023 10:52:23 +0000 (11:52 +0100)]
&User-Name is not actually used in LDAP bind auth
What actually happens is the user DN is looked up using the base and
filter, then the bind is performed as that DN.
Therefore, User-Name is not strictly needed - something else could be
identifying the user.
Nick Porter [Fri, 25 Aug 2023 17:15:50 +0000 (18:15 +0100)]
Set bind_pool start = 0 to reduce noise in LDAP test logs
Nick Porter [Tue, 29 Aug 2023 10:02:45 +0000 (11:02 +0100)]
Use ldap_url_desc2str for building referral host uris
To be consistent with other construction of host URIs
Nick Porter [Tue, 29 Aug 2023 09:30:46 +0000 (10:30 +0100)]
Assess LDAP map to set expect_password if a password is being retrieved
Original setting of this got lost in move of ldap map code in 2017...
Nick Porter [Fri, 25 Aug 2023 14:13:27 +0000 (15:13 +0100)]
SASL bind doesn't use the DN
Nick Porter [Fri, 25 Aug 2023 16:52:12 +0000 (17:52 +0100)]
Add notes on LDAP group membership xlat to upgrade doc
Nick Porter [Fri, 25 Aug 2023 13:52:34 +0000 (14:52 +0100)]
Ensure we print the log entry with either error or fmt populated