]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
2 years agotypos
Alan T. DeKok [Wed, 28 Dec 2022 21:53:06 +0000 (16:53 -0500)] 
typos

2 years agonote recent changes
Alan T. DeKok [Wed, 14 Dec 2022 20:44:44 +0000 (15:44 -0500)] 
note recent changes

2 years agoAdd TLS-PSK-Identity to sock->certs
Alan T. DeKok [Wed, 14 Dec 2022 20:32:56 +0000 (15:32 -0500)] 
Add TLS-PSK-Identity to sock->certs

2 years agoReplace magic values in rlm_pap.c with symbolic constants (#4832)
Herwin [Fri, 30 Dec 2022 15:47:25 +0000 (16:47 +0100)] 
Replace magic values in rlm_pap.c with symbolic constants (#4832)

2 years agogive better error messages for %{listen:TLS-*}
Alan T. DeKok [Wed, 14 Dec 2022 16:19:03 +0000 (11:19 -0500)] 
give better error messages for %{listen:TLS-*}

2 years agofix various build warnings with newer compilers
Alan T. DeKok [Wed, 14 Dec 2022 16:16:46 +0000 (11:16 -0500)] 
fix various build warnings with newer compilers

2 years agodon't remove the .d file, it's an output file
Alan T. DeKok [Fri, 9 Dec 2022 16:17:05 +0000 (11:17 -0500)] 
don't remove the .d file, it's an output file

which is needed by the target rule

2 years agoHandle changes in libcurl options
Nick Porter [Fri, 9 Dec 2022 13:22:05 +0000 (13:22 +0000)] 
Handle changes in libcurl options

2 years agoProtect calls to rlm_files where no packet for check items exists
Nick Porter [Mon, 5 Dec 2022 13:59:42 +0000 (13:59 +0000)] 
Protect calls to rlm_files where no packet for check items exists

This can happen, for exanple, if proxying fails and files is called in
the Fail-Authentication section.

2 years agoPostgreSQL can distinguish between duplicate key and other erros
Nick Porter [Fri, 2 Dec 2022 14:14:04 +0000 (14:14 +0000)] 
PostgreSQL can distinguish between duplicate key and other erros

2 years agoEnsure responses are sent to accounting packets written to detail files
Nick Porter [Thu, 1 Dec 2022 17:51:00 +0000 (17:51 +0000)] 
Ensure responses are sent to accounting packets written to detail files

2 years agoAdd basic VS Code config
Nick Porter [Thu, 1 Dec 2022 14:42:46 +0000 (14:42 +0000)] 
Add basic VS Code config

2 years agonotes on setcap
Alan T. DeKok [Wed, 30 Nov 2022 12:26:41 +0000 (07:26 -0500)] 
notes on setcap

2 years agowhitespace
Alan T. DeKok [Wed, 30 Nov 2022 12:22:10 +0000 (07:22 -0500)] 
whitespace

2 years agoremove useless debug message
Alan T. DeKok [Wed, 30 Nov 2022 12:20:39 +0000 (07:20 -0500)] 
remove useless debug message

2 years agoand the same for protocols
Matthew Newton [Tue, 29 Nov 2022 21:18:03 +0000 (21:18 +0000)] 
and the same for protocols

2 years agoAdd module README.md files
Matthew Newton [Tue, 29 Nov 2022 15:47:30 +0000 (15:47 +0000)] 
Add module README.md files

2 years agomore docs, add tracking, and send packets more quickly
Alan T. DeKok [Tue, 29 Nov 2022 15:54:41 +0000 (10:54 -0500)] 
more docs, add tracking, and send packets more quickly

2 years agoEnsure acctupdatetime is always populated
Nick Porter [Fri, 18 Nov 2022 16:56:01 +0000 (16:56 +0000)] 
Ensure acctupdatetime is always populated

This helps with queries used to identify sessions which have stopped but
no accounting stop has been received.

2 years agouse "data" from tree, not "context" from caller
Alan T. DeKok [Mon, 14 Nov 2022 16:26:06 +0000 (11:26 -0500)] 
use "data" from tree, not "context" from caller

2 years agouse rad_assert
Alan T. DeKok [Fri, 11 Nov 2022 13:10:43 +0000 (13:10 +0000)] 
use rad_assert

2 years agoshut down listeners which have connection errors
Alan T. DeKok [Fri, 11 Nov 2022 13:09:10 +0000 (13:09 +0000)] 
shut down listeners which have connection errors

2 years agomove error message to more logical place
Alan T. DeKok [Fri, 11 Nov 2022 12:56:16 +0000 (12:56 +0000)] 
move error message to more logical place

2 years agolet's not be completely crazy.
Alan T. DeKok [Fri, 11 Nov 2022 12:55:48 +0000 (12:55 +0000)] 
let's not be completely crazy.

we stop if the connect timeout has fired.

2 years agolets print helpful messages instead of asserting
Alan T. DeKok [Fri, 11 Nov 2022 12:40:30 +0000 (12:40 +0000)] 
lets print helpful messages instead of asserting

2 years agoUse rad_assert to silence clang scan
Nick Porter [Fri, 11 Nov 2022 08:58:54 +0000 (08:58 +0000)] 
Use rad_assert to silence clang scan

2 years agoMove error handling to outside #ifdef WITH_TLS
Nick Porter [Fri, 11 Nov 2022 08:47:01 +0000 (08:47 +0000)] 
Move error handling to outside #ifdef WITH_TLS

2 years agoclose FD on error in more cases
Alan T. DeKok [Thu, 10 Nov 2022 17:01:13 +0000 (17:01 +0000)] 
close FD on error in more cases

2 years agoset the host name to the actual host name
Alan T. DeKok [Thu, 10 Nov 2022 16:56:36 +0000 (16:56 +0000)] 
set the host name to the actual host name

2 years agomore asserts and updated error messages
Alan T. DeKok [Thu, 10 Nov 2022 16:44:30 +0000 (16:44 +0000)] 
more asserts and updated error messages

2 years agoRevert "proxy: Fix issue to process empty data (#4797)"
Alan T. DeKok [Thu, 10 Nov 2022 16:42:12 +0000 (16:42 +0000)] 
Revert "proxy: Fix issue to process empty data (#4797)"

This reverts commit fb8492a560cac19f8bc47dd4fc3b7259dfbaba5c.

sock->ssn must NEVER be NULL for a TLS socket.

2 years agoshow OpenSSL error, too
Alan T. DeKok [Thu, 10 Nov 2022 16:26:01 +0000 (16:26 +0000)] 
show OpenSSL error, too

2 years agoproxy: Fix issue to process empty data (#4797)
Jorge Pereira [Thu, 10 Nov 2022 15:08:13 +0000 (12:08 -0300)] 
proxy: Fix issue to process empty data (#4797)

2 years agoFix typo in fr_nonblock() call (#4796)
Jorge Pereira [Thu, 10 Nov 2022 15:07:58 +0000 (12:07 -0300)] 
Fix typo in fr_nonblock() call (#4796)

2 years agouse macro for home server is dead
Alan T. DeKok [Wed, 9 Nov 2022 18:52:28 +0000 (18:52 +0000)] 
use macro for home server is dead

2 years agoremove unnecessary "break"
Alan T. DeKok [Wed, 9 Nov 2022 18:52:13 +0000 (18:52 +0000)] 
remove unnecessary "break"

2 years agoAdd header option to linelog
Nick Porter [Tue, 1 Nov 2022 15:55:40 +0000 (15:55 +0000)] 
Add header option to linelog

Useful, for example, if outputting a CSV style file which needs headers
to parse correctly.

2 years agoAmend exfile_open() to optionally return the offset in the opened file
Nick Porter [Tue, 1 Nov 2022 15:50:49 +0000 (15:50 +0000)] 
Amend exfile_open() to optionally return the offset in the opened file

Allow for detecting a new / blank file so headers can be added.

2 years agoRevert "check for multiple "down" states. Fixes #4790"
Alan T. DeKok [Thu, 3 Nov 2022 15:10:15 +0000 (15:10 +0000)] 
Revert "check for multiple "down" states.  Fixes #4790"

This reverts commit c1a575e48bee09b01103c2e38c75269d2ebac339.

after review, not needed

2 years agocheck for multiple "down" states. Fixes #4790
Alan T. DeKok [Thu, 3 Nov 2022 13:21:22 +0000 (13:21 +0000)] 
check for multiple "down" states.  Fixes #4790

2 years agoprint error message
Alan T. DeKok [Thu, 3 Nov 2022 11:24:33 +0000 (11:24 +0000)] 
print error message

2 years agoresync. Helps with #4570
Alan T. DeKok [Thu, 3 Nov 2022 11:24:15 +0000 (11:24 +0000)] 
resync.  Helps with #4570

2 years agosync with dictionaries. Heklps with #4790
Alan T. DeKok [Thu, 3 Nov 2022 11:15:31 +0000 (11:15 +0000)] 
sync with dictionaries.  Heklps with #4790

3 years agoctype macros should take explicitly unsigned input
Alan T. DeKok [Mon, 31 Oct 2022 20:52:56 +0000 (16:52 -0400)] 
ctype macros should take explicitly unsigned input

to avoid chars with high bits being converted to negative numbers

perl -p -i -e 's/(tolower|toupper|isupper|islower|isdigit|isalpha|isspace|isxdigit)\(\s*\*/${1}((uint8_t) */g' $(find . -name "*.[ch]" -print)
perl -p -i -e 's/(tolower|toupper|isupper|islower|isdigit|isalpha|isspace|isxdigit)\(\(int\)/${1}((uint8_t)/g' $(find . -name "*.[ch]" -print)

Manual port of commit d80731fd1ff, as some code has changed

3 years agoWe need to have cyrus-sasl-devel installed when building the LDAP packages otherwise...
Arran Cudbard-Bell [Mon, 31 Oct 2022 17:05:49 +0000 (11:05 -0600)] 
We need to have cyrus-sasl-devel installed when building the LDAP packages otherwise we don't get SASL support

3 years agoCI: Remove deprecated set-output
Nick Porter [Mon, 31 Oct 2022 16:02:42 +0000 (16:02 +0000)] 
CI: Remove deprecated set-output

3 years agoCI: Ensure git-lfs is installed
Nick Porter [Mon, 31 Oct 2022 11:40:15 +0000 (11:40 +0000)] 
CI: Ensure git-lfs is installed

3 years agoUpdate CI actions to node16 versions
Nick Porter [Mon, 31 Oct 2022 11:21:52 +0000 (11:21 +0000)] 
Update CI actions to node16 versions

3 years agoAvoid spurious error about absolute path
Nick Porter [Mon, 31 Oct 2022 11:06:41 +0000 (11:06 +0000)] 
Avoid spurious error about absolute path

3 years agoOnly debug packets when condition matches
Nick Porter [Mon, 31 Oct 2022 11:04:11 +0000 (11:04 +0000)] 
Only debug packets when condition matches

radius_evaluate_cond() returns -2 for attribute not found - which was
causing packets without the required attributes to appear in conditional
debug output.

3 years agomove nonbloc setting to inside WITH_TLS
Alan T. DeKok [Fri, 28 Oct 2022 13:15:54 +0000 (09:15 -0400)] 
move nonbloc setting to inside WITH_TLS

and make it "or".  So that it can be set in either the main
proxy listen configuration, or in the home server.

3 years agoallow setting of nonblock for homeservers (#4787)
Jorge Pereira [Fri, 28 Oct 2022 13:05:47 +0000 (10:05 -0300)] 
allow setting of nonblock for homeservers (#4787)

3 years agoonly for TLS
Alan T. DeKok [Wed, 26 Oct 2022 12:13:26 +0000 (08:13 -0400)] 
only for TLS

3 years agoforcibly remove blocked sockets. Helps with #3501
Alan T. DeKok [Wed, 26 Oct 2022 11:58:06 +0000 (07:58 -0400)] 
forcibly remove blocked sockets.  Helps with #3501

3 years agonote recent changes
Alan T. DeKok [Wed, 26 Oct 2022 11:52:53 +0000 (07:52 -0400)] 
note recent changes

3 years agofix cert order only for lookup=0. Fixes #4785
Alan T. DeKok [Wed, 26 Oct 2022 11:31:43 +0000 (07:31 -0400)] 
fix cert order only for lookup=0.  Fixes #4785

3 years agoset partial chain always. Helps with #4785
Alan T. DeKok [Tue, 25 Oct 2022 14:51:02 +0000 (10:51 -0400)] 
set partial chain always.  Helps with #4785

3 years agomove partial chain set to after set cert store. Should fix #4753
Alan T. DeKok [Tue, 25 Oct 2022 12:59:53 +0000 (08:59 -0400)] 
move partial chain set to after set cert store.  Should fix #4753

3 years agocheck sock->home
Alan T. DeKok [Mon, 24 Oct 2022 15:19:07 +0000 (11:19 -0400)] 
check sock->home

3 years agosock->home may be NULL
Alan T. DeKok [Mon, 24 Oct 2022 13:22:36 +0000 (09:22 -0400)] 
sock->home may be NULL

3 years agoAvoid null pointer dereference
Nick Porter [Fri, 21 Oct 2022 13:51:49 +0000 (14:51 +0100)] 
Avoid null pointer dereference

3 years agoFix typo (#4780)
Jorge Pereira [Fri, 21 Oct 2022 13:01:51 +0000 (10:01 -0300)] 
Fix typo (#4780)

3 years agocheck for tree. Helps with #3501
Alan T. DeKok [Fri, 21 Oct 2022 11:41:43 +0000 (07:41 -0400)] 
check for tree.  Helps with #3501

3 years agoset socket limit from home server for TCP connections
Alan T. DeKok [Thu, 20 Oct 2022 19:21:03 +0000 (15:21 -0400)] 
set socket limit from home server for TCP connections

idle timeout, lifetime, etc.

3 years agoTrack TLS sockets in the home server.
Alan T. DeKok [Thu, 20 Oct 2022 16:08:27 +0000 (12:08 -0400)] 
Track TLS sockets in the home server.

So that when the home server is marked dead, we can clean up
any blocked sockets.

We don't yet have a timer to clean up blocked sockets when the
home server is still alive.

3 years agoonly used by TLS code for now
Alan T. DeKok [Wed, 19 Oct 2022 15:07:33 +0000 (11:07 -0400)] 
only used by TLS code for now

3 years agoupdates
Alan T. DeKok [Wed, 19 Oct 2022 13:46:21 +0000 (09:46 -0400)] 
updates

from https://www.juniper.net/documentation/us/en/software/junos/subscriber-mgmt-sessions/topics/topic-map/dhcp-options-radius-server.html

3 years agofreeze / thaw proxy sockets when they're blocked
Alan T. DeKok [Tue, 18 Oct 2022 17:24:46 +0000 (13:24 -0400)] 
freeze / thaw proxy sockets when they're blocked

3 years agoadd socket freeze / thaw callbacks
Alan T. DeKok [Tue, 18 Oct 2022 17:24:17 +0000 (13:24 -0400)] 
add socket freeze / thaw callbacks

for proxy sockets.  Which is mostly thread-safe...

3 years agoadd callback for kqueue write handler
Alan T. DeKok [Tue, 18 Oct 2022 17:19:47 +0000 (13:19 -0400)] 
add callback for kqueue write handler

3 years agoFallback to uname -n on missing hostname. Fixes #4771
Alan T. DeKok [Tue, 18 Oct 2022 17:11:48 +0000 (13:11 -0400)] 
Fallback to uname -n on missing hostname.  Fixes #4771

3 years agoremove unused
Alan T. DeKok [Mon, 17 Oct 2022 12:20:35 +0000 (08:20 -0400)] 
remove unused

3 years agotypo
Alan T. DeKok [Sun, 16 Oct 2022 20:02:56 +0000 (16:02 -0400)] 
typo

3 years agocache read_fds instead of recalculating it
Alan T. DeKok [Sun, 16 Oct 2022 19:48:44 +0000 (15:48 -0400)] 
cache read_fds instead of recalculating it

3 years agoCI: clean up home directory before run
Matthew Newton [Sun, 16 Oct 2022 18:12:15 +0000 (19:12 +0100)] 
CI: clean up home directory before run

3 years agoallow setting of "nonblock" for TLS connections
Alan T. DeKok [Sun, 16 Oct 2022 13:23:39 +0000 (09:23 -0400)] 
allow setting of "nonblock" for TLS connections

3 years agowrite all of the TLS data as one big blob
Alan T. DeKok [Sun, 16 Oct 2022 13:12:06 +0000 (09:12 -0400)] 
write all of the TLS data as one big blob

3 years agowrite to the socket if there's data to write
Alan T. DeKok [Sun, 16 Oct 2022 12:55:13 +0000 (08:55 -0400)] 
write to the socket if there's data to write

3 years agouse common function instead of duplicating packets
Alan T. DeKok [Sun, 16 Oct 2022 12:44:24 +0000 (08:44 -0400)] 
use common function instead of duplicating packets

3 years agoExport thread details in statistics (#4770)
Terry Burton [Sat, 15 Oct 2022 11:56:11 +0000 (12:56 +0100)] 
Export thread details in statistics (#4770)

Export thread details in statistics

    radmin> stats threads
    threads_active 2
    threads_total 5
    threads_max 32

3 years agoallow User-Name and CUI in post-proxy filtering
Alan T. DeKok [Wed, 12 Oct 2022 13:05:52 +0000 (09:05 -0400)] 
allow User-Name and CUI in post-proxy filtering

which is also needed for roaming environments

3 years agoallow Operator-Name and Called-Station-Id
Alan T. DeKok [Wed, 12 Oct 2022 13:02:59 +0000 (09:02 -0400)] 
allow Operator-Name and Called-Station-Id

which are needed for various roaming scenarios

3 years agoImprove queries for processing radacct into periodic usage data
Nick Porter [Wed, 12 Oct 2022 10:37:17 +0000 (11:37 +0100)] 
Improve queries for processing radacct into periodic usage data

Removing `OR` from the query allows better index usage

3 years agoTypo
Nick Porter [Wed, 12 Oct 2022 10:32:55 +0000 (11:32 +0100)] 
Typo

3 years agoupdate docs to be in line with functionality
Alan T. DeKok [Tue, 11 Oct 2022 22:57:04 +0000 (18:57 -0400)] 
update docs to be in line with functionality

3 years agowhitespace
Alan T. DeKok [Tue, 11 Oct 2022 18:43:59 +0000 (14:43 -0400)] 
whitespace

3 years agoas found on the net
Alan T. DeKok [Tue, 11 Oct 2022 16:58:56 +0000 (12:58 -0400)] 
as found on the net

3 years agocorrect to opaque octets
Alan T. DeKok [Tue, 11 Oct 2022 16:57:26 +0000 (12:57 -0400)] 
correct to opaque octets

3 years agoeapol_test: Add paths for Brew on OSX/M1 (#4754)
Jorge Pereira [Thu, 6 Oct 2022 14:30:12 +0000 (11:30 -0300)] 
eapol_test: Add paths for Brew on OSX/M1 (#4754)

3 years agobetter late than never
Matthew Newton [Thu, 6 Oct 2022 08:48:07 +0000 (09:48 +0100)] 
better late than never

3 years agorediswho: Fix typo (#4755)
Jorge Pereira [Wed, 5 Oct 2022 17:51:41 +0000 (14:51 -0300)] 
rediswho: Fix typo (#4755)

3 years agoalso need FR_INIT_MODULE from v4
Matthew Newton [Tue, 4 Oct 2022 20:00:54 +0000 (21:00 +0100)] 
also need FR_INIT_MODULE from v4

3 years agorefresh configure scripts
Matthew Newton [Tue, 4 Oct 2022 14:38:08 +0000 (15:38 +0100)] 
refresh configure scripts

3 years agobackport module configure report changes from v4
Matthew Newton [Tue, 4 Oct 2022 14:45:14 +0000 (15:45 +0100)] 
backport module configure report changes from v4

3 years agorun autoupdate on configure.ac
Matthew Newton [Tue, 4 Oct 2022 14:41:39 +0000 (15:41 +0100)] 
run autoupdate on configure.ac

3 years agoBump for 3.2.2
Matthew Newton [Mon, 3 Oct 2022 22:39:06 +0000 (23:39 +0100)] 
Bump for 3.2.2

3 years agorelease 3.2.1 release_3_2_1
Matthew Newton [Mon, 3 Oct 2022 21:51:59 +0000 (22:51 +0100)] 
release 3.2.1

3 years agoupdate warnings.txt grep
Matthew Newton [Mon, 3 Oct 2022 21:40:44 +0000 (22:40 +0100)] 
update warnings.txt grep

3 years agovar to override extra dpkg-buildpackage options
Matthew Newton [Mon, 3 Oct 2022 18:06:52 +0000 (19:06 +0100)] 
var to override extra dpkg-buildpackage options

3 years agoupdate changelog
Matthew Newton [Wed, 28 Sep 2022 23:15:30 +0000 (00:15 +0100)] 
update changelog

note #4441 fixed