]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
2 years agoAdd notes 'Packet-*' to 'Net.*' on upgrade doc
Jorge Pereira [Fri, 1 Sep 2023 04:31:11 +0000 (01:31 -0300)] 
Add notes 'Packet-*' to 'Net.*' on upgrade doc

2 years agoAdd calls for load/set 'Net.*' pairs from packet
Jorge Pereira [Wed, 30 Aug 2023 01:14:03 +0000 (22:14 -0300)] 
Add calls for load/set 'Net.*' pairs from packet

2 years agouse fr_pair_find_or_append_by_da()
Alan T. DeKok [Fri, 1 Sep 2023 14:50:14 +0000 (10:50 -0400)] 
use fr_pair_find_or_append_by_da()

2 years agoadd 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

2 years agoadd support for nested attributes
Alan T. DeKok [Fri, 1 Sep 2023 13:47:15 +0000 (09:47 -0400)] 
add support for nested attributes

2 years agoadd set_immutable
Alan T. DeKok [Fri, 1 Sep 2023 13:03:08 +0000 (09:03 -0400)] 
add set_immutable

2 years agoadd packet to Net.* and Net.* to packet functions
Alan T. DeKok [Fri, 1 Sep 2023 12:47:08 +0000 (08:47 -0400)] 
add packet to Net.* and Net.* to packet functions

2 years agoDefine new 'Net.' attribute
Jorge Pereira [Tue, 29 Aug 2023 19:16:38 +0000 (16:16 -0300)] 
Define new 'Net.' attribute

2 years agoHandle difference between TACACS and RADIUS MS-CHAP Response formats
Nick Porter [Fri, 1 Sep 2023 14:34:46 +0000 (15:34 +0100)] 
Handle difference between TACACS and RADIUS MS-CHAP Response formats

2 years agoUse consistent return values
Nick Porter [Fri, 1 Sep 2023 07:30:13 +0000 (08:30 +0100)] 
Use consistent return values

2 years agoMore efficient tmpl only call_env evaluation
Nick Porter [Thu, 31 Aug 2023 20:21:03 +0000 (21:21 +0100)] 
More efficient tmpl only call_env evaluation

2 years agoChange type to reduce casts
Nick Porter [Fri, 1 Sep 2023 07:28:48 +0000 (08:28 +0100)] 
Change type to reduce casts

2 years agoAllow tmpl to be at the start of call_env destination structure
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.

2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar
github-actions[bot] [Fri, 1 Sep 2023 09:34:43 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar

2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Fri, 1 Sep 2023 09:34:40 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar

2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar
github-actions[bot] [Fri, 1 Sep 2023 09:34:37 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar

2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar
github-actions[bot] [Fri, 1 Sep 2023 09:34:33 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar

2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
github-actions[bot] [Fri, 1 Sep 2023 09:34:31 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar

2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Fri, 1 Sep 2023 09:34:28 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar

2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Fri, 1 Sep 2023 09:34:24 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar

2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Fri, 1 Sep 2023 09:34:22 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar

2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
github-actions[bot] [Fri, 1 Sep 2023 09:34:18 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar

2 years agoLdif too
Arran Cudbard-Bell [Thu, 31 Aug 2023 21:27:51 +0000 (15:27 -0600)] 
Ldif too

2 years agoRe-Use freeRADIUSClientIdentifier as the RDN attribute
Arran Cudbard-Bell [Thu, 31 Aug 2023 21:27:21 +0000 (15:27 -0600)] 
Re-Use freeRADIUSClientIdentifier as the RDN attribute

2 years agoBuild with libwbclient for rpm packages
Nick Porter [Thu, 31 Aug 2023 11:31:11 +0000 (12:31 +0100)] 
Build with libwbclient for rpm packages

2 years agoAdd "required" option to call_env subsections
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

2 years agofix unit_test_module to actually check the results
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

2 years agoremove unnecessary variable
Alan T. DeKok [Thu, 31 Aug 2023 15:46:37 +0000 (11:46 -0400)] 
remove unnecessary variable

2 years ago"can't parse" is "return 0"
Alan T. DeKok [Thu, 31 Aug 2023 15:31:21 +0000 (11:31 -0400)] 
"can't parse" is "return 0"

2 years agoone more Packet-Authentication-Vector
Alan T. DeKok [Thu, 31 Aug 2023 15:27:14 +0000 (11:27 -0400)] 
one more Packet-Authentication-Vector

2 years agono local compiler errors, but CI complains
Alan T. DeKok [Thu, 31 Aug 2023 15:03:11 +0000 (11:03 -0400)] 
no local compiler errors, but CI complains

2 years agoremove Packet-Authentication-Vector here, too
Alan T. DeKok [Thu, 31 Aug 2023 14:09:35 +0000 (10:09 -0400)] 
remove Packet-Authentication-Vector here, too

2 years agoremove restrictions on attribute numbers
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

2 years agoit helps to remove unused things
Alan T. DeKok [Thu, 31 Aug 2023 13:28:38 +0000 (09:28 -0400)] 
it helps to remove unused things

2 years agothis is no longer virtual
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

2 years agoreplace Packet-Authentication-Vector
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

2 years agos/vector/challenge/
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

2 years agomove CHAP encode to src/lib/util
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

2 years agodon't depend on CHAP length. Use MD5 length.
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

2 years agoAdd CHAP tests to TACACS
Nick Porter [Wed, 30 Aug 2023 10:55:12 +0000 (11:55 +0100)] 
Add CHAP tests to TACACS

2 years agoAdd CHAP options to command line of tacacs_client
Nick Porter [Wed, 30 Aug 2023 10:07:56 +0000 (11:07 +0100)] 
Add CHAP options to command line of tacacs_client

2 years agoNo need for tacacs_pap policy now rlm_chap uses call_env
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

2 years agoUse a call_env with rlm_chap
Nick Porter [Tue, 29 Aug 2023 16:28:43 +0000 (17:28 +0100)] 
Use a call_env with rlm_chap

2 years agoUpdate TACACS test to call rlm_pap
Nick Porter [Tue, 29 Aug 2023 16:30:24 +0000 (17:30 +0100)] 
Update TACACS test to call rlm_pap

2 years agoNo need for tacacs_pap policy now rlm_pap uses call_env
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

2 years agoUse a call environment for rlm_pap
Nick Porter [Mon, 28 Aug 2023 17:04:13 +0000 (18:04 +0100)] 
Use a call environment for rlm_pap

2 years agoUse min_challenge_len when checking length of CHAP-Challenge
Nick Porter [Wed, 30 Aug 2023 09:26:30 +0000 (10:26 +0100)] 
Use min_challenge_len when checking length of CHAP-Challenge

2 years agoConvert %(chap_password:) to a module xlat so we can pass in the instance data
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

2 years agoAdd min_challenge_len to CHAP module config
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.

2 years agoAdd vector_len to fr_radius_encode_chap_password
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

2 years ago%{} vs %() is a dice roll
Alan T. DeKok [Wed, 30 Aug 2023 00:50:11 +0000 (20:50 -0400)] 
%{} vs %() is a dice roll

2 years agoremove last vestiges of Virtual-Server
Alan T. DeKok [Tue, 29 Aug 2023 23:35:32 +0000 (19:35 -0400)] 
remove last vestiges of Virtual-Server

2 years agoDictionaries prefix are not longer used (#5165)
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.

2 years agoremove unused Packet-Type
Alan T. DeKok [Tue, 29 Aug 2023 22:16:29 +0000 (18:16 -0400)] 
remove unused Packet-Type

2 years agoremoved unused attribute and functions
Alan T. DeKok [Tue, 29 Aug 2023 22:14:48 +0000 (18:14 -0400)] 
removed unused attribute and functions

2 years agoRemove old virtual attributes
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.

2 years agoadd %{interpreter:...} for virtual attributes
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

2 years agotypos
Alan T. DeKok [Tue, 29 Aug 2023 21:37:47 +0000 (17:37 -0400)] 
typos

2 years agoremove extraneous "break"
Alan T. DeKok [Tue, 29 Aug 2023 21:32:26 +0000 (17:32 -0400)] 
remove extraneous "break"

2 years agoFixup Doxygen comments
Jorge Pereira [Tue, 29 Aug 2023 18:03:07 +0000 (15:03 -0300)] 
Fixup Doxygen comments

2 years agoremove migration use_new_conditions
Alan T. DeKok [Tue, 29 Aug 2023 15:41:53 +0000 (11:41 -0400)] 
remove migration use_new_conditions

2 years agoDictionaries prefix are not longer used (#5163)
Jorge Pereira [Tue, 29 Aug 2023 15:06:56 +0000 (12:06 -0300)] 
Dictionaries prefix are not longer used (#5163)

2 years agoUse call env to evaluate password for LDAP bind
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

2 years agoSASL user binds do not need to look up the user DN
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.

2 years ago&User-Name is not actually used in LDAP bind auth
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.

2 years agoSet bind_pool start = 0 to reduce noise in LDAP test logs
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

2 years agoUse ldap_url_desc2str for building referral host uris
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

2 years agoAssess LDAP map to set expect_password if a password is being retrieved
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...

2 years agoSASL bind doesn't use the DN
Nick Porter [Fri, 25 Aug 2023 14:13:27 +0000 (15:13 +0100)] 
SASL bind doesn't use the DN

2 years agoAdd notes on LDAP group membership xlat to upgrade doc
Nick Porter [Fri, 25 Aug 2023 16:52:12 +0000 (17:52 +0100)] 
Add notes on LDAP group membership xlat to upgrade doc

2 years agoEnsure we print the log entry with either error or fmt populated
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

2 years agoBetter error message
Nick Porter [Fri, 25 Aug 2023 13:51:25 +0000 (14:51 +0100)] 
Better error message

2 years agoand again "shut the heck up"
Alan T. DeKok [Tue, 29 Aug 2023 00:53:17 +0000 (20:53 -0400)] 
and again "shut the heck up"

2 years agomore "shut up static analysis"
Alan T. DeKok [Tue, 29 Aug 2023 00:38:13 +0000 (20:38 -0400)] 
more "shut up static analysis"

2 years agoupdate doc notes
Alan T. DeKok [Mon, 28 Aug 2023 21:53:51 +0000 (17:53 -0400)] 
update doc notes

2 years agowho killed the dinosaurs?
Alan T. DeKok [Mon, 28 Aug 2023 21:50:47 +0000 (17:50 -0400)] 
who killed the dinosaurs?

We did!

The only paircmp() API is finally gone.  Good riddance to bad rubbish.

2 years agore-enable regex tests for files module
Alan T. DeKok [Mon, 28 Aug 2023 21:49:58 +0000 (17:49 -0400)] 
re-enable regex tests for files module

and fix code to match

2 years agotypo
Alan T. DeKok [Mon, 28 Aug 2023 21:49:34 +0000 (17:49 -0400)] 
typo

2 years agoshut up static analyzer
Alan T. DeKok [Mon, 28 Aug 2023 21:46:04 +0000 (17:46 -0400)] 
shut up static analyzer

2 years agoshut up static analyzer
Alan T. DeKok [Mon, 28 Aug 2023 21:18:48 +0000 (17:18 -0400)] 
shut up static analyzer

2 years agoallow and handled regexes
Alan T. DeKok [Mon, 28 Aug 2023 21:10:14 +0000 (17:10 -0400)] 
allow and handled regexes

2 years agoRevert "Attempt to keep fr_nbo_to_foo() from tainting the pointer (#5156)"
Alan T. DeKok [Mon, 28 Aug 2023 21:05:36 +0000 (17:05 -0400)] 
Revert "Attempt to keep fr_nbo_to_foo() from tainting the pointer (#5156)"

This reverts commit 6bcdb8a7200cab4d185a9e73a823944983c15a8f.

this made no difference to Coverity

2 years agoRevert "Skip fr_assert() for static analysis (CID #1414423)"
Alan T. DeKok [Mon, 28 Aug 2023 21:02:19 +0000 (17:02 -0400)] 
Revert "Skip fr_assert() for static analysis (CID #1414423)"

This reverts commit 28aae6fc257004cb24473934657436466d59dd22.

2 years agoremove note that regexes aren't supported.
Alan T. DeKok [Mon, 28 Aug 2023 21:01:52 +0000 (17:01 -0400)] 
remove note that regexes aren't supported.

2 years agoadd fr_regex_cmp_op()
Alan T. DeKok [Mon, 28 Aug 2023 20:59:05 +0000 (16:59 -0400)] 
add fr_regex_cmp_op()

as a mirror to fr_value_box_cmp_op(), and which is called from
that function.

If the LHS isn't a string / octets, the LHS is printed to an
intermediate buffer, and that is used for the regex.

2 years agoSkip fr_assert() for static analysis (CID #1414423)
James Jones [Mon, 28 Aug 2023 15:44:37 +0000 (10:44 -0500)] 
Skip fr_assert() for static analysis (CID #1414423)

For static analysis, fr_assert() is plain assert...but otherwise,
for non-debugging versions, it just logs. That means that to
coverity, the mutex won't be unlocked, while in production it
will always be unlocked.

2 years agoAruba(dictionary): Update dicto from ClearPass 6.11.4
Alexis La Goutte [Mon, 28 Aug 2023 14:32:25 +0000 (14:32 +0000)] 
Aruba(dictionary): Update dicto from ClearPass 6.11.4

2 years agomake the files module work (mostly)
Alan T. DeKok [Mon, 28 Aug 2023 17:51:11 +0000 (13:51 -0400)] 
make the files module work (mostly)

Regular expressions are not supported.

Arguably the module actually supported inter-attribute comparisons,
we just never tried that?

2 years agoremove old condition code
Alan T. DeKok [Mon, 28 Aug 2023 14:20:26 +0000 (10:20 -0400)] 
remove old condition code

2 years agoremove last potential call to cond_tokenize
Alan T. DeKok [Mon, 28 Aug 2023 13:16:01 +0000 (09:16 -0400)] 
remove last potential call to cond_tokenize

We can then remove all of the old condition code

2 years agoupdate unit tests to only use new conditions
Alan T. DeKok [Mon, 28 Aug 2023 12:44:09 +0000 (08:44 -0400)] 
update unit tests to only use new conditions

which resulted in a number of changes

* the xlats need to be instantiated (and they're not), so we can't
  print regexes.  As a reuslt, regex parsing tests are omitted

* escape tests are omitted, as the old code automatically purifies
  them, and the new ones don't do that

* the only code purifies a lot of things automatically.  The new
  code doesn't, so many tests changed

* the old code reordered conditions to put the attribute on the LHS
  the new code doesn't.

* the old code printed many casts, which are suppressed in the
  new code

* the old code printed rcodes and existence checks as-is.  The new
  code printes them as functions.  If we care to fix this, we can
  add a "print" callback which just prints them in the correct
  format.  However, because the xlats aren't instantiated, the
  print routine won't really work the way we expect.

* the output files have a bunch of "@todo" sprinkled through them
  these are things which could likely be fixed without too much
  work, but which aren't critical, and don't affect behavior

2 years agothere's no longer any cond_t in the "if" block
Alan T. DeKok [Mon, 28 Aug 2023 12:43:52 +0000 (08:43 -0400)] 
there's no longer any cond_t in the "if" block

2 years agoinst->xlat may not exist in some circumstances
Alan T. DeKok [Mon, 28 Aug 2023 00:51:25 +0000 (20:51 -0400)] 
inst->xlat may not exist in some circumstances

2 years agoremove use_new_conditions flag, and start hard-coding it
Alan T. DeKok [Sun, 27 Aug 2023 21:46:51 +0000 (17:46 -0400)] 
remove use_new_conditions flag, and start hard-coding it

the command-line parameter is still accepted for compatibility,
but it is ignored.

2 years agodon't force use_new_conditions = false
Alan T. DeKok [Sun, 27 Aug 2023 20:05:18 +0000 (16:05 -0400)] 
don't force use_new_conditions = false

2 years agodict_def can be NULL for unit tests
Alan T. DeKok [Sun, 27 Aug 2023 19:48:38 +0000 (15:48 -0400)] 
dict_def can be NULL for unit tests

2 years agoset dict for functions we alloc
Alan T. DeKok [Sun, 27 Aug 2023 19:32:55 +0000 (15:32 -0400)] 
set dict for functions we alloc

2 years agocopy dict when copying functions
Alan T. DeKok [Sun, 27 Aug 2023 19:32:33 +0000 (15:32 -0400)] 
copy dict when copying functions

2 years agomake error message clearer.
Alan T. DeKok [Sun, 27 Aug 2023 19:31:06 +0000 (15:31 -0400)] 
make error message clearer.

We also have an issue where 'cp' may be NULL, and it still calls
cf_log_err(cp, ...).  But that will be another fix

2 years agocan't be passing NULL parameters, including dict_def
Alan T. DeKok [Sun, 27 Aug 2023 19:27:09 +0000 (15:27 -0400)] 
can't be passing NULL parameters, including dict_def