]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
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.
Arran Cudbard-Bell [Wed, 25 Sep 2019 10:57:28 +0000 (05:57 -0500)]
More documentation for return codes
Arran Cudbard-Bell [Wed, 25 Sep 2019 10:51:54 +0000 (05:51 -0500)]
s/userlock/disallow/g
A more generic "authorization failed" rcode.
Arran Cudbard-Bell [Wed, 25 Sep 2019 00:26:44 +0000 (19:26 -0500)]
The prefix types are internal, definitely not specific to RADIUS
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
Alan T. DeKok [Wed, 25 Sep 2019 00:45:04 +0000 (20:45 -0400)]
add a cast
Arran Cudbard-Bell [Tue, 24 Sep 2019 21:54:20 +0000 (16:54 -0500)]
Specify minimum buffer sizes
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.
Alan T. DeKok [Tue, 24 Sep 2019 13:26:33 +0000 (09:26 -0400)]
add fr_unix_time to distinguish from fr_time_t
Alan T. DeKok [Tue, 24 Sep 2019 12:33:39 +0000 (08:33 -0400)]
remove use of time_t and time()
Arran Cudbard-Bell [Tue, 24 Sep 2019 11:00:01 +0000 (06:00 -0500)]
Various fixups
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
Alan T. DeKok [Tue, 24 Sep 2019 00:33:56 +0000 (20:33 -0400)]
typo. I guess no one uses this...
Arran Cudbard-Bell [Mon, 23 Sep 2019 19:14:50 +0000 (14:14 -0500)]
Move exercises to Turtorials and add copyright notices
Arran Cudbard-Bell [Mon, 23 Sep 2019 18:51:11 +0000 (13:51 -0500)]
Add protocols doc dir
Arran Cudbard-Bell [Mon, 23 Sep 2019 18:48:52 +0000 (13:48 -0500)]
Remove the rlm dir
Alan T. DeKok [Mon, 23 Sep 2019 18:41:04 +0000 (14:41 -0400)]
tests for encode / decode of time_delta
Alan T. DeKok [Mon, 23 Sep 2019 18:39:18 +0000 (14:39 -0400)]
allow encoding time_delta in RADIUS
Alan T. DeKok [Mon, 23 Sep 2019 18:38:55 +0000 (14:38 -0400)]
time_delta is a numerical type, too
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"
Alan T. DeKok [Mon, 23 Sep 2019 15:54:39 +0000 (11:54 -0400)]
allow encoding / decoding and casting of type 'time_delta'
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
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.
Arran Cudbard-Bell [Mon, 23 Sep 2019 03:26:00 +0000 (22:26 -0500)]
Ignore build products
Arran Cudbard-Bell [Mon, 23 Sep 2019 03:25:52 +0000 (22:25 -0500)]
Merge training exercises with documentation
Arran Cudbard-Bell [Sun, 22 Sep 2019 23:56:09 +0000 (18:56 -0500)]
More reorg
Arran Cudbard-Bell [Sun, 22 Sep 2019 23:38:23 +0000 (18:38 -0500)]
Reorganise howto files
Arran Cudbard-Bell [Sun, 22 Sep 2019 21:47:43 +0000 (16:47 -0500)]
Tweaks
Arran Cudbard-Bell [Sun, 22 Sep 2019 21:16:04 +0000 (16:16 -0500)]
Finish edits to the ldapsearch doc
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 .
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
Arran Cudbard-Bell [Sat, 21 Sep 2019 16:23:15 +0000 (11:23 -0500)]
Typos
Arran Cudbard-Bell [Sat, 21 Sep 2019 16:20:06 +0000 (11:20 -0500)]
Almost done...
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
Arran Cudbard-Bell [Sat, 21 Sep 2019 15:52:49 +0000 (10:52 -0500)]
Closing parens
Arran Cudbard-Bell [Sat, 21 Sep 2019 15:51:58 +0000 (10:51 -0500)]
Fix links. Github doesn't respect symlinks unfortunately
Arran Cudbard-Bell [Fri, 20 Sep 2019 20:06:04 +0000 (15:06 -0500)]
Goddamn OpenSSL...
Arran Cudbard-Bell [Fri, 20 Sep 2019 17:08:10 +0000 (12:08 -0500)]
unused things..
Arran Cudbard-Bell [Fri, 20 Sep 2019 16:51:47 +0000 (11:51 -0500)]
More stupidity *sigh*
Arran Cudbard-Bell [Fri, 20 Sep 2019 16:37:53 +0000 (11:37 -0500)]
Should return int
Arran Cudbard-Bell [Fri, 20 Sep 2019 16:36:03 +0000 (11:36 -0500)]
Shut up stupid static analysis
Arran Cudbard-Bell [Fri, 20 Sep 2019 16:30:23 +0000 (11:30 -0500)]
Doesn't do anything...
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*
Arran Cudbard-Bell [Fri, 20 Sep 2019 16:23:18 +0000 (11:23 -0500)]
Redundant and apparently not used anywhere...
Arran Cudbard-Bell [Fri, 20 Sep 2019 14:55:53 +0000 (09:55 -0500)]
Add LGTM badge
Arran Cudbard-Bell [Fri, 20 Sep 2019 14:42:32 +0000 (09:42 -0500)]
Add header guards, fix typo in license boilerplate
Marcus Sundberg [Fri, 20 Sep 2019 10:14:55 +0000 (12:14 +0200)]
Sync dictionary.aptilo with latest official dictionary
Arran Cudbard-Bell [Thu, 19 Sep 2019 20:52:22 +0000 (15:52 -0500)]
More LDAP howto, WIP
Arran Cudbard-Bell [Thu, 19 Sep 2019 20:14:08 +0000 (15:14 -0500)]
Whitespace
Arran Cudbard-Bell [Thu, 19 Sep 2019 20:09:25 +0000 (15:09 -0500)]
Cleanup more ascend stuff
Arran Cudbard-Bell [Thu, 19 Sep 2019 19:56:35 +0000 (14:56 -0500)]
Doc update for LDAP howto
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
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
Arran Cudbard-Bell [Thu, 19 Sep 2019 16:57:07 +0000 (11:57 -0500)]
Use localtime_r
Arran Cudbard-Bell [Thu, 19 Sep 2019 13:33:09 +0000 (08:33 -0500)]
Actually free the virtual server trees
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*
Arran Cudbard-Bell [Thu, 19 Sep 2019 13:28:02 +0000 (08:28 -0500)]
Fix lgtm warnings in prepaid.py
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.
Alan T. DeKok [Wed, 18 Sep 2019 21:44:06 +0000 (17:44 -0400)]
add "clean.coverage" and try fixing dependencies
Matthew Newton [Wed, 18 Sep 2019 20:55:37 +0000 (20:55 +0000)]
crossbuild: debian9->10 in common image list
Matthew Newton [Wed, 18 Sep 2019 20:55:04 +0000 (20:55 +0000)]
crossbuild: update help
Arran Cudbard-Bell [Wed, 18 Sep 2019 19:45:42 +0000 (14:45 -0500)]
Refresh patch
Arran Cudbard-Bell [Wed, 18 Sep 2019 19:35:27 +0000 (14:35 -0500)]
tests.ok no longer produced by anything
Matthew Newton [Wed, 18 Sep 2019 19:13:57 +0000 (19:13 +0000)]
crossbuild: add 'refresh' to push latest commits into image
Alan T. DeKok [Wed, 18 Sep 2019 19:15:38 +0000 (15:15 -0400)]
refresh patch
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
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
Arran Cudbard-Bell [Wed, 18 Sep 2019 18:34:42 +0000 (13:34 -0500)]
Fix header in docker files
Arran Cudbard-Bell [Wed, 18 Sep 2019 18:17:56 +0000 (13:17 -0500)]
Fix debian patch
Jorge Pereira [Wed, 18 Sep 2019 17:51:36 +0000 (14:51 -0300)]
docker: Add steps to install the dependencies to documentation build (#2957)
Arran Cudbard-Bell [Wed, 18 Sep 2019 17:26:01 +0000 (12:26 -0500)]
Nope, still too stupid
Arran Cudbard-Bell [Wed, 18 Sep 2019 16:33:16 +0000 (11:33 -0500)]
Typo
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
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
Arran Cudbard-Bell [Wed, 18 Sep 2019 16:06:17 +0000 (11:06 -0500)]
As per comment
Arran Cudbard-Bell [Wed, 18 Sep 2019 15:41:53 +0000 (10:41 -0500)]
RTLD_SELF isn't vailable on Linux
Arran Cudbard-Bell [Wed, 18 Sep 2019 15:34:28 +0000 (10:34 -0500)]
Significantly better way of getting the rlm_python path
Matt Rose [Wed, 18 Sep 2019 14:51:53 +0000 (10:51 -0400)]
workaround for https://bugs.centos.org/view.php?id=14773 (#3000)
Arran Cudbard-Bell [Wed, 18 Sep 2019 14:26:30 +0000 (09:26 -0500)]
If python_dlhandle is NULL, don't close it
Alan T. DeKok [Wed, 18 Sep 2019 13:50:30 +0000 (09:50 -0400)]
commented-out config items use tabs, not two spaces
Arran Cudbard-Bell [Tue, 17 Sep 2019 22:58:58 +0000 (17:58 -0500)]
I guess here too
Arran Cudbard-Bell [Tue, 17 Sep 2019 22:56:06 +0000 (17:56 -0500)]
Stupid centos
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.
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
Jorge Pereira [Tue, 17 Sep 2019 20:49:13 +0000 (17:49 -0300)]
rlm_python: Fix the wide_path changes made in
1eb569dcb4 (#2998)
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.
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
Arran Cudbard-Bell [Tue, 17 Sep 2019 18:50:29 +0000 (13:50 -0500)]
Don't keep wide_path or wide_name around
Arran Cudbard-Bell [Tue, 17 Sep 2019 18:50:09 +0000 (13:50 -0500)]
Prefer whatever version python-config is, and then python3.
Alan T. DeKok [Tue, 17 Sep 2019 18:27:19 +0000 (14:27 -0400)]
minor simplifications
Alan T. DeKok [Tue, 17 Sep 2019 14:56:26 +0000 (10:56 -0400)]
"filter" is now like "update", too
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
Alan T. DeKok [Tue, 17 Sep 2019 13:59:24 +0000 (09:59 -0400)]
it helps to stat() the file
Alan T. DeKok [Tue, 17 Sep 2019 13:10:15 +0000 (09:10 -0400)]
make cf_file_include iterative instead of recursive
Alan T. DeKok [Mon, 16 Sep 2019 23:36:05 +0000 (19:36 -0400)]
check max stack only if we're loading the file
Alan T. DeKok [Mon, 16 Sep 2019 22:36:07 +0000 (18:36 -0400)]
rename for clarity
Alan T. DeKok [Mon, 16 Sep 2019 22:33:01 +0000 (18:33 -0400)]
use stack->bufsize instead of talloc_array_length
Alan T. DeKok [Mon, 16 Sep 2019 21:16:39 +0000 (17:16 -0400)]
check max stack depth too
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
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.