]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
6 years agoallow encoding of ipv4prefix, and skip scope for ipv6
Alan T. DeKok [Wed, 25 Sep 2019 13:48:52 +0000 (09:48 -0400)] 
allow encoding of ipv4prefix, and skip scope for ipv6

This makes the encoder match the decoder.

6 years agoMore documentation for return codes
Arran Cudbard-Bell [Wed, 25 Sep 2019 10:57:28 +0000 (05:57 -0500)] 
More documentation for return codes

6 years agos/userlock/disallow/g
Arran Cudbard-Bell [Wed, 25 Sep 2019 10:51:54 +0000 (05:51 -0500)] 
s/userlock/disallow/g

A more generic "authorization failed" rcode.

6 years agoThe prefix types are internal, definitely not specific to RADIUS
Arran Cudbard-Bell [Wed, 25 Sep 2019 00:26:44 +0000 (19:26 -0500)] 
The prefix types are internal, definitely not specific to RADIUS

6 years agothe cast will automatically truncate the variable
Alan T. DeKok [Wed, 25 Sep 2019 00:57:07 +0000 (20:57 -0400)] 
the cast will automatically truncate the variable

no need for a mask

6 years agoadd a cast
Alan T. DeKok [Wed, 25 Sep 2019 00:45:04 +0000 (20:45 -0400)] 
add a cast

6 years agoSpecify minimum buffer sizes
Arran Cudbard-Bell [Tue, 24 Sep 2019 21:54:20 +0000 (16:54 -0500)] 
Specify minimum buffer sizes

6 years agoadd fr_get/put_16/32/64 and use then in from/to network code
Alan T. DeKok [Tue, 24 Sep 2019 18:29:41 +0000 (14:29 -0400)] 
add fr_get/put_16/32/64 and use then in from/to network code

TBH, we should probably get rid of htonl()+memcpy in the rest of
the code, as these macros seem better.

6 years agoadd fr_unix_time to distinguish from fr_time_t
Alan T. DeKok [Tue, 24 Sep 2019 13:26:33 +0000 (09:26 -0400)] 
add fr_unix_time to distinguish from fr_time_t

6 years agoremove use of time_t and time()
Alan T. DeKok [Tue, 24 Sep 2019 12:33:39 +0000 (08:33 -0400)] 
remove use of time_t and time()

6 years agoVarious fixups
Arran Cudbard-Bell [Tue, 24 Sep 2019 11:00:01 +0000 (06:00 -0500)] 
Various fixups

6 years agofix date / time_delta handling
Alan T. DeKok [Tue, 24 Sep 2019 01:27:58 +0000 (21:27 -0400)] 
fix date / time_delta handling

check for time_delta < 0 when converting to uint32/uint64

call time_to_Xsec() when converting dates to network, instead of
just dividing by 10^N

but time deltas can just be divided by 10^N

fix cast date to uint64 so that it casts based on precision,
and not always casts to seconds

6 years agotypo. I guess no one uses this...
Alan T. DeKok [Tue, 24 Sep 2019 00:33:56 +0000 (20:33 -0400)] 
typo.  I guess no one uses this...

6 years agoMove exercises to Turtorials and add copyright notices
Arran Cudbard-Bell [Mon, 23 Sep 2019 19:14:50 +0000 (14:14 -0500)] 
Move exercises to Turtorials and add copyright notices

6 years agoAdd protocols doc dir
Arran Cudbard-Bell [Mon, 23 Sep 2019 18:51:11 +0000 (13:51 -0500)] 
Add protocols doc dir

6 years agoRemove the rlm dir
Arran Cudbard-Bell [Mon, 23 Sep 2019 18:48:52 +0000 (13:48 -0500)] 
Remove the rlm dir

6 years agotests for encode / decode of time_delta
Alan T. DeKok [Mon, 23 Sep 2019 18:41:04 +0000 (14:41 -0400)] 
tests for encode / decode of time_delta

6 years agoallow encoding time_delta in RADIUS
Alan T. DeKok [Mon, 23 Sep 2019 18:39:18 +0000 (14:39 -0400)] 
allow encoding time_delta in RADIUS

6 years agotime_delta is a numerical type, too
Alan T. DeKok [Mon, 23 Sep 2019 18:38:55 +0000 (14:38 -0400)] 
time_delta is a numerical type, too

6 years agoQuiet "implicit use of sequentially-consistent atomic may incur stronger memory barriers"
Arran Cudbard-Bell [Mon, 23 Sep 2019 18:14:35 +0000 (13:14 -0500)] 
Quiet "implicit use of sequentially-consistent atomic may incur stronger memory barriers"

6 years agoallow encoding / decoding and casting of type 'time_delta'
Alan T. DeKok [Mon, 23 Sep 2019 15:54:39 +0000 (11:54 -0400)] 
allow encoding / decoding and casting of type 'time_delta'

6 years agoallow type 'time_delta' in dictionaries
Alan T. DeKok [Mon, 23 Sep 2019 15:44:24 +0000 (11:44 -0400)] 
allow type 'time_delta' in dictionaries

with exactly the same syntax and variants as type 'date'

To be done: encode / decode time delta

6 years agouse rlm_rcode_t instead of fr_io_final_t
Alan T. DeKok [Mon, 23 Sep 2019 12:48:15 +0000 (08:48 -0400)] 
use rlm_rcode_t instead of fr_io_final_t

in preparation for moving app_process_t function signatures
to match module_method_t

perl -p -i -e 's/fr_io_final_t/rlm_rcode_t/g;s/FR_IO_YIELD/RLM_MODULE_YIELD/g;s/FR_IO_REPLY/RLM_MODULE_OK/g;s/FR_IO_FAIL/RLM_MODULE_FAIL/g;s/FR_IO_DONE/RLM_MODULE_OK/g' $(find src/ -name "*.[ch]" -print)

along with some minor / manual editing.

6 years agoIgnore build products
Arran Cudbard-Bell [Mon, 23 Sep 2019 03:26:00 +0000 (22:26 -0500)] 
Ignore build products

6 years agoMerge training exercises with documentation
Arran Cudbard-Bell [Mon, 23 Sep 2019 03:25:52 +0000 (22:25 -0500)] 
Merge training exercises with documentation

6 years agoMore reorg
Arran Cudbard-Bell [Sun, 22 Sep 2019 23:56:09 +0000 (18:56 -0500)] 
More reorg

6 years agoReorganise howto files
Arran Cudbard-Bell [Sun, 22 Sep 2019 23:38:23 +0000 (18:38 -0500)] 
Reorganise howto files

6 years agoTweaks
Arran Cudbard-Bell [Sun, 22 Sep 2019 21:47:43 +0000 (16:47 -0500)] 
Tweaks

6 years agoFinish edits to the ldapsearch doc
Arran Cudbard-Bell [Sun, 22 Sep 2019 21:16:04 +0000 (16:16 -0500)] 
Finish edits to the ldapsearch doc

6 years agoRevert "Put cert override in session-state to make it easier to configure"
Arran Cudbard-Bell [Sat, 21 Sep 2019 23:19:46 +0000 (18:19 -0500)] 
Revert "Put cert override in session-state to make it easier to configure"

This reverts commit 9c50531336a8caa157a73da7c225743e3b436949.

6 years agoPut cert override in session-state to make it easier to configure
Arran Cudbard-Bell [Sat, 21 Sep 2019 23:17:59 +0000 (18:17 -0500)] 
Put cert override in session-state to make it easier to configure

6 years agoTypos
Arran Cudbard-Bell [Sat, 21 Sep 2019 16:23:15 +0000 (11:23 -0500)] 
Typos

6 years agoAlmost done...
Arran Cudbard-Bell [Sat, 21 Sep 2019 16:20:06 +0000 (11:20 -0500)] 
Almost done...

6 years agoAdd chain certificates to a trusted store. Apparently get issuer doesn't work with...
Arran Cudbard-Bell [Sat, 21 Sep 2019 16:19:51 +0000 (11:19 -0500)] 
Add chain certificates to a trusted store.  Apparently get issuer doesn't work with the untrusted args

6 years agoClosing parens
Arran Cudbard-Bell [Sat, 21 Sep 2019 15:52:49 +0000 (10:52 -0500)] 
Closing parens

6 years agoFix links. Github doesn't respect symlinks unfortunately
Arran Cudbard-Bell [Sat, 21 Sep 2019 15:51:58 +0000 (10:51 -0500)] 
Fix links.  Github doesn't respect symlinks unfortunately

6 years agoGoddamn OpenSSL...
Arran Cudbard-Bell [Fri, 20 Sep 2019 20:06:04 +0000 (15:06 -0500)] 
Goddamn OpenSSL...

6 years agounused things..
Arran Cudbard-Bell [Fri, 20 Sep 2019 17:08:10 +0000 (12:08 -0500)] 
unused things..

6 years agoMore stupidity *sigh*
Arran Cudbard-Bell [Fri, 20 Sep 2019 16:51:47 +0000 (11:51 -0500)] 
More stupidity *sigh*

6 years agoShould return int
Arran Cudbard-Bell [Fri, 20 Sep 2019 16:37:53 +0000 (11:37 -0500)] 
Should return int

6 years agoShut up stupid static analysis
Arran Cudbard-Bell [Fri, 20 Sep 2019 16:36:03 +0000 (11:36 -0500)] 
Shut up stupid static analysis

6 years agoDoesn't do anything...
Arran Cudbard-Bell [Fri, 20 Sep 2019 16:30:23 +0000 (11:30 -0500)] 
Doesn't do anything...

6 years agoOf course radwho is not threaded, so this was actually fine *sigh*
Arran Cudbard-Bell [Fri, 20 Sep 2019 16:29:07 +0000 (11:29 -0500)] 
Of course radwho is not threaded, so this was actually fine *sigh*

6 years agoRedundant and apparently not used anywhere...
Arran Cudbard-Bell [Fri, 20 Sep 2019 16:23:18 +0000 (11:23 -0500)] 
Redundant and apparently not used anywhere...

6 years agoAdd LGTM badge
Arran Cudbard-Bell [Fri, 20 Sep 2019 14:55:53 +0000 (09:55 -0500)] 
Add LGTM badge

6 years agoAdd header guards, fix typo in license boilerplate
Arran Cudbard-Bell [Fri, 20 Sep 2019 14:42:32 +0000 (09:42 -0500)] 
Add header guards, fix typo in license boilerplate

6 years agoSync dictionary.aptilo with latest official dictionary
Marcus Sundberg [Fri, 20 Sep 2019 10:14:55 +0000 (12:14 +0200)] 
Sync dictionary.aptilo with latest official dictionary

6 years agoMore LDAP howto, WIP
Arran Cudbard-Bell [Thu, 19 Sep 2019 20:52:22 +0000 (15:52 -0500)] 
More LDAP howto, WIP

6 years agoWhitespace
Arran Cudbard-Bell [Thu, 19 Sep 2019 20:14:08 +0000 (15:14 -0500)] 
Whitespace

6 years agoCleanup more ascend stuff
Arran Cudbard-Bell [Thu, 19 Sep 2019 20:09:25 +0000 (15:09 -0500)] 
Cleanup more ascend stuff

6 years agoDoc update for LDAP howto
Arran Cudbard-Bell [Thu, 19 Sep 2019 19:56:35 +0000 (14:56 -0500)] 
Doc update for LDAP howto

6 years agoAlways return instead of calling fr_cond_assert so stupid static analysers don't...
Arran Cudbard-Bell [Thu, 19 Sep 2019 17:38:54 +0000 (12:38 -0500)] 
Always return instead of calling fr_cond_assert so stupid static analysers don't get confused

6 years agoFix some unsafe calls to snprintf, and change the way we handle truncation
Arran Cudbard-Bell [Thu, 19 Sep 2019 17:26:44 +0000 (12:26 -0500)] 
Fix some unsafe calls to snprintf, and change the way we handle truncation

6 years agoUse localtime_r
Arran Cudbard-Bell [Thu, 19 Sep 2019 16:57:07 +0000 (11:57 -0500)] 
Use localtime_r

6 years agoActually free the virtual server trees
Arran Cudbard-Bell [Thu, 19 Sep 2019 13:33:09 +0000 (08:33 -0500)] 
Actually free the virtual server trees

6 years agoYes, technically if it's a normal build execution will continue *sigh*
Arran Cudbard-Bell [Thu, 19 Sep 2019 13:30:38 +0000 (08:30 -0500)] 
Yes, technically if it's a normal build execution will continue *sigh*

6 years agoFix lgtm warnings in prepaid.py
Arran Cudbard-Bell [Thu, 19 Sep 2019 13:28:02 +0000 (08:28 -0500)] 
Fix lgtm warnings in prepaid.py

6 years agofsck it, we'll do it live
Alan T. DeKok [Thu, 19 Sep 2019 01:08:00 +0000 (21:08 -0400)] 
fsck it, we'll do it live

doing $(MAKE) ${BUILD_DIR}/coverage/index.html
hangs make.  Which seems to be a bug in make.  Or something stupid.
So just copy the danged build rules.

6 years agoadd "clean.coverage" and try fixing dependencies
Alan T. DeKok [Wed, 18 Sep 2019 21:44:06 +0000 (17:44 -0400)] 
add "clean.coverage" and try fixing dependencies

6 years agocrossbuild: debian9->10 in common image list
Matthew Newton [Wed, 18 Sep 2019 20:55:37 +0000 (20:55 +0000)] 
crossbuild: debian9->10 in common image list

6 years agocrossbuild: update help
Matthew Newton [Wed, 18 Sep 2019 20:55:04 +0000 (20:55 +0000)] 
crossbuild: update help

6 years agoRefresh patch
Arran Cudbard-Bell [Wed, 18 Sep 2019 19:45:42 +0000 (14:45 -0500)] 
Refresh patch

6 years agotests.ok no longer produced by anything
Arran Cudbard-Bell [Wed, 18 Sep 2019 19:35:27 +0000 (14:35 -0500)] 
tests.ok no longer produced by anything

6 years agocrossbuild: add 'refresh' to push latest commits into image
Matthew Newton [Wed, 18 Sep 2019 19:13:57 +0000 (19:13 +0000)] 
crossbuild: add 'refresh' to push latest commits into image

6 years agorefresh patch
Alan T. DeKok [Wed, 18 Sep 2019 19:15:38 +0000 (15:15 -0400)] 
refresh patch

6 years agoadded "make coverage" target
Alan T. DeKok [Wed, 18 Sep 2019 18:53:07 +0000 (14:53 -0400)] 
added "make coverage" target

Which shows pretty pictures of code coverage

6 years agorename directory to "build"
Alan T. DeKok [Wed, 18 Sep 2019 18:03:03 +0000 (14:03 -0400)] 
rename directory to "build"

as we need to put other build stuff in there

and ensure that only the top-level "build" directory is ignored

6 years agoFix header in docker files
Arran Cudbard-Bell [Wed, 18 Sep 2019 18:34:42 +0000 (13:34 -0500)] 
Fix header in docker files

6 years agoFix debian patch
Arran Cudbard-Bell [Wed, 18 Sep 2019 18:17:56 +0000 (13:17 -0500)] 
Fix debian patch

6 years agodocker: Add steps to install the dependencies to documentation build (#2957)
Jorge Pereira [Wed, 18 Sep 2019 17:51:36 +0000 (14:51 -0300)] 
docker: Add steps to install the dependencies to documentation build (#2957)

6 years agoNope, still too stupid
Arran Cudbard-Bell [Wed, 18 Sep 2019 17:26:01 +0000 (12:26 -0500)] 
Nope, still too stupid

6 years agoTypo
Arran Cudbard-Bell [Wed, 18 Sep 2019 16:33:16 +0000 (11:33 -0500)] 
Typo

6 years agoFix the awful 10 year old hack that messed with the dlopen flags for rlm_perl
Arran Cudbard-Bell [Wed, 18 Sep 2019 16:31:54 +0000 (11:31 -0500)] 
Fix the awful 10 year old hack that messed with the dlopen flags for rlm_perl

and replace it with a much prettier hack

6 years agoMove dlopen functionality from rlm_python into dl_open_by_sym in utility library
Arran Cudbard-Bell [Wed, 18 Sep 2019 16:30:55 +0000 (11:30 -0500)] 
Move dlopen functionality from rlm_python into dl_open_by_sym in utility library

6 years agoAs per comment
Arran Cudbard-Bell [Wed, 18 Sep 2019 16:06:17 +0000 (11:06 -0500)] 
As per comment

6 years agoRTLD_SELF isn't vailable on Linux
Arran Cudbard-Bell [Wed, 18 Sep 2019 15:41:53 +0000 (10:41 -0500)] 
RTLD_SELF isn't vailable on Linux

6 years agoSignificantly better way of getting the rlm_python path
Arran Cudbard-Bell [Wed, 18 Sep 2019 15:34:28 +0000 (10:34 -0500)] 
Significantly better way of getting the rlm_python path

6 years agoworkaround for https://bugs.centos.org/view.php?id=14773 (#3000)
Matt Rose [Wed, 18 Sep 2019 14:51:53 +0000 (10:51 -0400)] 
workaround for https://bugs.centos.org/view.php?id=14773 (#3000)

6 years agoIf python_dlhandle is NULL, don't close it
Arran Cudbard-Bell [Wed, 18 Sep 2019 14:26:30 +0000 (09:26 -0500)] 
If python_dlhandle is NULL, don't close it

6 years agocommented-out config items use tabs, not two spaces
Alan T. DeKok [Wed, 18 Sep 2019 13:50:30 +0000 (09:50 -0400)] 
commented-out config items use tabs, not two spaces

6 years agoI guess here too
Arran Cudbard-Bell [Tue, 17 Sep 2019 22:58:58 +0000 (17:58 -0500)] 
I guess here too

6 years agoStupid centos
Arran Cudbard-Bell [Tue, 17 Sep 2019 22:56:06 +0000 (17:56 -0500)] 
Stupid centos

6 years agorlm_python: Fix the libpython file load (#2999)
Jorge Pereira [Tue, 17 Sep 2019 22:11:30 +0000 (19:11 -0300)] 
rlm_python: Fix the libpython file load (#2999)

It extracts the used libpythonXY to link.

6 years agoBump to devtoolset-8 because apparently devtoolset-6 has been removed
Arran Cudbard-Bell [Tue, 17 Sep 2019 22:01:01 +0000 (17:01 -0500)] 
Bump to devtoolset-8 because apparently devtoolset-6 has been removed

6 years agorlm_python: Fix the wide_path changes made in 1eb569dcb4 (#2998)
Jorge Pereira [Tue, 17 Sep 2019 20:49:13 +0000 (17:49 -0300)] 
rlm_python: Fix the wide_path changes made in 1eb569dcb4 (#2998)

6 years agoInitialise a new X509 cert store, and populate it with the current cert and chain...
Arran Cudbard-Bell [Tue, 17 Sep 2019 20:42:47 +0000 (15:42 -0500)] 
Initialise a new X509 cert store, and populate it with the current cert and chain from the SSL *

This should, hopefully deal with the current brokeness of OCSP stapling as well as certificate chain agility issues, and dynamically loaded certificates.

6 years agoInstall the json library as part of the libfreeradius4 package
Arran Cudbard-Bell [Tue, 17 Sep 2019 20:04:34 +0000 (15:04 -0500)] 
Install the json library as part of the libfreeradius4 package

Probably wrong but then an awful lot of this needs to be redone

6 years agoDon't keep wide_path or wide_name around
Arran Cudbard-Bell [Tue, 17 Sep 2019 18:50:29 +0000 (13:50 -0500)] 
Don't keep wide_path or wide_name around

6 years agoPrefer whatever version python-config is, and then python3.
Arran Cudbard-Bell [Tue, 17 Sep 2019 18:50:09 +0000 (13:50 -0500)] 
Prefer whatever version python-config is, and then python3.

6 years agominor simplifications
Alan T. DeKok [Tue, 17 Sep 2019 18:27:19 +0000 (14:27 -0400)] 
minor simplifications

6 years ago"filter" is now like "update", too
Alan T. DeKok [Tue, 17 Sep 2019 14:56:26 +0000 (10:56 -0400)] 
"filter" is now like "update", too

6 years agoun-set special flag when we're done with update / map
Alan T. DeKok [Tue, 17 Sep 2019 14:31:25 +0000 (10:31 -0400)] 
un-set special flag when we're done with update / map

6 years agoit helps to stat() the file
Alan T. DeKok [Tue, 17 Sep 2019 13:59:24 +0000 (09:59 -0400)] 
it helps to stat() the file

6 years agomake cf_file_include iterative instead of recursive
Alan T. DeKok [Tue, 17 Sep 2019 13:10:15 +0000 (09:10 -0400)] 
make cf_file_include iterative instead of recursive

6 years agocheck max stack only if we're loading the file
Alan T. DeKok [Mon, 16 Sep 2019 23:36:05 +0000 (19:36 -0400)] 
check max stack only if we're loading the file

6 years agorename for clarity
Alan T. DeKok [Mon, 16 Sep 2019 22:36:07 +0000 (18:36 -0400)] 
rename for clarity

6 years agouse stack->bufsize instead of talloc_array_length
Alan T. DeKok [Mon, 16 Sep 2019 22:33:01 +0000 (18:33 -0400)] 
use stack->bufsize instead of talloc_array_length

6 years agocheck max stack depth too
Alan T. DeKok [Mon, 16 Sep 2019 21:16:39 +0000 (17:16 -0400)] 
check max stack depth too

6 years agomove map/update flags to stack frame
Alan T. DeKok [Mon, 16 Sep 2019 21:11:52 +0000 (17:11 -0400)] 
move map/update flags to stack frame

which incidentally also fixes issues with $INCLUDE in the middle
of an "update" section.  That may be a bad idea, but there's no
real reason why it should be impossible

6 years agomerge cf_file_include() with cf_section_read()
Alan T. DeKok [Mon, 16 Sep 2019 20:52:17 +0000 (16:52 -0400)] 
merge cf_file_include() with cf_section_read()

so that it's less code, and we don't have two mutually recusive
functions.