]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
13 months agoUpdate sample rlm_perl configuration
Nick Porter [Sat, 17 May 2025 19:24:36 +0000 (20:24 +0100)] 
Update sample rlm_perl configuration

13 months agoRemove old Perl pair marshalling functions
Nick Porter [Fri, 16 May 2025 19:29:07 +0000 (20:29 +0100)] 
Remove old Perl pair marshalling functions

13 months agoDon't marshal pair lists into global Perl hashes
Nick Porter [Fri, 16 May 2025 19:27:42 +0000 (20:27 +0100)] 
Don't marshal pair lists into global Perl hashes

13 months agoRemove old Perl value unmarshalling functions
Nick Porter [Fri, 16 May 2025 19:26:48 +0000 (20:26 +0100)] 
Remove old Perl value unmarshalling functions

13 months agoRemove rlm_perl replace options
Nick Porter [Fri, 16 May 2025 19:24:32 +0000 (20:24 +0100)] 
Remove rlm_perl replace options

13 months agoDon't replace pair lists after calling rlm_perl
Nick Porter [Fri, 16 May 2025 19:23:22 +0000 (20:23 +0100)] 
Don't replace pair lists after calling rlm_perl

Now pairs can be directly manipulated from the Perl subroutine

13 months agoAdd UNSHIFT to Perl tied arrays
Nick Porter [Fri, 16 May 2025 19:18:01 +0000 (20:18 +0100)] 
Add UNSHIFT to Perl tied arrays

13 months agoAdd SHIFT to Perl tied arrays
Nick Porter [Fri, 16 May 2025 19:15:17 +0000 (20:15 +0100)] 
Add SHIFT to Perl tied arrays

13 months agoAdd POP to Perl tied arrays
Nick Porter [Fri, 16 May 2025 18:26:33 +0000 (19:26 +0100)] 
Add POP to Perl tied arrays

13 months agoAdd PUSH to Perl tied arrays
Nick Porter [Fri, 16 May 2025 16:43:52 +0000 (17:43 +0100)] 
Add PUSH to Perl tied arrays

13 months agoAdd STORESIZE to Perl tied array
Nick Porter [Thu, 15 May 2025 16:04:38 +0000 (17:04 +0100)] 
Add STORESIZE to Perl tied array

13 months agoAdd FETCHSIZE function to Perl tied arrays
Nick Porter [Thu, 15 May 2025 15:45:14 +0000 (16:45 +0100)] 
Add FETCHSIZE function to Perl tied arrays

13 months agoAdd DELETE functionality to Perl tied arrays
Nick Porter [Thu, 15 May 2025 15:44:10 +0000 (16:44 +0100)] 
Add DELETE functionality to Perl tied arrays

13 months agoAdd EXISTS functionality to tied Perl arrays
Nick Porter [Thu, 15 May 2025 15:42:05 +0000 (16:42 +0100)] 
Add EXISTS functionality to tied Perl arrays

13 months agoAdd XS_pairs_STORE
Nick Porter [Thu, 15 May 2025 15:00:40 +0000 (16:00 +0100)] 
Add XS_pairs_STORE

For setting / updating instances of leaf attributes, building out
parents as needed.

13 months agoAdd function DELETE for Perl tied hash
Nick Porter [Thu, 15 May 2025 14:57:06 +0000 (15:57 +0100)] 
Add function DELETE for Perl tied hash

13 months agoAdd Perl hash key iteration functions
Nick Porter [Thu, 15 May 2025 14:52:21 +0000 (15:52 +0100)] 
Add Perl hash key iteration functions

13 months agoAdd XS_pairlist_EXISTS
Nick Porter [Thu, 15 May 2025 14:48:05 +0000 (15:48 +0100)] 
Add XS_pairlist_EXISTS

To check the existence of hash keys (child pairs in a structural
attribute in FreeRADIUS)

13 months agoAdd XS_pairlist_STORE
Nick Porter [Thu, 15 May 2025 14:44:15 +0000 (15:44 +0100)] 
Add XS_pairlist_STORE

To reject attempts to set a value on a structural attribute

13 months agoPass a hash to Perl subroutines with the pair list roots
Nick Porter [Thu, 15 May 2025 14:41:26 +0000 (15:41 +0100)] 
Pass a hash to Perl subroutines with the pair list roots

13 months agoDefine XS_pairlist_FETCH
Nick Porter [Thu, 15 May 2025 14:36:43 +0000 (15:36 +0100)] 
Define XS_pairlist_FETCH

Perl tied hash function for fetching structural attributes

13 months agoDefine XS_pairs_FETCH
Nick Porter [Thu, 15 May 2025 14:22:25 +0000 (15:22 +0100)] 
Define XS_pairs_FETCH

Perl tied array function for fetching instances of an attribute.

13 months agoDefine C structure to associate with tied Perl hash / array
Nick Porter [Thu, 15 May 2025 14:13:17 +0000 (15:13 +0100)] 
Define C structure to associate with tied Perl hash / array

13 months agoif the cursor is const, don't set insert / remove
Alan T. DeKok [Sun, 18 May 2025 19:12:01 +0000 (15:12 -0400)] 
if the cursor is const, don't set insert / remove

13 months agothe first pair returned from the cursor might be structural
Alan T. DeKok [Sun, 18 May 2025 18:39:07 +0000 (14:39 -0400)] 
the first pair returned from the cursor might be structural

i.e. if the check for "is leaf" is needed for the subsequent
dcursor operations, then it should be needed for the first one, too

13 months agoremove unused functions
Alan T. DeKok [Sun, 18 May 2025 18:31:09 +0000 (14:31 -0400)] 
remove unused functions

13 months agoremove unused functions
Alan T. DeKok [Sun, 18 May 2025 18:30:52 +0000 (14:30 -0400)] 
remove unused functions

13 months agoremove references to function which doesn't exist
Alan T. DeKok [Sun, 18 May 2025 00:20:03 +0000 (20:20 -0400)] 
remove references to function which doesn't exist

13 months agomove to fr_dcursor_iter_init()
Alan T. DeKok [Sun, 18 May 2025 00:18:42 +0000 (20:18 -0400)] 
move to fr_dcursor_iter_init()

13 months agomove cursor callbacks to using fr_dcursor_t*
Alan T. DeKok [Sat, 17 May 2025 19:27:19 +0000 (15:27 -0400)] 
move cursor callbacks to using fr_dcursor_t*

instead of fr_dlist_head_t*.  This lets us change the underlying
cursor implementation.  i.e. to use chains of cursor

13 months agopass the right pointer to the function
Alan T. DeKok [Sat, 17 May 2025 15:59:55 +0000 (11:59 -0400)] 
pass the right pointer to the function

13 months agoadd ctx to tmpl_dcursor_value_box_init()
Alan T. DeKok [Sat, 17 May 2025 14:39:09 +0000 (10:39 -0400)] 
add ctx to tmpl_dcursor_value_box_init()

in preparation for adding FR_TYPE_PAIR_CURSOR to fr_pair_t

13 months agodocument common v3 pattern of ":=" followed by "+="
Alan T. DeKok [Sat, 17 May 2025 12:16:05 +0000 (08:16 -0400)] 
document common v3 pattern of ":=" followed by "+="

13 months agoTLS 1.3 support for LDAP module #5583
Alan T. DeKok [Sat, 17 May 2025 12:08:00 +0000 (08:08 -0400)] 
TLS 1.3 support for LDAP module #5583

13 months agono need to call a function for ptr comparison
Alan T. DeKok [Sat, 17 May 2025 12:07:44 +0000 (08:07 -0400)] 
no need to call a function for ptr comparison

13 months agoadd assertions
Alan T. DeKok [Sat, 17 May 2025 01:02:44 +0000 (21:02 -0400)] 
add assertions

in preparation for nested dcursors

13 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/cbor.tar
github-actions[bot] [Sat, 17 May 2025 04:27:04 +0000 (04:27 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/cbor.tar

13 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/der.tar
github-actions[bot] [Sat, 17 May 2025 04:26:01 +0000 (04:26 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/der.tar

13 months agoThese are being added to the reply
Nick Porter [Fri, 16 May 2025 15:56:38 +0000 (16:56 +0100)] 
These are being added to the reply

13 months agoallow list assignment to leaf attributes in nested sections
Alan T. DeKok [Fri, 16 May 2025 11:37:59 +0000 (07:37 -0400)] 
allow list assignment to leaf attributes in nested sections

13 months agoquiet coverity. CID #1409865
Alan T. DeKok [Thu, 15 May 2025 20:43:46 +0000 (16:43 -0400)] 
quiet coverity.  CID #1409865

13 months agouse int for memcmp results. CID #1646825
Alan T. DeKok [Thu, 15 May 2025 20:37:56 +0000 (16:37 -0400)] 
use int for memcmp results.  CID #1646825

13 months agoadd test which currently returns an error
Alan T. DeKok [Thu, 15 May 2025 19:38:21 +0000 (15:38 -0400)] 
add test which currently returns an error

so we have some notes for conditions in tmpl_dcursors

13 months agoAlign test with revised enum name
Nick Porter [Fri, 16 May 2025 08:21:34 +0000 (09:21 +0100)] 
Align test with revised enum name

13 months agoRename ARP packet types to avoid confict
Nick Porter [Fri, 16 May 2025 08:05:01 +0000 (09:05 +0100)] 
Rename ARP packet types to avoid confict

We need to be able to use ARP from DHCPv4, and with both protocols
having a packet type of "Request", both got an auto-generated `#define
FR_PACKET_TYPE_VALUE_REQUEST` but with different values.

13 months agoRemove stray policy
Nick Porter [Fri, 16 May 2025 07:20:43 +0000 (08:20 +0100)] 
Remove stray policy

13 months agoAdd header to give access to `fr_arp_entry_add`
Nick Porter [Thu, 15 May 2025 19:03:05 +0000 (20:03 +0100)] 
Add header to give access to `fr_arp_entry_add`

So that broadcast requests without the broadcast flag set can be
responded to correctly.

13 months agoToo many dots
Nick Porter [Thu, 15 May 2025 17:03:22 +0000 (18:03 +0100)] 
Too many dots

13 months agoanother step to allowing conditions in array refs
Alan T. DeKok [Thu, 15 May 2025 16:22:02 +0000 (12:22 -0400)] 
another step to allowing conditions in array refs

we don't yet have a syntax for "the current cursor position",
but the basics seems to be OK

13 months agoclean up error message
Alan T. DeKok [Thu, 15 May 2025 15:43:27 +0000 (11:43 -0400)] 
clean up error message

13 months agomove fr_skip* to their own C file and header
Alan T. DeKok [Thu, 15 May 2025 13:42:45 +0000 (09:42 -0400)] 
move fr_skip* to their own C file and header

as they are (and will be) used in many places

13 months agoquiet static analyzer
Alan T. DeKok [Thu, 15 May 2025 14:45:23 +0000 (10:45 -0400)] 
quiet static analyzer

13 months agoparse array things only when the quote is array
Alan T. DeKok [Thu, 15 May 2025 12:24:31 +0000 (08:24 -0400)] 
parse array things only when the quote is array

13 months agothe ar is already freed on error
Alan T. DeKok [Thu, 15 May 2025 12:24:03 +0000 (08:24 -0400)] 
the ar is already freed on error

13 months agoupdate notes now that we have FR_TYPE_PAIR_CURSOR
Alan T. DeKok [Thu, 15 May 2025 11:01:46 +0000 (07:01 -0400)] 
update notes now that we have FR_TYPE_PAIR_CURSOR

13 months agomight as well list dictionary things here, too
Alan T. DeKok [Thu, 15 May 2025 10:20:33 +0000 (06:20 -0400)] 
might as well list dictionary things here, too

13 months agomove pairs to its own directory
Alan T. DeKok [Thu, 15 May 2025 10:15:46 +0000 (06:15 -0400)] 
move pairs to its own directory

13 months agoupdates, corrections, and clarifications
Alan T. DeKok [Thu, 15 May 2025 09:59:33 +0000 (05:59 -0400)] 
updates, corrections, and clarifications

13 months agotweaks for v4
Alan T. DeKok [Thu, 15 May 2025 09:31:20 +0000 (05:31 -0400)] 
tweaks for v4

13 months agouse more of v4 syntax
Alan T. DeKok [Thu, 15 May 2025 09:23:45 +0000 (05:23 -0400)] 
use more of v4 syntax

13 months agomove functions to using a cursor argument
Alan T. DeKok [Wed, 14 May 2025 14:23:08 +0000 (10:23 -0400)] 
move functions to using a cursor argument

13 months agodon't print "WARN WARN"
Alan T. DeKok [Wed, 14 May 2025 19:10:27 +0000 (15:10 -0400)] 
don't print "WARN WARN"

13 months agocorrect check for tmpl_dcursor_value_box_init()
Alan T. DeKok [Wed, 14 May 2025 19:18:38 +0000 (15:18 -0400)] 
correct check for tmpl_dcursor_value_box_init()

-1 is "no cursor", too

13 months agoCorrect adding 2 DNS servers to DHCP reply
Nick Porter [Wed, 14 May 2025 18:08:59 +0000 (19:08 +0100)] 
Correct adding 2 DNS servers to DHCP reply

13 months agoUpdate DHCP docs for v4
Nick Porter [Wed, 14 May 2025 18:08:27 +0000 (19:08 +0100)] 
Update DHCP docs for v4

A quick pass updating
 - option names don't have `DHCP-` prefix
 - remove `update` sections
 - xlat syntax fixes

13 months agoUpdate rlm_sqlippool_tool for v4 fr_ippool schema
Nick Porter [Wed, 14 May 2025 16:25:29 +0000 (17:25 +0100)] 
Update rlm_sqlippool_tool for v4 fr_ippool schema

13 months agoadd notes on future functionality
Alan T. DeKok [Wed, 14 May 2025 11:15:14 +0000 (07:15 -0400)] 
add notes on future functionality

13 months agoadd test where LHS fails expansion, but the RHS exists
Alan T. DeKok [Wed, 14 May 2025 11:14:59 +0000 (07:14 -0400)] 
add test where LHS fails expansion, but the RHS exists

13 months agoCheck for policy foo.baa when foo.baa is called
Nick Porter [Wed, 14 May 2025 07:45:14 +0000 (08:45 +0100)] 
Check for policy foo.baa when foo.baa is called

13 months agoUse section name1/name2 when looking for override policies
Nick Porter [Wed, 14 May 2025 07:16:52 +0000 (08:16 +0100)] 
Use section name1/name2 when looking for override policies

First checking for `foo.name1.name2`, then `foo.name1` and finally just
`foo`

13 months agoallow attribute references as cursors for function arguments
Alan T. DeKok [Tue, 13 May 2025 18:26:53 +0000 (14:26 -0400)] 
allow attribute references as cursors for function arguments

via the somewhat bad hack of adding a flag to xlat_exp_head_t,
because it's too hard to pass in the xlat_arg_parser_t to the
xlat evaluation function

13 months agomove init FR_TYPE_PAIR_CURSOR dcursor into tmpl_dcursor.c
Alan T. DeKok [Tue, 13 May 2025 17:54:47 +0000 (13:54 -0400)] 
move init FR_TYPE_PAIR_CURSOR dcursor into tmpl_dcursor.c

13 months agoclear cursor values, too
Alan T. DeKok [Tue, 13 May 2025 17:54:18 +0000 (13:54 -0400)] 
clear cursor values, too

13 months agomove to use FR_TYPE_PAIR_CURSOR in xlat, and away from FR_TYPE_VOID
Alan T. DeKok [Tue, 13 May 2025 16:01:01 +0000 (12:01 -0400)] 
move to use FR_TYPE_PAIR_CURSOR in xlat, and away from FR_TYPE_VOID

and remove now redundant destructor for tmpl_dcursor_ctx_t

13 months agoproxy_request and proxy_reply no longer exist
Nick Porter [Tue, 13 May 2025 15:23:41 +0000 (16:23 +0100)] 
proxy_request and proxy_reply no longer exist

13 months agoWindows 7 is very EoL
Nick Porter [Tue, 13 May 2025 14:21:25 +0000 (15:21 +0100)] 
Windows 7 is very EoL

13 months agoAdd enum prefix for DHCP Message-Type values
Nick Porter [Tue, 13 May 2025 14:19:51 +0000 (15:19 +0100)] 
Add enum prefix for DHCP Message-Type values

13 months agoUpdate sample mruby script with correct log function call
Nick Porter [Tue, 13 May 2025 14:10:12 +0000 (15:10 +0100)] 
Update sample mruby script with correct log function call

13 months agoCheck that mruby functions exist
Nick Porter [Tue, 13 May 2025 13:43:40 +0000 (14:43 +0100)] 
Check that mruby functions exist

13 months agodefine and use new FR_TYPE_PAIR_CURSOR
Alan T. DeKok [Mon, 12 May 2025 19:30:49 +0000 (15:30 -0400)] 
define and use new FR_TYPE_PAIR_CURSOR

13 months agoadd FR_TYPE_INTERNAL
Alan T. DeKok [Mon, 12 May 2025 18:31:45 +0000 (14:31 -0400)] 
add FR_TYPE_INTERNAL

to hold multiple types which aren't leaf types, and which aren't
structural types.  But which are internal types that nothing
else should use

13 months agoif it's not a leaf type, ensure it's a structural one
Alan T. DeKok [Mon, 12 May 2025 16:33:40 +0000 (12:33 -0400)] 
if it's not a leaf type, ensure it's a structural one

so that the code behaves sanely or at least asserts, if passed
another type

13 months agoremove debugging information
Alan T. DeKok [Mon, 12 May 2025 12:53:02 +0000 (08:53 -0400)] 
remove debugging information

13 months agodefine macro for dcursor arguments
Alan T. DeKok [Mon, 12 May 2025 12:50:43 +0000 (08:50 -0400)] 
define macro for dcursor arguments

13 months agoallow tmpl_dcursor as function arguments
Alan T. DeKok [Sun, 11 May 2025 23:27:35 +0000 (19:27 -0400)] 
allow tmpl_dcursor as function arguments

with some limitations - only strings are allowed for now :(

13 months agoonly set safe_for if the data was escaped
Alan T. DeKok [Sun, 11 May 2025 22:07:32 +0000 (18:07 -0400)] 
only set safe_for if the data was escaped

this shouldn't have any practical difference, as the argument
parser sets t_rules->literals_safe_for = arg->safe_for.  So literals
are already marked up as safe.

Arguably that function shouldn't do that, either.

13 months agofunctions to get / set typed data into FR_TYPE_VOID
Alan T. DeKok [Sun, 11 May 2025 22:02:41 +0000 (18:02 -0400)] 
functions to get / set typed data into FR_TYPE_VOID

13 months agoadd destructor wrapper for freeing tmpl_dcursor_t
Alan T. DeKok [Sun, 11 May 2025 22:01:55 +0000 (18:01 -0400)] 
add destructor wrapper for freeing tmpl_dcursor_t

13 months agomove bools to 1-bit fields
Alan T. DeKok [Sun, 11 May 2025 13:29:07 +0000 (09:29 -0400)] 
move bools to 1-bit fields

13 months agothe protocol encode xlat can't actually take a quoted string
Alan T. DeKok [Sun, 11 May 2025 13:22:37 +0000 (09:22 -0400)] 
the protocol encode xlat can't actually take a quoted string

it has to take an attribute reference, because it manually parses
the input as a tmpl_attr.

We arguably need to update the xlat function arguments to indicate
whether or not the argument expects to see a cursor.  And if so,
perhaps put a pointer to the cursor into a box of FR_TYPE_VOID.

which then lets functions like this either take a cursor of things
to encode, OR a string which is then parsed into a list of things
to encode.

13 months agoadd original xlat to function call
Alan T. DeKok [Sun, 11 May 2025 13:21:18 +0000 (09:21 -0400)] 
add original xlat to function call

so we can see not just what the function is, but also what the
arguments are.  This change helps the called function know whether
or not the string it received was originally a bare word, or else
if it was quoted.

13 months agomove hmac to its own file
Alan T. DeKok [Sun, 11 May 2025 13:03:54 +0000 (09:03 -0400)] 
move hmac to its own file

13 months agosplit time functions into separate files
Alan T. DeKok [Sun, 11 May 2025 12:52:48 +0000 (08:52 -0400)] 
split time functions into separate files

13 months agoUpdate debug message to give correct context
Gerald Vogt [Fri, 9 May 2025 05:52:26 +0000 (07:52 +0200)] 
Update debug message to give correct context

13 months agofix xrefs
Alan T. DeKok [Fri, 9 May 2025 19:51:12 +0000 (15:51 -0400)] 
fix xrefs

13 months agodocs: added xlat summary file
nolade [Fri, 9 May 2025 18:16:43 +0000 (14:16 -0400)] 
docs: added  xlat summary file

13 months agodocs: updated miscelleneous functions
Alan T. DeKok [Fri, 9 May 2025 19:40:58 +0000 (15:40 -0400)] 
docs: updated miscelleneous functions

13 months agodocs: updated miscelleneous functions
nolade [Fri, 9 May 2025 18:06:38 +0000 (14:06 -0400)] 
docs: updated miscelleneous functions

13 months agodocs: xlat string functions reorganized into sub-dir `str`. Updated nav file links...
nolade [Fri, 9 May 2025 17:05:32 +0000 (13:05 -0400)] 
docs: xlat string functions reorganized into sub-dir `str`. Updated nav file links and added ./string/index.adoc file and relevant links to sub-sections.

13 months agothis test depends on rlm_radius, too
Alan T. DeKok [Fri, 9 May 2025 19:11:10 +0000 (15:11 -0400)] 
this test depends on rlm_radius, too