]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Alan T. DeKok [Thu, 13 Dec 2018 20:03:25 +0000 (15:03 -0500)]
typos
Alan T. DeKok [Thu, 13 Dec 2018 19:49:09 +0000 (14:49 -0500)]
use correct dictionary, and fix dictionary to be correct
Alan T. DeKok [Thu, 13 Dec 2018 19:48:47 +0000 (14:48 -0500)]
clarify message
Alan T. DeKok [Thu, 13 Dec 2018 19:46:35 +0000 (14:46 -0500)]
use correct dictionary
Alan T. DeKok [Thu, 13 Dec 2018 19:46:20 +0000 (14:46 -0500)]
use correct dict name
Alan T. DeKok [Thu, 13 Dec 2018 19:37:23 +0000 (14:37 -0500)]
better autoload internal
Alan T. DeKok [Thu, 13 Dec 2018 19:23:13 +0000 (14:23 -0500)]
remove old check
attributes can be on both sides of the condition
Alan T. DeKok [Thu, 13 Dec 2018 19:19:06 +0000 (14:19 -0500)]
the internal dictionary is "freeradius", not "internal"
Alan T. DeKok [Thu, 13 Dec 2018 19:08:41 +0000 (14:08 -0500)]
share/dictionary is now a directory, not a file
instead, autoload the internal FreeRADIUS dictionary in order to
bootstrap things
Alan T. DeKok [Thu, 13 Dec 2018 18:54:57 +0000 (13:54 -0500)]
more cleanups and rearrangements
Arran Cudbard-Bell [Wed, 12 Dec 2018 00:44:35 +0000 (19:44 -0500)]
Print better debug information when executing rediswho_command Closes #2369
Arran Cudbard-Bell [Mon, 10 Dec 2018 16:17:08 +0000 (11:17 -0500)]
Add "on read" function for namespaces
Arran Cudbard-Bell [Mon, 10 Dec 2018 16:16:55 +0000 (11:16 -0500)]
Pass in dict to cond tokenize functions for pass1
Arran Cudbard-Bell [Mon, 10 Dec 2018 16:16:27 +0000 (11:16 -0500)]
Try and hack around namespace not being parsed
Arran Cudbard-Bell [Mon, 10 Dec 2018 16:16:03 +0000 (11:16 -0500)]
Alloc namespace pair for correct context
Arran Cudbard-Bell [Sun, 9 Dec 2018 20:05:35 +0000 (15:05 -0500)]
Add functions to allow searching in parents for sections/pairs/data
This is useful when we're working back up from an unknown arbitrary depth.
tttfff
Arran Cudbard-Bell [Sun, 9 Dec 2018 03:50:41 +0000 (22:50 -0500)]
Missing '&'
Arran Cudbard-Bell [Sun, 9 Dec 2018 03:50:29 +0000 (22:50 -0500)]
Resolve attributes in the correct dictionaries
Arran Cudbard-Bell [Sun, 9 Dec 2018 03:49:54 +0000 (22:49 -0500)]
Resolve attributes in the current request
Arran Cudbard-Bell [Sun, 9 Dec 2018 02:51:08 +0000 (21:51 -0500)]
Fix fr_dict_by_protocol_substr
Arran Cudbard-Bell [Sun, 9 Dec 2018 02:50:21 +0000 (21:50 -0500)]
Perform cast-in-place for previously undefined attribute references
Arran Cudbard-Bell [Sun, 9 Dec 2018 01:42:39 +0000 (20:42 -0500)]
Use our vasprintf function so we can use custom format specifiers
Arran Cudbard-Bell [Sat, 8 Dec 2018 23:32:25 +0000 (18:32 -0500)]
Neater...
Arran Cudbard-Bell [Sat, 8 Dec 2018 23:23:10 +0000 (18:23 -0500)]
Fixup foreach-break-2 tests to use attribute references
Arran Cudbard-Bell [Sat, 8 Dec 2018 23:00:00 +0000 (18:00 -0500)]
Pass dictionary into xlat tokenizer
Arran Cudbard-Bell [Sat, 8 Dec 2018 22:47:56 +0000 (17:47 -0500)]
Pass dictionary into condition tokenizer
Arran Cudbard-Bell [Sat, 8 Dec 2018 22:47:28 +0000 (17:47 -0500)]
Don't error out on raw attributes that haven't been added to the dictionaries
Arran Cudbard-Bell [Sat, 8 Dec 2018 21:54:57 +0000 (16:54 -0500)]
Add more test attributes for the dictionary tests
Arran Cudbard-Bell [Sat, 8 Dec 2018 21:51:29 +0000 (16:51 -0500)]
Add more sanity checks when we're processing VALUEs
If we don't check the attribute exists, the value just gets added to the fixup list, and fr_dict_parse_str just returns OK without doing anything useful.
Arran Cudbard-Bell [Sat, 8 Dec 2018 21:42:33 +0000 (16:42 -0500)]
Remove TLV hack from DHCPv6
Arran Cudbard-Bell [Sat, 8 Dec 2018 21:42:20 +0000 (16:42 -0500)]
Remove more VSA hacks from DHCPv4
Arran Cudbard-Bell [Sat, 8 Dec 2018 21:40:58 +0000 (16:40 -0500)]
Fix memory leak when calling fr_dict_parse_str
Arran Cudbard-Bell [Sat, 8 Dec 2018 19:55:19 +0000 (14:55 -0500)]
Use test dictionary for more tests
Arran Cudbard-Bell [Sat, 8 Dec 2018 19:55:04 +0000 (14:55 -0500)]
Add dict-dump keyword to unit_test_attribute
Arran Cudbard-Bell [Sat, 8 Dec 2018 19:54:45 +0000 (14:54 -0500)]
Pass through the dictionary to fr_pair_make_unknown
Arran Cudbard-Bell [Sat, 8 Dec 2018 19:54:21 +0000 (14:54 -0500)]
Pass dictionary into pair encoder explicitly
This is because the test harness allows the user to specify different dictionaries for the tests, so we need an interface for specifying the dictionary.
Arran Cudbard-Bell [Sat, 8 Dec 2018 19:52:36 +0000 (14:52 -0500)]
Remove radius_tlv tests. They were just to ensure weird SNMP hacks didn't break
...and now SNMP is in its own dictionary, we don't need them anymore.
Arran Cudbard-Bell [Sat, 8 Dec 2018 13:27:28 +0000 (08:27 -0500)]
Print more messages about why we're creating a raw attribute
Arran Cudbard-Bell [Sat, 8 Dec 2018 00:51:10 +0000 (19:51 -0500)]
Remove duplicate cases
Arran Cudbard-Bell [Fri, 7 Dec 2018 01:09:28 +0000 (20:09 -0500)]
Fix memory leak on invalid file
Arran Cudbard-Bell [Fri, 30 Nov 2018 12:42:35 +0000 (07:42 -0500)]
Make debug output from the map functions a bit clearer
Arran Cudbard-Bell [Fri, 30 Nov 2018 12:42:16 +0000 (07:42 -0500)]
Assign the RADIUS dictionary to requests in unit_test_module
This is needed for runtime attribute resolution to work correctly.
Arran Cudbard-Bell [Fri, 30 Nov 2018 01:52:00 +0000 (20:52 -0500)]
Proper fix for xlat_tokenize_expansion tmpl rules
We need to ammend the rules we're given, because we need to check for undefined attributes (they might be virtual xlat attributes)
Arran Cudbard-Bell [Fri, 30 Nov 2018 01:14:32 +0000 (20:14 -0500)]
Don't use RADIUS attrs unless we have to
Arran Cudbard-Bell [Thu, 29 Nov 2018 20:46:28 +0000 (15:46 -0500)]
Correct attributes in test dictionary
More test dict fixes
Arran Cudbard-Bell [Sat, 3 Nov 2018 00:47:13 +0000 (20:47 -0400)]
Fix logic error when encode-pair fails
Arran Cudbard-Bell [Sat, 3 Nov 2018 00:46:56 +0000 (20:46 -0400)]
Process multiple test files
Arran Cudbard-Bell [Sat, 3 Nov 2018 00:45:40 +0000 (20:45 -0400)]
Pass dictionary into fr_dict_vendor_by_num in radius decode
Arran Cudbard-Bell [Fri, 2 Nov 2018 23:42:38 +0000 (19:42 -0400)]
Cleanup correctly directionary init fails
Arran Cudbard-Bell [Wed, 31 Oct 2018 03:31:31 +0000 (23:31 -0400)]
Pass vp_tmpl_rules_t to the xlat tokenizer
Arran Cudbard-Bell [Wed, 31 Oct 2018 02:31:36 +0000 (22:31 -0400)]
Use fr_dict_attr_by_qualified name in pairmake
This supports fallback, as well as allowing protocols to be explicitly specified
Arran Cudbard-Bell [Wed, 31 Oct 2018 01:57:32 +0000 (21:57 -0400)]
Pass vp tmpl to condition pass2 fixup functions
Arran Cudbard-Bell [Wed, 31 Oct 2018 01:19:06 +0000 (21:19 -0400)]
Use refs not expansions
They seem to work more reliably, and it's nicer to have tests fail for the things they're actually supposed to be testing instead of randomly.
Arran Cudbard-Bell [Wed, 31 Oct 2018 01:18:53 +0000 (21:18 -0400)]
Pass through parse rules to more places
Arran Cudbard-Bell [Wed, 31 Oct 2018 01:08:20 +0000 (21:08 -0400)]
Formatting
Arran Cudbard-Bell [Wed, 31 Oct 2018 01:06:16 +0000 (21:06 -0400)]
Don't use RADIUS specific attributes in the test module
Arran Cudbard-Bell [Wed, 31 Oct 2018 01:05:54 +0000 (21:05 -0400)]
Can just pass cp here...
Arran Cudbard-Bell [Tue, 30 Oct 2018 23:59:08 +0000 (19:59 -0400)]
Fix free order in cf_section_parse_pass2
Arran Cudbard-Bell [Tue, 30 Oct 2018 23:51:57 +0000 (19:51 -0400)]
Use config name for error in unit_test_module
Arran Cudbard-Bell [Tue, 30 Oct 2018 23:51:16 +0000 (19:51 -0400)]
Fix unit_test_module call
Arran Cudbard-Bell [Tue, 30 Oct 2018 23:32:23 +0000 (19:32 -0400)]
Correct EAP-SIM TLV stack offsets now we don't have a container attribute
Arran Cudbard-Bell [Tue, 30 Oct 2018 23:09:54 +0000 (19:09 -0400)]
Dump the protocol dictionary in super debug mode
Arran Cudbard-Bell [Tue, 30 Oct 2018 22:50:18 +0000 (18:50 -0400)]
Clear test points properly
Arran Cudbard-Bell [Tue, 30 Oct 2018 22:03:42 +0000 (18:03 -0400)]
Load dictionaries for DHCPv4 and DHCPv6 in unit test files
Arran Cudbard-Bell [Tue, 30 Oct 2018 21:59:19 +0000 (17:59 -0400)]
We no longer have a wrapper OIDs because the SIM dictionary is now top level
Arran Cudbard-Bell [Tue, 30 Oct 2018 21:58:16 +0000 (17:58 -0400)]
Remove stat checks in dict.c
There are major issues with this when we're loading and freeing dictionaries, so it's better to just ignore duplicates
Arran Cudbard-Bell [Tue, 30 Oct 2018 20:05:54 +0000 (16:05 -0400)]
Load the RADIUS dictionary for the RADIUS tests
Arran Cudbard-Bell [Tue, 30 Oct 2018 19:38:53 +0000 (15:38 -0400)]
Exit gracefully if commands fail
So we don't get pages and pages of memory leaks
Arran Cudbard-Bell [Tue, 30 Oct 2018 19:38:34 +0000 (15:38 -0400)]
Free dictionaries if we can't resolve the attributes
Arran Cudbard-Bell [Tue, 30 Oct 2018 19:37:51 +0000 (15:37 -0400)]
Don't need to print this every time...
Arran Cudbard-Bell [Tue, 30 Oct 2018 19:05:36 +0000 (15:05 -0400)]
Ignore constructed dictionary
Arran Cudbard-Bell [Mon, 29 Oct 2018 13:57:30 +0000 (09:57 -0400)]
Disallow nested BEGIN-PROTOCOL statements
Arran Cudbard-Bell [Mon, 29 Oct 2018 13:56:05 +0000 (09:56 -0400)]
Preserve error stack if we hit an invalid PROTOCOL entry
Some of this code is from before we had error stacks...
Arran Cudbard-Bell [Mon, 29 Oct 2018 13:55:16 +0000 (09:55 -0400)]
Track dict/hash insertion, mostly for debugging, but also probably a good idea
Arran Cudbard-Bell [Mon, 29 Oct 2018 13:54:12 +0000 (09:54 -0400)]
Use double quotes in dict.c error message
Arran Cudbard-Bell [Thu, 25 Oct 2018 23:32:51 +0000 (19:32 -0400)]
Check ctx initialisation in radius encoder
Arran Cudbard-Bell [Thu, 25 Oct 2018 23:32:24 +0000 (19:32 -0400)]
Fix DHCPv6 encoder/decoder to use the DHCPv6 dictionary
Arran Cudbard-Bell [Thu, 25 Oct 2018 23:31:31 +0000 (19:31 -0400)]
Fix dhcpv4 protocol library to use the DHCPv4 dictionary
Arran Cudbard-Bell [Thu, 25 Oct 2018 23:17:26 +0000 (19:17 -0400)]
Rename dhcpv4 init functions to be consistent with dhcpv6
Arran Cudbard-Bell [Thu, 25 Oct 2018 23:08:11 +0000 (19:08 -0400)]
Fix test utility calls
Arran Cudbard-Bell [Wed, 24 Oct 2018 17:23:14 +0000 (13:23 -0400)]
Remove dictionaries from the protocol lookup table when they're freed
Arran Cudbard-Bell [Wed, 24 Oct 2018 17:20:39 +0000 (13:20 -0400)]
Load RADIUS dictionary for radius_rfc
Arran Cudbard-Bell [Wed, 24 Oct 2018 17:19:22 +0000 (13:19 -0400)]
Load the EAP-AKA/EAP-SIM dictionaries and use the correct dictionary roots
Arran Cudbard-Bell [Fri, 19 Oct 2018 15:01:26 +0000 (11:01 -0400)]
Add support for loading protocol dictionaries in unit_test_attribute
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:56:36 +0000 (10:56 -0400)]
Various fixes to protocol dictionary functions
- Re-allocate dict->fixup if a protocol dictionary needs to have more attributes allocated to it (if the definitions are split between multiple BEGIN-PROTOCOL blocks)
- Re-finalise the dictionaries if they're re-opened in this way.
- Remove stat checks in most places.
- Start parsing each dictionary file in the context of the internal dictionary.
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:52:05 +0000 (10:52 -0400)]
Formatting
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:50:42 +0000 (10:50 -0400)]
Remove old dict_from_file function
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:48:32 +0000 (10:48 -0400)]
Fixup unit_test_module to use protocol dictionaries
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:47:01 +0000 (10:47 -0400)]
Fixup unit_test_map to use protocol dictionaries
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:45:25 +0000 (10:45 -0400)]
Add support for fallback to inernal dictionaries in tmpl function
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:42:45 +0000 (10:42 -0400)]
Add fr_dict_free function (which decrements references)
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:41:38 +0000 (10:41 -0400)]
Autofree all the dictionaries instead of just the first one
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:41:13 +0000 (10:41 -0400)]
Ensure the dictionaries are loaded before we try and autoresolve attributes in them
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:40:22 +0000 (10:40 -0400)]
Switch out the current parent to be the new dictionary root when we hit BEGIN-PROTOCOL
Else we can all the dictionaries rooted in the internal dictionary which is not what we want
Arran Cudbard-Bell [Fri, 19 Oct 2018 01:44:38 +0000 (21:44 -0400)]
Enable dict autoloading
Arran Cudbard-Bell [Fri, 19 Oct 2018 01:43:26 +0000 (21:43 -0400)]
Exit correctly from main_config_init on error
Arran Cudbard-Bell [Fri, 19 Oct 2018 01:41:55 +0000 (21:41 -0400)]
Formatting
Arran Cudbard-Bell [Fri, 19 Oct 2018 01:40:51 +0000 (21:40 -0400)]
Still need to call dict autofree with new openssl versions
Arran Cudbard-Bell [Fri, 19 Oct 2018 01:37:08 +0000 (21:37 -0400)]
Qualify old pair parse functions with a dict pointer
Arran Cudbard-Bell [Fri, 19 Oct 2018 01:31:55 +0000 (21:31 -0400)]
Fix EAP SIM/AKA autoloader arrays to load attributes from correct dictionaries