]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Nick Porter [Tue, 30 Mar 2021 11:29:05 +0000 (12:29 +0100)]
v4: Convert %{expr: } to new xlat api (#4042)
* Convert %{expr: } to new xlat api
* Remove incorrect "UNUSED"
Arran Cudbard-Bell [Tue, 30 Mar 2021 11:27:59 +0000 (12:27 +0100)]
ctx is actually used
Arran Cudbard-Bell [Tue, 30 Mar 2021 11:25:09 +0000 (12:25 +0100)]
Avoid allocating dummy requests in rlm_redis_ippool_tool
That now requires the dictionaries, and we really don't want to add that dependency...
Arran Cudbard-Bell [Tue, 30 Mar 2021 10:50:36 +0000 (11:50 +0100)]
Fix trigger args assert
Nick Porter [Mon, 29 Mar 2021 18:50:17 +0000 (19:50 +0100)]
Comment fix (#4040)
Nick Porter [Mon, 29 Mar 2021 14:27:36 +0000 (15:27 +0100)]
v4: Convert dict xlats to new api (#4039)
* Convert %(attr_by_num: ) to new xlat api
* Convert %(attr_by_oid: ) to new xlat api
* Convert %(vendor: ) to new xlat api
* Convert %(vendor_num: ) to new xlat api
* Convert %(attr: ) to new xlat api
* Convert %(attr_num: ) to new xlat api
Nick Porter [Mon, 29 Mar 2021 14:26:48 +0000 (15:26 +0100)]
v4: Convert %(client: ) to new xlat api (#4038)
* Convert %(client: ) to new xlat api
* Update documentation for %(client: ) xlat
* Update existing uses of %(client: ) xlat in raddb
* Update existing reference to %(client: ) in tests
* Add specific test for %(client: ) xlat
* Tidy client map test
* Fix docs
They were very wrong...
* Fix examples in config file too
Co-authored-by: Arran Cudbard-Bell <a.cudbardb@freeradius.org>
Nick Porter [Mon, 29 Mar 2021 14:22:01 +0000 (15:22 +0100)]
v4: Define arguments for %(length: ) xlat (#4037)
* Define arguments for %(length: ) xlat
* Update tests that use %(length: ) xlat
* Update docs for %(length: ) xlat
* Make xlat_fmt_aprint() reflect original call syntax
* Make xlat_print reflect original call syntax
Nick Porter [Mon, 29 Mar 2021 14:19:25 +0000 (15:19 +0100)]
v4: Convert %(interpreter: ) to new xlat api (#4036)
* Convert %(interpreter: ) to new xlat api
* Update existing tests to use new %(interpreter: ) syntax
* Update documentation for %(interpreter: ) xlat
* Add test for %(interpreter: ) xlat
* Typo
Co-authored-by: Arran Cudbard-Bell <a.cudbardb@freeradius.org>
Nick Porter [Mon, 29 Mar 2021 09:18:04 +0000 (10:18 +0100)]
v4: convert %(config :) to new xlat api (#4033)
* Convert %{config: } to new xlat api
* Update documentation for new %(config: ) xlat syntax
* Remove former config xlat escape function
* Add test for %(config: ) xlat
Nick Porter [Fri, 26 Mar 2021 17:51:59 +0000 (17:51 +0000)]
Amend xlat register in unit_test_attribute to new api (#4032)
Nick Porter [Thu, 25 Mar 2021 19:32:27 +0000 (19:32 +0000)]
v4: Convert eap-aka-sim xlats to new api (#4030)
* Convert %{aka_sim_id_method: } to new xlat api
* Update docs for new %(aka_sim_id_method: ) syntax
* Update tests for new %(aka_sim_id_method: ) syntax
* Convert %{aka_sim_id_type: } to new xlat api
* Update docs for new %(aka_sim_id_type: ) syntax
* Update tests for new %(aka_sim_id_type: ) syntax
* Convert %{3gpp_pseudonym_key_index: } xlat to new api
* Update docs for new %(3gpp_pseudonym_key_index: ) syntax
* Convert %(3gpp_pseudonym_decrypt: ) to new xlat api
* Amend documentation for new syntax of %(3gpp_pseudonym_decrypt: ) xlat
* Auto load eap_aka_sim enums for xlats
* Convert %(3gpp_pseudonym_encrypt: ) to new xlat api
* Update documentation to new %(3gpp_pseudonym_encrypt: ) syntax
* Update tests to use new %(3gpp_pseudonym_encrypt: ) syntax
* Move eap_aka_sim tests to eap_sim to match module name so they run.
* Tidy eap_sim test files
Arran Cudbard-Bell [Thu, 25 Mar 2021 19:18:43 +0000 (19:18 +0000)]
Refresh test certificates
Nick Porter [Thu, 25 Mar 2021 10:14:55 +0000 (10:14 +0000)]
v4: Define arguments for json xlats (#4027)
* Define args for json xlats
* Update json tests to match new generic failure message
* Missing arguments will mean no child
* Simplify json encode tests
* Remove input argument errors from json encode test and create error test
* Correct ERROR handling for module tests
* Simplify unlang in json eval tests
* Simplify unlang in json parser tests
* Simplify unlang in json quote tests
* Enable 64bit json eval tests
Nick Porter [Thu, 25 Mar 2021 10:10:11 +0000 (10:10 +0000)]
v4: Define arguments for redis xlats already using new api (#4028)
* Define args for %(redis_node: ) xlat
* Define arguments for %(redis_remap: ) xlat
* Minor formatting
Co-authored-by: Arran Cudbard-Bell <a.cudbardb@freeradius.org>
Nick Porter [Thu, 25 Mar 2021 10:07:16 +0000 (10:07 +0000)]
ICMP xlat should be defined arguments, not a stream (#4026)
Arran Cudbard-Bell [Wed, 24 Mar 2021 19:39:48 +0000 (19:39 +0000)]
Fix issue with delete command that caused entries to remain if the address had never been used
Terry Burton [Wed, 24 Mar 2021 13:58:20 +0000 (13:58 +0000)]
Linter: Perl fixes (#4019)
Nick Porter [Wed, 24 Mar 2021 13:57:57 +0000 (13:57 +0000)]
v4: Define parameters for %(dhcpv4_decode: ) and %(dhcpv4_encode: ) xlats (#4023)
* Simplify loops
* Define arguments for dhcpv4 xlats
* Update documentation for %(dhcpv4_decode: )
* Update documentation for %(dhcpv4_encode: ) xlat
* Add dhcpv4 module for dhcp tests
* Test %(dhcpv4_decode: ) and %(dhcpv4_encode: )
* Remove un-used xlat_fmt_to_cursor()
Nick Porter [Wed, 24 Mar 2021 13:56:45 +0000 (13:56 +0000)]
v4: Define args for %(icmp: ) xlat (#4024)
* Define arg for icmp xlat
* Update documentation for new %(icmp: ) syntax
* Update icmp module test syntax
Terry Burton [Wed, 24 Mar 2021 13:55:39 +0000 (13:55 +0000)]
Cert bootstrap: Use -dsaparam for faster DH parameter generation (#4025)
* Cert bootstrap: Use -dsaparam for faster DH parameter generation
This aligns the bootstrap script with the Makefile, as updated by
0f74763b8f4ce80dab11844df654a2ce18a79850
* Satisfy linter
Nick Porter [Tue, 23 Mar 2021 20:00:02 +0000 (20:00 +0000)]
v4: Define argument for %(delay: ) xlat (#4022)
* Define arg for delay xlat
* Update documentation and tests for %(delay: ) xlat syntax
Nick Porter [Tue, 23 Mar 2021 19:59:36 +0000 (19:59 +0000)]
v4: Define args for rlm_cipher xlats (#4021)
* Define args for rlm_cipher xlats
* Update syntax for %(cipher_rsa_verify: ) in tests
Nick Porter [Tue, 23 Mar 2021 17:32:33 +0000 (17:32 +0000)]
v4: Define argument for %(chap_password: ) xlat (#4020)
* Define argument for chap_password xlat
* Update documentation for %(chap_password: ) xlat
* Update tests to use new %(chap_password: ) syntax
Nick Porter [Tue, 23 Mar 2021 17:22:17 +0000 (17:22 +0000)]
v4: Define argument for %(always: ) xlat ... (#4018)
* Define argument for always xlat
* Allow %(...) bare xlats
* Update rlm_always xlat syntax in module tests
Arran Cudbard-Bell [Tue, 23 Mar 2021 16:07:52 +0000 (16:07 +0000)]
fr_value_box_cast_in_place shouldn't trash the input box on error
Arran Cudbard-Bell [Tue, 23 Mar 2021 16:07:32 +0000 (16:07 +0000)]
Ensure we don't have hard to diagnose issues in the future
Arran Cudbard-Bell [Tue, 23 Mar 2021 15:02:02 +0000 (15:02 +0000)]
Fix merge error and typo
Nick Porter [Tue, 23 Mar 2021 14:51:28 +0000 (14:51 +0000)]
v4: Convert %(integer: ) to new xlat api (#4014)
* Convert %(integer: ) to new xlat api
* Update %(integer: ) tests to new syntax
* Update %(integer: ) syntax in other tests
* Update %(integer: ) syntax in documentation
* Update %(integer: ) syntax in raddb
* Fix handling of xlat alternation using %(<func>:<args>) style children
* IPv4 prefix can be cast the same as IPv4 address
* Correct endian handling of conversion of ethernet to integer
* Minor style fixes
* Typo
Co-authored-by: Arran Cudbard-Bell <a.cudbardb@freeradius.org>
Nick Porter [Tue, 23 Mar 2021 14:48:39 +0000 (14:48 +0000)]
Convert %{trigger: } to new xlat api (#4017)
Co-authored-by: Arran Cudbard-Bell <a.cudbardb@gmail.com>
Nick Porter [Tue, 23 Mar 2021 14:45:51 +0000 (14:45 +0000)]
Convert %{map: } to new xlat api (#4016)
Nick Porter [Tue, 23 Mar 2021 10:10:52 +0000 (10:10 +0000)]
v4: Convert %(nexttime: ) to new xlat api (#4015)
* Convert %{nexttime: } to new xlat api
* Add tests for %(nexttime: )
Terry Burton [Mon, 22 Mar 2021 19:37:15 +0000 (19:37 +0000)]
Various linter fixes (#4013)
* Linter: Perform a full lint on push to ci-debug
* Linter: MD fixes
* Linter: Python fixes
* Linter: Ruby fixes
* Linter: SQL fixes and disable sql-lint
sql-lint isn't suited for static use
* Linter: HTML fixes
* Linter: Lua fixes
Jorge Pereira [Mon, 22 Mar 2021 17:05:08 +0000 (14:05 -0300)]
Added Centec dictionary. Fixes #4010 (#4011)
Arran Cudbard-Bell [Sun, 21 Mar 2021 15:17:29 +0000 (15:17 +0000)]
Fix stupid hacks in pair.c and add new "steal" functions
Performance of steal isn't always bad, so long as the original context doesn't have too many children.
Nick Porter [Fri, 19 Mar 2021 17:48:53 +0000 (17:48 +0000)]
v4: Convert %(explode: ) to new xlat api (#4007)
* Convert %(explode: ) to new xlat api
* Update documentation to reflect new %(explode ) syntax
* An xlat can return an empty list
* Update test for new %(explode: ) syntax
Jorge Pereira [Fri, 19 Mar 2021 11:58:48 +0000 (08:58 -0300)]
tmpl: the pool must be released in the end. (#4002)
Terry Burton [Fri, 19 Mar 2021 11:34:20 +0000 (11:34 +0000)]
CI: Combine steps for installing and configuring fixtures (#4003)
Saves >20 secs.
Terry Burton [Fri, 19 Mar 2021 11:33:30 +0000 (11:33 +0000)]
CI coverity: Use Debian package depends lists (#4004)
Nick Porter [Fri, 19 Mar 2021 11:32:54 +0000 (11:32 +0000)]
v4: Convert %(debug_attr: ) xlat to new api (#4006)
* Convert %{debug_attr: } to new xlat api
* Update test references to %(debug_attr: )
* Update documentation for %(debug_attr: )
* Update default debug policy for new %(debug_attr: ) syntax
Nick Porter [Fri, 19 Mar 2021 10:51:06 +0000 (10:51 +0000)]
v4: Convert %(debug: ) xlat to new api (#4005)
* Convert %(debug: ) xlat to new xlat api
* Update tests to match %(debug: ) syntax
* Compile %() xlats as well as %{}
* Improve error message about %() xlat syntax
Arran Cudbard-Bell [Thu, 18 Mar 2021 21:31:15 +0000 (21:31 +0000)]
Rename unlang_interpret_init to unlang_interpret_init_global
Arran Cudbard-Bell [Thu, 18 Mar 2021 21:16:09 +0000 (21:16 +0000)]
Add this back in
Arran Cudbard-Bell [Thu, 18 Mar 2021 21:07:09 +0000 (21:07 +0000)]
Fix errors in previous commit
Arran Cudbard-Bell [Thu, 18 Mar 2021 20:57:29 +0000 (20:57 +0000)]
Rename unlang init functions
Arran Cudbard-Bell [Thu, 18 Mar 2021 20:52:34 +0000 (20:52 +0000)]
Mark runnable not mark resumable
Arran Cudbard-Bell [Thu, 18 Mar 2021 20:40:23 +0000 (20:40 +0000)]
Retur not needed
Arran Cudbard-Bell [Thu, 18 Mar 2021 20:38:20 +0000 (20:38 +0000)]
Slightly less awful
Arran Cudbard-Bell [Thu, 18 Mar 2021 18:56:53 +0000 (18:56 +0000)]
Convert lpad
Nick Porter [Thu, 18 Mar 2021 20:00:51 +0000 (20:00 +0000)]
v4: Switch %(sub: ) arguments to be <subject> <pattern> <replacement> (#4001)
* Switch %(sub: ) arguments to be <subject> <pattern> <replacement>
* Update tests for new %(sub: ) argument order
* Update documentation for new %(sub: ) argument order
Terry Burton [Thu, 18 Mar 2021 17:47:59 +0000 (17:47 +0000)]
CI package tests: Cache eapol_test build and cmake.sh download (#3999)
Nick Porter [Thu, 18 Mar 2021 16:43:42 +0000 (16:43 +0000)]
v4: Define arguments for %(hmacmd5: ) and %(hmacsha1: ) xlats (#3997)
* Define arguments for hmac xlats and update test syntaxes
* Move parsing error tests to their own files
* Update antora docs for hmac xlats
Co-authored-by: Arran Cudbard-Bell <a.cudbardb@gmail.com>
Nick Porter [Thu, 18 Mar 2021 16:40:26 +0000 (16:40 +0000)]
v4: Define arguments for %(sub: ) xlat (#3998)
* Define arguments for sub xlat
* Don't free twice
* Update sub xlat tests to reflect new syntax
* Update documentation to reflect new sub xlat syntax
* Use escape rules we're provided with
Nick Porter [Thu, 18 Mar 2021 16:36:05 +0000 (16:36 +0000)]
v4: define arguments for %(concat: ) xlat (#3995)
* Define args for concat xlat
* Update concat tests for new syntax and add extra tests
* Amend other tests using concat xlat to correct syntax
* Update docs for concat xlat
* Add %(join: ) xlat
* Add test for %(join: ) xlat
* Add %(concat: ) example that uses %(join: )
Nick Porter [Thu, 18 Mar 2021 11:40:18 +0000 (11:40 +0000)]
v4: Minor fix to map freeing on error (#3996)
* Correct fr_dlist_talloc_reverse_free() to clear from the very end
* Free map list in reverse due to talloc parenting
* Don't clear head - it is talloc freed by the caller when an error is returned
Arran Cudbard-Bell [Thu, 18 Mar 2021 11:36:49 +0000 (11:36 +0000)]
Concatenating group children is now handled somewhere else
Arran Cudbard-Bell [Thu, 18 Mar 2021 10:57:45 +0000 (10:57 +0000)]
Formatting
Arran Cudbard-Bell [Thu, 18 Mar 2021 10:54:16 +0000 (10:54 +0000)]
Dump outstanding data if we're not at the required debug level
Nick Porter [Thu, 18 Mar 2021 09:52:02 +0000 (09:52 +0000)]
Pass correct parameters to fr_log (#3994)
Arran Cudbard-Bell [Thu, 18 Mar 2021 01:11:33 +0000 (01:11 +0000)]
Add fd logging function for the global log
Terry Burton [Thu, 18 Mar 2021 01:04:05 +0000 (01:04 +0000)]
CI: Use CI- and distro-provided compiler packages (#3990)
GCC 10 is already pre-installed in the environment.
Clang 10 is available in the local boinic-updates repo, so no need to download
from often slow LLVM repo.
Nick Porter [Thu, 18 Mar 2021 01:03:47 +0000 (01:03 +0000)]
v4: Define arguments for remaining "mono" xlats in xlat_builtin.c already using new api (#3992)
* Define arg for string xlat
* Define arg for strlen xlat
* Define arg for case change xlats
* Define arg for urlquote xlat
* Define arg for urlunquote xlat
Arran Cudbard-Bell [Thu, 18 Mar 2021 00:23:25 +0000 (00:23 +0000)]
Quiet CI
Arran Cudbard-Bell [Thu, 18 Mar 2021 00:18:00 +0000 (00:18 +0000)]
Rework exec io handling
Use sbuffs for aggregation
Route stdout and stderr to the request log
Fix argument printing
Arran Cudbard-Bell [Thu, 18 Mar 2021 00:15:12 +0000 (00:15 +0000)]
Fix tmpl init function name
Arran Cudbard-Bell [Thu, 18 Mar 2021 00:13:37 +0000 (00:13 +0000)]
Add fd IO handler to log to the request
Arran Cudbard-Bell [Thu, 18 Mar 2021 00:12:54 +0000 (00:12 +0000)]
Print when there's no more requests
Arran Cudbard-Bell [Wed, 17 Mar 2021 17:00:59 +0000 (17:00 +0000)]
Fix non-developer debug output
Alan T. DeKok [Wed, 17 Mar 2021 17:46:11 +0000 (13:46 -0400)]
allow detail files to be in any virtual server.
Currently not allowed in RADIUS, but that has to be fixed :(
Alan T. DeKok [Wed, 17 Mar 2021 17:42:38 +0000 (13:42 -0400)]
allow for listen foo { ...}
which loads proto_foo, instead of proto_$namespace
Alan T. DeKok [Wed, 17 Mar 2021 13:19:30 +0000 (09:19 -0400)]
do aligned access to structs
Arran Cudbard-Bell [Wed, 17 Mar 2021 16:53:27 +0000 (16:53 +0000)]
Add talloc variants of verifiation functions
Arran Cudbard-Bell [Wed, 17 Mar 2021 16:53:05 +0000 (16:53 +0000)]
Fix talloc developer's debug output
Arran Cudbard-Bell [Wed, 17 Mar 2021 16:04:51 +0000 (16:04 +0000)]
Various fixes
Terry Burton [Wed, 17 Mar 2021 14:59:55 +0000 (14:59 +0000)]
Fuzzer artifact download: Fix formatting on MacOS (#3993)
Arran Cudbard-Bell [Wed, 17 Mar 2021 13:21:02 +0000 (13:21 +0000)]
Add more verification calls for value box lists
Arran Cudbard-Bell [Wed, 17 Mar 2021 11:35:47 +0000 (11:35 +0000)]
Fix comment
Arran Cudbard-Bell [Wed, 17 Mar 2021 11:35:30 +0000 (11:35 +0000)]
Fix alignment issue
Terry Burton [Wed, 17 Mar 2021 09:08:47 +0000 (09:08 +0000)]
CI: MacOS fixes (#3991)
* eapol_test build: Don't bork on MacOS due to unknown compiler warnings
* CI: Cache module can't extract to /tmp on MacOS
Nick Porter [Tue, 16 Mar 2021 19:08:59 +0000 (19:08 +0000)]
v4: 5 more xlats with argument definitions (#3987)
Terry Burton [Tue, 16 Mar 2021 17:58:38 +0000 (17:58 +0000)]
CI: Cache hostapd build directory to avoid unnecessary rebuild (#3989)
Arran Cudbard-Bell [Tue, 16 Mar 2021 17:49:34 +0000 (17:49 +0000)]
No need for guards on fr_dlist_verify
Terry Burton [Tue, 16 Mar 2021 17:40:23 +0000 (17:40 +0000)]
Fix up sanitizer rename for CI (#3988)
Nick Porter [Tue, 16 Mar 2021 16:45:53 +0000 (16:45 +0000)]
v4: Next collection of xlats to get defined arguments (#3986)
* We allow xlat arg specs to require FR_TYPE_VOID
For value boxes whose type are interpreted by the xlat rather than the
parser
* Define arg for xlat bin
* RPEDEBUG needs to set module failure message
* Amend xlat-sub test to match output now RPEDEBUG adds a failure message
* Define arg for xlat hex
* Define arg for xlat md4
* Define arg for xlat md5
* Define arg for xlat pack
Arran Cudbard-Bell [Tue, 16 Mar 2021 16:30:09 +0000 (16:30 +0000)]
Fix CI complaints for debug builds
Arran Cudbard-Bell [Tue, 16 Mar 2021 16:18:48 +0000 (16:18 +0000)]
...and another
Arran Cudbard-Bell [Tue, 16 Mar 2021 16:15:01 +0000 (16:15 +0000)]
Use correct enum
Arran Cudbard-Bell [Tue, 16 Mar 2021 15:44:07 +0000 (15:44 +0000)]
Validate arguments at tokenize time
Arran Cudbard-Bell [Tue, 16 Mar 2021 12:10:13 +0000 (12:10 +0000)]
Fairly sure fill_str is always initialised but CI must be appeased
Arran Cudbard-Bell [Tue, 16 Mar 2021 01:23:51 +0000 (01:23 +0000)]
Convert rpad to args based async xlat
Arran Cudbard-Bell [Tue, 16 Mar 2021 01:23:25 +0000 (01:23 +0000)]
Add note
Arran Cudbard-Bell [Tue, 16 Mar 2021 01:23:16 +0000 (01:23 +0000)]
Incorrect way to line wrap
Arran Cudbard-Bell [Tue, 16 Mar 2021 01:23:04 +0000 (01:23 +0000)]
Don't use RPEDEBUG if we're not setting the error buffer
Arran Cudbard-Bell [Mon, 15 Mar 2021 22:50:40 +0000 (22:50 +0000)]
Name is now nonnull
Arran Cudbard-Bell [Mon, 15 Mar 2021 22:20:25 +0000 (22:20 +0000)]
Ensure required arguments come at the start of the list
Arran Cudbard-Bell [Mon, 15 Mar 2021 22:04:57 +0000 (22:04 +0000)]
Additional sanity checking
Arran Cudbard-Bell [Mon, 15 Mar 2021 21:48:17 +0000 (21:48 +0000)]
Escape void types too and make code more idiomatic
Arran Cudbard-Bell [Mon, 15 Mar 2021 21:40:11 +0000 (21:40 +0000)]
Logic inversion
Arran Cudbard-Bell [Mon, 15 Mar 2021 21:38:54 +0000 (21:38 +0000)]
Add support for escaping xlat arguments
Arran Cudbard-Bell [Mon, 15 Mar 2021 21:38:03 +0000 (21:38 +0000)]
Various minor style fixes