]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
5 years agoMore separator fixups
Arran Cudbard-Bell [Fri, 25 Sep 2020 16:13:34 +0000 (11:13 -0500)] 
More separator fixups

5 years agoRemove useless comment
Arran Cudbard-Bell [Thu, 24 Sep 2020 18:56:10 +0000 (13:56 -0500)] 
Remove useless comment

5 years agotmpl: Basic nested TLV parsing tests
Arran Cudbard-Bell [Thu, 24 Sep 2020 18:55:16 +0000 (13:55 -0500)] 
tmpl: Basic nested TLV parsing tests

5 years agodlist: Next/prev pointers should be const
Arran Cudbard-Bell [Thu, 24 Sep 2020 16:20:28 +0000 (11:20 -0500)] 
dlist: Next/prev pointers should be const

5 years agoFix name component order
Arran Cudbard-Bell [Mon, 21 Sep 2020 22:04:57 +0000 (17:04 -0500)] 
Fix name component order

5 years agomove to using the csv module instead of the passwd module
Alan T. DeKok [Thu, 24 Sep 2020 18:28:28 +0000 (14:28 -0400)] 
move to using the csv module instead of the passwd module

5 years agofor /etc/group style things, omit entries with no key
Alan T. DeKok [Thu, 24 Sep 2020 18:20:17 +0000 (14:20 -0400)] 
for /etc/group style things, omit entries with no key

5 years agomash all of the buffer, not the "next" character
Alan T. DeKok [Thu, 24 Sep 2020 18:18:59 +0000 (14:18 -0400)] 
mash all of the buffer, not the "next" character

5 years agoinitialize variable
Alan T. DeKok [Thu, 24 Sep 2020 14:21:57 +0000 (10:21 -0400)] 
initialize variable

5 years agoupdate copyright year
Alan T. DeKok [Thu, 24 Sep 2020 14:20:35 +0000 (10:20 -0400)] 
update copyright year

5 years agoadd notes on selectors / filters
Alan T. DeKok [Thu, 24 Sep 2020 14:19:00 +0000 (10:19 -0400)] 
add notes on selectors / filters

5 years agoadd notes on arrays and parent / child
Alan T. DeKok [Thu, 24 Sep 2020 14:18:49 +0000 (10:18 -0400)] 
add notes on arrays and parent / child

5 years agoEnsure temporary check list is cleared between matches in rlm_files
Nick Porter [Thu, 24 Sep 2020 13:39:51 +0000 (14:39 +0100)] 
Ensure temporary check list is cleared between matches in rlm_files

False matches were not clearing the temporary check list, and
fr_pair_list_copy used to populate performs a merge on non-empty lists
resulting in previous check values taking precedence in subsequent
checks.

5 years agoSet DHCP packets to consistently use the same lookup function
Nick Porter [Thu, 24 Sep 2020 11:25:59 +0000 (12:25 +0100)] 
Set DHCP packets to consistently use the same lookup function

5 years agoChange DHCP-Network-IP-Address to ipv4prefix
Nick Porter [Thu, 24 Sep 2020 10:56:28 +0000 (11:56 +0100)] 
Change DHCP-Network-IP-Address to ipv4prefix

To allow closest containing subnet matching, use an IPv4 prefix for
DHCP-Network-IP-Address

5 years agoDetermine the address to be used to identify client subnet
Nick Porter [Tue, 15 Sep 2020 12:00:14 +0000 (13:00 +0100)] 
Determine the address to be used to identify client subnet

After parsing the DHCP packet, check Relay-Link-Selection option,
Subnet-Selection-Option option then giaddr and finally ciaddr to
determine address to lookup client's subnet.

5 years agoAdd new internal attributes to DHCP dictionary
Nick Porter [Tue, 15 Sep 2020 09:12:27 +0000 (10:12 +0100)] 
Add new internal attributes to DHCP dictionary

DHCP-Network-IP-Address - used to store the address to be used in
determining the subnet a client belongs to
DHCP-Group-Name - an internal name for group(s) to which a client
belongs, for looking up options.

Also, correct the type for option 118.

5 years agoupdate docs as per recent changes
Alan T. DeKok [Thu, 24 Sep 2020 13:21:46 +0000 (09:21 -0400)] 
update docs as per recent changes

5 years agoadd $(dlsearch ...)
Alan T. DeKok [Thu, 24 Sep 2020 13:21:23 +0000 (09:21 -0400)] 
add $(dlsearch ...)

5 years agoabstract getting filename, and add docs
Alan T. DeKok [Thu, 24 Sep 2020 12:27:15 +0000 (08:27 -0400)] 
abstract getting filename, and add docs

5 years agoset data type from 'key' if necessary.
Alan T. DeKok [Wed, 23 Sep 2020 15:33:49 +0000 (11:33 -0400)] 
set data type from 'key' if necessary.

otherwise, check the data type of key against data_type

5 years agoonly allow values for key field
Alan T. DeKok [Wed, 23 Sep 2020 15:29:43 +0000 (11:29 -0400)] 
only allow values for key field

i.e. not TLV, group, etc.

5 years agosimplify and reduce memory duplication
Alan T. DeKok [Wed, 23 Sep 2020 15:23:38 +0000 (11:23 -0400)] 
simplify and reduce memory duplication

5 years agothis doesn't need to be exported any more
Alan T. DeKok [Wed, 23 Sep 2020 15:13:57 +0000 (11:13 -0400)] 
this doesn't need to be exported any more

5 years agoadd parent to tmpl_rules_t
Alan T. DeKok [Wed, 23 Sep 2020 13:23:12 +0000 (09:23 -0400)] 
add parent to tmpl_rules_t

so that when we are parsing &parent.foo.bar, that code can
dereferences parse_rules->parent->dict_def, to see which dictionary
to use for the parent attributes

5 years agoAllow reading of /etc/group via special syntax
Alan T. DeKok [Tue, 22 Sep 2020 18:39:58 +0000 (14:39 -0400)] 
Allow reading of /etc/group via special syntax

5 years agoadd "allow_multiple_keys"
Alan T. DeKok [Tue, 22 Sep 2020 15:13:22 +0000 (11:13 -0400)] 
add "allow_multiple_keys"

which will apply the map repeatedly (in file order) for each
key that is found.

5 years agouse da_stack
Alan T. DeKok [Tue, 22 Sep 2020 13:47:36 +0000 (09:47 -0400)] 
use da_stack

5 years agoalways include 'da' in it's own tlv_stack
Alan T. DeKok [Tue, 22 Sep 2020 13:36:28 +0000 (09:36 -0400)] 
always include 'da' in it's own tlv_stack

5 years agoadd tlv_stack to each da
Alan T. DeKok [Tue, 22 Sep 2020 12:35:57 +0000 (08:35 -0400)] 
add tlv_stack to each da

Because we will be needing it at run-time, and it's faster and
cheaper to just allocate it statically when the server starts

5 years agouse the correct parent
Alan T. DeKok [Tue, 22 Sep 2020 12:23:18 +0000 (08:23 -0400)] 
use the correct parent

if we're adding "new" to "vsa_da", then we should pass "vsa_da"
to the attr_alloc function

5 years agoadd "caller" keyword
Alan T. DeKok [Mon, 21 Sep 2020 18:12:49 +0000 (14:12 -0400)] 
add "caller" keyword

this currently only does one level of checks.  It doesn't track
nested "caller" sections.  That requires updates to the
parse_rules structure

5 years agoRemove trailing list separator
Arran Cudbard-Bell [Mon, 21 Sep 2020 21:40:39 +0000 (16:40 -0500)] 
Remove trailing list separator

5 years agoFix <list>:<filter>
Arran Cudbard-Bell [Mon, 21 Sep 2020 21:39:14 +0000 (16:39 -0500)] 
Fix <list>:<filter>

5 years agos/session-state:/session-state./
Arran Cudbard-Bell [Mon, 21 Sep 2020 21:36:46 +0000 (16:36 -0500)] 
s/session-state:/session-state./

5 years agos/control:/control./
Arran Cudbard-Bell [Mon, 21 Sep 2020 21:36:06 +0000 (16:36 -0500)] 
s/control:/control./

5 years agos/reply:/reply./
Arran Cudbard-Bell [Mon, 21 Sep 2020 21:34:47 +0000 (16:34 -0500)] 
s/reply:/reply./

5 years agos/request:/request./
Arran Cudbard-Bell [Mon, 21 Sep 2020 21:32:36 +0000 (16:32 -0500)] 
s/request:/request./

5 years agoReduce allowed nesting
Arran Cudbard-Bell [Mon, 21 Sep 2020 17:54:40 +0000 (12:54 -0500)] 
Reduce allowed nesting

5 years agotmpl: Not used
Arran Cudbard-Bell [Mon, 21 Sep 2020 17:32:22 +0000 (12:32 -0500)] 
tmpl: Not used

5 years agoFormatting
Arran Cudbard-Bell [Mon, 21 Sep 2020 17:32:04 +0000 (12:32 -0500)] 
Formatting

5 years agotmpl: Make struct names and enumerations values more consistent
Arran Cudbard-Bell [Mon, 21 Sep 2020 17:03:41 +0000 (12:03 -0500)] 
tmpl: Make struct names and enumerations values more consistent

5 years agomore docs and fix return value
Alan T. DeKok [Sun, 20 Sep 2020 13:58:13 +0000 (09:58 -0400)] 
more docs and fix return value

5 years agopass the actual dictionary to virtal_server_namespace_register() because anything...
Alan T. DeKok [Sun, 20 Sep 2020 13:29:17 +0000 (09:29 -0400)] 
pass the actual dictionary to virtal_server_namespace_register()  because anything using a namespace already has the dictionary loaded.

5 years agotokenizers: Fix lifetime bugs with temporary compound literals
Arran Cudbard-Bell [Sun, 20 Sep 2020 01:24:13 +0000 (20:24 -0500)] 
tokenizers: Fix lifetime bugs with temporary compound literals

5 years agotmpl: Remove stupid asserts
Arran Cudbard-Bell [Mon, 21 Sep 2020 16:06:10 +0000 (11:06 -0500)] 
tmpl: Remove stupid asserts

5 years agomanually filter our PCRE tests if we don't have PCRE
Alan T. DeKok [Sat, 19 Sep 2020 20:34:28 +0000 (16:34 -0400)] 
manually filter our PCRE tests if we don't have PCRE

5 years agotypo
Alan T. DeKok [Sat, 19 Sep 2020 20:09:57 +0000 (16:09 -0400)] 
typo

5 years agoregex: Account for quote in error offset
Arran Cudbard-Bell [Sat, 19 Sep 2020 14:20:02 +0000 (09:20 -0500)] 
regex: Account for quote in error offset

5 years agotmpl: Add all unknown attributes in a hierarchy
Arran Cudbard-Bell [Fri, 18 Sep 2020 23:18:33 +0000 (18:18 -0500)] 
tmpl: Add all unknown attributes in a hierarchy

5 years agounit_test_attribute: Use the tmp_ctx to free xlat nodes
Arran Cudbard-Bell [Fri, 18 Sep 2020 22:48:57 +0000 (17:48 -0500)] 
unit_test_attribute: Use the tmp_ctx to free xlat nodes

5 years agoregex: Split out libpcre2 specific tests
Arran Cudbard-Bell [Fri, 18 Sep 2020 22:15:09 +0000 (17:15 -0500)] 
regex: Split out libpcre2 specific tests

5 years agoregex: Catch regex compilation error
Arran Cudbard-Bell [Fri, 18 Sep 2020 19:54:48 +0000 (14:54 -0500)] 
regex: Catch regex compilation error

5 years agoslen should always be ssize_t
Arran Cudbard-Bell [Fri, 18 Sep 2020 19:36:45 +0000 (14:36 -0500)] 
slen should always be ssize_t

5 years agoallow foreign attributes in subrequests
Alan T. DeKok [Fri, 18 Sep 2020 19:07:24 +0000 (15:07 -0400)] 
allow foreign attributes in subrequests

which isn't strictly correct, but will allow things to work until
such time as we have a dictionary stack in the parse rules.

5 years agounlang: Process casts during tmpl resolution
Arran Cudbard-Bell [Fri, 18 Sep 2020 18:32:59 +0000 (13:32 -0500)] 
unlang: Process casts during tmpl resolution

5 years agoexec: Fix exec parse rules - Fixme, still need pass2
Arran Cudbard-Bell [Fri, 18 Sep 2020 17:37:51 +0000 (12:37 -0500)] 
exec: Fix exec parse rules - Fixme, still need pass2

5 years agorlm_linelog: Create the empty tmpl as a boxed string type of zero length
Arran Cudbard-Bell [Fri, 18 Sep 2020 15:56:09 +0000 (10:56 -0500)] 
rlm_linelog: Create the empty tmpl as a boxed string type of zero length

5 years agobe more careful about validations
Alan T. DeKok [Fri, 18 Sep 2020 14:39:44 +0000 (10:39 -0400)] 
be more careful about validations

5 years agotmpl: Allow the caller to pass through whether creation of the tmpl is being done...
Arran Cudbard-Bell [Fri, 18 Sep 2020 14:29:06 +0000 (09:29 -0500)] 
tmpl: Allow the caller to pass through whether creation of the tmpl is being done at startup or runtime

5 years agoDon't recreate tmpls during pass2, resolve the existing one
Arran Cudbard-Bell [Fri, 18 Sep 2020 14:01:47 +0000 (09:01 -0500)] 
Don't recreate tmpls during pass2, resolve the existing one

5 years agorlm_json: Fix json reference parsing
Arran Cudbard-Bell [Fri, 18 Sep 2020 13:34:58 +0000 (08:34 -0500)] 
rlm_json: Fix json reference parsing

5 years agoDHCPv4 encoder/decoder xlat tests are no longer valid
Arran Cudbard-Bell [Fri, 18 Sep 2020 02:27:33 +0000 (21:27 -0500)] 
DHCPv4 encoder/decoder xlat tests are no longer valid

the xlats should be removed soon

5 years agomap: Allow data as the 3rd argument to maps
Arran Cudbard-Bell [Fri, 18 Sep 2020 02:25:12 +0000 (21:25 -0500)] 
map: Allow data as the 3rd argument to maps

5 years agomap: Fix quoting when printing debug messages
Arran Cudbard-Bell [Fri, 18 Sep 2020 02:25:00 +0000 (21:25 -0500)] 
map: Fix quoting when printing debug messages

5 years agoRADIUS does not support the 'array' flag
Alan T. DeKok [Thu, 17 Sep 2020 20:08:23 +0000 (16:08 -0400)] 
RADIUS does not support the 'array' flag

5 years agoremove "has_tag" from fr_dict_attr_flags_t
Alan T. DeKok [Thu, 17 Sep 2020 19:24:28 +0000 (15:24 -0400)] 
remove "has_tag" from fr_dict_attr_flags_t

and also remove Tmp-String-Tagged-0, which breaks the cache tests.
That's fine, it should likely just use standard attributes

5 years agoclean up and rename RADIUS flags
Alan T. DeKok [Thu, 17 Sep 2020 15:21:01 +0000 (11:21 -0400)] 
clean up and rename RADIUS flags

5 years agoremove "flag.concat"
Alan T. DeKok [Thu, 17 Sep 2020 15:15:27 +0000 (11:15 -0400)] 
remove "flag.concat"

as only RADIUS is using it.

5 years agomove to macros for flag checking
Alan T. DeKok [Thu, 17 Sep 2020 14:39:09 +0000 (10:39 -0400)] 
move to macros for flag checking

in preparation for deleting the "has_tag" field from the global
fr_dict_attr_flags structure

5 years agoallow existence checks for list, group, etc.
Alan T. DeKok [Thu, 17 Sep 2020 13:30:29 +0000 (09:30 -0400)] 
allow existence checks for list, group, etc.

We cannot compare a list / group / TLV to anything.  But we can
certainly check if a list / group / TLV exists.

5 years agotmpl: Allow the leaf attribute reference to point to a nesting type
Arran Cudbard-Bell [Thu, 17 Sep 2020 00:12:55 +0000 (19:12 -0500)] 
tmpl: Allow the leaf attribute reference to point to a nesting type

5 years agolists and attributes use the same code, but lists aren't attributes
Alan T. DeKok [Wed, 16 Sep 2020 12:26:27 +0000 (08:26 -0400)] 
lists and attributes use the same code, but lists aren't attributes

5 years agoresolve the xlat
Alan T. DeKok [Wed, 16 Sep 2020 02:36:14 +0000 (22:36 -0400)] 
resolve the xlat

after converting a virtual attribute to an xlat

5 years agocheck for regex-xlat, and not bare xlat
Alan T. DeKok [Fri, 11 Sep 2020 17:38:29 +0000 (13:38 -0400)] 
check for regex-xlat, and not bare xlat

5 years agovalue: Add generic integer to integer cast function
Arran Cudbard-Bell [Fri, 11 Sep 2020 14:55:12 +0000 (09:55 -0500)] 
value: Add generic integer to integer cast function

5 years agounit_test_attribute: Add toggle for allow-unresolved
Arran Cudbard-Bell [Sun, 6 Sep 2020 05:44:49 +0000 (01:44 -0400)] 
unit_test_attribute: Add toggle for allow-unresolved

5 years agouse two different variables for two different tasks
Alan T. DeKok [Sun, 6 Sep 2020 12:20:06 +0000 (08:20 -0400)] 
use two different variables for two different tasks

5 years agoStart of nested attribute support
Arran Cudbard-Bell [Wed, 26 Aug 2020 17:49:07 +0000 (12:49 -0500)] 
Start of nested attribute support

This also moves a significant number of functions to using sbuffs for printing and parsing.

This commit also significantly alters xlat and condition tokenizing

...and drops legacy tag support

5 years agoWeird capitalisation
Arran Cudbard-Bell [Sun, 20 Sep 2020 03:51:39 +0000 (22:51 -0500)] 
Weird capitalisation

5 years agoFix bad search/replace
Arran Cudbard-Bell [Sun, 20 Sep 2020 03:43:37 +0000 (22:43 -0500)] 
Fix bad search/replace

5 years agotacacs: Fix invalid octets value in tacacs test
Arran Cudbard-Bell [Sun, 20 Sep 2020 03:48:54 +0000 (22:48 -0500)] 
tacacs: Fix invalid octets value in tacacs test

5 years agoFix typo
Arran Cudbard-Bell [Sun, 20 Sep 2020 03:21:11 +0000 (22:21 -0500)] 
Fix typo

5 years agounit_test_attribute: Free the contents of cc->tmp_ctx after each command
Arran Cudbard-Bell [Sat, 19 Sep 2020 00:55:55 +0000 (19:55 -0500)] 
unit_test_attribute: Free the contents of cc->tmp_ctx after each command

5 years agoSupport in-network tests for ipv{4,6}prefix types when comparing lists (#3654)
Terry Burton [Sat, 19 Sep 2020 00:47:44 +0000 (01:47 +0100)] 
Support in-network tests for ipv{4,6}prefix types when comparing lists (#3654)

5 years agoadd encoded value for VSA which is encrypted, but not tagged
Alan T. DeKok [Thu, 17 Sep 2020 15:49:06 +0000 (11:49 -0400)] 
add encoded value for VSA which is encrypted, but not tagged

5 years agoFormatting
Arran Cudbard-Bell [Fri, 18 Sep 2020 13:42:15 +0000 (08:42 -0500)] 
Formatting

5 years agonotes for future fixes
Alan T. DeKok [Fri, 18 Sep 2020 14:39:31 +0000 (10:39 -0400)] 
notes for future fixes

5 years agofix typo
Alan T. DeKok [Fri, 18 Sep 2020 18:39:37 +0000 (14:39 -0400)] 
fix typo

5 years agoAdd synonym which is used elsewhere
Alan T. DeKok [Fri, 18 Sep 2020 18:40:29 +0000 (14:40 -0400)] 
Add synonym which is used elsewhere

5 years agoDon't delete the test config if validation fails
Arran Cudbard-Bell [Fri, 18 Sep 2020 17:33:35 +0000 (12:33 -0500)] 
Don't delete the test config if validation fails

We need to be able to run the command

5 years agoallow multiple keys in the lookup table
Alan T. DeKok [Thu, 17 Sep 2020 19:06:21 +0000 (15:06 -0400)] 
allow multiple keys in the lookup table

in order to support "or" of keys without too many other changes.

5 years agothe "concat" flag is not used in the EAP-SIM dictionaries
Alan T. DeKok [Thu, 17 Sep 2020 15:05:38 +0000 (11:05 -0400)] 
the "concat" flag is not used in the EAP-SIM dictionaries

5 years agocorrect comment
Alan T. DeKok [Thu, 17 Sep 2020 14:45:16 +0000 (10:45 -0400)] 
correct comment

5 years agofix logic
Alan T. DeKok [Thu, 17 Sep 2020 14:22:44 +0000 (10:22 -0400)] 
fix logic

!foo and foo!=0 doesn't make sense

5 years agonotes
Alan T. DeKok [Thu, 17 Sep 2020 13:33:02 +0000 (09:33 -0400)] 
notes

5 years agomake error messages more explicit
Alan T. DeKok [Wed, 16 Sep 2020 12:09:43 +0000 (08:09 -0400)] 
make error messages more explicit

so the poor admin knows exactly what's wrong

5 years agowe no longer have any references to REQUEST_PROXY
Alan T. DeKok [Wed, 16 Sep 2020 11:56:48 +0000 (07:56 -0400)] 
we no longer have any references to REQUEST_PROXY

5 years agoStrip runs
Arran Cudbard-Bell [Fri, 18 Sep 2020 19:57:04 +0000 (14:57 -0500)] 
Strip runs

5 years agoStrip double forward slashes in -install_name
Arran Cudbard-Bell [Fri, 18 Sep 2020 19:49:55 +0000 (14:49 -0500)] 
Strip double forward slashes in -install_name