]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Arran Cudbard-Bell [Fri, 25 Sep 2020 16:13:34 +0000 (11:13 -0500)]
More separator fixups
Arran Cudbard-Bell [Thu, 24 Sep 2020 18:56:10 +0000 (13:56 -0500)]
Remove useless comment
Arran Cudbard-Bell [Thu, 24 Sep 2020 18:55:16 +0000 (13:55 -0500)]
tmpl: Basic nested TLV parsing tests
Arran Cudbard-Bell [Thu, 24 Sep 2020 16:20:28 +0000 (11:20 -0500)]
dlist: Next/prev pointers should be const
Arran Cudbard-Bell [Mon, 21 Sep 2020 22:04:57 +0000 (17:04 -0500)]
Fix name component order
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
Alan T. DeKok [Thu, 24 Sep 2020 18:20:17 +0000 (14:20 -0400)]
for /etc/group style things, omit entries with no key
Alan T. DeKok [Thu, 24 Sep 2020 18:18:59 +0000 (14:18 -0400)]
mash all of the buffer, not the "next" character
Alan T. DeKok [Thu, 24 Sep 2020 14:21:57 +0000 (10:21 -0400)]
initialize variable
Alan T. DeKok [Thu, 24 Sep 2020 14:20:35 +0000 (10:20 -0400)]
update copyright year
Alan T. DeKok [Thu, 24 Sep 2020 14:19:00 +0000 (10:19 -0400)]
add notes on selectors / filters
Alan T. DeKok [Thu, 24 Sep 2020 14:18:49 +0000 (10:18 -0400)]
add notes on arrays and parent / child
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.
Nick Porter [Thu, 24 Sep 2020 11:25:59 +0000 (12:25 +0100)]
Set DHCP packets to consistently use the same lookup function
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
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.
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.
Alan T. DeKok [Thu, 24 Sep 2020 13:21:46 +0000 (09:21 -0400)]
update docs as per recent changes
Alan T. DeKok [Thu, 24 Sep 2020 13:21:23 +0000 (09:21 -0400)]
add $(dlsearch ...)
Alan T. DeKok [Thu, 24 Sep 2020 12:27:15 +0000 (08:27 -0400)]
abstract getting filename, and add docs
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
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.
Alan T. DeKok [Wed, 23 Sep 2020 15:23:38 +0000 (11:23 -0400)]
simplify and reduce memory duplication
Alan T. DeKok [Wed, 23 Sep 2020 15:13:57 +0000 (11:13 -0400)]
this doesn't need to be exported any more
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
Alan T. DeKok [Tue, 22 Sep 2020 18:39:58 +0000 (14:39 -0400)]
Allow reading of /etc/group via special syntax
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.
Alan T. DeKok [Tue, 22 Sep 2020 13:47:36 +0000 (09:47 -0400)]
use da_stack
Alan T. DeKok [Tue, 22 Sep 2020 13:36:28 +0000 (09:36 -0400)]
always include 'da' in it's own tlv_stack
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
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
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
Arran Cudbard-Bell [Mon, 21 Sep 2020 21:40:39 +0000 (16:40 -0500)]
Remove trailing list separator
Arran Cudbard-Bell [Mon, 21 Sep 2020 21:39:14 +0000 (16:39 -0500)]
Fix <list>:<filter>
Arran Cudbard-Bell [Mon, 21 Sep 2020 21:36:46 +0000 (16:36 -0500)]
s/session-state:/session-state./
Arran Cudbard-Bell [Mon, 21 Sep 2020 21:36:06 +0000 (16:36 -0500)]
s/control:/control./
Arran Cudbard-Bell [Mon, 21 Sep 2020 21:34:47 +0000 (16:34 -0500)]
s/reply:/reply./
Arran Cudbard-Bell [Mon, 21 Sep 2020 21:32:36 +0000 (16:32 -0500)]
s/request:/request./
Arran Cudbard-Bell [Mon, 21 Sep 2020 17:54:40 +0000 (12:54 -0500)]
Reduce allowed nesting
Arran Cudbard-Bell [Mon, 21 Sep 2020 17:32:22 +0000 (12:32 -0500)]
tmpl: Not used
Arran Cudbard-Bell [Mon, 21 Sep 2020 17:32:04 +0000 (12:32 -0500)]
Formatting
Arran Cudbard-Bell [Mon, 21 Sep 2020 17:03:41 +0000 (12:03 -0500)]
tmpl: Make struct names and enumerations values more consistent
Alan T. DeKok [Sun, 20 Sep 2020 13:58:13 +0000 (09:58 -0400)]
more docs and fix return value
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.
Arran Cudbard-Bell [Sun, 20 Sep 2020 01:24:13 +0000 (20:24 -0500)]
tokenizers: Fix lifetime bugs with temporary compound literals
Arran Cudbard-Bell [Mon, 21 Sep 2020 16:06:10 +0000 (11:06 -0500)]
tmpl: Remove stupid asserts
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
Alan T. DeKok [Sat, 19 Sep 2020 20:09:57 +0000 (16:09 -0400)]
typo
Arran Cudbard-Bell [Sat, 19 Sep 2020 14:20:02 +0000 (09:20 -0500)]
regex: Account for quote in error offset
Arran Cudbard-Bell [Fri, 18 Sep 2020 23:18:33 +0000 (18:18 -0500)]
tmpl: Add all unknown attributes in a hierarchy
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
Arran Cudbard-Bell [Fri, 18 Sep 2020 22:15:09 +0000 (17:15 -0500)]
regex: Split out libpcre2 specific tests
Arran Cudbard-Bell [Fri, 18 Sep 2020 19:54:48 +0000 (14:54 -0500)]
regex: Catch regex compilation error
Arran Cudbard-Bell [Fri, 18 Sep 2020 19:36:45 +0000 (14:36 -0500)]
slen should always be ssize_t
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.
Arran Cudbard-Bell [Fri, 18 Sep 2020 18:32:59 +0000 (13:32 -0500)]
unlang: Process casts during tmpl resolution
Arran Cudbard-Bell [Fri, 18 Sep 2020 17:37:51 +0000 (12:37 -0500)]
exec: Fix exec parse rules - Fixme, still need pass2
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
Alan T. DeKok [Fri, 18 Sep 2020 14:39:44 +0000 (10:39 -0400)]
be more careful about validations
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
Arran Cudbard-Bell [Fri, 18 Sep 2020 14:01:47 +0000 (09:01 -0500)]
Don't recreate tmpls during pass2, resolve the existing one
Arran Cudbard-Bell [Fri, 18 Sep 2020 13:34:58 +0000 (08:34 -0500)]
rlm_json: Fix json reference parsing
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
Arran Cudbard-Bell [Fri, 18 Sep 2020 02:25:12 +0000 (21:25 -0500)]
map: Allow data as the 3rd argument to maps
Arran Cudbard-Bell [Fri, 18 Sep 2020 02:25:00 +0000 (21:25 -0500)]
map: Fix quoting when printing debug messages
Alan T. DeKok [Thu, 17 Sep 2020 20:08:23 +0000 (16:08 -0400)]
RADIUS does not support the 'array' flag
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
Alan T. DeKok [Thu, 17 Sep 2020 15:21:01 +0000 (11:21 -0400)]
clean up and rename RADIUS flags
Alan T. DeKok [Thu, 17 Sep 2020 15:15:27 +0000 (11:15 -0400)]
remove "flag.concat"
as only RADIUS is using it.
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
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.
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
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
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
Alan T. DeKok [Fri, 11 Sep 2020 17:38:29 +0000 (13:38 -0400)]
check for regex-xlat, and not bare xlat
Arran Cudbard-Bell [Fri, 11 Sep 2020 14:55:12 +0000 (09:55 -0500)]
value: Add generic integer to integer cast function
Arran Cudbard-Bell [Sun, 6 Sep 2020 05:44:49 +0000 (01:44 -0400)]
unit_test_attribute: Add toggle for allow-unresolved
Alan T. DeKok [Sun, 6 Sep 2020 12:20:06 +0000 (08:20 -0400)]
use two different variables for two different tasks
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
Arran Cudbard-Bell [Sun, 20 Sep 2020 03:51:39 +0000 (22:51 -0500)]
Weird capitalisation
Arran Cudbard-Bell [Sun, 20 Sep 2020 03:43:37 +0000 (22:43 -0500)]
Fix bad search/replace
Arran Cudbard-Bell [Sun, 20 Sep 2020 03:48:54 +0000 (22:48 -0500)]
tacacs: Fix invalid octets value in tacacs test
Arran Cudbard-Bell [Sun, 20 Sep 2020 03:21:11 +0000 (22:21 -0500)]
Fix typo
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
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)
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
Arran Cudbard-Bell [Fri, 18 Sep 2020 13:42:15 +0000 (08:42 -0500)]
Formatting
Alan T. DeKok [Fri, 18 Sep 2020 14:39:31 +0000 (10:39 -0400)]
notes for future fixes
Alan T. DeKok [Fri, 18 Sep 2020 18:39:37 +0000 (14:39 -0400)]
fix typo
Alan T. DeKok [Fri, 18 Sep 2020 18:40:29 +0000 (14:40 -0400)]
Add synonym which is used elsewhere
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
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.
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
Alan T. DeKok [Thu, 17 Sep 2020 14:45:16 +0000 (10:45 -0400)]
correct comment
Alan T. DeKok [Thu, 17 Sep 2020 14:22:44 +0000 (10:22 -0400)]
fix logic
!foo and foo!=0 doesn't make sense
Alan T. DeKok [Thu, 17 Sep 2020 13:33:02 +0000 (09:33 -0400)]
notes
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
Alan T. DeKok [Wed, 16 Sep 2020 11:56:48 +0000 (07:56 -0400)]
we no longer have any references to REQUEST_PROXY
Arran Cudbard-Bell [Fri, 18 Sep 2020 19:57:04 +0000 (14:57 -0500)]
Strip runs
Arran Cudbard-Bell [Fri, 18 Sep 2020 19:49:55 +0000 (14:49 -0500)]
Strip double forward slashes in -install_name