]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
4 years agodisable resumption tests, and check for TLS version in version tests
Alan T. DeKok [Thu, 4 Mar 2021 21:22:24 +0000 (16:22 -0500)] 
disable resumption tests, and check for TLS version in version tests

4 years agoeap: configuration for fast
Alexander Clouter [Sat, 13 Feb 2021 14:48:18 +0000 (14:48 +0000)] 
eap: configuration for fast

4 years agoeap: add eap-{ttls,peap}/eap-tls tests
Alexander Clouter [Sat, 13 Feb 2021 15:00:31 +0000 (15:00 +0000)] 
eap: add eap-{ttls,peap}/eap-tls tests

4 years agoCI RPMs: Remove workaround for scomp filter bug with faccessat2 (#3969)
Terry Burton [Thu, 4 Mar 2021 21:12:58 +0000 (21:12 +0000)] 
CI RPMs: Remove workaround for scomp filter bug with faccessat2 (#3969)

No longer required.

4 years agonote recent changes
Alan T. DeKok [Thu, 4 Mar 2021 19:29:30 +0000 (14:29 -0500)] 
note recent changes

4 years agouse correct name for doxygen
Alan T. DeKok [Thu, 4 Mar 2021 16:09:44 +0000 (11:09 -0500)] 
use correct name for doxygen

4 years agoremove unused assignment
Alan T. DeKok [Thu, 4 Mar 2021 15:03:26 +0000 (10:03 -0500)] 
remove unused assignment

4 years agoremove unnecessary code
Alan T. DeKok [Thu, 4 Mar 2021 14:27:07 +0000 (09:27 -0500)] 
remove unnecessary code

due to unresolved issues (interactions with OpenSSL APIs),
just always use 1 session ticket, even for PEAP / TTLS.

4 years agoRevert "add flag to send early session tickets"
Alan T. DeKok [Thu, 4 Mar 2021 13:01:34 +0000 (08:01 -0500)] 
Revert "add flag to send early session tickets"

This reverts commit 1663b982854e66eaa9191aec549aa8942c942947.

this doesn't work.

We really need SSL_new_session_ticket(), which is only in
OpenSSL 3.  Which is not released.

4 years agoPull over fixes from master
Arran Cudbard-Bell [Thu, 4 Mar 2021 14:04:34 +0000 (14:04 +0000)] 
Pull over fixes from master

4 years agoJust use a static value to differentiate tests running on different branches
Arran Cudbard-Bell [Thu, 4 Mar 2021 13:40:14 +0000 (13:40 +0000)] 
Just use a static value to differentiate tests running on different branches

4 years agoAdd auto-merge for v3.0.x
Arran Cudbard-Bell [Thu, 4 Mar 2021 13:25:49 +0000 (13:25 +0000)] 
Add auto-merge for v3.0.x

4 years agoadd flag to send early session tickets
Alan T. DeKok [Wed, 3 Mar 2021 20:40:12 +0000 (15:40 -0500)] 
add flag to send early session tickets

mainly for TTLS and PEAP

4 years agobe kind to non-TLS builds
Alan T. DeKok [Wed, 3 Mar 2021 13:30:39 +0000 (08:30 -0500)] 
be kind to non-TLS builds

4 years agoinclude correct header
Alan T. DeKok [Wed, 3 Mar 2021 13:14:25 +0000 (08:14 -0500)] 
include correct header

4 years agodelay session tickets until after the user was authenticated
Alan T. DeKok [Wed, 3 Mar 2021 12:59:55 +0000 (07:59 -0500)] 
delay session tickets until after the user was authenticated

for PEAP, TTLS, FAST, etc.

4 years agomove code to common area
Alan T. DeKok [Wed, 3 Mar 2021 12:34:29 +0000 (07:34 -0500)] 
move code to common area

4 years agoclean up expired sessions
Alan T. DeKok [Wed, 3 Mar 2021 12:30:47 +0000 (07:30 -0500)] 
clean up expired sessions

4 years agoset flag indicating that authentication succeeded.
Alan T. DeKok [Wed, 3 Mar 2021 12:26:27 +0000 (07:26 -0500)] 
set flag indicating that authentication succeeded.

not used much for now, but will do in the future.

4 years agoforbid doing session tickets until after the client cert is verified
Alan T. DeKok [Wed, 24 Feb 2021 19:05:13 +0000 (14:05 -0500)] 
forbid doing session tickets until after the client cert is verified

4 years agoremove old maintainer who is no longer active
Alan T. DeKok [Tue, 2 Mar 2021 12:27:39 +0000 (07:27 -0500)] 
remove old maintainer who is no longer active

4 years agoremove unused label
Alan T. DeKok [Fri, 26 Feb 2021 17:42:04 +0000 (12:42 -0500)] 
remove unused label

4 years agoswap the order of allocate for unknown da's. Fixes #3937
Alan T. DeKok [Fri, 26 Feb 2021 17:37:24 +0000 (12:37 -0500)] 
swap the order of allocate for unknown da's.  Fixes #3937

4 years agodon't decode anything for CUI
Alan T. DeKok [Fri, 26 Feb 2021 17:37:11 +0000 (12:37 -0500)] 
don't decode anything for CUI

4 years agoexpose fr_pair_alloc()
Alan T. DeKok [Fri, 26 Feb 2021 16:57:34 +0000 (11:57 -0500)] 
expose fr_pair_alloc()

4 years agoremove unused variable
Alan T. DeKok [Fri, 26 Feb 2021 16:36:06 +0000 (11:36 -0500)] 
remove unused variable

4 years agoalways create ctx. Helps with #3937
Alan T. DeKok [Fri, 26 Feb 2021 16:34:43 +0000 (11:34 -0500)] 
always create ctx.  Helps with #3937

4 years agocreate and use context for VPs. Helps with #3937
Alan T. DeKok [Fri, 26 Feb 2021 16:25:40 +0000 (11:25 -0500)] 
create and use context for VPs.  Helps with #3937

4 years agohoist "set global client list" to client_list_init()
Alan T. DeKok [Wed, 24 Feb 2021 16:56:22 +0000 (11:56 -0500)] 
hoist "set global client list" to client_list_init()

as client_list_free() takes care of freeing the global client list

4 years agowork around OpenSSL behavior changes for TLS 1.3
Alan T. DeKok [Wed, 24 Feb 2021 16:31:29 +0000 (11:31 -0500)] 
work around OpenSSL behavior changes for TLS 1.3

4 years agocheck and verify EAP-Type when resuming
Alan T. DeKok [Wed, 24 Feb 2021 15:55:46 +0000 (10:55 -0500)] 
check and verify EAP-Type when resuming

This is a follow up to commit 752bdd35e1e
so that we do not permit

4 years agonote recent changes
Alan T. DeKok [Tue, 23 Feb 2021 21:07:42 +0000 (16:07 -0500)] 
note recent changes

4 years agohelps to have this, too
Alan T. DeKok [Tue, 23 Feb 2021 18:05:44 +0000 (13:05 -0500)] 
helps to have this, too

4 years agoadd "is_dup" flag
Alan T. DeKok [Tue, 23 Feb 2021 17:51:21 +0000 (12:51 -0500)] 
add "is_dup" flag

so if we have 2 attributes of the same number / type, but different
names.  We mark the old one as "dup".

Then when looking up the attribute by name, check for the dup
flag, and if found, return the *new* attribute.

This change lets us decode packets into the new names, then
read config files using the old names, and have the two
attributes match.

4 years agoremove some attribute conflicts
Alan T. DeKok [Tue, 23 Feb 2021 17:50:33 +0000 (12:50 -0500)] 
remove some attribute conflicts

4 years agomove handshake_send to after commitment message
Alan T. DeKok [Sun, 21 Feb 2021 14:45:34 +0000 (09:45 -0500)] 
move handshake_send to after commitment message

which gives us the ability to check for SSL data written by
SSL_shutdown()

4 years agocache and restore EAP-Type, too.
Alan T. DeKok [Sun, 21 Feb 2021 14:03:06 +0000 (09:03 -0500)] 
cache and restore EAP-Type, too.

so that we can forbid cross-type resumption

4 years agoif PEAP says "not resumed", then over-ride the TLS layer "we resumed"
Alan T. DeKok [Fri, 19 Feb 2021 21:53:06 +0000 (16:53 -0500)] 
if PEAP says "not resumed", then over-ride the TLS layer "we resumed"

and update the messages so that it's a little clearer what's
going on.

4 years agoCorrectly log released IP address
Matthew Newton [Thu, 18 Feb 2021 20:29:04 +0000 (20:29 +0000)] 
Correctly log released IP address

4 years agonote fix of double free due to PCRE library issues
Alan T. DeKok [Thu, 18 Feb 2021 14:03:03 +0000 (09:03 -0500)] 
note fix of double free due to PCRE library issues

4 years agoif it's already unknown, leave it alone. Helps with #3937
Alan T. DeKok [Wed, 17 Feb 2021 13:14:23 +0000 (08:14 -0500)] 
if it's already unknown, leave it alone.  Helps with #3937

4 years agoshup up clang scanner
Alan T. DeKok [Wed, 17 Feb 2021 13:14:14 +0000 (08:14 -0500)] 
shup up clang scanner

4 years agono longer any VARIABLES section. Fixes #3941
Alan T. DeKok [Wed, 17 Feb 2021 02:57:16 +0000 (21:57 -0500)] 
no longer any VARIABLES section.  Fixes #3941

4 years agonotes on RFC 4849 and NAS-Filter-Rule
Alan T. DeKok [Tue, 16 Feb 2021 14:36:27 +0000 (09:36 -0500)] 
notes on RFC 4849 and NAS-Filter-Rule

4 years agodecode NAS-Filter-Rule, too
Alan T. DeKok [Tue, 16 Feb 2021 14:33:37 +0000 (09:33 -0500)] 
decode NAS-Filter-Rule, too

4 years agoadd encoding of magic RFC 4849 format of NAS-Filter-Rule
Alan T. DeKok [Tue, 16 Feb 2021 14:05:41 +0000 (09:05 -0500)] 
add encoding of magic RFC 4849 format of NAS-Filter-Rule

4 years agouse NIL for root
Alan T. DeKok [Mon, 15 Feb 2021 22:15:35 +0000 (17:15 -0500)] 
use NIL for root

and make NIL point to itself as it's parent

4 years agoavoid cache dirty on root
Alan T. DeKok [Mon, 15 Feb 2021 22:11:08 +0000 (17:11 -0500)] 
avoid cache dirty on root

4 years agoabstract checks into a macro
Alan T. DeKok [Mon, 15 Feb 2021 21:54:39 +0000 (16:54 -0500)] 
abstract checks into a macro

4 years agomake code more consistent
Alan T. DeKok [Mon, 15 Feb 2021 21:50:47 +0000 (16:50 -0500)] 
make code more consistent

4 years agoreset pcre_malloc only once
Alan T. DeKok [Fri, 12 Feb 2021 12:46:48 +0000 (07:46 -0500)] 
reset pcre_malloc only once

4 years agoclear pointers after freeing them
Alan T. DeKok [Fri, 12 Feb 2021 12:42:00 +0000 (07:42 -0500)] 
clear pointers after freeing them

4 years agogive up and just disable TLS 1.0 and 1.1
Alan T. DeKok [Thu, 11 Feb 2021 20:00:45 +0000 (15:00 -0500)] 
give up and just disable TLS 1.0 and 1.1

We can't convince eapol_test / OpenSSL to *just* use an older
TLS version.  If we enable only TLS 1.0 / 1.1, then OpenSSL
will always choose TLS 1.3.

https://datatracker.ietf.org/doc/draft-ietf-tls-oldversions-deprecate/

says that we should not be using TLS 1.0 or 1.1 any more.  So we
might as well go along with that.

4 years agoensure that EAPOL_TEST is defined before it is used
Alan T. DeKok [Thu, 11 Feb 2021 18:50:42 +0000 (13:50 -0500)] 
ensure that EAPOL_TEST is defined before it is used

4 years agoredis: Add missing 'redis_module_instance' config set
Jorge Pereira [Thu, 11 Feb 2021 17:42:25 +0000 (14:42 -0300)] 
redis: Add missing 'redis_module_instance' config set

4 years agoCI: Activate tmate on failure when pushing to the ci-debug branch (#3928)
Terry Burton [Thu, 11 Feb 2021 11:05:20 +0000 (11:05 +0000)] 
CI: Activate tmate on failure when pushing to the ci-debug branch (#3928)

4 years agotypo
Alan T. DeKok [Wed, 10 Feb 2021 20:03:49 +0000 (15:03 -0500)] 
typo

4 years agojust turn things off
Alan T. DeKok [Wed, 10 Feb 2021 19:57:07 +0000 (14:57 -0500)] 
just turn things off

4 years agogive up and try to do idiotic debugging
Alan T. DeKok [Wed, 10 Feb 2021 19:48:48 +0000 (14:48 -0500)] 
give up and try to do idiotic debugging

4 years agojust use top_builddir FFS
Alan T. DeKok [Wed, 10 Feb 2021 19:06:27 +0000 (14:06 -0500)] 
just use top_builddir FFS

4 years agoone more try to figure out package tests
Alan T. DeKok [Wed, 10 Feb 2021 18:22:06 +0000 (13:22 -0500)] 
one more try to figure out package tests

4 years agognu make doesn't know about directories
Alan T. DeKok [Wed, 10 Feb 2021 16:49:59 +0000 (11:49 -0500)] 
gnu make doesn't know about directories

4 years agoupdate README to note PEM vs P12
Alan T. DeKok [Wed, 10 Feb 2021 16:07:00 +0000 (11:07 -0500)] 
update README to note PEM vs P12

4 years agocopy for p12 files, too
Alan T. DeKok [Wed, 10 Feb 2021 16:05:40 +0000 (11:05 -0500)] 
copy for p12 files, too

4 years agodefine top_srcdir
Alan T. DeKok [Wed, 10 Feb 2021 14:54:22 +0000 (09:54 -0500)] 
define top_srcdir

because the EAPOL tests need that when making packages

4 years agoprint command lines on failure
Alan T. DeKok [Wed, 10 Feb 2021 14:48:33 +0000 (09:48 -0500)] 
print command lines on failure

4 years agoadd resumption tests
Alan T. DeKok [Wed, 10 Feb 2021 14:46:15 +0000 (09:46 -0500)] 
add resumption tests

4 years agorun tests across many different TLS versions
Alan T. DeKok [Wed, 10 Feb 2021 14:37:12 +0000 (09:37 -0500)] 
run tests across many different TLS versions

4 years agobuild TLS-specific versions of the configuration files
Alan T. DeKok [Wed, 10 Feb 2021 14:33:29 +0000 (09:33 -0500)] 
build TLS-specific versions of the configuration files

4 years agoremove unused target
Alan T. DeKok [Wed, 10 Feb 2021 14:25:18 +0000 (09:25 -0500)] 
remove unused target

4 years agomove output files to build/
Alan T. DeKok [Wed, 10 Feb 2021 14:15:44 +0000 (09:15 -0500)] 
move output files to build/

so they don't confuse the local directory :(

4 years agoadd phase1 config to TLS-based EAP methods
Alan T. DeKok [Wed, 10 Feb 2021 14:04:37 +0000 (09:04 -0500)] 
add phase1 config to TLS-based EAP methods

unused for now

4 years agoreformat for v3
Alan T. DeKok [Wed, 10 Feb 2021 14:00:13 +0000 (09:00 -0500)] 
reformat for v3

4 years agomanual pull from master. Fixes #3907
Alan T. DeKok [Wed, 10 Feb 2021 13:41:24 +0000 (08:41 -0500)] 
manual pull from master.  Fixes #3907

4 years agorlm_python: The detach() function in example.py expects parameter
Jorge Pereira [Fri, 29 Jan 2021 19:14:28 +0000 (16:14 -0300)] 
rlm_python: The detach() function in example.py expects parameter

4 years agoAdded some more attributes to dictionary.wimax (#3905)
Benjamin Thompson [Tue, 9 Feb 2021 21:43:25 +0000 (00:43 +0300)] 
Added some more attributes to dictionary.wimax (#3905)

4 years agoUpdate Arista dictionary for v3.0.x (#3910)
Hua Zhong [Tue, 9 Feb 2021 21:43:03 +0000 (13:43 -0800)] 
Update Arista dictionary for v3.0.x (#3910)

4 years agochange to rad_assert to shut up clang scan
Alan T. DeKok [Fri, 5 Feb 2021 21:54:22 +0000 (16:54 -0500)] 
change to rad_assert to shut up clang scan

4 years agoadd flag for TLS 1.3 close_notify vs commitment message
Alan T. DeKok [Fri, 5 Feb 2021 20:57:42 +0000 (15:57 -0500)] 
add flag for TLS 1.3 close_notify vs commitment message

4 years agouse rad_assert(), not fr_assert in server-side code
Alan T. DeKok [Fri, 5 Feb 2021 15:52:25 +0000 (10:52 -0500)] 
use rad_assert(), not fr_assert in server-side code

4 years agotodo notes
Alan T. DeKok [Fri, 5 Feb 2021 15:44:40 +0000 (10:44 -0500)] 
todo notes

4 years agoset a flag when the client cert has been validated
Alan T. DeKok [Fri, 5 Feb 2021 15:41:21 +0000 (10:41 -0500)] 
set a flag when the client cert has been validated

4 years agomore "shut up clang analyzer"
Alan T. DeKok [Tue, 2 Feb 2021 13:36:03 +0000 (08:36 -0500)] 
more "shut up clang analyzer"

4 years agoshut up clang
Alan T. DeKok [Tue, 2 Feb 2021 13:22:28 +0000 (08:22 -0500)] 
shut up clang

4 years agoadd rlm_sql_map
Alan T. DeKok [Tue, 2 Feb 2021 13:19:59 +0000 (08:19 -0500)] 
add rlm_sql_map

4 years agoadd sql_map
Alan T. DeKok [Tue, 2 Feb 2021 13:18:32 +0000 (08:18 -0500)] 
add sql_map

4 years agouse TESTBIN instead of manually-coded paths
Alan T. DeKok [Tue, 2 Feb 2021 13:13:39 +0000 (08:13 -0500)] 
use TESTBIN instead of manually-coded paths

and use local libs for local tests

4 years agoignore auto-generated files
Alan T. DeKok [Mon, 1 Feb 2021 22:28:52 +0000 (17:28 -0500)] 
ignore auto-generated files

4 years agorelease handle on error
Alan T. DeKok [Mon, 1 Feb 2021 22:28:14 +0000 (17:28 -0500)] 
release handle on error

4 years agouse public API
Alan T. DeKok [Mon, 1 Feb 2021 20:00:11 +0000 (15:00 -0500)] 
use public API

4 years agoAdd sql_map module
Alan T. DeKok [Sat, 30 Jan 2021 16:41:36 +0000 (11:41 -0500)] 
Add sql_map module

4 years agosqlcounter: fixed configuration for PostgreSQL #3867
Federico Capoano [Sun, 24 Jan 2021 23:35:04 +0000 (18:35 -0500)] 
sqlcounter: fixed configuration for PostgreSQL #3867

ABSTIME is deprecated since PostgreSQL 7.0 and removed in PostgreSQL 12.
GREATER doesn't seem to be documented, but GREATEST is available
since PostgreSQL 9.

Closes #3867

4 years agoRevert "use different labels for MSK and EMSK, with TLS 1.3"
Alan T. DeKok [Thu, 28 Jan 2021 22:01:49 +0000 (17:01 -0500)] 
Revert "use different labels for MSK and EMSK, with TLS 1.3"

This reverts commit efc453a2c61d7491af6e803daf708145d14977fc.

There is no consensus to make this change, so revert the code
to match draft-ietf-emu-eap-tls13-13.

4 years agoAdd support for timezone on alpine
D. Domig [Thu, 21 Jan 2021 13:10:36 +0000 (14:10 +0100)] 
Add support for timezone on alpine

4 years agounify messaging for closing connections
Alan T. DeKok [Sat, 23 Jan 2021 13:07:35 +0000 (08:07 -0500)] 
unify messaging for closing connections

4 years agore-use connection, even if idle
Alan T. DeKok [Sat, 23 Jan 2021 12:56:22 +0000 (07:56 -0500)] 
re-use connection, even if idle

When we're getting a new connection, don't close idle ones
and re-open a new one.  Instead, just re-use the old idle
connection.  This change helps to minimize the number of
open / close / open / close cycles.

4 years agoBreak if there are no pairs remaining
Arran Cudbard-Bell [Fri, 22 Jan 2021 10:44:36 +0000 (10:44 +0000)] 
Break if there are no pairs remaining

4 years agodisable v3_req extensions
Alan T. DeKok [Thu, 21 Jan 2021 14:23:17 +0000 (09:23 -0500)] 
disable v3_req extensions

until we figure out why they fail on CI.  OpenSSL has *such*
helpful error messages.

4 years agoremove TLS 1.3 support
Alan T. DeKok [Thu, 21 Jan 2021 14:00:36 +0000 (09:00 -0500)] 
remove TLS 1.3 support

The IETF is endlessly waffling, and we don't want to release
a non-standard implementation.

4 years agoAdd Key Identifier extensions to server.cnf
Alan T. DeKok [Mon, 11 Jan 2021 19:38:46 +0000 (14:38 -0500)] 
Add Key Identifier extensions to server.cnf

The Intel Wireless Daemon (iwd, alternative to wpa_supplicant) heavily
relies on Linux kernel interfaces for all its crypto, but the Linux
kernel doesn't seem to accept certificates without these extensions and
hence TLS will fail without them.

manual port of commit d9e7106