]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
7 years agotypos
Alan T. DeKok [Thu, 13 Dec 2018 20:03:25 +0000 (15:03 -0500)] 
typos

7 years agouse correct dictionary, and fix dictionary to be correct
Alan T. DeKok [Thu, 13 Dec 2018 19:49:09 +0000 (14:49 -0500)] 
use correct dictionary, and fix dictionary to be correct

7 years agoclarify message
Alan T. DeKok [Thu, 13 Dec 2018 19:48:47 +0000 (14:48 -0500)] 
clarify message

7 years agouse correct dictionary
Alan T. DeKok [Thu, 13 Dec 2018 19:46:35 +0000 (14:46 -0500)] 
use correct dictionary

7 years agouse correct dict name
Alan T. DeKok [Thu, 13 Dec 2018 19:46:20 +0000 (14:46 -0500)] 
use correct dict name

7 years agobetter autoload internal
Alan T. DeKok [Thu, 13 Dec 2018 19:37:23 +0000 (14:37 -0500)] 
better autoload internal

7 years agoremove old check
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

7 years agothe internal dictionary is "freeradius", not "internal"
Alan T. DeKok [Thu, 13 Dec 2018 19:19:06 +0000 (14:19 -0500)] 
the internal dictionary is "freeradius", not "internal"

7 years agoshare/dictionary is now a directory, not a file
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

7 years agomore cleanups and rearrangements
Alan T. DeKok [Thu, 13 Dec 2018 18:54:57 +0000 (13:54 -0500)] 
more cleanups and rearrangements

7 years agoPrint better debug information when executing rediswho_command Closes #2369
Arran Cudbard-Bell [Wed, 12 Dec 2018 00:44:35 +0000 (19:44 -0500)] 
Print better debug information when executing rediswho_command Closes #2369

7 years agoAdd "on read" function for namespaces
Arran Cudbard-Bell [Mon, 10 Dec 2018 16:17:08 +0000 (11:17 -0500)] 
Add "on read" function for namespaces

7 years agoPass in dict to cond tokenize functions for pass1
Arran Cudbard-Bell [Mon, 10 Dec 2018 16:16:55 +0000 (11:16 -0500)] 
Pass in dict to cond tokenize functions for pass1

7 years agoTry and hack around namespace not being parsed
Arran Cudbard-Bell [Mon, 10 Dec 2018 16:16:27 +0000 (11:16 -0500)] 
Try and hack around namespace not being parsed

7 years agoAlloc namespace pair for correct context
Arran Cudbard-Bell [Mon, 10 Dec 2018 16:16:03 +0000 (11:16 -0500)] 
Alloc namespace pair for correct context

7 years agoAdd functions to allow searching in parents for sections/pairs/data
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

7 years agoMissing '&'
Arran Cudbard-Bell [Sun, 9 Dec 2018 03:50:41 +0000 (22:50 -0500)] 
Missing '&'

7 years agoResolve attributes in the correct dictionaries
Arran Cudbard-Bell [Sun, 9 Dec 2018 03:50:29 +0000 (22:50 -0500)] 
Resolve attributes in the correct dictionaries

7 years agoResolve attributes in the current request
Arran Cudbard-Bell [Sun, 9 Dec 2018 03:49:54 +0000 (22:49 -0500)] 
Resolve attributes in the current request

7 years agoFix fr_dict_by_protocol_substr
Arran Cudbard-Bell [Sun, 9 Dec 2018 02:51:08 +0000 (21:51 -0500)] 
Fix fr_dict_by_protocol_substr

7 years agoPerform cast-in-place for previously undefined attribute references
Arran Cudbard-Bell [Sun, 9 Dec 2018 02:50:21 +0000 (21:50 -0500)] 
Perform cast-in-place for previously undefined attribute references

7 years agoUse our vasprintf function so we can use custom format specifiers
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

7 years agoNeater...
Arran Cudbard-Bell [Sat, 8 Dec 2018 23:32:25 +0000 (18:32 -0500)] 
Neater...

7 years agoFixup foreach-break-2 tests to use attribute references
Arran Cudbard-Bell [Sat, 8 Dec 2018 23:23:10 +0000 (18:23 -0500)] 
Fixup foreach-break-2 tests to use attribute references

7 years agoPass dictionary into xlat tokenizer
Arran Cudbard-Bell [Sat, 8 Dec 2018 23:00:00 +0000 (18:00 -0500)] 
Pass dictionary into xlat tokenizer

7 years agoPass dictionary into condition tokenizer
Arran Cudbard-Bell [Sat, 8 Dec 2018 22:47:56 +0000 (17:47 -0500)] 
Pass dictionary into condition tokenizer

7 years agoDon't error out on raw attributes that haven't been added to the dictionaries
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

7 years agoAdd more test attributes for the dictionary tests
Arran Cudbard-Bell [Sat, 8 Dec 2018 21:54:57 +0000 (16:54 -0500)] 
Add more test attributes for the dictionary tests

7 years agoAdd more sanity checks when we're processing VALUEs
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.

7 years agoRemove TLV hack from DHCPv6
Arran Cudbard-Bell [Sat, 8 Dec 2018 21:42:33 +0000 (16:42 -0500)] 
Remove TLV hack from DHCPv6

7 years agoRemove more VSA hacks from DHCPv4
Arran Cudbard-Bell [Sat, 8 Dec 2018 21:42:20 +0000 (16:42 -0500)] 
Remove more VSA hacks from DHCPv4

7 years agoFix memory leak when calling fr_dict_parse_str
Arran Cudbard-Bell [Sat, 8 Dec 2018 21:40:58 +0000 (16:40 -0500)] 
Fix memory leak when calling fr_dict_parse_str

7 years agoUse test dictionary for more tests
Arran Cudbard-Bell [Sat, 8 Dec 2018 19:55:19 +0000 (14:55 -0500)] 
Use test dictionary for more tests

7 years agoAdd dict-dump keyword to unit_test_attribute
Arran Cudbard-Bell [Sat, 8 Dec 2018 19:55:04 +0000 (14:55 -0500)] 
Add dict-dump keyword to unit_test_attribute

7 years agoPass through the dictionary to fr_pair_make_unknown
Arran Cudbard-Bell [Sat, 8 Dec 2018 19:54:45 +0000 (14:54 -0500)] 
Pass through the dictionary to fr_pair_make_unknown

7 years agoPass dictionary into pair encoder explicitly
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.

7 years agoRemove radius_tlv tests. They were just to ensure weird SNMP hacks didn't break
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.

7 years agoPrint more messages about why we're creating a raw attribute
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

7 years agoRemove duplicate cases
Arran Cudbard-Bell [Sat, 8 Dec 2018 00:51:10 +0000 (19:51 -0500)] 
Remove duplicate cases

7 years agoFix memory leak on invalid file
Arran Cudbard-Bell [Fri, 7 Dec 2018 01:09:28 +0000 (20:09 -0500)] 
Fix memory leak on invalid file

7 years agoMake debug output from the map functions a bit clearer
Arran Cudbard-Bell [Fri, 30 Nov 2018 12:42:35 +0000 (07:42 -0500)] 
Make debug output from the map functions a bit clearer

7 years agoAssign the RADIUS dictionary to requests in unit_test_module
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.

7 years agoProper fix for xlat_tokenize_expansion tmpl rules
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)

7 years agoDon't use RADIUS attrs unless we have to
Arran Cudbard-Bell [Fri, 30 Nov 2018 01:14:32 +0000 (20:14 -0500)] 
Don't use RADIUS attrs unless we have to

7 years agoCorrect attributes in test dictionary
Arran Cudbard-Bell [Thu, 29 Nov 2018 20:46:28 +0000 (15:46 -0500)] 
Correct attributes in test dictionary

More test dict fixes

7 years agoFix logic error when encode-pair fails
Arran Cudbard-Bell [Sat, 3 Nov 2018 00:47:13 +0000 (20:47 -0400)] 
Fix logic error when encode-pair fails

7 years agoProcess multiple test files
Arran Cudbard-Bell [Sat, 3 Nov 2018 00:46:56 +0000 (20:46 -0400)] 
Process multiple test files

7 years agoPass dictionary into fr_dict_vendor_by_num in radius decode
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

7 years agoCleanup correctly directionary init fails
Arran Cudbard-Bell [Fri, 2 Nov 2018 23:42:38 +0000 (19:42 -0400)] 
Cleanup correctly directionary init fails

7 years agoPass vp_tmpl_rules_t to the xlat tokenizer
Arran Cudbard-Bell [Wed, 31 Oct 2018 03:31:31 +0000 (23:31 -0400)] 
Pass vp_tmpl_rules_t to the xlat tokenizer

7 years agoUse fr_dict_attr_by_qualified name in pairmake
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

7 years agoPass vp tmpl to condition pass2 fixup functions
Arran Cudbard-Bell [Wed, 31 Oct 2018 01:57:32 +0000 (21:57 -0400)] 
Pass vp tmpl to condition pass2 fixup functions

7 years agoUse refs not expansions
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.

7 years agoPass through parse rules to more places
Arran Cudbard-Bell [Wed, 31 Oct 2018 01:18:53 +0000 (21:18 -0400)] 
Pass through parse rules to more places

7 years agoFormatting
Arran Cudbard-Bell [Wed, 31 Oct 2018 01:08:20 +0000 (21:08 -0400)] 
Formatting

7 years agoDon't use RADIUS specific attributes in the test module
Arran Cudbard-Bell [Wed, 31 Oct 2018 01:06:16 +0000 (21:06 -0400)] 
Don't use RADIUS specific attributes in the test module

7 years agoCan just pass cp here...
Arran Cudbard-Bell [Wed, 31 Oct 2018 01:05:54 +0000 (21:05 -0400)] 
Can just pass cp here...

7 years agoFix free order in cf_section_parse_pass2
Arran Cudbard-Bell [Tue, 30 Oct 2018 23:59:08 +0000 (19:59 -0400)] 
Fix free order in cf_section_parse_pass2

7 years agoUse config name for error in unit_test_module
Arran Cudbard-Bell [Tue, 30 Oct 2018 23:51:57 +0000 (19:51 -0400)] 
Use config name for error in unit_test_module

7 years agoFix unit_test_module call
Arran Cudbard-Bell [Tue, 30 Oct 2018 23:51:16 +0000 (19:51 -0400)] 
Fix unit_test_module call

7 years agoCorrect EAP-SIM TLV stack offsets now we don't have a container attribute
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

7 years agoDump the protocol dictionary in super debug mode
Arran Cudbard-Bell [Tue, 30 Oct 2018 23:09:54 +0000 (19:09 -0400)] 
Dump the protocol dictionary in super debug mode

7 years agoClear test points properly
Arran Cudbard-Bell [Tue, 30 Oct 2018 22:50:18 +0000 (18:50 -0400)] 
Clear test points properly

7 years agoLoad dictionaries for DHCPv4 and DHCPv6 in unit test files
Arran Cudbard-Bell [Tue, 30 Oct 2018 22:03:42 +0000 (18:03 -0400)] 
Load dictionaries for DHCPv4 and DHCPv6 in unit test files

7 years agoWe no longer have a wrapper OIDs because the SIM dictionary is now top level
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

7 years agoRemove stat checks in dict.c
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

7 years agoLoad the RADIUS dictionary for the RADIUS tests
Arran Cudbard-Bell [Tue, 30 Oct 2018 20:05:54 +0000 (16:05 -0400)] 
Load the RADIUS dictionary for the RADIUS tests

7 years agoExit gracefully if commands fail
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

7 years agoFree dictionaries if we can't resolve the attributes
Arran Cudbard-Bell [Tue, 30 Oct 2018 19:38:34 +0000 (15:38 -0400)] 
Free dictionaries if we can't resolve the attributes

7 years agoDon't need to print this every time...
Arran Cudbard-Bell [Tue, 30 Oct 2018 19:37:51 +0000 (15:37 -0400)] 
Don't need to print this every time...

7 years agoIgnore constructed dictionary
Arran Cudbard-Bell [Tue, 30 Oct 2018 19:05:36 +0000 (15:05 -0400)] 
Ignore constructed dictionary

7 years agoDisallow nested BEGIN-PROTOCOL statements
Arran Cudbard-Bell [Mon, 29 Oct 2018 13:57:30 +0000 (09:57 -0400)] 
Disallow nested BEGIN-PROTOCOL statements

7 years agoPreserve error stack if we hit an invalid PROTOCOL entry
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...

7 years agoTrack dict/hash insertion, mostly for debugging, but also probably a good idea
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

7 years agoUse double quotes in dict.c error message
Arran Cudbard-Bell [Mon, 29 Oct 2018 13:54:12 +0000 (09:54 -0400)] 
Use double quotes in dict.c error message

7 years agoCheck ctx initialisation in radius encoder
Arran Cudbard-Bell [Thu, 25 Oct 2018 23:32:51 +0000 (19:32 -0400)] 
Check ctx initialisation in radius encoder

7 years agoFix DHCPv6 encoder/decoder to use the DHCPv6 dictionary
Arran Cudbard-Bell [Thu, 25 Oct 2018 23:32:24 +0000 (19:32 -0400)] 
Fix DHCPv6 encoder/decoder to use the DHCPv6 dictionary

7 years agoFix dhcpv4 protocol library to use the DHCPv4 dictionary
Arran Cudbard-Bell [Thu, 25 Oct 2018 23:31:31 +0000 (19:31 -0400)] 
Fix dhcpv4 protocol library to use the DHCPv4 dictionary

7 years agoRename dhcpv4 init functions to be consistent with dhcpv6
Arran Cudbard-Bell [Thu, 25 Oct 2018 23:17:26 +0000 (19:17 -0400)] 
Rename dhcpv4 init functions to be consistent with dhcpv6

7 years agoFix test utility calls
Arran Cudbard-Bell [Thu, 25 Oct 2018 23:08:11 +0000 (19:08 -0400)] 
Fix test utility calls

7 years agoRemove dictionaries from the protocol lookup table when they're freed
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

7 years agoLoad RADIUS dictionary for radius_rfc
Arran Cudbard-Bell [Wed, 24 Oct 2018 17:20:39 +0000 (13:20 -0400)] 
Load RADIUS dictionary for radius_rfc

7 years agoLoad the EAP-AKA/EAP-SIM dictionaries and use the correct dictionary roots
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

7 years agoAdd support for loading protocol dictionaries in unit_test_attribute
Arran Cudbard-Bell [Fri, 19 Oct 2018 15:01:26 +0000 (11:01 -0400)] 
Add support for loading protocol dictionaries in unit_test_attribute

7 years agoVarious fixes to protocol dictionary functions
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.

7 years agoFormatting
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:52:05 +0000 (10:52 -0400)] 
Formatting

7 years agoRemove old dict_from_file function
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:50:42 +0000 (10:50 -0400)] 
Remove old dict_from_file function

7 years agoFixup unit_test_module to use protocol dictionaries
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:48:32 +0000 (10:48 -0400)] 
Fixup unit_test_module to use protocol dictionaries

7 years agoFixup unit_test_map 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

7 years agoAdd support for fallback to inernal dictionaries in tmpl function
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:45:25 +0000 (10:45 -0400)] 
Add support for fallback to inernal dictionaries in tmpl function

7 years agoAdd fr_dict_free function (which decrements references)
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:42:45 +0000 (10:42 -0400)] 
Add fr_dict_free function (which decrements references)

7 years agoAutofree all the dictionaries instead of just the first one
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:41:38 +0000 (10:41 -0400)] 
Autofree all the dictionaries instead of just the first one

7 years agoEnsure the dictionaries are loaded before we try and autoresolve attributes in them
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

7 years agoSwitch out the current parent to be the new dictionary root when we hit BEGIN-PROTOCOL
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

7 years agoEnable dict autoloading
Arran Cudbard-Bell [Fri, 19 Oct 2018 01:44:38 +0000 (21:44 -0400)] 
Enable dict autoloading

7 years agoExit correctly from main_config_init on error
Arran Cudbard-Bell [Fri, 19 Oct 2018 01:43:26 +0000 (21:43 -0400)] 
Exit correctly from main_config_init on error

7 years agoFormatting
Arran Cudbard-Bell [Fri, 19 Oct 2018 01:41:55 +0000 (21:41 -0400)] 
Formatting

7 years agoStill need to call dict autofree with new openssl versions
Arran Cudbard-Bell [Fri, 19 Oct 2018 01:40:51 +0000 (21:40 -0400)] 
Still need to call dict autofree with new openssl versions

7 years agoQualify old pair parse functions with a dict pointer
Arran Cudbard-Bell [Fri, 19 Oct 2018 01:37:08 +0000 (21:37 -0400)] 
Qualify old pair parse functions with a dict pointer

7 years agoFix EAP SIM/AKA autoloader arrays to load attributes from correct dictionaries
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