]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
6 years agomake label comparison case insensitive
Alan T. DeKok [Sat, 19 Oct 2019 21:13:21 +0000 (17:13 -0400)] 
make label comparison case insensitive

6 years agobe a little more careful about parsing flags
Alan T. DeKok [Sat, 19 Oct 2019 21:02:31 +0000 (17:02 -0400)] 
be a little more careful about parsing flags

6 years agolook at contents, not at pointer
Alan T. DeKok [Sat, 19 Oct 2019 18:30:45 +0000 (14:30 -0400)] 
look at contents, not at pointer

6 years agoFix logic bug in table_sorted_value_by_longest_prefix which sent the search in the...
Arran Cudbard-Bell [Sat, 19 Oct 2019 16:51:49 +0000 (12:51 -0400)] 
Fix logic bug in table_sorted_value_by_longest_prefix which sent the search in the wrong direction if needle was a substring of a haystack entry

6 years agoadd DNS label compression.
Alan T. DeKok [Sat, 19 Oct 2019 15:51:51 +0000 (11:51 -0400)] 
add DNS label compression.

It's a little brute-force right now, but it seems to work.

6 years agoskip leading whitespace
Alan T. DeKok [Sat, 19 Oct 2019 15:26:40 +0000 (11:26 -0400)] 
skip leading whitespace

6 years agoAdd command to explicitly clear the data buffer
Arran Cudbard-Bell [Sat, 19 Oct 2019 15:20:19 +0000 (11:20 -0400)] 
Add command to explicitly clear the data buffer

This can be useful when tracking down non-deterministic issues

6 years agoencode '.' or empty string as 0x00
Alan T. DeKok [Sat, 19 Oct 2019 14:52:29 +0000 (10:52 -0400)] 
encode '.' or empty string as 0x00

6 years agofix length checks
Alan T. DeKok [Sat, 19 Oct 2019 13:52:38 +0000 (09:52 -0400)] 
fix length checks

6 years agotypo
Alan T. DeKok [Sat, 19 Oct 2019 13:42:43 +0000 (09:42 -0400)] 
typo

6 years agoadd function which encodes value box to DNS label
Alan T. DeKok [Sat, 19 Oct 2019 13:33:36 +0000 (09:33 -0400)] 
add function which encodes value box to DNS label

with tests!

6 years ago<sigh> typos
Alan T. DeKok [Sat, 19 Oct 2019 12:59:38 +0000 (08:59 -0400)] 
<sigh> typos

6 years agobuild this, too
Alan T. DeKok [Sat, 19 Oct 2019 12:48:08 +0000 (08:48 -0400)] 
build this, too

6 years agotypo
Alan T. DeKok [Sat, 19 Oct 2019 12:31:39 +0000 (08:31 -0400)] 
typo

6 years agoadd and use encrypt / encode flags for SIM / AKA and DHCPv6
Alan T. DeKok [Sat, 19 Oct 2019 12:23:48 +0000 (08:23 -0400)] 
add and use encrypt / encode flags for SIM / AKA and DHCPv6

6 years agocreate src/include/protocol/base.h which defines known protocols
Alan T. DeKok [Sat, 19 Oct 2019 12:11:25 +0000 (08:11 -0400)] 
create src/include/protocol/base.h which defines known protocols

6 years ago"no " can now return mismatch instead of command error
Arran Cudbard-Bell [Sat, 19 Oct 2019 02:45:04 +0000 (22:45 -0400)] 
"no " can now return mismatch instead of command error

6 years agoPrint the mismatching command
Arran Cudbard-Bell [Sat, 19 Oct 2019 02:41:09 +0000 (22:41 -0400)] 
Print the mismatching command

6 years agoAdd match-regex
Arran Cudbard-Bell [Sat, 19 Oct 2019 02:37:51 +0000 (22:37 -0400)] 
Add match-regex

Also works with negation prefix

6 years agoAlways need to provide match_data for rege_exec in pcre2
Arran Cudbard-Bell [Sat, 19 Oct 2019 02:36:58 +0000 (22:36 -0400)] 
Always need to provide match_data for rege_exec in pcre2

6 years agoTypo
Arran Cudbard-Bell [Sat, 19 Oct 2019 02:02:39 +0000 (22:02 -0400)] 
Typo

6 years agoAdd command to write out the data buffer
Arran Cudbard-Bell [Sat, 19 Oct 2019 01:44:25 +0000 (21:44 -0400)] 
Add command to write out the data buffer

6 years agoDon't trash the data buffer on mismatch
Arran Cudbard-Bell [Sat, 19 Oct 2019 01:29:20 +0000 (21:29 -0400)] 
Don't trash the data buffer on mismatch

- Allow all return codes to request that the error stack be dumped into the data buffer
- Keep track of how many tests returned 'OK'
- Have comments and blank links return 'NOOP'
- Add command to write the number of completed tests to the data buffer

6 years agoRemove redundant vars
Arran Cudbard-Bell [Fri, 18 Oct 2019 21:46:49 +0000 (17:46 -0400)] 
Remove redundant vars

6 years agoAdd 'match' and 'no match' remove 'data' and 'fail'
Arran Cudbard-Bell [Fri, 18 Oct 2019 18:41:25 +0000 (14:41 -0400)] 
Add 'match' and 'no match' remove 'data' and 'fail'

6 years agomove subtype checks to dict->subtype_table
Alan T. DeKok [Fri, 18 Oct 2019 18:51:36 +0000 (14:51 -0400)] 
move subtype checks to dict->subtype_table

which (mostly) makes them more protocol agnostic

6 years agorename "encrypt" to "subtype"
Alan T. DeKok [Fri, 18 Oct 2019 16:55:38 +0000 (12:55 -0400)] 
rename "encrypt" to "subtype"

in preparation for making it a little more generic

6 years agosimpler way to track backslashes
Alan T. DeKok [Fri, 18 Oct 2019 14:36:23 +0000 (10:36 -0400)] 
simpler way to track backslashes

avoid repeated strlen.

and increment line number.

6 years agoMerge pull request #3055 from jpereira/v4/test1
Alan DeKok [Fri, 18 Oct 2019 13:18:55 +0000 (09:18 -0400)] 
Merge pull request #3055 from jpereira/v4/test1

Let' be able to buffer multiple lines with a backslash

6 years agoLet' be able to buffer multiple lines with a backslash 3055/head
Jorge Pereira [Fri, 18 Oct 2019 02:58:07 +0000 (23:58 -0300)] 
Let' be able to buffer multiple lines with a backslash

6 years agoPretty good to organize long entries with a backslash
Jorge Pereira [Fri, 18 Oct 2019 02:59:01 +0000 (23:59 -0300)] 
Pretty good to organize long entries with a backslash

6 years agolet's use unique names
Alan T. DeKok [Fri, 18 Oct 2019 11:10:18 +0000 (07:10 -0400)] 
let's use unique names

and update process STRUCT so that it adds the struct name to
the global namespace.  This lets us check for duplicate names,
and also address the struct by name.

6 years agoswap the order of fields in a STRUCT definition
Alan T. DeKok [Thu, 17 Oct 2019 23:59:10 +0000 (19:59 -0400)] 
swap the order of fields in a STRUCT definition

VALUE attr name value

means "define NAME with VALUE for ATTR"

STRUCT name attr value

means "define NAME struct when ATTR has VALUE"

6 years agoremove Client-ID tests. Client-Id is "struct" not "octets"
Alan T. DeKok [Thu, 17 Oct 2019 21:58:01 +0000 (17:58 -0400)] 
remove Client-ID tests.  Client-Id is "struct" not "octets"

6 years agoprint names of types, not numerical value
Alan T. DeKok [Thu, 17 Oct 2019 21:56:42 +0000 (17:56 -0400)] 
print names of types, not numerical value

6 years agoNUL terminate the result only if we should do it
Alan T. DeKok [Thu, 17 Oct 2019 21:51:48 +0000 (17:51 -0400)] 
NUL terminate the result only if we should do it

6 years agoallow naked STRUCT, as is done with dictionary.rfc6355
Alan T. DeKok [Thu, 17 Oct 2019 20:48:27 +0000 (16:48 -0400)] 
allow naked STRUCT, as is done with dictionary.rfc6355

6 years agotypo
Alan T. DeKok [Thu, 17 Oct 2019 20:36:10 +0000 (16:36 -0400)] 
typo

6 years agomore decode of structs for RFC 3315
Alan T. DeKok [Thu, 17 Oct 2019 20:03:18 +0000 (16:03 -0400)] 
more decode of structs for RFC 3315

6 years agouse keyed sub-structs
Alan T. DeKok [Thu, 17 Oct 2019 19:41:06 +0000 (15:41 -0400)] 
use keyed sub-structs

6 years agoAdd dhcpv6 dictionary.rfc6355 (#3054)
Jorge Pereira [Thu, 17 Oct 2019 18:10:48 +0000 (15:10 -0300)] 
Add dhcpv6 dictionary.rfc6355 (#3054)

6 years agoUpdate libfreeradius4 with latest library names
Arran Cudbard-Bell [Thu, 17 Oct 2019 13:05:30 +0000 (09:05 -0400)] 
Update libfreeradius4 with latest library names

6 years agoAccidentally comitted
Arran Cudbard-Bell [Thu, 17 Oct 2019 12:55:50 +0000 (08:55 -0400)] 
Accidentally comitted

6 years agoMinor formatting fixes
Arran Cudbard-Bell [Thu, 17 Oct 2019 12:50:26 +0000 (08:50 -0400)] 
Minor formatting fixes

mostly to kick jenkins

6 years agoPrint the destination list when printing parsed attributes
Arran Cudbard-Bell [Wed, 16 Oct 2019 19:27:35 +0000 (15:27 -0400)] 
Print the destination list when printing parsed attributes

6 years agoSet value to be the nested value array/field when the attribute is an object
Arran Cudbard-Bell [Wed, 16 Oct 2019 19:27:18 +0000 (15:27 -0400)] 
Set value to be the nested value array/field when the attribute is an object

6 years agoMake it clear what attributes we're setting
Arran Cudbard-Bell [Wed, 16 Oct 2019 19:26:28 +0000 (15:26 -0400)] 
Make it clear what attributes we're setting

6 years agoSkip xlat expansions unless the string being expanded contains '%'
Arran Cudbard-Bell [Wed, 16 Oct 2019 19:26:15 +0000 (15:26 -0400)] 
Skip xlat expansions unless the string being expanded contains '%'

6 years agoMerge pull request #3049 from jpereira/v4/typo1
Alan DeKok [Tue, 15 Oct 2019 12:17:59 +0000 (08:17 -0400)] 
Merge pull request #3049 from jpereira/v4/typo1

The 'RADIUSD_BIN' should be global

6 years agoThe 'RADIUSD_BIN' should be global 3049/head
Jorge Pereira [Tue, 15 Oct 2019 01:29:45 +0000 (22:29 -0300)] 
The 'RADIUSD_BIN' should be global

6 years agofix names for AKA'
Alan T. DeKok [Tue, 15 Oct 2019 00:36:16 +0000 (20:36 -0400)] 
fix names for AKA'

6 years agoRevert "Revert "use consistent names""
Alan T. DeKok [Mon, 14 Oct 2019 17:40:27 +0000 (13:40 -0400)] 
Revert "Revert "use consistent names""

This reverts commit 2d4f98866a5390ca7630912b9eb61bf252865c03.

one last try.

6 years agoset default_eap_type in methods-enabled file
Alan T. DeKok [Mon, 14 Oct 2019 17:19:06 +0000 (13:19 -0400)] 
set default_eap_type in methods-enabled file

It's not quite normal, but it is fine.

6 years agomove this, too
Alan T. DeKok [Mon, 14 Oct 2019 17:16:59 +0000 (13:16 -0400)] 
move this, too

6 years agoRevert "use consistent names"
Alan T. DeKok [Mon, 14 Oct 2019 16:50:54 +0000 (12:50 -0400)] 
Revert "use consistent names"

This reverts commit 9cf8cfcfc3e4d08a34e8590df098ce2d431308d1.

Nope.  Source code uses aka_prime, so we should use that, too

6 years agouse consistent names
Alan T. DeKok [Mon, 14 Oct 2019 16:50:12 +0000 (12:50 -0400)] 
use consistent names

6 years agoremove old dependency rules
Alan T. DeKok [Mon, 14 Oct 2019 16:23:06 +0000 (12:23 -0400)] 
remove old dependency rules

6 years agomove method tests to their own directory structure
Alan T. DeKok [Mon, 14 Oct 2019 15:19:13 +0000 (11:19 -0400)] 
move method tests to their own directory structure

to avoid stupid linking / enabling issues, and methods
interfering with each other.

6 years agotest depends on the output files
Alan T. DeKok [Mon, 14 Oct 2019 14:33:04 +0000 (10:33 -0400)] 
test depends on the output files

6 years agodictionaries are in `fr_dict_t *`, not `fr_dict_t
Alan T. DeKok [Mon, 14 Oct 2019 14:32:38 +0000 (10:32 -0400)] 
dictionaries are in `fr_dict_t *`, not `fr_dict_t

6 years agoFix NULL instance name in rlm_eap startup warnings
Arran Cudbard-Bell [Mon, 14 Oct 2019 03:08:12 +0000 (22:08 -0500)] 
Fix NULL instance name in rlm_eap startup warnings

6 years agoset -e interferes with failure?
Arran Cudbard-Bell [Mon, 14 Oct 2019 03:04:58 +0000 (22:04 -0500)] 
set -e interferes with failure?

6 years agoNo way to fix this currently
Arran Cudbard-Bell [Mon, 14 Oct 2019 02:08:04 +0000 (21:08 -0500)] 
No way to fix this currently

6 years agoMake namespace resolution failure a fatal error
Arran Cudbard-Bell [Sat, 12 Oct 2019 15:16:32 +0000 (10:16 -0500)] 
Make namespace resolution failure a fatal error

6 years agomanually start / stop radiusd
Alan T. DeKok [Sat, 12 Oct 2019 13:40:19 +0000 (09:40 -0400)] 
manually start / stop radiusd

6 years agoMerge pull request #3043 from jpereira/v4/test4
Alan DeKok [Sat, 12 Oct 2019 13:30:51 +0000 (09:30 -0400)] 
Merge pull request #3043 from jpereira/v4/test4

Fix typo

6 years agoFix typo 3043/head
Jorge Pereira [Sat, 12 Oct 2019 13:13:33 +0000 (10:13 -0300)] 
Fix typo

6 years agoshow errors, not logs of "freeing module"
Alan T. DeKok [Sat, 12 Oct 2019 12:30:48 +0000 (08:30 -0400)] 
show errors, not logs of "freeing module"

6 years agostop immediately if radiusd fails to start
Alan T. DeKok [Sat, 12 Oct 2019 12:26:07 +0000 (08:26 -0400)] 
stop immediately if radiusd fails to start

6 years agoerroneously committed
Alan T. DeKok [Sat, 12 Oct 2019 12:22:06 +0000 (08:22 -0400)] 
erroneously committed

6 years agomake sure that these directories always exist
Alan T. DeKok [Fri, 11 Oct 2019 22:23:51 +0000 (18:23 -0400)] 
make sure that these directories always exist

6 years agotry to automagically enable tests
Alan T. DeKok [Fri, 11 Oct 2019 21:54:11 +0000 (17:54 -0400)] 
try to automagically enable tests

6 years agooutput directories aren't phony
Alan T. DeKok [Fri, 11 Oct 2019 21:44:35 +0000 (17:44 -0400)] 
output directories aren't phony

6 years agoadd dependencies on enabling the modules
Alan T. DeKok [Fri, 11 Oct 2019 20:44:36 +0000 (16:44 -0400)] 
add dependencies on enabling the modules

6 years agoRevert "Revert "if we dereference it as a group, it has to be defined as a group""
Alan T. DeKok [Fri, 11 Oct 2019 19:27:21 +0000 (15:27 -0400)] 
Revert "Revert "if we dereference it as a group, it has to be defined as a group""

This reverts commit a9a5673db02bda73b72ca25ed5f1ebe95205299d.

and we need this.

6 years agoRevert "if we dereference it as a group, it has to be defined as a group"
Alan T. DeKok [Fri, 11 Oct 2019 18:51:25 +0000 (14:51 -0400)] 
Revert "if we dereference it as a group, it has to be defined as a group"

This reverts commit 1469c414c666850bfacbf39b284f4ccd74f049fc.

6 years agoRemove redundant check that also breaks subrequests used to call submodules
Arran Cudbard-Bell [Fri, 11 Oct 2019 18:32:34 +0000 (13:32 -0500)] 
Remove redundant check that also breaks subrequests used to call submodules

6 years agoComment
Arran Cudbard-Bell [Fri, 11 Oct 2019 18:26:20 +0000 (13:26 -0500)] 
Comment

6 years agoTest server needs to run in foreground mode and log to stdout
Arran Cudbard-Bell [Fri, 11 Oct 2019 18:11:24 +0000 (13:11 -0500)] 
Test server needs to run in foreground mode and log to stdout

6 years agoNow we have frequently firing events in the main loop, don't print "Waking up" at...
Arran Cudbard-Bell [Fri, 11 Oct 2019 18:08:57 +0000 (13:08 -0500)] 
Now we have frequently firing events in the main loop, don't print "Waking up" at DEBUG 1

6 years agoremove erroneously committed structs
Alan T. DeKok [Fri, 11 Oct 2019 18:03:49 +0000 (14:03 -0400)] 
remove erroneously committed structs

6 years agoif we dereference it as a group, it has to be defined as a group
Alan T. DeKok [Fri, 11 Oct 2019 17:56:29 +0000 (13:56 -0400)] 
if we dereference it as a group, it has to be defined as a group

6 years agoWhitespace
Arran Cudbard-Bell [Fri, 11 Oct 2019 17:45:14 +0000 (12:45 -0500)] 
Whitespace

6 years agoFix log message
Arran Cudbard-Bell [Fri, 11 Oct 2019 17:43:47 +0000 (12:43 -0500)] 
Fix log message

6 years agoclean up makefile
Alan T. DeKok [Fri, 11 Oct 2019 17:38:04 +0000 (13:38 -0400)] 
clean up makefile

print out the commands that failed, and fail if we fail running
eapol_test

6 years agoadd --silent to jlibtool
Alan T. DeKok [Fri, 11 Oct 2019 17:30:30 +0000 (13:30 -0400)] 
add --silent to jlibtool

and don't print out "running radius".  We don't really care unless
something goes wrong.  This makes the tests easier to understand.

6 years agoclean up makefile
Alan T. DeKok [Fri, 11 Oct 2019 17:28:01 +0000 (13:28 -0400)] 
clean up makefile

formatting, and print out commands that should be run when a
test fails

6 years agonew airespace dictionaries. Ported from v3
Alan T. DeKok [Fri, 11 Oct 2019 16:24:31 +0000 (12:24 -0400)] 
new airespace dictionaries.  Ported from v3

6 years agoadd "fail" command
Alan T. DeKok [Fri, 11 Oct 2019 14:27:40 +0000 (10:27 -0400)] 
add "fail" command

for tests where we know the expected output, but which don't yet
work. It's better to have known failures than results which are
commented out

6 years agoremove unnecessary wrapper function
Alan T. DeKok [Thu, 10 Oct 2019 18:06:16 +0000 (14:06 -0400)] 
remove unnecessary wrapper function

6 years agouse unlang ops table instead of compile table
Alan T. DeKok [Thu, 10 Oct 2019 17:58:22 +0000 (13:58 -0400)] 
use unlang ops table instead of compile table

6 years agoMerge pull request #3037 from jpereira/v4/test-eap
Alan DeKok [Fri, 11 Oct 2019 16:31:36 +0000 (12:31 -0400)] 
Merge pull request #3037 from jpereira/v4/test-eap

Move eap test to boiler.mk scheme

6 years agoAdd 'ignored list' to EAP test suite 3037/head
Jorge Pereira [Fri, 11 Oct 2019 01:19:04 +0000 (22:19 -0300)] 
Add 'ignored list' to EAP test suite

6 years agoEnable 'test.eap' to the 'make test' pipeline
Jorge Pereira [Fri, 11 Oct 2019 01:18:26 +0000 (22:18 -0300)] 
Enable 'test.eap' to the 'make test' pipeline

6 years agoMove EAP test to boiler.mk scheme
Jorge Pereira [Wed, 9 Oct 2019 18:26:51 +0000 (15:26 -0300)] 
Move EAP test to boiler.mk scheme

Pretty simple, less code and reuse the same mechanism
to start/stop the radiusd service.

6 years agoMute the 'openssl' warnings complaining about the missing openssl.cnf (#3041)
Jorge Pereira [Thu, 10 Oct 2019 23:15:28 +0000 (20:15 -0300)] 
Mute the 'openssl' warnings complaining about the missing openssl.cnf (#3041)

6 years agovarious fixes to allow tests to pass
Alan T. DeKok [Thu, 10 Oct 2019 17:14:58 +0000 (13:14 -0400)] 
various fixes to allow tests to pass

empty sections are now allowed.  Interpreter functions now
have to check for empty sections

6 years agotypos - names were reversed
Alan T. DeKok [Thu, 10 Oct 2019 17:01:45 +0000 (13:01 -0400)] 
typos - names were reversed

6 years agoset name / debug_name
Alan T. DeKok [Thu, 10 Oct 2019 17:01:36 +0000 (13:01 -0400)] 
set name / debug_name

6 years agouse mod_type for empty keywords if they're not a group
Alan T. DeKok [Thu, 10 Oct 2019 17:01:00 +0000 (13:01 -0400)] 
use mod_type for empty keywords if they're not a group