]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
2 years 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2 years agoMore appropriate debug message types / levels
Nick Porter [Fri, 9 Feb 2024 18:10:07 +0000 (18:10 +0000)] 
More appropriate debug message types / levels

2 years agoRemove unused option
Nick Porter [Fri, 9 Feb 2024 17:51:43 +0000 (17:51 +0000)] 
Remove unused option

2 years agoUse custom call_env parser to handle automatic domain lookup
Nick Porter [Fri, 9 Feb 2024 17:51:21 +0000 (17:51 +0000)] 
Use custom call_env parser to handle automatic domain lookup

2 years agoUse call_env in winbind mod_authorize
Nick Porter [Fri, 9 Feb 2024 17:21:02 +0000 (17:21 +0000)] 
Use call_env in winbind mod_authorize

2 years agoUse new xlat function syntax
Nick Porter [Fri, 9 Feb 2024 16:32:54 +0000 (16:32 +0000)] 
Use new xlat function syntax

2 years agoxlat_arg_parser for winbind.group is static const
Nick Porter [Fri, 9 Feb 2024 16:30:49 +0000 (16:30 +0000)] 
xlat_arg_parser for winbind.group is static const

There is no escape function needing access to inst

2 years agoUse a call_env for rlm_winbind mod_authenticate
Nick Porter [Fri, 9 Feb 2024 16:24:35 +0000 (16:24 +0000)] 
Use a call_env for rlm_winbind mod_authenticate

2 years agoTidy up
Nick Porter [Fri, 9 Feb 2024 12:43:46 +0000 (12:43 +0000)] 
Tidy up

2 years agoMove loading of rlm_files data to call_env
Nick Porter [Fri, 9 Feb 2024 12:36:17 +0000 (12:36 +0000)] 
Move loading of rlm_files data to call_env

2 years agoCorrect comment
Nick Porter [Fri, 9 Feb 2024 12:06:28 +0000 (12:06 +0000)] 
Correct comment

2 years agoFormatting
Nick Porter [Fri, 9 Feb 2024 09:32:04 +0000 (09:32 +0000)] 
Formatting

2 years agoTemporary &users list is not talloced, only its members are
Nick Porter [Fri, 9 Feb 2024 09:29:59 +0000 (09:29 +0000)] 
Temporary &users list is not talloced, only its members are

2 years agoAlign sample configuration with rlm_files only having one filename
Nick Porter [Fri, 9 Feb 2024 09:24:06 +0000 (09:24 +0000)] 
Align sample configuration with rlm_files only having one filename

2 years agoJust use a single filename in rlm_files
Nick Porter [Wed, 7 Feb 2024 20:01:57 +0000 (20:01 +0000)] 
Just use a single filename in rlm_files

If different data is used in different contexts, use multiple instances
of the module

2 years agonope. header length is 4
Alan T. DeKok [Fri, 9 Feb 2024 14:52:14 +0000 (09:52 -0500)] 
nope.  header length is 4

2 years agocheck for fragment with insufficient room for header
Alan T. DeKok [Fri, 9 Feb 2024 14:49:50 +0000 (09:49 -0500)] 
check for fragment with insufficient room for header

2 years agoadd test and example for eval
Alan T. DeKok [Wed, 7 Feb 2024 17:56:03 +0000 (12:56 -0500)] 
add test and example for eval

2 years agoadd output from fuzzer
Alan T. DeKok [Wed, 7 Feb 2024 13:56:15 +0000 (08:56 -0500)] 
add output from fuzzer

hopefully we can get a better error message running the normal
tests.

2 years agoRemove protocol prefixes from attribute references
Nick Porter [Wed, 7 Feb 2024 08:11:33 +0000 (08:11 +0000)] 
Remove protocol prefixes from attribute references

2 years agoUpdate sqlippool docs
Nick Porter [Fri, 2 Feb 2024 17:53:13 +0000 (17:53 +0000)] 
Update sqlippool docs

2 years agosqlippool should be called in `accounting ...` sections
Nick Porter [Fri, 2 Feb 2024 17:52:53 +0000 (17:52 +0000)] 
sqlippool should be called in `accounting ...` sections

So that the correct method is used.

2 years agoAdd tests of rlm_sqlippool
Nick Porter [Fri, 2 Feb 2024 14:50:19 +0000 (14:50 +0000)] 
Add tests of rlm_sqlippool

2 years agoConvert remaining sqlippool methods to use call_env
Nick Porter [Fri, 2 Feb 2024 14:37:32 +0000 (14:37 +0000)] 
Convert remaining sqlippool methods to use call_env

2 years agoMove the rest of sqlippool alloc to use call_env
Nick Porter [Fri, 2 Feb 2024 14:35:29 +0000 (14:35 +0000)] 
Move the rest of sqlippool alloc to use call_env

2 years agoAdd alloc queries to call_env
Nick Porter [Fri, 2 Feb 2024 14:25:06 +0000 (14:25 +0000)] 
Add alloc queries to call_env

2 years agoUpdate sqlippool query functions to expect pre-expanded queries and take an rlm_sql_t
Nick Porter [Fri, 2 Feb 2024 14:23:07 +0000 (14:23 +0000)] 
Update sqlippool query functions to expect pre-expanded queries and take an rlm_sql_t

2 years agoAdd sql escape uctx alloc / free functions for SQL IP Pool queries
Nick Porter [Fri, 2 Feb 2024 14:07:35 +0000 (14:07 +0000)] 
Add sql escape uctx alloc / free functions for SQL IP Pool queries

2 years agoDefine custom call_env parser for SQL IP Pool queries
Nick Porter [Fri, 2 Feb 2024 14:03:53 +0000 (14:03 +0000)] 
Define custom call_env parser for SQL IP Pool queries

2 years agoAdd box_escape_func to SQL module instance
Nick Porter [Fri, 2 Feb 2024 13:01:57 +0000 (13:01 +0000)] 
Add box_escape_func to SQL module instance

2 years agoMake module / xlat instance data available when parsing call_env
Nick Porter [Fri, 2 Feb 2024 13:00:36 +0000 (13:00 +0000)] 
Make module / xlat instance data available when parsing call_env

And pass it to the custom parsing function.

2 years agoAdd uctx for SQL escape functions
Nick Porter [Thu, 1 Feb 2024 17:56:55 +0000 (17:56 +0000)] 
Add uctx for SQL escape functions

Allows for passing of an exising connection handle

2 years agoPass safe_for to xlat_tokenize_input
Nick Porter [Thu, 1 Feb 2024 17:48:46 +0000 (17:48 +0000)] 
Pass safe_for to xlat_tokenize_input

2 years agoAdd rules for parsing literals in tmpls
Nick Porter [Tue, 6 Feb 2024 18:31:50 +0000 (18:31 +0000)] 
Add rules for parsing literals in tmpls

2 years agoUpdate sqlippool rcodes to match those returned by redis_ippool
Nick Porter [Mon, 22 Jan 2024 12:12:04 +0000 (12:12 +0000)] 
Update sqlippool rcodes to match those returned by redis_ippool

2 years agoMore helpful debug messages
Nick Porter [Fri, 19 Jan 2024 18:23:21 +0000 (18:23 +0000)] 
More helpful debug messages

2 years agoMove requested_address to call env
Nick Porter [Fri, 19 Jan 2024 18:17:27 +0000 (18:17 +0000)] 
Move requested_address to call env

2 years agoMove pool_name to call env
Nick Porter [Fri, 19 Jan 2024 17:32:29 +0000 (17:32 +0000)] 
Move pool_name to call env

2 years agoAdd initial call_env to sqlippool
Nick Porter [Fri, 19 Jan 2024 16:35:35 +0000 (16:35 +0000)] 
Add initial call_env to sqlippool

Just for allocated_address_attr to start with

2 years agoAdd tests of if using nested && and ||
Nick Porter [Wed, 7 Feb 2024 10:27:57 +0000 (10:27 +0000)] 
Add tests of if using nested && and ||

2 years agoReturn XLAT_ACTION_DONE on logical false
Nick Porter [Wed, 7 Feb 2024 09:50:00 +0000 (09:50 +0000)] 
Return XLAT_ACTION_DONE on logical false

XLAT_ACTION_FAIL is only when there is a failure, not when the return
from real evaluations is false

2 years agoadd test case to prevent regression
Alan T. DeKok [Tue, 6 Feb 2024 14:56:13 +0000 (09:56 -0500)] 
add test case to prevent regression

2 years agobetter catch malformed attributes
Alan T. DeKok [Tue, 6 Feb 2024 14:06:42 +0000 (09:06 -0500)] 
better catch malformed attributes

2 years agoremove -n and -p
Alan T. DeKok [Mon, 5 Feb 2024 14:02:43 +0000 (09:02 -0500)] 
remove -n and -p

2 years agoremove coa functionality
Alan T. DeKok [Mon, 5 Feb 2024 13:57:55 +0000 (08:57 -0500)] 
remove coa functionality

in the quest to get bios, we simply delete old code, which will be
eventually replaced with new code

2 years agouse correct function type to quiet ubsan complaints
Alan T. DeKok [Mon, 5 Feb 2024 13:44:10 +0000 (08:44 -0500)] 
use correct function type to quiet ubsan complaints

2 years agowe didn't call xlat init, so we don't call xlat free
Alan T. DeKok [Mon, 5 Feb 2024 02:31:15 +0000 (21:31 -0500)] 
we didn't call xlat init, so we don't call xlat free