]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Alan T. DeKok [Sat, 18 May 2024 20:50:56 +0000 (16:50 -0400)]
allocate instance data even if the module doesn't need it
which lets the rest of the distinguish virtual attributes from
typos in xlat functions
Alan T. DeKok [Sat, 18 May 2024 20:50:17 +0000 (16:50 -0400)]
fix typo.
We loop until the content is non-space, not while the ptr is !NULL
Nick Porter [Tue, 5 Mar 2024 12:24:26 +0000 (12:24 +0000)]
Ubuntu 18.04 is EoL
Nick Porter [Tue, 5 Mar 2024 11:54:56 +0000 (11:54 +0000)]
Ensure fakeroot is available for `make deb`
Alan T. DeKok [Mon, 4 Mar 2024 21:02:15 +0000 (16:02 -0500)]
add necessary backslash. Fixes #5301
Alan T. DeKok [Sat, 17 Feb 2024 12:07:52 +0000 (07:07 -0500)]
use snprintf
Nick Porter [Fri, 29 Dec 2023 10:15:04 +0000 (10:15 +0000)]
Add TP Link dictionary
Alan T. DeKok [Thu, 7 Dec 2023 14:24:42 +0000 (09:24 -0500)]
improve exception handling. Helps with #5242
so that no python exceptions remain after the do_python_single call.
Otherwise the next request will immediately fail.
Patch from #5242, but separated out to keep commit history
a little clearer.
Alan T. DeKok [Thu, 7 Dec 2023 11:45:29 +0000 (06:45 -0500)]
don't delay proxied rejects from a real home server
Alan T. DeKok [Wed, 29 Nov 2023 15:25:48 +0000 (10:25 -0500)]
more notes on connection starvation
Alan T. DeKok [Wed, 15 Nov 2023 13:13:05 +0000 (08:13 -0500)]
print out the module instance name
Alan T. DeKok [Tue, 14 Nov 2023 21:56:48 +0000 (16:56 -0500)]
clarify message a bit
Alan T. DeKok [Wed, 8 Nov 2023 12:28:59 +0000 (13:28 +0100)]
this is for UDP home servers
Alan T. DeKok [Wed, 13 Jul 2022 00:30:57 +0000 (20:30 -0400)]
ensure that cp is initialized on every iteration through the loop
Alan T. DeKok [Tue, 31 Oct 2023 22:00:46 +0000 (18:00 -0400)]
reply packets use request authenticator for Message-Authenticator
Nick Porter [Thu, 31 Aug 2023 10:51:37 +0000 (11:51 +0100)]
Build with winbind on all RHEL >= 7
Alan T. DeKok [Thu, 17 Aug 2023 16:58:19 +0000 (12:58 -0400)]
word smithing
Alan T. DeKok [Thu, 17 Aug 2023 14:10:44 +0000 (10:10 -0400)]
fix warning messages
Alan T. DeKok [Thu, 17 Aug 2023 16:58:45 +0000 (12:58 -0400)]
note recent changes
Alan T. DeKok [Wed, 16 Aug 2023 13:01:36 +0000 (09:01 -0400)]
if there's no "server foo", then use "server default"
Alan T. DeKok [Thu, 10 Aug 2023 13:28:13 +0000 (09:28 -0400)]
update the year
Matthew Newton [Tue, 8 Aug 2023 18:43:50 +0000 (19:43 +0100)]
don't leave dangling pointer to a cancelled coa request
Alan T. DeKok [Tue, 8 Aug 2023 12:20:46 +0000 (08:20 -0400)]
add client configuration for PSK
Jorge Pereira [Wed, 2 Aug 2023 17:21:39 +0000 (14:21 -0300)]
Fix multiple typos in MongoDB query.conf (#5130)
Nick Porter [Thu, 27 Jul 2023 11:34:42 +0000 (12:34 +0100)]
Add BEGIN-VENDOR and END-VENDOR to Calix dictionary
bryan [Thu, 27 Jul 2023 05:24:06 +0000 (13:24 +0800)]
add Calix-Role in Calix Dictionary (#5124)
Alan T. DeKok [Thu, 22 Jun 2023 13:41:45 +0000 (09:41 -0400)]
as sent via email
Matthew Newton [Sun, 11 Jun 2023 22:59:18 +0000 (23:59 +0100)]
add debian 12 bookworm to CI
Matthew Newton [Tue, 20 Jun 2023 19:28:18 +0000 (20:28 +0100)]
don't stop on eapol_test compile warnings
Matthew Newton [Mon, 12 Jun 2023 13:02:57 +0000 (14:02 +0100)]
docker/crossbuild: backport Dockerfile updates from 3.2
commits:
9806381bd3 docker: remove duplicate lines
13091819c3 docker: remove obsolete OSes
d35586d463 generate dockerfiles from m4 templates
ac339f4731 docker: add debian 12 bookworm
2a89b55398 docker: add rocky9
37db20c784 crossbuild: remove centos8
dc67a0492c crossbuild: generate Dockerfiles from m4 templates
707e0eb90a crossbuild: add recent OSes
e4bccf5ef7 crossbuild: update docs
80670757cc crossbuild: don't set rpm BUILDDIR
e88c86b25b crossbuild: newer systems disable TLS1.1 but we need it for testing
deb77d22b0 CI: add job to check all crossbuild docker images work
720709d0b4 docker: use similar m4 template system as for crossbuild
Alan T. DeKok [Tue, 13 Jun 2023 15:11:52 +0000 (11:11 -0400)]
allow for EOL of UDP sockets, too.
which also helps when building without TCP.
Alan T. DeKok [Tue, 13 Jun 2023 15:03:52 +0000 (11:03 -0400)]
document nonblock=yes
Alan T. DeKok [Tue, 13 Jun 2023 14:58:53 +0000 (10:58 -0400)]
note recent changes
Alan T. DeKok [Tue, 13 Jun 2023 14:27:20 +0000 (10:27 -0400)]
fix compiler warning when building without TCP. Fixes #5054
Alan T. DeKok [Tue, 13 Jun 2023 14:09:30 +0000 (10:09 -0400)]
Auth Lost: Free the state's opaque and ctx storage. Fixes #5055
Matthew Newton [Mon, 12 Jun 2023 19:21:24 +0000 (20:21 +0100)]
CI: fix with latest mariadb 11 docker image
ref https://jira.mariadb.org/browse/MDBF-568
Alan T. DeKok [Thu, 8 Jun 2023 06:57:14 +0000 (08:57 +0200)]
document retries. Fixes #5040 / #5041
Alan T. DeKok [Wed, 7 Jun 2023 09:18:45 +0000 (11:18 +0200)]
free check_tmp after using it. Fixes #5035
Alan T. DeKok [Tue, 6 Jun 2023 06:11:22 +0000 (08:11 +0200)]
mark "inst" as unused, and relax checks a bit more
for now, we will only check if the EAP message length is correct.
This prevents "middle box" effect, where the protocol cannot be
upgraded, because middle boxes aren't upgraded.
There is a near-zero chance that EAP will be updated to allow
supplicants to send something other than 1 (Response). But for
general protocol correctness and paranoia, let's allow for that
Alan T. DeKok [Tue, 6 Jun 2023 05:54:36 +0000 (07:54 +0200)]
build without TLS
Alan T. DeKok [Tue, 6 Jun 2023 05:44:52 +0000 (07:44 +0200)]
allow for non-blocking TCP connections, too
Alan T. DeKok [Sat, 3 Jun 2023 15:10:44 +0000 (11:10 -0400)]
relax the pre_proxy checks a bit
to allow any EAP type, even if it currently doesn't make sense
Alan T. DeKok [Fri, 2 Jun 2023 13:54:19 +0000 (09:54 -0400)]
fix typo. #5026 and #5028
Alan T. DeKok [Wed, 26 Apr 2023 14:03:20 +0000 (10:03 -0400)]
add Error-Cause = Invalid EAP Packet (Ignored)
when rejecting EAP packets in the pre-proxy stage
Alan T. DeKok [Thu, 30 Mar 2023 02:23:35 +0000 (11:23 +0900)]
more checks and sanity
allow extended types
Alan T. DeKok [Wed, 29 Mar 2023 08:05:11 +0000 (17:05 +0900)]
check EAP header byte 0, too, and add debug messages
Alan T. DeKok [Wed, 29 Mar 2023 07:53:11 +0000 (16:53 +0900)]
add pre_proxy method which catches invalid EAP packets.
Because "._udp.local" is not a valid EAP message
Alan T. DeKok [Sun, 28 May 2023 12:39:38 +0000 (08:39 -0400)]
add check for FreeBSD
Matthew Newton [Fri, 26 May 2023 11:52:13 +0000 (12:52 +0100)]
but not these bits...
Matthew Newton [Fri, 26 May 2023 09:52:52 +0000 (10:52 +0100)]
backport RPM spec updates from 3.2
Matthew Newton [Fri, 26 May 2023 09:33:23 +0000 (10:33 +0100)]
CI: backport changes from v3.2.x
Alan T. DeKok [Fri, 26 May 2023 02:11:21 +0000 (22:11 -0400)]
configuration and scripts to test high load UDP -> TLS proxying
ported from v3.2.x as one large commit
Alan T. DeKok [Thu, 25 May 2023 20:38:30 +0000 (16:38 -0400)]
compile fixes
Alan T. DeKok [Thu, 25 May 2023 20:35:05 +0000 (16:35 -0400)]
check for blocking in TLS sockets.
Alan T. DeKok [Thu, 25 May 2023 20:27:12 +0000 (16:27 -0400)]
compile fixes
Alan T. DeKok [Thu, 25 May 2023 20:24:05 +0000 (16:24 -0400)]
updates. Helps with #5016
Alan T. DeKok [Thu, 25 May 2023 20:23:57 +0000 (16:23 -0400)]
updates from the WBA
Alan T. DeKok [Thu, 25 May 2023 20:12:03 +0000 (16:12 -0400)]
move documentation to be in a common location
Alan T. DeKok [Thu, 25 May 2023 20:10:01 +0000 (16:10 -0400)]
use correct name
Alan T. DeKok [Thu, 25 May 2023 19:50:43 +0000 (15:50 -0400)]
no need to build or call mutex functions if they're not needed
Alan T. DeKok [Thu, 25 May 2023 19:24:02 +0000 (15:24 -0400)]
check for blocking sockets, and do cleanups as necessary
Alan T. DeKok [Thu, 25 May 2023 19:23:39 +0000 (15:23 -0400)]
add write handler to event code
Alan T. DeKok [Thu, 25 May 2023 19:08:44 +0000 (15:08 -0400)]
just use sock->limit always
Alan T. DeKok [Thu, 25 May 2023 19:08:08 +0000 (15:08 -0400)]
add, parse, and set "nonblock" for listeners
Alan T. DeKok [Thu, 25 May 2023 19:07:26 +0000 (15:07 -0400)]
cleanups and move to common function
there's no need for duplication here
Alan T. DeKok [Thu, 25 May 2023 19:06:48 +0000 (15:06 -0400)]
add and set connection timeout to outbound listeners
Alan T. DeKok [Thu, 25 May 2023 19:03:57 +0000 (15:03 -0400)]
don't allow duplicates
and minor whitespace
Alan T. DeKok [Thu, 25 May 2023 19:02:49 +0000 (15:02 -0400)]
add connect_timeout for realms and set up for tracking listeners
Alan T. DeKok [Wed, 1 Feb 2023 19:38:53 +0000 (14:38 -0500)]
be more careful about session established. Fixes #4878
Alan T. DeKok [Thu, 25 May 2023 18:58:37 +0000 (14:58 -0400)]
add proxy_listener freeze / thaw API
Alan T. DeKok [Thu, 25 May 2023 18:53:38 +0000 (14:53 -0400)]
add "nonblock" configuration to home servers
Terry Burton [Fri, 27 Jan 2023 14:37:17 +0000 (14:37 +0000)]
stats: Make Status-Server stats attributes available within the virtual server (#4868)
Alan T. DeKok [Mon, 15 May 2023 19:08:12 +0000 (15:08 -0400)]
use correct assert. Fixes #4995
Alan T. DeKok [Mon, 15 May 2023 11:07:37 +0000 (07:07 -0400)]
note recent changes
Alan T. DeKok [Fri, 14 Apr 2023 14:42:37 +0000 (10:42 -0400)]
note that the msg_version is the TLS version
and therefore print it as hex
Alan T. DeKok [Mon, 17 Apr 2023 13:10:45 +0000 (09:10 -0400)]
as found on the net.
Alan T. DeKok [Thu, 20 Apr 2023 14:20:00 +0000 (10:20 -0400)]
note that we don't support "-=". Fixes #3475
Alan T. DeKok [Thu, 11 May 2023 08:13:32 +0000 (10:13 +0200)]
force packet type foo when running post-auth-type foo. Helps with #4980
Nick Porter [Thu, 11 May 2023 16:55:40 +0000 (17:55 +0100)]
Clear any old module instances before reloading
Avoids bursting memory usage when reloading large modules e.g. rlm_files
with large data files.
Alan T. DeKok [Mon, 15 May 2023 10:57:32 +0000 (06:57 -0400)]
call afr_atomic_queue_free() instead of talloc_free. Fixes #4987
Alan T. DeKok [Fri, 5 May 2023 07:29:03 +0000 (09:29 +0200)]
allow auth+acct for accounting packets, too
Nick Porter [Mon, 24 Apr 2023 13:37:37 +0000 (14:37 +0100)]
Debian 9 is EOL and no longer in repos
Alan T. DeKok [Fri, 7 Apr 2023 13:50:01 +0000 (09:50 -0400)]
give polite message about socket closing
Alan T. DeKok [Fri, 7 Apr 2023 12:11:18 +0000 (08:11 -0400)]
fix ASAN issues. Fixes #4968
Alan T. DeKok [Fri, 7 Apr 2023 02:09:41 +0000 (22:09 -0400)]
it helps to initialize mutexes.
Jorge Pereira [Thu, 16 Mar 2023 21:57:15 +0000 (18:57 -0300)]
Suppress GCC unknown pragma warnings in rlm_perl
Jorge Pereira [Thu, 16 Mar 2023 21:56:34 +0000 (18:56 -0300)]
Backport 'DIAG_UNKNOWN_PRAGMAS' macro from v4
Jorge Pereira [Thu, 9 Mar 2023 19:05:20 +0000 (16:05 -0300)]
Backport math.h from v4
Jorge Pereira [Thu, 9 Mar 2023 19:05:52 +0000 (16:05 -0300)]
Fix runtime LSAN/ASAN error in src/lib/atomic_queue.c
Such error:
runtime error: member access within misaligned address 0x7f0e163fe860
for type 'fr_atomic_queue_t' (aka 'struct fr_atomic_queue_t'),
which requires 128 byte alignment 0x7f0e163fe860: note: pointer points here)
In that case, it was necessary backport talloc_aligned_array()
Jorge Pereira [Tue, 28 Mar 2023 23:59:24 +0000 (20:59 -0300)]
Fix LSAN/ASAN error in rlm_otp
Such error:
src/modules/rlm_otp/otp_pw_valid.c:73:9: error: argument 'passcode' of type 'char[48]' with mismatched bound [-Werror,-Warray-parameter]
char passcode[OTP_MAX_PASSCODE_LEN + 1])
^
src/modules/rlm_otp/extern.h:67:72: note: previously declared as 'char[]' here
int otp_pw_valid(REQUEST *, int, char const *, rlm_otp_t const *, char []);
Jorge Pereira [Wed, 15 Mar 2023 19:13:23 +0000 (16:13 -0300)]
Fix mismatched bound size in eapsim_checkmac()
Jorge Pereira [Tue, 21 Mar 2023 22:05:12 +0000 (19:05 -0300)]
Fix conflict test radiusd instances
Let's do it separately avoiding to conflict with the task 'radiusd.pid' vs
the other instance called by the same by 'tests.eap'
Jorge Pereira [Thu, 23 Mar 2023 00:10:20 +0000 (21:10 -0300)]
Fix runtime LSAN/ASAN error in command.c
Such error:
src/main/command.c:185:12: runtime error: member access within null
pointer of type 'struct sockaddr_un'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
src/main/command.c:185:12 in
Jorge Pereira [Tue, 14 Mar 2023 21:36:01 +0000 (18:36 -0300)]
Fix heap-buffer-overflow in pap_auth_pbkdf2_parse()
==
3061536 ==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6100000053f9 at pc 0x7f3eb4ff6bbe bp 0x7fff630b7770 sp 0x7fff630b7768
READ of size 1 at 0x6100000053f9 thread T0
#0 0x7f3eb4ff6bbd in strlcpy /home/jpereira/Devel/FreeRADIUS/freeradius-server-v3.2.x.git-linux/src/lib/strlcpy.c:56:10
Jorge Pereira [Thu, 16 Mar 2023 16:12:43 +0000 (13:12 -0300)]
Fix memory leak in client_add()
Such error when we run: radiusd -CX
Configuration appears to be OK
Allocated memory at time of report:
Current state of talloced memory:
full talloc report on 'null_context' (total 1057 bytes in 4 blocks)
autofree_context contains 1 bytes in 2 blocks (ref 0) 0x608000000400
bool contains 1 bytes in 1 blocks (ref 0) 0x60b000044a90
RADCLIENT_LIST contains 1056 bytes in 1 blocks (ref 0) 0x6190000032e0
=================================================================
==43730==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 1152 byte(s) in 1 object(s) allocated from:
#0 0x5603d1a170be in malloc (/__w/freeradius-server/freeradius-server/build/bin/local/radiusd+0x20b0be) (BuildId:
acbe3a0941626cf6f01ae6b2c12df877fb8fc009 )
#1 0x7f2c07e40c86 in _talloc_zero (/lib/x86_64-linux-gnu/libtalloc.so.2+0x6c86) (BuildId:
f3c1074a602981acb4683b4df6b7733b104ba7d4 )
#2 0x5603d1a62780 in client_list_init (/__w/freeradius-server/freeradius-server/build/bin/local/radiusd+0x256780) (BuildId:
acbe3a0941626cf6f01ae6b2c12df877fb8fc009 )
#3 0x5603d1a62a4a in client_add (/__w/freeradius-server/freeradius-server/build/bin/local/radiusd+0x256a4a) (BuildId:
acbe3a0941626cf6f01ae6b2c12df877fb8fc009 )
#4 0x5603d1a6b713 in client_list_parse_section (/__w/freeradius-server/freeradius-server/build/bin/local/radiusd+0x25f713) (BuildId:
acbe3a0941626cf6f01ae6b2c12df877fb8fc009 )
#5 0x5603d1ae8532 in main_config_init (/__w/freeradius-server/freeradius-server/build/bin/local/radiusd+0x2dc532) (BuildId:
acbe3a0941626cf6f01ae6b2c12df877fb8fc009 )
#6 0x5603d1b45bc4 in main (/__w/freeradius-server/freeradius-server/build/bin/local/radiusd+0x339bc4) (BuildId:
acbe3a0941626cf6f01ae6b2c12df877fb8fc009 )
#7 0x7f2c07981082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082) (BuildId:
1878e6b475720c7c51969e69ab2d276fae6d1dee )
#8 0x5603d19924fd in _start (/__w/freeradius-server/freeradius-server/build/bin/local/radiusd+0x1864fd) (BuildId:
acbe3a0941626cf6f01ae6b2c12df877fb8fc009 )
SUMMARY: AddressSanitizer: 1152 byte(s) leaked in 1 allocation(s).
Jorge Pereira [Wed, 15 Mar 2023 19:01:38 +0000 (16:01 -0300)]
ci: Bump LLVM/CLANG for 15
Matthew Newton [Thu, 23 Mar 2023 12:33:25 +0000 (12:33 +0000)]
CI: clearer versions
Jorge Pereira [Mon, 3 Apr 2023 22:48:36 +0000 (19:48 -0300)]
ci: Backport .github/workflows/ci-rpm.yml from v3.2.x
Alan T. DeKok [Thu, 23 Mar 2023 17:23:57 +0000 (13:23 -0400)]
$(Q) -> ${Q}
Jorge Pereira [Tue, 28 Mar 2023 23:21:32 +0000 (20:21 -0300)]
note recent changes