]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
18 months agoMake suspension messages informational
Arran Cudbard-Bell [Fri, 23 Feb 2024 21:54:50 +0000 (14:54 -0700)] 
Make suspension messages informational

18 months agoTame LDAP debug output in CI
Nick Porter [Fri, 23 Feb 2024 16:19:22 +0000 (16:19 +0000)] 
Tame LDAP debug output in CI

18 months agoHandle occasional CI false failures of trunk tests
Nick Porter [Fri, 23 Feb 2024 11:32:13 +0000 (11:32 +0000)] 
Handle occasional CI false failures of trunk tests

18 months agoAdd basic rlm_radutmp test
Nick Porter [Fri, 23 Feb 2024 09:42:30 +0000 (09:42 +0000)] 
Add basic rlm_radutmp test

18 months agoRemove spurious break
Nick Porter [Fri, 23 Feb 2024 09:19:15 +0000 (09:19 +0000)] 
Remove spurious break

18 months agoSimplify internal decoding
Arran Cudbard-Bell [Thu, 22 Feb 2024 21:55:34 +0000 (14:55 -0700)] 
Simplify internal decoding

18 months agoQuiet coverity
Arran Cudbard-Bell [Thu, 22 Feb 2024 21:01:55 +0000 (14:01 -0700)] 
Quiet coverity

18 months agoCorrectly parent cache entry
Nick Porter [Thu, 22 Feb 2024 19:43:45 +0000 (19:43 +0000)] 
Correctly parent cache entry

18 months agoFree dictionary on exit
Nick Porter [Thu, 22 Feb 2024 19:29:32 +0000 (19:29 +0000)] 
Free dictionary on exit

18 months agoUse a call_env to remove xlat_aeval from rlm_radutmp
Nick Porter [Thu, 22 Feb 2024 19:28:49 +0000 (19:28 +0000)] 
Use a call_env to remove xlat_aeval from rlm_radutmp

18 months agoClearer debug output
Nick Porter [Thu, 22 Feb 2024 15:43:07 +0000 (15:43 +0000)] 
Clearer debug output

18 months agoIndent debug for clarity
Nick Porter [Thu, 22 Feb 2024 13:15:49 +0000 (13:15 +0000)] 
Indent debug for clarity

18 months agoConst
Nick Porter [Thu, 22 Feb 2024 12:30:35 +0000 (12:30 +0000)] 
Const

18 months agoWorkround weird make behaviour
Nick Porter [Thu, 22 Feb 2024 12:19:03 +0000 (12:19 +0000)] 
Workround weird make behaviour

Some tests in KEYWORD_UPDATE_REWRITE_TESTS were being run with -S
forbid_update=yes

18 months agoxlat_instantiate_subst_regex is only defined if libpcre2 is available
Nick Porter [Thu, 22 Feb 2024 09:25:29 +0000 (09:25 +0000)] 
xlat_instantiate_subst_regex is only defined if libpcre2 is available

18 months agoFix capture groups in %subst() regex, pre-compile regular expressions where possible
Arran Cudbard-Bell [Thu, 22 Feb 2024 00:16:49 +0000 (17:16 -0700)] 
Fix capture groups in %subst() regex, pre-compile regular expressions where possible

18 months agoBetter name for DHCP option 43
Nick Porter [Wed, 21 Feb 2024 16:50:22 +0000 (16:50 +0000)] 
Better name for DHCP option 43

18 months agotmpl code will correctly complain about unresolved attributes
Nick Porter [Wed, 21 Feb 2024 15:03:39 +0000 (15:03 +0000)] 
tmpl code will correctly complain about unresolved attributes

18 months agoDon't assert when unresolved lhs is allowed in map building
Nick Porter [Wed, 21 Feb 2024 14:59:45 +0000 (14:59 +0000)] 
Don't assert when unresolved lhs is allowed in map building

18 months agoAdd Net.* attributes to DHCPv4 decoding
Nick Porter [Wed, 21 Feb 2024 11:55:26 +0000 (11:55 +0000)] 
Add Net.* attributes to DHCPv4 decoding

18 months agoAdd debug on sending DHCPv4 packets
Nick Porter [Wed, 21 Feb 2024 11:22:29 +0000 (11:22 +0000)] 
Add debug on sending DHCPv4 packets

18 months agoAllow %substr() to work on any data type
Nick Porter [Wed, 21 Feb 2024 09:05:14 +0000 (09:05 +0000)] 
Allow %substr() to work on any data type

18 months agoDon't run the `send ...` section from resume_recv_generic
Nick Porter [Tue, 20 Feb 2024 18:34:08 +0000 (18:34 +0000)] 
Don't run the `send ...` section from resume_recv_generic

That's done from send_generic

18 months agoAdd %substr() xlat with tests
Nick Porter [Tue, 20 Feb 2024 16:40:47 +0000 (16:40 +0000)] 
Add %substr() xlat with tests

18 months agoadd <<= and >>= along with tests
Alan T. DeKok [Tue, 20 Feb 2024 14:55:02 +0000 (09:55 -0500)] 
add <<= and >>= along with tests

the underlying calc.c code supported it, but it wasn't exposed
(or tested) through unlang

18 months agoallow left / right shift
Alan T. DeKok [Tue, 20 Feb 2024 14:51:45 +0000 (09:51 -0500)] 
allow left / right shift

18 months agomanually chain / unchain on exit
Alan T. DeKok [Tue, 20 Feb 2024 12:45:30 +0000 (07:45 -0500)] 
manually chain / unchain on exit

18 months agoadd notes on ISAAC+, which has better properties
Alan T. DeKok [Fri, 16 Feb 2024 12:30:22 +0000 (07:30 -0500)] 
add notes on ISAAC+, which has better properties

18 months agosupport datagram in memory packet bios
Alan T. DeKok [Wed, 14 Feb 2024 13:51:15 +0000 (08:51 -0500)] 
support datagram in memory packet bios

18 months agoMake the assert much more explicit
Arran Cudbard-Bell [Mon, 19 Feb 2024 19:35:31 +0000 (13:35 -0600)] 
Make the assert much more explicit

18 months agoProvide the request list to the map_afrom_attr_str else we crash when there are embed...
Arran Cudbard-Bell [Mon, 19 Feb 2024 19:31:51 +0000 (13:31 -0600)] 
Provide the request list to the map_afrom_attr_str else we crash when there are embedded xlats in the map

18 months agoRevert "Don't assert every time we have a dictionary load error for DNS"
Arran Cudbard-Bell [Mon, 19 Feb 2024 16:45:44 +0000 (10:45 -0600)] 
Revert "Don't assert every time we have a dictionary load error for DNS"

This reverts commit 57a8f544ee2b996c5918865ed077582387015bdb.

18 months agoBe more clear about which attributes can't be found
Arran Cudbard-Bell [Mon, 19 Feb 2024 02:44:31 +0000 (20:44 -0600)] 
Be more clear about which attributes can't be found

18 months agoDon't assert every time we have a dictionary load error for DNS
Arran Cudbard-Bell [Mon, 19 Feb 2024 02:44:12 +0000 (20:44 -0600)] 
Don't assert every time we have a dictionary load error for DNS

18 months agoPrint out what stage of radict we failed in
Arran Cudbard-Bell [Mon, 19 Feb 2024 02:43:55 +0000 (20:43 -0600)] 
Print out what stage of radict we failed in

18 months agoRename cf_section_has_parent to cf_section_find_parent and use that in the DNS modules
Arran Cudbard-Bell [Mon, 19 Feb 2024 01:17:40 +0000 (19:17 -0600)] 
Rename cf_section_has_parent to cf_section_find_parent and use that in the DNS modules

Also, just use the sandard comparison function instead of duplicating the comparison logic.

18 months agoIf name1 matches and name2 is NULL on both the found section and the needle, we shoul...
Arran Cudbard-Bell [Mon, 19 Feb 2024 01:17:01 +0000 (19:17 -0600)] 
If name1 matches and name2 is NULL on both the found section and the needle, we should return 0

18 months agoFixup fr_dns_packet_ok so it deals with OPT RRs correctly
Arran Cudbard-Bell [Sun, 18 Feb 2024 21:15:15 +0000 (15:15 -0600)] 
Fixup fr_dns_packet_ok so it deals with OPT RRs correctly

Without this, basic queries using dig fail...

18 months agoPrint DNS decode failure reason as a string
Arran Cudbard-Bell [Sun, 18 Feb 2024 20:13:44 +0000 (14:13 -0600)] 
Print DNS decode failure reason as a string

18 months agoIdent2, needs to be wildcard
Arran Cudbard-Bell [Sun, 18 Feb 2024 19:51:37 +0000 (13:51 -0600)] 
Ident2, needs to be wildcard

18 months agoData isn't a conf section
Arran Cudbard-Bell [Sun, 18 Feb 2024 19:26:41 +0000 (13:26 -0600)] 
Data isn't a conf section

18 months ago2024
Arran Cudbard-Bell [Sun, 18 Feb 2024 19:23:49 +0000 (13:23 -0600)] 
2024

18 months agoFix server section search in DNS listener
Arran Cudbard-Bell [Sun, 18 Feb 2024 17:53:26 +0000 (11:53 -0600)] 
Fix server section search in DNS listener

Currently just throws an assert...

18 months agoUse UTC for sqlcounter tests for consistency
Nick Porter [Sun, 18 Feb 2024 16:18:22 +0000 (16:18 +0000)] 
Use UTC for sqlcounter tests for consistency

18 months agoAdd utc option to sqlcounter
Nick Porter [Sun, 18 Feb 2024 16:16:49 +0000 (16:16 +0000)] 
Add utc option to sqlcounter

18 months agoAdd safe for functions for ldap and rest
Arran Cudbard-Bell [Sat, 17 Feb 2024 22:59:15 +0000 (16:59 -0600)] 
Add safe for functions for ldap and rest

Just use uri.escape and uri.unescape for all CURL based modules

18 months agoDon't need to use attr based verification anymore
Arran Cudbard-Bell [Sat, 17 Feb 2024 22:39:02 +0000 (16:39 -0600)] 
Don't need to use attr based verification anymore

18 months agoFix escaping (safe_for value is lost when processing expression)
Arran Cudbard-Bell [Sat, 17 Feb 2024 22:25:44 +0000 (16:25 -0600)] 
Fix escaping (safe_for value is lost when processing expression)

18 months agoToo many arguments
Arran Cudbard-Bell [Sat, 17 Feb 2024 22:17:05 +0000 (16:17 -0600)] 
Too many arguments

18 months agoDo a better job of marking up literals passed to tmpl_tokenize with safe_for values
Arran Cudbard-Bell [Sat, 17 Feb 2024 22:04:29 +0000 (16:04 -0600)] 
Do a better job of marking up literals passed to tmpl_tokenize with safe_for values

Fix the uri functions to use safe_for instead of tainted

Allow a safe_for value to be passed in for maps too

18 months agoDon't register the uri.escape functions centrally in case modules want their own...
Arran Cudbard-Bell [Sat, 17 Feb 2024 22:01:07 +0000 (16:01 -0600)] 
Don't register the uri.escape functions centrally in case modules want their own safefor values

18 months agoFix issues with uri_escape
Arran Cudbard-Bell [Sat, 17 Feb 2024 22:00:33 +0000 (16:00 -0600)] 
Fix issues with uri_escape

18 months agoWhitespace
Arran Cudbard-Bell [Sat, 17 Feb 2024 22:00:00 +0000 (16:00 -0600)] 
Whitespace

18 months agoMinor typo in doxygen comments
Arran Cudbard-Bell [Fri, 16 Feb 2024 19:12:40 +0000 (13:12 -0600)] 
Minor typo in doxygen comments

18 months agoThere is no longer a DHCP specific sqlippool module
Nick Porter [Fri, 16 Feb 2024 17:20:21 +0000 (17:20 +0000)] 
There is no longer a DHCP specific sqlippool module

18 months agoAdd rlm_unbound to stable modules list for packaging
Nick Porter [Fri, 16 Feb 2024 13:24:26 +0000 (13:24 +0000)] 
Add rlm_unbound to stable modules list for packaging

18 months agoUpdate SQL counter module howto
Nick Porter [Thu, 15 Feb 2024 15:23:54 +0000 (15:23 +0000)] 
Update SQL counter module howto

18 months agoAdd test of sqlcounter module
Nick Porter [Thu, 15 Feb 2024 14:34:51 +0000 (14:34 +0000)] 
Add test of sqlcounter module

18 months agosqlcounter is not necessarily time
Nick Porter [Thu, 15 Feb 2024 12:07:45 +0000 (12:07 +0000)] 
sqlcounter is not necessarily time

18 months agoUse a config option to extend reply attribute value
Nick Porter [Thu, 15 Feb 2024 11:21:33 +0000 (11:21 +0000)] 
Use a config option to extend reply attribute value

Rather than doing hidden magic on a specific attribute.  Allows the same
principle to be used for protocols other than RADIUS.

18 months agoRe-work sqlcounter mod_authorize to push sql xlat on stack
Nick Porter [Thu, 15 Feb 2024 10:52:07 +0000 (10:52 +0000)] 
Re-work sqlcounter mod_authorize to push sql xlat on stack

18 months agoAdd instantiation checks that the sql module instance actually exists
Nick Porter [Wed, 14 Feb 2024 19:15:38 +0000 (19:15 +0000)] 
Add instantiation checks that the sql module instance actually exists

18 months agoBetter name for SQL instance (aligned with sqlippool)
Nick Porter [Wed, 14 Feb 2024 19:14:05 +0000 (19:14 +0000)] 
Better name for SQL instance (aligned with sqlippool)

18 months agoSQLite doesn't have GREATEST, use MAX instead
Nick Porter [Wed, 14 Feb 2024 14:25:44 +0000 (14:25 +0000)] 
SQLite doesn't have GREATEST, use MAX instead

18 months agoUse pair_append_by_bmpl_parent to allow for nested attributes
Nick Porter [Wed, 14 Feb 2024 14:11:06 +0000 (14:11 +0000)] 
Use pair_append_by_bmpl_parent to allow for nested attributes

18 months agoBetter handling of adding module attributes
Nick Porter [Wed, 14 Feb 2024 14:10:25 +0000 (14:10 +0000)] 
Better handling of adding module attributes

Allows either an attribute created by the module or one already in the
dictionary.

If it's a dictionary one it will be checked for the correct type.

18 months agoThis is (usually) creating the attributes, not finding them
Nick Porter [Wed, 14 Feb 2024 13:56:45 +0000 (13:56 +0000)] 
This is (usually) creating the attributes, not finding them

And if it fails, that is module failure rather than noop

18 months agoCorrect logic for resetting times
Nick Porter [Wed, 14 Feb 2024 13:55:52 +0000 (13:55 +0000)] 
Correct logic for resetting times

18 months agoConf options have CONF_FLAG_REQURED so will exist
Nick Porter [Wed, 14 Feb 2024 13:54:43 +0000 (13:54 +0000)] 
Conf options have CONF_FLAG_REQURED so will exist

18 months agoEnsure that sqlcounter queries return 0 if there are no matching records
Nick Porter [Wed, 14 Feb 2024 11:39:39 +0000 (11:39 +0000)] 
Ensure that sqlcounter queries return 0 if there are no matching records

18 months agosqlcounter start and end attributes are by default in the control list
Nick Porter [Wed, 14 Feb 2024 11:22:40 +0000 (11:22 +0000)] 
sqlcounter start and end attributes are by default in the control list

18 months agoFlags need to match what will be on the created DA
Nick Porter [Tue, 13 Feb 2024 17:19:25 +0000 (17:19 +0000)] 
Flags need to match what will be on the created DA

After inserting, tmpl_attr_tail_unresolved_add checks the resulting
flags and fails if they differ.

18 months agoAlign default attribute names with sample SQL
Nick Porter [Tue, 13 Feb 2024 16:48:08 +0000 (16:48 +0000)] 
Align default attribute names with sample SQL

And add quoting, needed to parse defaults correctly.

18 months agoAdd reply message attribute to sqlcounter call_env
Nick Porter [Tue, 13 Feb 2024 16:45:30 +0000 (16:45 +0000)] 
Add reply message attribute to sqlcounter call_env

18 months agoMove sqlcounter reply_attr to call_env
Nick Porter [Tue, 13 Feb 2024 15:41:46 +0000 (15:41 +0000)] 
Move sqlcounter reply_attr to call_env

18 months agoLess noisy debug
Nick Porter [Tue, 13 Feb 2024 15:36:11 +0000 (15:36 +0000)] 
Less noisy debug

18 months agoMore appropriate variable name
Nick Porter [Tue, 13 Feb 2024 15:34:48 +0000 (15:34 +0000)] 
More appropriate variable name

It's no longer a magic paircmp attribute

18 months agoUse value box cmp / cast to avoid duplicate code
Nick Porter [Tue, 13 Feb 2024 15:17:13 +0000 (15:17 +0000)] 
Use value box cmp / cast to avoid duplicate code

18 months agoAnd one more
Nick Porter [Thu, 15 Feb 2024 16:32:08 +0000 (16:32 +0000)] 
And one more

18 months agoMore doxygen fixes
Nick Porter [Thu, 15 Feb 2024 15:47:31 +0000 (15:47 +0000)] 
More doxygen fixes

18 months agoDoxygen fixes
Nick Porter [Wed, 14 Feb 2024 08:50:33 +0000 (08:50 +0000)] 
Doxygen fixes

18 months agoautofree talloc ctx is now used in all builds
Nick Porter [Wed, 14 Feb 2024 08:27:38 +0000 (08:27 +0000)] 
autofree talloc ctx is now used in all builds

18 months agoAdd function documentation
Nick Porter [Wed, 14 Feb 2024 08:26:31 +0000 (08:26 +0000)] 
Add function documentation

18 months agoCorrect function docs
Nick Porter [Wed, 14 Feb 2024 08:25:18 +0000 (08:25 +0000)] 
Correct function docs

18 months agostart moving radclient-ng to the new bio API
Alan T. DeKok [Wed, 14 Feb 2024 02:52:48 +0000 (21:52 -0500)] 
start moving radclient-ng to the new bio API

18 months agohoist socket name into common function
Alan T. DeKok [Wed, 14 Feb 2024 00:54:16 +0000 (19:54 -0500)] 
hoist socket name into common function

and get socket name after connect(), too

18 months agoset the bio type
Alan T. DeKok [Tue, 13 Feb 2024 17:58:11 +0000 (12:58 -0500)] 
set the bio type

18 months agostart moving configuration parameters to fr_bio_fd_config_t
Alan T. DeKok [Tue, 13 Feb 2024 13:14:31 +0000 (08:14 -0500)] 
start moving configuration parameters to fr_bio_fd_config_t

18 months agodon't open new sockets
Alan T. DeKok [Tue, 13 Feb 2024 13:05:47 +0000 (08:05 -0500)] 
don't open new sockets

18 months agoRemove repeat talloc_free
Nick Porter [Tue, 13 Feb 2024 18:04:15 +0000 (18:04 +0000)] 
Remove repeat talloc_free

18 months agoIf user is in radcheck but not radreply, still merge control items
Nick Porter [Tue, 13 Feb 2024 18:03:43 +0000 (18:03 +0000)] 
If user is in radcheck but not radreply, still merge control items

18 months agoEnsure test_connection_levels_max() requests are completed/cancelled
James Jones [Tue, 13 Feb 2024 16:25:53 +0000 (10:25 -0600)] 
Ensure test_connection_levels_max() requests are completed/cancelled

18 months agoAdd basic tests of mschap module
Nick Porter [Tue, 13 Feb 2024 11:07:07 +0000 (11:07 +0000)] 
Add basic tests of mschap module

18 months agoUse call_env for libwbclient auth in rlm_mschap
Nick Porter [Tue, 13 Feb 2024 10:56:30 +0000 (10:56 +0000)] 
Use call_env for libwbclient auth in rlm_mschap

18 months agoNT Password is not needed for external mschap methods
Nick Porter [Mon, 12 Feb 2024 18:00:43 +0000 (18:00 +0000)] 
NT Password is not needed for external mschap methods

18 months agoInclude rlm_unbound in packaging
Nick Porter [Mon, 12 Feb 2024 10:34:58 +0000 (10:34 +0000)] 
Include rlm_unbound in packaging

Same as v3.2

18 months agoAllow for differing versions of ub_event_callback_type
Nick Porter [Mon, 12 Feb 2024 15:34:05 +0000 (15:34 +0000)] 
Allow for differing versions of ub_event_callback_type

18 months agoAdd tests of rlm_winbind
Nick Porter [Mon, 12 Feb 2024 11:44:58 +0000 (11:44 +0000)] 
Add tests of rlm_winbind

18 months agoThese are not errors
Nick Porter [Mon, 12 Feb 2024 10:32:25 +0000 (10:32 +0000)] 
These are not errors

18 months agoUse call_env in %winbind.group() xlat
Nick Porter [Mon, 12 Feb 2024 10:29:18 +0000 (10:29 +0000)] 
Use call_env in %winbind.group() xlat