]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
6 years agoremove one more $(shell ...)
Alan T. DeKok [Tue, 8 Oct 2019 21:40:02 +0000 (17:40 -0400)] 
remove one more $(shell ...)

6 years agoremove one use of $(shell ...)
Alan T. DeKok [Tue, 8 Oct 2019 21:28:41 +0000 (17:28 -0400)] 
remove one use of $(shell ...)

6 years agoMerge pull request #3033 from jpereira/v4/fix2
Alan DeKok [Tue, 8 Oct 2019 20:31:30 +0000 (16:31 -0400)] 
Merge pull request #3033 from jpereira/v4/fix2

Fix the radmin test dependency

6 years agosilence compuler warning. Fixes #3034
Alan T. DeKok [Tue, 8 Oct 2019 20:30:40 +0000 (16:30 -0400)] 
silence compuler warning.  Fixes #3034

6 years agoalso process CANCEL action in the main signal handler
Alan T. DeKok [Tue, 8 Oct 2019 12:56:51 +0000 (08:56 -0400)] 
also process CANCEL action in the main signal handler

which simplifies the keyword signal handlers.  All they have to do
is pass the signal to their children.

6 years agoFix the radmin test dependency 3033/head
Jorge Pereira [Tue, 8 Oct 2019 19:10:59 +0000 (16:10 -0300)] 
Fix the radmin test dependency

6 years agoGNU gmtime_r *still* uses the value of TZ when printing %Z even with gmtime_r which...
Arran Cudbard-Bell [Tue, 8 Oct 2019 17:32:19 +0000 (13:32 -0400)] 
GNU gmtime_r *still* uses the value of TZ when printing %Z even with gmtime_r which provides the time as UTC‽

6 years agoMerge pull request #3030 from jpereira/v4/tests3
Alan DeKok [Tue, 8 Oct 2019 11:54:39 +0000 (07:54 -0400)] 
Merge pull request #3030 from jpereira/v4/tests3

Some fixes for radmin tests

6 years agoFix travis build error
Arran Cudbard-Bell [Tue, 8 Oct 2019 01:14:37 +0000 (21:14 -0400)] 
Fix travis build error

6 years agoFix typo in $(TEST).radiusd_kill 3030/head
Jorge Pereira [Mon, 7 Oct 2019 19:29:24 +0000 (16:29 -0300)] 
Fix typo in $(TEST).radiusd_kill

We should remove the radiusd.pid

6 years agoif failed, show the last 100 entries
Jorge Pereira [Mon, 7 Oct 2019 19:10:02 +0000 (16:10 -0300)] 
if failed, show the last 100 entries

6 years agoBe sure to use the latest build of bin/radmin
Jorge Pereira [Mon, 7 Oct 2019 18:59:34 +0000 (15:59 -0300)] 
Be sure to use the latest build of bin/radmin

6 years agoIf informed 'RADIUSD_BIN', don't call 'jlibtool'
Jorge Pereira [Mon, 7 Oct 2019 16:51:37 +0000 (13:51 -0300)] 
If informed 'RADIUSD_BIN', don't call 'jlibtool'

6 years agoFix to call straight target name 'test.radmin.radiusd_kill'
Jorge Pereira [Mon, 7 Oct 2019 16:27:40 +0000 (13:27 -0300)] 
Fix to call straight target name 'test.radmin.radiusd_kill'

Instead of trough $(TEST) context.

6 years agoJust call the 'exit N' due to Make don't expand it correctly
Jorge Pereira [Mon, 7 Oct 2019 16:19:14 +0000 (13:19 -0300)] 
Just call the 'exit N' due to Make don't expand it correctly

The Make don't expand the '${ret}' inside the macros.

6 years agofix compile warnings
Alan T. DeKok [Mon, 7 Oct 2019 16:26:19 +0000 (12:26 -0400)] 
fix compile warnings

6 years agosync time periodically.
Alan T. DeKok [Mon, 7 Oct 2019 16:23:20 +0000 (12:23 -0400)] 
sync time periodically.

Which lets us catch time zone changes (e.g. daylight savings)
and clock drift

6 years agoMerge pull request #3026 from jpereira/v4/tests1
Alan DeKok [Mon, 7 Oct 2019 14:59:54 +0000 (10:59 -0400)] 
Merge pull request #3026 from jpereira/v4/tests1

Add capability to 'RADIUSD_SERVICE' share the exactly command.

6 years agofix arguments to localtime_r
Alan T. DeKok [Mon, 7 Oct 2019 14:42:18 +0000 (10:42 -0400)] 
fix arguments to localtime_r

6 years agoAdd capability to 'RADIUSD_SERVICE' share the exactly command. 3026/head
Jorge Pereira [Sun, 6 Oct 2019 14:59:20 +0000 (11:59 -0300)] 
Add capability to 'RADIUSD_SERVICE' share the exactly command.

* The macro 'RADIUSD_SERVICE' now is sharing the exactly command used to
start the radiusd during the tests.
* Also, we could inform which radiusd we want to use with 'RADIUSD_BIN'

6 years agotry to parse time zones.
Alan T. DeKok [Mon, 7 Oct 2019 13:04:36 +0000 (09:04 -0400)] 
try to parse time zones.

and if we can't, just pretend they're GMT

6 years agoadd function to get time_delta from time zone name
Alan T. DeKok [Mon, 7 Oct 2019 12:54:20 +0000 (08:54 -0400)] 
add function to get time_delta from time zone name

Note that we ONLY allow UTC / GMT and local time zone names.
It is impossible in general to parse time zone names to offsets
from GMT, as there are duplicates in the zone names.

6 years agoOne more
Arran Cudbard-Bell [Mon, 7 Oct 2019 05:43:51 +0000 (01:43 -0400)] 
One more

6 years agoMinor fixups
Arran Cudbard-Bell [Mon, 7 Oct 2019 05:42:28 +0000 (01:42 -0400)] 
Minor fixups

6 years agoAdd 'exit <num>' command to cause the process to exit, and full help text for all...
Arran Cudbard-Bell [Mon, 7 Oct 2019 05:39:04 +0000 (01:39 -0400)] 
Add 'exit <num>' command to cause the process to exit, and full help text for all supported commands

6 years agoRework unit_test_attribute to use standard logging macros, and add a command table...
Arran Cudbard-Bell [Mon, 7 Oct 2019 00:13:13 +0000 (20:13 -0400)] 
Rework unit_test_attribute to use standard logging macros, and add a command table to simplify extending its functionality

6 years agoFix errors in table_sorted_value_by_longest_prefix
Arran Cudbard-Bell [Mon, 7 Oct 2019 00:12:34 +0000 (20:12 -0400)] 
Fix errors in table_sorted_value_by_longest_prefix

6 years agoDict dump should take const dict
Arran Cudbard-Bell [Mon, 7 Oct 2019 00:12:13 +0000 (20:12 -0400)] 
Dict dump should take const dict

6 years agoAlways print times as UTC
Arran Cudbard-Bell [Mon, 7 Oct 2019 00:11:53 +0000 (20:11 -0400)] 
Always print times as UTC

6 years agoAdd mini state machine for running auth sections
Arran Cudbard-Bell [Mon, 7 Oct 2019 00:11:18 +0000 (20:11 -0400)] 
Add mini state machine for running auth sections

6 years agoMerge pull request #3028 from jpereira/v4/tests2
Alan DeKok [Sun, 6 Oct 2019 19:19:12 +0000 (15:19 -0400)] 
Merge pull request #3028 from jpereira/v4/tests2

Fix radmin 'set module'

6 years agoFix typo, it should be radiud.log
Jorge Pereira [Sun, 6 Oct 2019 15:07:22 +0000 (12:07 -0300)] 
Fix typo, it should be radiud.log

6 years agoAdd tests for radmin 'set module' 3028/head
Jorge Pereira [Wed, 2 Oct 2019 16:51:15 +0000 (13:51 -0300)] 
Add tests for radmin 'set module'

6 years agoFix radmin 'set module'
Jorge Pereira [Wed, 2 Oct 2019 16:50:56 +0000 (13:50 -0300)] 
Fix radmin 'set module'

6 years agomake tests use TEST_BOOTSTRAP function
Alan T. DeKok [Sun, 6 Oct 2019 13:55:20 +0000 (09:55 -0400)] 
make tests use TEST_BOOTSTRAP function

6 years agomove test bootstrap code into common function
Alan T. DeKok [Sun, 6 Oct 2019 12:11:50 +0000 (08:11 -0400)] 
move test bootstrap code into common function

6 years agorenaming
Alan T. DeKok [Sun, 6 Oct 2019 11:42:04 +0000 (07:42 -0400)] 
renaming

* we don't need RADMIN_OUTPUT_DIR, we can just use OUTOUT
* it's better to use ".txt" for text files, even if they are
  input files
* similar ".out" instead of ".ret".  They're still text, but
  we care more to know that they're outputs
* test files don't need numbers.  If the tests are ordered,
  we should put that information into the tests instead of
  in the names
* test files don't need to be in a subdirectory.

6 years agoAdd tests for radmin/control-socket
Jorge Pereira [Wed, 2 Oct 2019 01:36:24 +0000 (22:36 -0300)] 
Add tests for radmin/control-socket

6 years agoAdd new 'RADIUSD_SERVICE' make target
Jorge Pereira [Fri, 4 Oct 2019 15:58:35 +0000 (12:58 -0300)] 
Add new 'RADIUSD_SERVICE' make target

More informations can be found in src/tests/radiusd.mk

6 years agorename unlang functions for clarity
Alan T. DeKok [Sat, 5 Oct 2019 13:18:13 +0000 (09:18 -0400)] 
rename unlang functions for clarity

running a request is now just unlang_interpret(request)

functions taking more arguments have longer names

6 years agono longer needed
Alan T. DeKok [Sat, 5 Oct 2019 13:13:39 +0000 (09:13 -0400)] 
no longer needed

6 years agorename function
Alan T. DeKok [Sat, 5 Oct 2019 12:48:00 +0000 (08:48 -0400)] 
rename function

we're compiling a section, not getting a subsection from a
parent section

6 years agoreset when going to next, so that it is always done
Alan T. DeKok [Sat, 5 Oct 2019 12:47:14 +0000 (08:47 -0400)] 
reset when going to next, so that it is always done

6 years agoRemove server/base.h from io/base.h
Arran Cudbard-Bell [Sat, 5 Oct 2019 05:32:37 +0000 (01:32 -0400)] 
Remove server/base.h from io/base.h

Because circular dependencies aren't fun

6 years agoAllow subrequest sessions to be enabled/disabled and for custom unique_ptr and unique...
Arran Cudbard-Bell [Sat, 5 Oct 2019 03:07:52 +0000 (23:07 -0400)] 
Allow subrequest sessions to be enabled/disabled and for custom unique_ptr and unique_int values to be specified

This is required for modules pushing subrequests as the instructions usually used to identify sessions are dynamically allocated

6 years agoDon't assign empty string
Arran Cudbard-Bell [Sat, 5 Oct 2019 01:58:29 +0000 (21:58 -0400)] 
Don't assign empty string

6 years agofix last commit
Alan T. DeKok [Fri, 4 Oct 2019 14:56:18 +0000 (10:56 -0400)] 
fix last commit

6 years agomake '-i filename' work again :(
Alan T. DeKok [Fri, 4 Oct 2019 14:09:23 +0000 (10:09 -0400)] 
make '-i filename' work again :(

6 years agostart of framework for "local" commands
Alan T. DeKok [Thu, 3 Oct 2019 02:08:59 +0000 (22:08 -0400)] 
start of framework for "local" commands

6 years agoremove debugging message
Alan T. DeKok [Thu, 3 Oct 2019 01:45:48 +0000 (21:45 -0400)] 
remove debugging message

6 years agogrammar and spelling in sites-available (#3021)
Alan Buxey [Wed, 2 Oct 2019 23:48:38 +0000 (00:48 +0100)] 
grammar and spelling in sites-available (#3021)

6 years agoclients can be proto UDP, TCP, or *
Alan T. DeKok [Wed, 2 Oct 2019 02:19:55 +0000 (22:19 -0400)] 
clients can be proto UDP, TCP, or *

6 years ago!whitespace is also "not zero and not whitespace"
Alan T. DeKok [Wed, 2 Oct 2019 02:12:59 +0000 (22:12 -0400)] 
!whitespace is also "not zero and not whitespace"

When parsing zero-terminated strings, stop at zero.

6 years agoif no proto is specified, look for both udp and tcp
Alan T. DeKok [Wed, 2 Oct 2019 02:05:58 +0000 (22:05 -0400)] 
if no proto is specified, look for both udp and tcp

6 years agofix assertion
Alan T. DeKok [Wed, 2 Oct 2019 02:00:51 +0000 (22:00 -0400)] 
fix assertion

6 years agohacks to get parallel children resumable
Alan T. DeKok [Wed, 2 Oct 2019 00:32:10 +0000 (20:32 -0400)] 
hacks to get parallel children resumable

6 years agoUse table_len when iterating over tables Closes #3017
Arran Cudbard-Bell [Tue, 1 Oct 2019 22:02:35 +0000 (17:02 -0500)] 
Use table_len when iterating over tables Closes #3017

6 years agoFix typo (#3018)
Jorge Pereira [Tue, 1 Oct 2019 21:54:52 +0000 (18:54 -0300)] 
Fix typo (#3018)

6 years agoFix potential access to dereferenced value (#3016)
Jorge Pereira [Tue, 1 Oct 2019 21:54:30 +0000 (18:54 -0300)] 
Fix potential access to dereferenced value (#3016)

6 years agoReturn RLM_MODULE_YIELD from module functions
Arran Cudbard-Bell [Tue, 1 Oct 2019 19:55:01 +0000 (14:55 -0500)] 
Return RLM_MODULE_YIELD from module functions

6 years agochange check to assertion
Alan T. DeKok [Tue, 1 Oct 2019 18:59:26 +0000 (14:59 -0400)] 
change check to assertion

6 years agoadd new unlang_subrequest_start()
Alan T. DeKok [Tue, 1 Oct 2019 18:57:22 +0000 (14:57 -0400)] 
add new unlang_subrequest_start()

to start a subrequest

6 years agoremove "fixup" function
Alan T. DeKok [Tue, 1 Oct 2019 18:53:30 +0000 (14:53 -0400)] 
remove "fixup" function

and move repeatable_set() to unlang_module_yield()

6 years agoMove the store/restore subrequest calls out of rlm_eap
Arran Cudbard-Bell [Tue, 1 Oct 2019 18:51:11 +0000 (13:51 -0500)] 
Move the store/restore subrequest calls out of rlm_eap

6 years agoMake asserts less verbose
Arran Cudbard-Bell [Tue, 1 Oct 2019 18:19:19 +0000 (13:19 -0500)] 
Make asserts less verbose

6 years agoBe entirely unforgiving about fr_state_store_in_parent and friends being called incor...
Arran Cudbard-Bell [Tue, 1 Oct 2019 18:13:03 +0000 (13:13 -0500)] 
Be entirely unforgiving about fr_state_store_in_parent and friends being called incorrectly

6 years agoEnsure the child has its own unique state_ctx, i.e. it's in the same state as when...
Arran Cudbard-Bell [Tue, 1 Oct 2019 17:39:58 +0000 (12:39 -0500)] 
Ensure the child has its own unique state_ctx, i.e. it's in the same state as when request_data_restore_to_child was called

6 years agoFix typo (#3015)
Jorge Pereira [Tue, 1 Oct 2019 17:13:51 +0000 (14:13 -0300)] 
Fix typo (#3015)

6 years agoOnly free the existing state_ctx if we're sure it's not the parent's
Arran Cudbard-Bell [Tue, 1 Oct 2019 17:12:04 +0000 (12:12 -0500)] 
Only free the existing state_ctx if we're sure it's not the parent's

6 years agodoxygen
Alan T. DeKok [Tue, 1 Oct 2019 17:02:52 +0000 (13:02 -0400)] 
doxygen

6 years agotry to work around things with unlang_interpret_fixup()
Alan T. DeKok [Tue, 1 Oct 2019 16:41:23 +0000 (12:41 -0400)] 
try to work around things with unlang_interpret_fixup()

which runs things locally via playing with the stack.

6 years agofix return code
Alan T. DeKok [Tue, 1 Oct 2019 14:29:48 +0000 (10:29 -0400)] 
fix return code

6 years agoadd missing declaration
Alan T. DeKok [Tue, 1 Oct 2019 14:29:26 +0000 (10:29 -0400)] 
add missing declaration

6 years agocheck child state_ctx against parent
Alan T. DeKok [Tue, 1 Oct 2019 13:43:40 +0000 (09:43 -0400)] 
check child state_ctx against parent

The EAP code should arguably call request_detach() or something,
but this is a quick and easy fix

6 years agorename "persist" as it's confusing. Use and check "detachable"
Alan T. DeKok [Tue, 1 Oct 2019 13:25:48 +0000 (09:25 -0400)] 
rename "persist" as it's confusing.  Use and check "detachable"

6 years agoonly parent requests are runnable
Alan T. DeKok [Tue, 1 Oct 2019 13:11:52 +0000 (09:11 -0400)] 
only parent requests are runnable

6 years agomore debug messages
Alan T. DeKok [Tue, 1 Oct 2019 12:39:16 +0000 (08:39 -0400)] 
more debug messages

6 years agoDon't leak if failed the MS-CHAP password handle
Jorge Pereira [Mon, 30 Sep 2019 23:15:25 +0000 (20:15 -0300)] 
Don't leak if failed the MS-CHAP password handle

6 years agoReturn correct rcode
Arran Cudbard-Bell [Mon, 30 Sep 2019 21:02:02 +0000 (16:02 -0500)] 
Return correct rcode

6 years agoDump packet in radius encoder
Arran Cudbard-Bell [Mon, 30 Sep 2019 21:01:50 +0000 (16:01 -0500)] 
Dump packet in radius encoder

6 years agoPrint hex blocks with whitespace
Arran Cudbard-Bell [Mon, 30 Sep 2019 20:10:03 +0000 (15:10 -0500)] 
Print hex blocks with whitespace

6 years agoFix eapmschapv2
Arran Cudbard-Bell [Mon, 30 Sep 2019 19:47:16 +0000 (14:47 -0500)] 
Fix eapmschapv2

6 years agoAdd tracing to mschap_challenge_hash
Arran Cudbard-Bell [Mon, 30 Sep 2019 19:46:21 +0000 (14:46 -0500)] 
Add tracing to mschap_challenge_hash

6 years agoFixup rlm_mschap to support EAP-Identity too
Arran Cudbard-Bell [Mon, 30 Sep 2019 19:46:01 +0000 (14:46 -0500)] 
Fixup rlm_mschap to support EAP-Identity too

6 years agouse sw->id which is local
Alan T. DeKok [Mon, 30 Sep 2019 19:34:37 +0000 (15:34 -0400)] 
use sw->id which is local

6 years agouse worker->name
Alan T. DeKok [Mon, 30 Sep 2019 19:34:08 +0000 (15:34 -0400)] 
use worker->name

instead of function call and thread-local storage

6 years agoclarify comments and code structure
Alan T. DeKok [Mon, 30 Sep 2019 18:39:17 +0000 (14:39 -0400)] 
clarify comments and code structure

6 years agoprint "Resuming execution" when we resume
Alan T. DeKok [Mon, 30 Sep 2019 15:55:52 +0000 (11:55 -0400)] 
print "Resuming execution" when we resume

6 years agoget rid of unlang_group_type
Alan T. DeKok [Mon, 30 Sep 2019 15:30:51 +0000 (11:30 -0400)] 
get rid of unlang_group_type

which was always a horrific hack.  Instead, just fix the
compile_action_default() function to sneak a peek at the parent.

Then, add "redundant" as a top-level type / keyword.  which
lets us print out "redundant" in debug mode instead of "group"

6 years agorename func / process to interpret
Alan T. DeKok [Mon, 30 Sep 2019 13:19:24 +0000 (09:19 -0400)] 
rename func / process to interpret

in preparation for adding compile / parse functions to the
unlang_op_t structure

6 years agoSplit out virtual servers and modules used by them
Arran Cudbard-Bell [Mon, 30 Sep 2019 15:02:36 +0000 (10:02 -0500)] 
Split out virtual servers and modules used by them

6 years agoFix clan scan issues
Arran Cudbard-Bell [Mon, 30 Sep 2019 14:55:00 +0000 (09:55 -0500)] 
Fix clan scan issues

6 years agoFix comparators to return a number within a limited range
Arran Cudbard-Bell [Mon, 30 Sep 2019 14:54:51 +0000 (09:54 -0500)] 
Fix comparators to return a number within a limited range

6 years agoNot needed
Arran Cudbard-Bell [Mon, 30 Sep 2019 13:11:25 +0000 (08:11 -0500)] 
Not needed

6 years agoremove deterministic load balancing, and revert to random
Alan T. DeKok [Sun, 29 Sep 2019 22:42:37 +0000 (18:42 -0400)] 
remove deterministic load balancing, and revert to random

which means we have less magic knowledge in the interpreter, and
less recursive code.  At the cost of being less deterministic

6 years agoremove "detach" magic from main interpreter loop
Alan T. DeKok [Sun, 29 Sep 2019 20:17:43 +0000 (16:17 -0400)] 
remove "detach" magic from main interpreter loop

detach now "does the right thing", and behaves appropriately.

6 years agoremove unused parameter to signal()
Alan T. DeKok [Sun, 29 Sep 2019 12:17:03 +0000 (08:17 -0400)] 
remove unused parameter to signal()

6 years agomake UNLANG_TYPE_CALL skip using using resumable frames
Alan T. DeKok [Sun, 29 Sep 2019 11:53:21 +0000 (07:53 -0400)] 
make UNLANG_TYPE_CALL skip using using resumable frames

and now that nothing uses resumable frames, remove them entirely
from the interpreter

6 years agomake UNLANG_TYPE_XLAT skip using resumable frames
Alan T. DeKok [Sat, 28 Sep 2019 19:23:09 +0000 (15:23 -0400)] 
make UNLANG_TYPE_XLAT skip using resumable frames

6 years agoget rid of unlang_module_resume(), as we no longer need it.
Alan T. DeKok [Sat, 28 Sep 2019 19:09:38 +0000 (15:09 -0400)] 
get rid of unlang_module_resume(), as we no longer need it.

And do some other minor cleanups.