]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
4 years agodon't use time(0) for consistency, use time(NULL)
Alan T. DeKok [Wed, 8 Sep 2021 12:30:58 +0000 (08:30 -0400)] 
don't use time(0) for consistency, use time(NULL)

4 years agonotes and word smithing
Alan T. DeKok [Wed, 8 Sep 2021 12:19:11 +0000 (08:19 -0400)] 
notes and word smithing

4 years agoreplace rlm_expiration with a ~10 line unlang policy
Alan T. DeKok [Wed, 8 Sep 2021 11:59:03 +0000 (07:59 -0400)] 
replace rlm_expiration with a ~10 line unlang policy

4 years agoSession-Timeout is uint32, not uint64
Alan T. DeKok [Wed, 8 Sep 2021 10:41:56 +0000 (06:41 -0400)] 
Session-Timeout is uint32, not uint64

4 years agolimit is uint64, not uint32
Alan T. DeKok [Wed, 8 Sep 2021 10:38:17 +0000 (06:38 -0400)] 
limit is uint64, not uint32

4 years agoPrint out the current ime correctly
Arran Cudbard-Bell [Tue, 7 Sep 2021 22:18:31 +0000 (17:18 -0500)] 
Print out the current ime correctly

4 years agoAdd debian SNMP package
Arran Cudbard-Bell [Tue, 7 Sep 2021 21:59:15 +0000 (16:59 -0500)] 
Add debian SNMP package

4 years agoAdd RHEL SNMP package
Arran Cudbard-Bell [Tue, 7 Sep 2021 21:50:47 +0000 (16:50 -0500)] 
Add RHEL SNMP package

4 years agoInstall the mibs in <prefix>/share/snmp/mibs
Arran Cudbard-Bell [Tue, 7 Sep 2021 21:26:24 +0000 (16:26 -0500)] 
Install the mibs in <prefix>/share/snmp/mibs

4 years agoVarious eap-aka/sim doc cleanups
Arran Cudbard-Bell [Tue, 7 Sep 2021 20:21:44 +0000 (15:21 -0500)] 
Various eap-aka/sim doc cleanups

4 years agocleanups and fixes
Alan T. DeKok [Tue, 7 Sep 2021 18:47:19 +0000 (14:47 -0400)] 
cleanups and fixes

4 years agoallow 32-bit attributes for TACACS
Alan T. DeKok [Tue, 7 Sep 2021 18:39:31 +0000 (14:39 -0400)] 
allow 32-bit attributes for TACACS

because we don't care about the numbers

4 years agoencode named attributes, too
Alan T. DeKok [Tue, 7 Sep 2021 17:22:53 +0000 (13:22 -0400)] 
encode named attributes, too

4 years agocheck at compile time for invalid assignments
Alan T. DeKok [Tue, 7 Sep 2021 15:23:42 +0000 (11:23 -0400)] 
check at compile time for invalid assignments

4 years agosign promote the input only if the underlying data type is signed
Alan T. DeKok [Tue, 7 Sep 2021 15:09:47 +0000 (11:09 -0400)] 
sign promote the input only if the underlying data type is signed

4 years agorearrange code in preparation for encoding other attributes
Alan T. DeKok [Tue, 7 Sep 2021 12:51:10 +0000 (08:51 -0400)] 
rearrange code in preparation for encoding other attributes

and also fix some bugs with encoding, where the argument count
was tracked incorrectly

4 years agostart of trying to decode as named attributes
Alan T. DeKok [Mon, 6 Sep 2021 20:03:55 +0000 (16:03 -0400)] 
start of trying to decode as named attributes

and fix the test which somehow had an extraneous empty string
for Argument-List

4 years agoprint out decoded packet, too
Alan T. DeKok [Mon, 6 Sep 2021 19:59:33 +0000 (15:59 -0400)] 
print out decoded packet, too

4 years agonormalize name
Alan T. DeKok [Mon, 6 Sep 2021 19:41:13 +0000 (15:41 -0400)] 
normalize name

4 years agofix typo
Alan T. DeKok [Mon, 6 Sep 2021 19:14:13 +0000 (15:14 -0400)] 
fix typo

4 years agoadd support for foo.bar[baz] = x
Alan T. DeKok [Mon, 6 Sep 2021 15:26:08 +0000 (11:26 -0400)] 
add support for foo.bar[baz] = x

tho it doesn't _quite_ work yet, because the tokenizer will
stop at the '[', and will not pass the full name to the add_pair()
function.

4 years agoregenerate
Alan T. DeKok [Fri, 3 Sep 2021 18:40:56 +0000 (14:40 -0400)] 
regenerate

4 years agofix links
Alan T. DeKok [Fri, 3 Sep 2021 18:38:40 +0000 (14:38 -0400)] 
fix links

4 years agouse dots now, not :
Alan T. DeKok [Fri, 3 Sep 2021 18:14:53 +0000 (14:14 -0400)] 
use dots now, not :

4 years agoAdd toggle for requiring client certificates
Arran Cudbard-Bell [Tue, 7 Sep 2021 14:59:41 +0000 (09:59 -0500)] 
Add toggle for requiring client certificates

4 years agoAdd TEST_CHECK_SLEN
Arran Cudbard-Bell [Tue, 7 Sep 2021 14:07:53 +0000 (09:07 -0500)] 
Add TEST_CHECK_SLEN

4 years agoCorrect casts in TEST_CHECK_LEN() (#4221)
James Jones [Tue, 7 Sep 2021 14:05:16 +0000 (09:05 -0500)] 
Correct casts in TEST_CHECK_LEN() (#4221)

4 years agoDisplay build result to try and figure out why coverity isn't working
Arran Cudbard-Bell [Mon, 6 Sep 2021 22:32:10 +0000 (17:32 -0500)] 
Display build result to try and figure out why coverity isn't working

4 years agoLGTM is stupid and says we don't return a value in all code paths.
Arran Cudbard-Bell [Mon, 6 Sep 2021 22:24:36 +0000 (17:24 -0500)] 
LGTM is stupid and says we don't return a value in all code paths.

4 years agoFix a couple more issues...
Arran Cudbard-Bell [Mon, 6 Sep 2021 21:54:58 +0000 (16:54 -0500)] 
Fix a couple more issues...

4 years agoInstall the lsb-release package
Arran Cudbard-Bell [Mon, 6 Sep 2021 21:41:53 +0000 (16:41 -0500)] 
Install the lsb-release package

4 years agoShould be testing packaging not whether the upstream OS provides broke things...
Arran Cudbard-Bell [Mon, 6 Sep 2021 21:39:27 +0000 (16:39 -0500)] 
Should be testing packaging not whether the upstream OS provides broke things...

4 years agotypo
Arran Cudbard-Bell [Mon, 6 Sep 2021 21:04:28 +0000 (16:04 -0500)] 
typo

4 years agoUNUSED if buidling with EVENT_DEBUG
Arran Cudbard-Bell [Mon, 6 Sep 2021 21:00:57 +0000 (16:00 -0500)] 
UNUSED if buidling with EVENT_DEBUG

4 years agoFix unlikely
Arran Cudbard-Bell [Mon, 6 Sep 2021 20:55:58 +0000 (15:55 -0500)] 
Fix unlikely

4 years agoWait for five seconds after the process exits for any children to finish
Arran Cudbard-Bell [Mon, 6 Sep 2021 20:51:05 +0000 (15:51 -0500)] 
Wait for five seconds after the process exits for any children to finish

Fix other various issues with cleaning up processes.

4 years agoFix fr_dlist_foreach_safe
Arran Cudbard-Bell [Mon, 6 Sep 2021 20:31:59 +0000 (15:31 -0500)] 
Fix fr_dlist_foreach_safe

4 years agoFix more issues
Arran Cudbard-Bell [Mon, 6 Sep 2021 16:35:01 +0000 (11:35 -0500)] 
Fix more issues

4 years ago...and here
Arran Cudbard-Bell [Mon, 6 Sep 2021 16:10:08 +0000 (11:10 -0500)] 
...and here

4 years agoTypo
Arran Cudbard-Bell [Mon, 6 Sep 2021 16:06:20 +0000 (11:06 -0500)] 
Typo

4 years agoMaintain a list of "reap" requests, and make sure they're all cleaned up when the...
Arran Cudbard-Bell [Mon, 6 Sep 2021 16:02:20 +0000 (11:02 -0500)] 
Maintain a list of "reap" requests, and make sure they're all cleaned up when the event loop exits

4 years agoMake the repo commands prettier
Arran Cudbard-Bell [Mon, 6 Sep 2021 14:00:02 +0000 (09:00 -0500)] 
Make the repo commands prettier

4 years agoGet CODENAME and DIST dynamically from lsb_release
Arran Cudbard-Bell [Mon, 6 Sep 2021 13:39:10 +0000 (08:39 -0500)] 
Get CODENAME and DIST dynamically from lsb_release

4 years ago...same but with an actions script
Arran Cudbard-Bell [Mon, 6 Sep 2021 13:03:38 +0000 (08:03 -0500)] 
...same but with an actions script

4 years agoAdd NR repo to main CI workflow
Arran Cudbard-Bell [Mon, 6 Sep 2021 12:52:59 +0000 (07:52 -0500)] 
Add NR repo to main CI workflow

4 years agoNote on what vps is.
Arran Cudbard-Bell [Mon, 30 Aug 2021 17:59:30 +0000 (12:59 -0500)] 
Note on what vps is.

4 years agoallow foo.bar.baz = 1 for laziness
Alan T. DeKok [Fri, 3 Sep 2021 18:01:52 +0000 (14:01 -0400)] 
allow foo.bar.baz = 1 for laziness

with some caveats and qualifications

4 years agotime_delta is signed by default
Alan T. DeKok [Thu, 2 Sep 2021 15:33:47 +0000 (11:33 -0400)] 
time_delta is signed by default

add tests.

Catch the case (parsing and printing) of negative zero

4 years agoprint out the strings we have, too
Alan T. DeKok [Thu, 2 Sep 2021 15:33:26 +0000 (11:33 -0400)] 
print out the strings we have, too

4 years agoparse 1h, 1m, etc. correctly
Alan T. DeKok [Thu, 2 Sep 2021 15:01:24 +0000 (11:01 -0400)] 
parse 1h, 1m, etc. correctly

4 years agouse correct MOD macro.
Alan T. DeKok [Thu, 2 Sep 2021 15:00:28 +0000 (11:00 -0400)] 
use correct MOD macro.

4 years agouse Acct-Delay-Time when calculating Event-Timestamp
Alan T. DeKok [Thu, 2 Sep 2021 14:48:24 +0000 (10:48 -0400)] 
use Acct-Delay-Time when calculating Event-Timestamp

4 years agoclean up and check for overflows
Alan T. DeKok [Wed, 1 Sep 2021 21:10:02 +0000 (17:10 -0400)] 
clean up and check for overflows

4 years agoparse *signed* time deltas
Alan T. DeKok [Wed, 1 Sep 2021 20:37:06 +0000 (16:37 -0400)] 
parse *signed* time deltas

and don't allow fractional minutes, hours, or days.  That doesn't
make any sense.

There are still many possibilities for overflow, so fixing that
is next.

4 years agoprint out signed time_delta, too
Alan T. DeKok [Wed, 1 Sep 2021 20:30:34 +0000 (16:30 -0400)] 
print out signed time_delta, too

4 years agoallow time_delta to be _unsigned_ when we encode it in the network
Alan T. DeKok [Wed, 1 Sep 2021 13:53:08 +0000 (09:53 -0400)] 
allow time_delta to be _unsigned_ when we encode it in the network

e.g. for RADIUS, with Session-Timeout

4 years agominor rearrangement
Alan T. DeKok [Wed, 1 Sep 2021 13:52:19 +0000 (09:52 -0400)] 
minor rearrangement

4 years agotime deltas are signed
Alan T. DeKok [Wed, 1 Sep 2021 13:45:51 +0000 (09:45 -0400)] 
time deltas are signed

so we need to unpack them as signed values, too

4 years agocorrect the parser for dates / time deltas
Alan T. DeKok [Wed, 1 Sep 2021 13:13:54 +0000 (09:13 -0400)] 
correct the parser for dates / time deltas

4 years agoremove UNUSED
Alan T. DeKok [Tue, 31 Aug 2021 22:46:23 +0000 (18:46 -0400)] 
remove UNUSED

4 years agoshut up clang analyzer
Alan T. DeKok [Tue, 31 Aug 2021 22:15:10 +0000 (18:15 -0400)] 
shut up clang analyzer

4 years agoadd retry tests
Alan T. DeKok [Tue, 31 Aug 2021 22:00:54 +0000 (18:00 -0400)] 
add retry tests

4 years agoincrement count before checking mrc
Alan T. DeKok [Tue, 31 Aug 2021 19:59:22 +0000 (15:59 -0400)] 
increment count before checking mrc

4 years agoimplement retries for sections and modules
Alan T. DeKok [Tue, 31 Aug 2021 19:36:07 +0000 (15:36 -0400)] 
implement retries for sections and modules

if the module doesn't natively support retries, it's just
re-run over and over until it succeeds, or the retry limits
are hit.

4 years agoensure that retries don't get carried to subsections on compilation
Alan T. DeKok [Tue, 31 Aug 2021 19:35:16 +0000 (15:35 -0400)] 
ensure that retries don't get carried to subsections on compilation

we probably want to do the same thing for MOD_ACTION_RETURN, too

4 years agoupdate / fix restrictions on retries.
Alan T. DeKok [Tue, 31 Aug 2021 18:35:58 +0000 (14:35 -0400)] 
update / fix restrictions on retries.

4 years agoadd "fail = retry" and sanity check it in the parser
Alan T. DeKok [Tue, 31 Aug 2021 15:01:46 +0000 (11:01 -0400)] 
add "fail = retry" and sanity check it in the parser

note that if we have a section which is doing retries, it can
have "fail = retry".  But its sub-sections cannot have "fail=retry"
because that doesn't make much sense.

4 years agotweak messages
Alan T. DeKok [Tue, 31 Aug 2021 15:00:54 +0000 (11:00 -0400)] 
tweak messages

4 years agono name2 and NULL means it's a match
Alan T. DeKok [Tue, 31 Aug 2021 13:40:04 +0000 (09:40 -0400)] 
no name2 and NULL means it's a match

4 years agomore error messages
Alan T. DeKok [Tue, 31 Aug 2021 13:31:54 +0000 (09:31 -0400)] 
more error messages

4 years agoshut up compiler
Alan T. DeKok [Mon, 30 Aug 2021 21:19:45 +0000 (17:19 -0400)] 
shut up compiler

4 years agoadd retry and timeout signals to modules
Alan T. DeKok [Mon, 30 Aug 2021 20:44:37 +0000 (16:44 -0400)] 
add retry and timeout signals to modules

and add a "retry" method to the "test" module.

tests to follow

4 years agoon compile subsection, reset actions.retry to zero
Alan T. DeKok [Mon, 30 Aug 2021 20:00:00 +0000 (16:00 -0400)] 
on compile subsection, reset actions.retry to zero

otherwise each individual section will duplicate all of the
retry actions

4 years agoadd RETRY_CAPABLE flag, and check it in module compilation
Alan T. DeKok [Mon, 30 Aug 2021 18:24:22 +0000 (14:24 -0400)] 
add RETRY_CAPABLE flag, and check it in module compilation

so that we don't erroneously resume modules on timers, when the
modules don't expect to be resumed.

4 years agoadd function to change resumption handler for a module.
Alan T. DeKok [Mon, 30 Aug 2021 18:04:19 +0000 (14:04 -0400)] 
add function to change resumption handler for a module.

4 years agoset default module actions, too
Alan T. DeKok [Mon, 30 Aug 2021 17:53:05 +0000 (13:53 -0400)] 
set default module actions, too

and do some minor cleanups and comments for action / retry
handling

4 years agoadd and compile "actions" in module configurations
Alan T. DeKok [Mon, 30 Aug 2021 17:39:36 +0000 (13:39 -0400)] 
add and compile "actions" in module configurations

4 years agorename for clarity
Alan T. DeKok [Mon, 30 Aug 2021 17:35:30 +0000 (13:35 -0400)] 
rename for clarity

4 years agovariables are USED
Alan T. DeKok [Mon, 30 Aug 2021 17:31:15 +0000 (13:31 -0400)] 
variables are USED

4 years agoRemove ref to radius_exec_program_legacy
Arran Cudbard-Bell [Mon, 30 Aug 2021 17:18:58 +0000 (12:18 -0500)] 
Remove ref to radius_exec_program_legacy

4 years agoSplit out legacy exec functions to make them easier to remove in future
Arran Cudbard-Bell [Mon, 30 Aug 2021 17:16:46 +0000 (12:16 -0500)] 
Split out legacy exec functions to make them easier to remove in future

4 years agoLast remaining exec issues (hopefully)
Arran Cudbard-Bell [Mon, 30 Aug 2021 16:58:03 +0000 (11:58 -0500)] 
Last remaining exec issues (hopefully)

4 years agofix scan / warnings
Alan T. DeKok [Sat, 28 Aug 2021 12:48:57 +0000 (08:48 -0400)] 
fix scan / warnings

4 years agotrack and clean up old packets
Alan T. DeKok [Fri, 27 Aug 2021 20:33:30 +0000 (16:33 -0400)] 
track and clean up old packets

When we send a reply, track the State in a new hash table,
and associate the fr_io_track_t with that state.

When we create a new tracking entry for a packet with a State,
look up the &request.State.  If there's a matching entry, then
free it.  Which means that we don't keep old packets around
in the dedup tree.

4 years agodebug3 print header, and fix error in length check on decode
Alan T. DeKok [Fri, 27 Aug 2021 20:03:01 +0000 (16:03 -0400)] 
debug3 print header, and fix error in length check on decode

4 years agomore descriptive error messages
Alan T. DeKok [Fri, 27 Aug 2021 19:42:28 +0000 (15:42 -0400)] 
more descriptive error messages

4 years agotrack client->packets in track create / free
Alan T. DeKok [Fri, 27 Aug 2021 15:25:45 +0000 (11:25 -0400)] 
track client->packets in track create / free

because there's no good reason to do it elsewhere

4 years agoUse the generated certs for rlm_cipher
Arran Cudbard-Bell [Mon, 30 Aug 2021 01:02:49 +0000 (20:02 -0500)] 
Use the generated certs for rlm_cipher

4 years agoFix verify_mode parsing (has to be done before checking cert attributes)
Arran Cudbard-Bell [Mon, 30 Aug 2021 00:58:25 +0000 (19:58 -0500)] 
Fix verify_mode parsing (has to be done before checking cert attributes)

4 years agoel is used
Arran Cudbard-Bell [Sun, 29 Aug 2021 17:27:18 +0000 (12:27 -0500)] 
el is used

4 years agoQuiet CI error on macOS
Arran Cudbard-Bell [Sun, 29 Aug 2021 16:23:49 +0000 (11:23 -0500)] 
Quiet CI error on macOS

4 years ago...and one more
Arran Cudbard-Bell [Sun, 29 Aug 2021 00:10:09 +0000 (19:10 -0500)] 
...and one more

4 years agoUse correct exec status
Arran Cudbard-Bell [Sun, 29 Aug 2021 00:06:02 +0000 (19:06 -0500)] 
Use correct exec status

4 years agoUse a single unified exec cleanup function for cleaning up
Arran Cudbard-Bell [Sat, 28 Aug 2021 16:47:46 +0000 (11:47 -0500)] 
Use a single unified exec cleanup function for cleaning up

Represent cleaned up PIDs as -1, just like we do with FDs

4 years agoUse fr_event_pid_reap instead of fr_event_pid_wait in exec.c
Arran Cudbard-Bell [Sat, 28 Aug 2021 16:46:42 +0000 (11:46 -0500)] 
Use fr_event_pid_reap instead of fr_event_pid_wait in exec.c

4 years agoRemove untrue comment
Arran Cudbard-Bell [Sat, 28 Aug 2021 16:45:24 +0000 (11:45 -0500)] 
Remove untrue comment

4 years agoMore docs for EVFILT_PROC in event.c
Arran Cudbard-Bell [Sat, 28 Aug 2021 16:44:22 +0000 (11:44 -0500)] 
More docs for EVFILT_PROC in event.c

4 years agoAdd pid reaping function
Arran Cudbard-Bell [Sat, 28 Aug 2021 16:43:34 +0000 (11:43 -0500)] 
Add pid reaping function

4 years agoUse waitid as the backup method for determining if a process has exited not waitpid
Arran Cudbard-Bell [Sat, 28 Aug 2021 15:25:19 +0000 (10:25 -0500)] 
Use waitid as the backup method for determining if a process has exited not waitpid

Waitpid reaps the process which would cause an error in the resumption callback.

4 years agoBetter error handling in fr_event_pid_wait
Arran Cudbard-Bell [Sat, 28 Aug 2021 02:35:53 +0000 (21:35 -0500)] 
Better error handling in fr_event_pid_wait