]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
22 months agoCorrect terminals for parsing barewords
Nick Porter [Fri, 1 Mar 2024 10:29:04 +0000 (10:29 +0000)] 
Correct terminals for parsing barewords

Without "", the trailing '\0' gets included in enumerated values - then
the hash is different to that built when the dictionary was read.

22 months agoall.mk is built by configure
Nick Porter [Fri, 1 Mar 2024 10:26:27 +0000 (10:26 +0000)] 
all.mk is built by configure

22 months agoInclude brotli for FreeBSD CI hosts
Nick Porter [Thu, 29 Feb 2024 20:40:40 +0000 (20:40 +0000)] 
Include brotli for FreeBSD CI hosts

22 months agoLDAP-Sync.Directory-Root-DN has to be marked safe to use as a DN
Nick Porter [Thu, 29 Feb 2024 20:31:05 +0000 (20:31 +0000)] 
LDAP-Sync.Directory-Root-DN has to be marked safe to use as a DN

22 months agoTidy quoting in %unpack() tests
Nick Porter [Thu, 29 Feb 2024 17:40:32 +0000 (17:40 +0000)] 
Tidy quoting in %unpack() tests

22 months agoAdd optional `repeat` argument to %unpack()
Nick Porter [Thu, 29 Feb 2024 17:30:48 +0000 (17:30 +0000)] 
Add optional `repeat` argument to %unpack()

22 months agoSatisfy the pedants
Arran Cudbard-Bell [Thu, 29 Feb 2024 15:53:27 +0000 (09:53 -0600)] 
Satisfy the pedants

22 months agoAllow fr_value_box_mem_realloc to alloc zero size buffers
Arran Cudbard-Bell [Thu, 29 Feb 2024 06:12:54 +0000 (00:12 -0600)] 
Allow fr_value_box_mem_realloc to alloc zero size buffers

22 months agoDon't eval MEM() expressions twice
Arran Cudbard-Bell [Thu, 29 Feb 2024 06:09:59 +0000 (00:09 -0600)] 
Don't eval MEM() expressions twice

22 months agoAdd rlm_brotli
Arran Cudbard-Bell [Thu, 29 Feb 2024 06:09:34 +0000 (00:09 -0600)] 
Add rlm_brotli

22 months agoRADIUS client bio beginnings
Alan T. DeKok [Wed, 28 Feb 2024 15:47:19 +0000 (10:47 -0500)] 
RADIUS client bio beginnings

22 months agofr_bio_packet_t handlers
Alan T. DeKok [Mon, 26 Feb 2024 13:38:06 +0000 (08:38 -0500)] 
fr_bio_packet_t handlers

22 months agominor cleanups
Alan T. DeKok [Mon, 26 Feb 2024 19:08:56 +0000 (14:08 -0500)] 
minor cleanups

22 months agomove packet list to queue.c
Alan T. DeKok [Thu, 22 Feb 2024 13:45:43 +0000 (08:45 -0500)] 
move packet list to queue.c

22 months agorearrange so #fr_socket_t is the first element
Alan T. DeKok [Sun, 25 Feb 2024 12:40:29 +0000 (07:40 -0500)] 
rearrange so #fr_socket_t is the first element

22 months agoallow for empty write buffers
Alan T. DeKok [Sun, 25 Feb 2024 12:40:52 +0000 (07:40 -0500)] 
allow for empty write buffers

22 months agoclean up mem
Alan T. DeKok [Wed, 21 Feb 2024 16:37:38 +0000 (11:37 -0500)] 
clean up mem

and note that we can't buffer outgoing datagrams

22 months agomove verify to set_verify callback
Alan T. DeKok [Wed, 21 Feb 2024 16:21:46 +0000 (11:21 -0500)] 
move verify to set_verify callback

so that we can add verification to bios which have both read and
write buffers

22 months agothese functions should be private
Alan T. DeKok [Wed, 21 Feb 2024 15:51:50 +0000 (10:51 -0500)] 
these functions should be private

22 months agotypo
Alan T. DeKok [Wed, 21 Feb 2024 15:47:49 +0000 (10:47 -0500)] 
typo

22 months agodoxygen for bio read / write functions
Alan T. DeKok [Wed, 21 Feb 2024 16:07:45 +0000 (11:07 -0500)] 
doxygen for bio read / write functions

22 months agoremove unused functions
Alan T. DeKok [Wed, 21 Feb 2024 16:32:09 +0000 (11:32 -0500)] 
remove unused functions

22 months agoit helps to initialize the sockaddr
Alan T. DeKok [Sun, 25 Feb 2024 12:40:16 +0000 (07:40 -0500)] 
it helps to initialize the sockaddr

22 months agoNo-one should be using LM hashes to store passwords
Nick Porter [Tue, 27 Feb 2024 16:29:03 +0000 (16:29 +0000)] 
No-one should be using LM hashes to store passwords

Also removes use of xlat_eval in rlm_pap

22 months agoDocs correction
Nick Porter [Tue, 27 Feb 2024 15:59:58 +0000 (15:59 +0000)] 
Docs correction

22 months agoRework LDAP group filter expansion to remove xlat_eval()
Nick Porter [Fri, 23 Feb 2024 20:58:27 +0000 (20:58 +0000)] 
Rework LDAP group filter expansion to remove xlat_eval()

22 months agoAdd fr_ldap_box_escape()
Nick Porter [Fri, 23 Feb 2024 20:54:08 +0000 (20:54 +0000)] 
Add fr_ldap_box_escape()

22 months agoPass module instnce data to call_env_alloc when parsing xlat call_env
Nick Porter [Tue, 27 Feb 2024 13:29:28 +0000 (13:29 +0000)] 
Pass module instnce data to call_env_alloc when parsing xlat call_env

xi->data has only just been allocated at this point so doesn't contain
anything useful.

22 months agoFix docs
Arran Cudbard-Bell [Tue, 27 Feb 2024 06:36:16 +0000 (22:36 -0800)] 
Fix docs

22 months agoRm unused headers
Arran Cudbard-Bell [Fri, 23 Feb 2024 22:41:27 +0000 (15:41 -0700)] 
Rm unused headers

22 months agoQuiet clang scan
Arran Cudbard-Bell [Fri, 23 Feb 2024 22:41:19 +0000 (15:41 -0700)] 
Quiet clang scan

22 months agoSkip LDAP group processing on suspension
Arran Cudbard-Bell [Fri, 23 Feb 2024 22:36:12 +0000 (15:36 -0700)] 
Skip LDAP group processing on suspension

22 months agoAdd more debug output when applying suspension profiles
Arran Cudbard-Bell [Fri, 23 Feb 2024 22:13:08 +0000 (15:13 -0700)] 
Add more debug output when applying suspension profiles

22 months agoMake suspension messages informational
Arran Cudbard-Bell [Fri, 23 Feb 2024 21:54:50 +0000 (14:54 -0700)] 
Make suspension messages informational

22 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

22 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

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

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

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

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

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

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

22 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

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

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

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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

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

23 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

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

23 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

23 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

23 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

23 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

23 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

23 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.

23 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

23 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

23 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

23 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.

23 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

23 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...

23 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

23 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

23 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

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

23 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...

23 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

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

23 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

23 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

23 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)

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

23 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

23 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

23 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

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

23 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

23 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

23 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

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

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

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

23 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.

23 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

23 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

23 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)

23 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

23 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

23 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.

23 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