]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
3 months agoTypo: 1821->1812 (#5547)
Stephen Blackwell [Tue, 8 Apr 2025 18:06:09 +0000 (12:06 -0600)] 
Typo: 1821->1812 (#5547)

3 months agohome_pool may be NULL
Alan T. DeKok [Tue, 8 Apr 2025 18:04:01 +0000 (14:04 -0400)] 
home_pool may be NULL

3 months agohoist NULL check to before dereference
Alan T. DeKok [Tue, 8 Apr 2025 18:03:16 +0000 (14:03 -0400)] 
hoist NULL check to before dereference

3 months agoit's better to do this only for Access-Challenge
Alan T. DeKok [Tue, 8 Apr 2025 17:09:05 +0000 (13:09 -0400)] 
it's better to do this only for Access-Challenge

3 months agoadd support for server affinity.
Alan T. DeKok [Tue, 8 Apr 2025 13:14:20 +0000 (09:14 -0400)] 
add support for server affinity.

which means that EAP sessions can be directed to the correct
home server in more situations.

4 months agoadd rule for DER output
Alan T. DeKok [Fri, 4 Apr 2025 11:30:49 +0000 (07:30 -0400)] 
add rule for DER output

4 months agodefine USEC
Alan T. DeKok [Fri, 21 Mar 2025 06:37:48 +0000 (13:37 +0700)] 
define USEC

4 months agochange lower_limit for reject_delay to 0.5s.
Alan T. DeKok [Fri, 21 Mar 2025 06:21:40 +0000 (13:21 +0700)] 
change lower_limit for reject_delay to 0.5s.

Some equipment is known to retry aggressively if the timeout is
about 1s

4 months agoTypo
Nick Porter [Tue, 18 Mar 2025 18:13:21 +0000 (18:13 +0000)] 
Typo

4 months agoUpdate Alteon dictionary
Nick Porter [Tue, 11 Mar 2025 18:36:30 +0000 (18:36 +0000)] 
Update Alteon dictionary

Using details provided on the mailing list from
https://netmarket.oss-cn-hangzhou.aliyuncs.com/2029985f4fad4aef8fc3d7f2f3907ce0.pdf

5 months agoadd error message about what's required
Alan T. DeKok [Fri, 7 Mar 2025 12:49:50 +0000 (07:49 -0500)] 
add error message about what's required

5 months agoMS-CHAP is plain-text equivalent.
Alan T. DeKok [Thu, 6 Mar 2025 19:05:57 +0000 (14:05 -0500)] 
MS-CHAP is plain-text equivalent.

Mark the Challenge field as secret, so that it doesn't get
exposed when people run the server in debug mode.

5 months agoprint out client name, and rate limit messages
Alan T. DeKok [Thu, 6 Mar 2025 11:57:46 +0000 (06:57 -0500)] 
print out client name, and rate limit messages

As reported by Hideaki Goto.  We do not want to spam the log with
many of the same message.  We want to include the client name,
so that the administrator knows which client is making repeated
connection attempts

5 months agoreject if we have success + fatal error
Alan T. DeKok [Thu, 6 Mar 2025 11:56:16 +0000 (06:56 -0500)] 
reject if we have success + fatal error

5 months agodon't allow renegotiation
Alan T. DeKok [Tue, 4 Mar 2025 11:27:04 +0000 (06:27 -0500)] 
don't allow renegotiation

which means sending a new certificate in the middle of a TLS
session.

Since the server doesn't expect this behavior, it's likely to not
work

5 months agobe more flexible about %"
Alan T. DeKok [Wed, 26 Feb 2025 12:39:27 +0000 (07:39 -0500)] 
be more flexible about %"

5 months agobe stricter about marking as VT_XLAT
Alan T. DeKok [Wed, 26 Feb 2025 11:55:50 +0000 (06:55 -0500)] 
be stricter about marking as VT_XLAT

5 months agotypo
Alan T. DeKok [Wed, 26 Feb 2025 11:12:09 +0000 (06:12 -0500)] 
typo

5 months agoset tag before parsing value
Alan T. DeKok [Wed, 26 Feb 2025 10:40:56 +0000 (05:40 -0500)] 
set tag before parsing value

5 months agoset tag for :V properly.
Alan T. DeKok [Tue, 25 Feb 2025 19:31:17 +0000 (14:31 -0500)] 
set tag for :V properly.

Hoist setting of new->tag to before we call fr_pair_value_from_str()

when converting LITERAL to DATA in modcall_fixup_update(), check
for TAG_VALUE, and then parse the tag from the value.  Once that's
done, parse the value with from the remaining part of the string.

Add tests

5 months agoskip ":V" for lists and fix parsing of ":V"
Alan T. DeKok [Tue, 25 Feb 2025 19:30:28 +0000 (14:30 -0500)] 
skip ":V" for lists and fix parsing of ":V"

5 months agomove checks for '%' into fr_pair_mark_xlat()
Alan T. DeKok [Tue, 25 Feb 2025 19:27:04 +0000 (14:27 -0500)] 
move checks for '%' into fr_pair_mark_xlat()

after verifying that all functions which call it are safe to have
this funtion call fr_pair_value_from_str() if there's no '%' in
the string.

5 months agoadd missing README which lets modules be categorized
Alan T. DeKok [Tue, 25 Feb 2025 19:09:29 +0000 (14:09 -0500)] 
add missing README which lets modules be categorized

5 months agoparse ":V" in fr_pair_make()
Alan T. DeKok [Tue, 25 Feb 2025 15:49:06 +0000 (10:49 -0500)] 
parse ":V" in fr_pair_make()

5 months agonote recent changes
Alan T. DeKok [Tue, 25 Feb 2025 15:10:53 +0000 (10:10 -0500)] 
note recent changes

5 months agodocument :V
Alan T. DeKok [Tue, 25 Feb 2025 14:58:04 +0000 (09:58 -0500)] 
document :V

5 months agowe didn't need this change
Alan T. DeKok [Mon, 24 Feb 2025 21:35:13 +0000 (16:35 -0500)] 
we didn't need this change

5 months agotypo
Alan T. DeKok [Mon, 24 Feb 2025 21:35:09 +0000 (16:35 -0500)] 
typo

5 months agoParse tag from value when :V is used.
Alan T. DeKok [Mon, 24 Feb 2025 20:46:04 +0000 (15:46 -0500)] 
Parse tag from value when :V is used.

This only works for bare words right now, and not for
double-quoted strings.

5 months agocomplain about :V tag in inappropriate places
Alan T. DeKok [Mon, 24 Feb 2025 20:45:42 +0000 (15:45 -0500)] 
complain about :V tag in inappropriate places

5 months agodefine, parse, and print tag ":V"
Alan T. DeKok [Mon, 24 Feb 2025 19:57:24 +0000 (14:57 -0500)] 
define, parse, and print tag ":V"

which is intended to cause tags to be parsed from values

and hoist the "set tag" code to before the calls to
fr_pair_value_from_str(), so that it can parse the tag

5 months agoadd commented-out CFLAGS which can quiet the compiler a bit more
Alan T. DeKok [Mon, 24 Feb 2025 19:56:36 +0000 (14:56 -0500)] 
add commented-out CFLAGS which can quiet the compiler a bit more

5 months agomore typo
Alan T. DeKok [Sun, 23 Feb 2025 15:14:23 +0000 (10:14 -0500)] 
more typo

5 months agofix the typo
Alan T. DeKok [Sun, 23 Feb 2025 14:42:58 +0000 (09:42 -0500)] 
fix the typo

5 months agoproduce better errors on bad passwords
Alan T. DeKok [Sun, 23 Feb 2025 14:32:38 +0000 (09:32 -0500)] 
produce better errors on bad passwords

5 months agotypo
Alan T. DeKok [Sun, 23 Feb 2025 14:22:12 +0000 (09:22 -0500)] 
typo

5 months ago'%' at the end of a string is itself, and not an error
Alan T. DeKok [Sun, 23 Feb 2025 13:43:45 +0000 (08:43 -0500)] 
'%' at the end of a string is itself, and not an error

5 months agoonly mark strings for expansion when they contain '%'
Alan T. DeKok [Sun, 23 Feb 2025 13:43:24 +0000 (08:43 -0500)] 
only mark strings for expansion when they contain '%'

5 months agoand formatted
Alan T. DeKok [Thu, 20 Feb 2025 22:39:53 +0000 (17:39 -0500)] 
and formatted

5 months agofix typos and clean it up to remove duplication
Alan T. DeKok [Thu, 20 Feb 2025 21:57:29 +0000 (16:57 -0500)] 
fix typos and clean it up to remove duplication

5 months agoas posted to the list
Alan T. DeKok [Thu, 20 Feb 2025 21:45:52 +0000 (16:45 -0500)] 
as posted to the list

5 months agomake libpcre optional in debian package
Matthew Newton [Thu, 20 Feb 2025 00:26:43 +0000 (00:26 +0000)] 
make libpcre optional in debian package

Newer OSes are PCRE2 only, but v3 doesn't support that. Doesn't seem to be any
official way to do this, so just "or another package that we already want".

5 months agoprevent duplications
Alan T. DeKok [Tue, 18 Feb 2025 18:20:52 +0000 (13:20 -0500)] 
prevent duplications

5 months agotypo. fixes #5522
Alan T. DeKok [Tue, 18 Feb 2025 18:06:58 +0000 (13:06 -0500)] 
typo.  fixes #5522

5 months agoPreliminary module for producing to Kafka
Terry Burton [Fri, 7 Feb 2025 14:31:39 +0000 (14:31 +0000)] 
Preliminary module for producing to Kafka

Based on https://github.com/thebinary/rlm_kafka

5 months agoDon't needlessly attempt to set euid to the current euid
Terry Burton [Fri, 7 Feb 2025 14:26:47 +0000 (14:26 +0000)] 
Don't needlessly attempt to set euid to the current euid

This isn't a noop on Linux and will cause librdkafka to fail.

5 months agodocument Windows behavior
Alan T. DeKok [Mon, 17 Feb 2025 13:18:46 +0000 (08:18 -0500)] 
document Windows behavior

5 months agofix crash in TEAP module
Alan T. DeKok [Sun, 16 Feb 2025 15:37:21 +0000 (10:37 -0500)] 
fix crash in TEAP module

5 months agoallow building when OpenSSL is missing PSK. Fixes #5520
Alan T. DeKok [Sun, 16 Feb 2025 14:43:40 +0000 (09:43 -0500)] 
allow building when OpenSSL is missing PSK.  Fixes #5520

5 months agopoint to ltb-project which may have OpenSSL-compatible libraries
Alan T. DeKok [Sat, 15 Feb 2025 17:26:09 +0000 (12:26 -0500)] 
point to ltb-project which may have OpenSSL-compatible libraries

5 months agoadds hint message for users testing TEAP using eapol_test. Fixes #5518
Alan T. DeKok [Fri, 14 Feb 2025 13:07:39 +0000 (08:07 -0500)] 
adds hint message for users testing TEAP using eapol_test.  Fixes #5518

5 months agoUse control:Packet-SRC-IP-Address when proxying needs a given source
Nick Porter [Thu, 13 Feb 2025 12:07:19 +0000 (12:07 +0000)] 
Use control:Packet-SRC-IP-Address when proxying needs a given source

For the case when using Packet-DST-IP-Address to direct proxying.

This needs to align with the src_ipaddr defined for the home server.

5 months agoci: bump ubuntu versions
Matthew Newton [Wed, 12 Feb 2025 20:39:00 +0000 (20:39 +0000)] 
ci: bump ubuntu versions

5 months agonote recent changes
Alan T. DeKok [Wed, 12 Feb 2025 12:06:47 +0000 (07:06 -0500)] 
note recent changes

5 months agowrap crl_dp checks in if (certs && (lookup <= 1). Fixes #5515
Alan T. DeKok [Wed, 12 Feb 2025 12:03:13 +0000 (07:03 -0500)] 
wrap crl_dp checks in if (certs && (lookup <= 1). Fixes #5515

5 months agoonly build the fuzzer if we have -fsanitize=fuzzer
Alan T. DeKok [Tue, 11 Feb 2025 21:47:13 +0000 (16:47 -0500)] 
only build the fuzzer if we have -fsanitize=fuzzer

5 months agowe don't need these flags here
Alan T. DeKok [Tue, 11 Feb 2025 21:20:25 +0000 (16:20 -0500)] 
we don't need these flags here

5 months agocheck that the packet is well-formed
Alan T. DeKok [Tue, 11 Feb 2025 21:19:28 +0000 (16:19 -0500)] 
check that the packet is well-formed

rad_decode() doesn't do this, but instead assumes that the packet
is OK.

5 months agoadd framework for fuzzer
Alan T. DeKok [Tue, 11 Feb 2025 20:56:26 +0000 (15:56 -0500)] 
add framework for fuzzer

5 months agomove STOP check to before assert. Fixes #5512
Alan T. DeKok [Sat, 8 Feb 2025 11:45:55 +0000 (06:45 -0500)] 
move STOP check to before assert.  Fixes #5512

6 months agocheck for invalid values of the Crypto-Binding Flags field
Alan T. DeKok [Sun, 2 Feb 2025 03:57:34 +0000 (22:57 -0500)] 
check for invalid values of the Crypto-Binding Flags field

6 months agorename function for clarity
Alan T. DeKok [Sun, 2 Feb 2025 03:57:17 +0000 (22:57 -0500)] 
rename function for clarity

6 months agomove failures to RWDEBUG
Alan T. DeKok [Sun, 2 Feb 2025 03:56:33 +0000 (22:56 -0500)] 
move failures to RWDEBUG

6 months agodebug print TEAP attributes we're sending in phase 2
Alan T. DeKok [Sat, 1 Feb 2025 21:05:34 +0000 (16:05 -0500)] 
debug print TEAP attributes we're sending in phase 2

6 months agominor cleanups, and print inner VPs in Access-Accept
Alan T. DeKok [Sat, 1 Feb 2025 21:03:31 +0000 (16:03 -0500)] 
minor cleanups, and print inner VPs in Access-Accept

6 months agoadd only one user with EAP-MSCHAPv2
Alan T. DeKok [Sat, 1 Feb 2025 21:02:36 +0000 (16:02 -0500)] 
add only one user with EAP-MSCHAPv2

6 months agoallow TLS 1.2, and use "autheap=MSCHAPv2"
Alan T. DeKok [Sat, 1 Feb 2025 21:00:34 +0000 (16:00 -0500)] 
allow TLS 1.2, and use "autheap=MSCHAPv2"

otherwise eapol_test complains with

TLS: Unsupported Phase2 EAP method 'MSCHAPv2'

6 months agoBump for 3.2.8
Matthew Newton [Fri, 31 Jan 2025 16:19:17 +0000 (16:19 +0000)] 
Bump for 3.2.8

6 months agorelease 3.2.7 release_3_2_7
Matthew Newton [Fri, 31 Jan 2025 11:42:21 +0000 (11:42 +0000)] 
release 3.2.7

6 months agodisable unix/utmp modules in the default config
Matthew Newton [Fri, 31 Jan 2025 11:37:48 +0000 (11:37 +0000)] 
disable unix/utmp modules in the default config

6 months agorebuild dockerfiles
Matthew Newton [Thu, 30 Jan 2025 23:52:19 +0000 (23:52 +0000)] 
rebuild dockerfiles

- bump alpine version from 3.13 to 3.21
- remove python2-dev from alpine (no longer in OS)
- remove rlm_couchbase from alpine (OS has Couchbase v3, which we can't use)

6 months agorlm_couchbase: we can't build on couchbase v3
Matthew Newton [Thu, 30 Jan 2025 19:30:50 +0000 (19:30 +0000)] 
rlm_couchbase: we can't build on couchbase v3

6 months agoadd configure switch for radlast
Matthew Newton [Wed, 29 Jan 2025 14:16:25 +0000 (14:16 +0000)] 
add configure switch for radlast

/usr/bin/last is unavailable on some systems due to 32bit utmp, which is what
radlast uses, so give the option to simply not include it when building

6 months agoexample docs for tmpdir with systemd. Fixes #5066
Matthew Newton [Fri, 24 Jan 2025 13:33:35 +0000 (13:33 +0000)] 
example docs for tmpdir with systemd. Fixes #5066

6 months agoAdd basic radsecproxy.conf for testing
Nick Porter [Fri, 24 Jan 2025 18:59:01 +0000 (18:59 +0000)] 
Add basic radsecproxy.conf for testing

6 months agonote recent changes
Alan T. DeKok [Fri, 24 Jan 2025 15:34:35 +0000 (10:34 -0500)] 
note recent changes

6 months agoSSL_CTX_set_psk_find_session_callback was added in OpenSSL 1.1.1
Nick Porter [Fri, 24 Jan 2025 09:59:50 +0000 (09:59 +0000)] 
SSL_CTX_set_psk_find_session_callback was added in OpenSSL 1.1.1

6 months agoAdd detail to error observed when TLS PSK is wrong
Nick Porter [Fri, 24 Jan 2025 09:34:04 +0000 (09:34 +0000)] 
Add detail to error observed when TLS PSK is wrong

6 months agoPSK config uses either identity or query
Nick Porter [Thu, 23 Jan 2025 18:39:42 +0000 (18:39 +0000)] 
PSK config uses either identity or query

6 months agoSet PSK session callback for server SSL ctx
Nick Porter [Thu, 23 Jan 2025 18:39:04 +0000 (18:39 +0000)] 
Set PSK session callback for server SSL ctx

6 months agoDefine cbtls_psk_find_session() for TLS 1.3 PSK session creation
Nick Porter [Thu, 23 Jan 2025 18:37:59 +0000 (18:37 +0000)] 
Define cbtls_psk_find_session() for TLS 1.3 PSK session creation

6 months agoMove psk_server_callback to cb.c
Nick Porter [Thu, 23 Jan 2025 18:29:00 +0000 (18:29 +0000)] 
Move psk_server_callback to cb.c

And split apart so query expansion can be used for TLS 1.3 callback as
well.

6 months agoCorrect function signature for event_new_fd()
Nick Porter [Fri, 24 Jan 2025 09:33:06 +0000 (09:33 +0000)] 
Correct function signature for event_new_fd()

It is used as an event callback, so needs to have the
fr_event_callback_t signature.

6 months agoBackport alignment consistent ipv6 masking from v4
Nick Porter [Thu, 23 Jan 2025 12:25:29 +0000 (12:25 +0000)] 
Backport alignment consistent ipv6 masking from v4

6 months agoNo sock for detail listeners. Fixes #5485
Matthew Newton [Thu, 23 Jan 2025 19:48:07 +0000 (19:48 +0000)] 
No sock for detail listeners. Fixes #5485

6 months agoFree authority info access extracted from cert
Nick Porter [Wed, 22 Jan 2025 17:46:12 +0000 (17:46 +0000)] 
Free authority info access extracted from cert

6 months agoDistribution points need to be freed
Nick Porter [Wed, 22 Jan 2025 16:07:52 +0000 (16:07 +0000)] 
Distribution points need to be freed

6 months agoReport OpenSSL errors at each stage of OCSP failure
Nick Porter [Wed, 22 Jan 2025 12:30:10 +0000 (12:30 +0000)] 
Report OpenSSL errors at each stage of OCSP failure

6 months agoUse client shortname as TLS conf name
Nick Porter [Fri, 17 Jan 2025 13:37:14 +0000 (13:37 +0000)] 
Use client shortname as TLS conf name

6 months agoThe configuration item is psk_hexphrase. #5469
Alan T. DeKok [Sun, 19 Jan 2025 12:10:27 +0000 (07:10 -0500)] 
The configuration item is psk_hexphrase.  #5469

6 months agotypo
Alan T. DeKok [Fri, 17 Jan 2025 14:06:22 +0000 (09:06 -0500)] 
typo

6 months agoadd proxy_rate_limit module
Alan T. DeKok [Fri, 17 Jan 2025 13:54:01 +0000 (08:54 -0500)] 
add proxy_rate_limit module

6 months agoadd defaults
Alan T. DeKok [Thu, 16 Jan 2025 21:29:12 +0000 (16:29 -0500)] 
add defaults

6 months agoPreliminary mod_proxy_rate_limit module
Terry Burton [Tue, 9 Jan 2024 23:36:05 +0000 (23:36 +0000)] 
Preliminary mod_proxy_rate_limit module

6 months agonote recent changes
Alan T. DeKok [Wed, 15 Jan 2025 15:41:06 +0000 (10:41 -0500)] 
note recent changes

6 months agouse the server TLS configuration, not client.
Alan T. DeKok [Wed, 15 Jan 2025 15:37:50 +0000 (10:37 -0500)] 
use the server TLS configuration, not client.

the home_server code uses tls_client_conf_parse(), because that
controls the settings used by the _client_ to connect to the home
server,

the client code should then use tls_server_conf_parse(), because
theat controls the settings used by the _server_ when a client
connects.

listen.c also now sets listen->tls = client->tls, so this is the
correct behavior.

Previously, the client TLS settings were entirely ignored.  So it's
OK to change (i.e. fix) this behavior

6 months agoIf a client has a TLS config, use that in preference to the listener one
Nick Porter [Mon, 13 Jan 2025 17:38:58 +0000 (17:38 +0000)] 
If a client has a TLS config, use that in preference to the listener one

6 months agoParse client specific tls conf sections
Nick Porter [Mon, 13 Jan 2025 17:37:37 +0000 (17:37 +0000)] 
Parse client specific tls conf sections

6 months agoNo need to warn about short shared secret for RadSec connections
Nick Porter [Mon, 13 Jan 2025 11:26:47 +0000 (11:26 +0000)] 
No need to warn about short shared secret for RadSec connections

6 months agoWS
Nick Porter [Mon, 13 Jan 2025 11:26:05 +0000 (11:26 +0000)] 
WS