]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
4 years agorun policies to see if we can accept the RadSec connection
Alan T. DeKok [Fri, 2 Apr 2021 16:32:50 +0000 (12:32 -0400)] 
run policies to see if we can accept the RadSec connection

4 years agodon't delay responses to Status-Server
Alan T. DeKok [Fri, 2 Apr 2021 13:29:34 +0000 (09:29 -0400)] 
don't delay responses to Status-Server

4 years agogracefully handle closed connections
Alan T. DeKok [Fri, 2 Apr 2021 12:56:26 +0000 (08:56 -0400)] 
gracefully handle closed connections

4 years agohandle SSL_ERROR_ZERO_RETURN a little more politely.
Alan T. DeKok [Fri, 2 Apr 2021 12:05:17 +0000 (08:05 -0400)] 
handle SSL_ERROR_ZERO_RETURN a little more politely.

4 years agosample stunnel configuration
Alan T. DeKok [Fri, 2 Apr 2021 11:54:34 +0000 (07:54 -0400)] 
sample stunnel configuration

which makes it easier to test radsec, just using radclient

4 years agoAllow TLS 1.3 for RadSec
Alan T. DeKok [Fri, 2 Apr 2021 11:36:05 +0000 (07:36 -0400)] 
Allow TLS 1.3 for RadSec

4 years agofix typo
Alan T. DeKok [Fri, 2 Apr 2021 11:23:33 +0000 (07:23 -0400)] 
fix typo

4 years agofix typo
Alan T. DeKok [Fri, 2 Apr 2021 10:25:42 +0000 (06:25 -0400)] 
fix typo

4 years agonote recent changes
Alan T. DeKok [Fri, 2 Apr 2021 10:15:00 +0000 (06:15 -0400)] 
note recent changes

4 years agodocument suppress_secrets
Alan T. DeKok [Fri, 2 Apr 2021 10:13:46 +0000 (06:13 -0400)] 
document suppress_secrets

4 years agomore documentation for EAP-TLS
Alan T. DeKok [Thu, 1 Apr 2021 21:22:44 +0000 (17:22 -0400)] 
more documentation for EAP-TLS

4 years agoLooks like there is bug in tls code w/ fr_nonblock
Vadim Cargatser [Wed, 24 Mar 2021 15:22:25 +0000 (17:22 +0200)] 
Looks like there is bug in tls code w/ fr_nonblock

With that RADSEC is not working at all. The issue is in this commit:
https://github.com/FreeRADIUS/freeradius-server/commit/b6d7249be1958d0080187846d8bab1f0fae6b857

it pretends to revert erroneously deleted lines from another commit:
https://github.com/FreeRADIUS/freeradius-server/commit/f9c2f5a55d2df71979d99708f83d52336e44ad00

The thing is that it is not only reverting deleted lines, it also adds fr_nonblock(fd) call in tls_new_client_session.
Was that done by mistake? With that SSL_connect exits immediately while we are trying to send initial Access-Request
packet in proxy_tls_send. Of course at the this time the handshake is not yet finished and SSL_connect returns with an
error.  SSL_connect will return success just on the following reads in proxy_tls_recv. But here we are in the recv
callback, handlshake is done... so what, we don't have any packet to send. I have deleted this fr_nonblock(fd) call
meanwhile.

4 years agomake request_coa_originate() follow the other methods
Alan T. DeKok [Thu, 1 Apr 2021 18:17:14 +0000 (14:17 -0400)] 
make request_coa_originate() follow the other methods

4 years agoeapol_test: Fix OSX build using clang >= 11 (#3855) (#4044)
Jorge Pereira [Thu, 1 Apr 2021 20:58:36 +0000 (17:58 -0300)] 
eapol_test: Fix OSX build using clang >= 11 (#3855) (#4044)

Fixes the eapol_test build using clang >= 11

../src/radius/radius_client.c:817:24: error: cast to smaller integer type 'RadiusType' from 'void *' [-Werror,-Wvoid-pointer-to-enum-cast]
RadiusType msg_type = (RadiusType) sock_ctx;

4 years agocomplain if there aren't enough fields
Alan T. DeKok [Wed, 31 Mar 2021 01:54:23 +0000 (21:54 -0400)] 
complain if there aren't enough fields

4 years agolet's not crash, m'kay?
Alan T. DeKok [Wed, 31 Mar 2021 01:52:16 +0000 (21:52 -0400)] 
let's not crash, m'kay?

4 years agoupdate examples
Alan T. DeKok [Wed, 31 Mar 2021 01:45:53 +0000 (21:45 -0400)] 
update examples

4 years agocorrect samples
Alan T. DeKok [Mon, 29 Mar 2021 23:08:07 +0000 (19:08 -0400)] 
correct samples

4 years agoadd more WARNINGs so that people who read them will be enlightened.
Alan T. DeKok [Sun, 28 Mar 2021 14:24:35 +0000 (10:24 -0400)] 
add more WARNINGs so that people who read them will be enlightened.

The default configuration depends on either User-Name or
Stripped-User-Name containing the identity of the user logging in.
If the identity is anonymized, and there's no Stripped-User-Name,
we need to warn the administrator that there is not enough
information to identify the user.

4 years agodon't print "name name" if we find a duplicate module name
Alan T. DeKok [Sat, 27 Mar 2021 13:58:50 +0000 (09:58 -0400)] 
don't print "name name" if we find a duplicate module name

4 years agotypo
Alan T. DeKok [Fri, 26 Mar 2021 14:01:17 +0000 (10:01 -0400)] 
typo

4 years agoadditional notes
Alan T. DeKok [Fri, 26 Mar 2021 14:00:55 +0000 (10:00 -0400)] 
additional notes

4 years agomark more attributes "secret"
Alan T. DeKok [Wed, 24 Mar 2021 14:22:47 +0000 (10:22 -0400)] 
mark more attributes "secret"

4 years agosuppress more secrets
Alan T. DeKok [Wed, 24 Mar 2021 14:20:06 +0000 (10:20 -0400)] 
suppress more secrets

4 years agotypo
Alan T. DeKok [Wed, 24 Mar 2021 12:22:49 +0000 (08:22 -0400)] 
typo

4 years agouse prefix, too
Alan T. DeKok [Mon, 22 Mar 2021 20:08:42 +0000 (16:08 -0400)] 
use prefix, too

4 years agosuppress secrets here, too
Alan T. DeKok [Mon, 22 Mar 2021 19:57:17 +0000 (15:57 -0400)] 
suppress secrets here, too

4 years agoadd and check for "suppress_secrets"
Alan T. DeKok [Mon, 22 Mar 2021 19:53:55 +0000 (15:53 -0400)] 
add and check for "suppress_secrets"

so that debug output contains fewer secrets

4 years agoadd "secret" flag to attribute
Alan T. DeKok [Mon, 22 Mar 2021 19:39:33 +0000 (15:39 -0400)] 
add "secret" flag to attribute

so we can not print it.  Sometimes.  Maybe.

4 years agoAdd verify_tls_client_common_name policy
Alan T. DeKok [Mon, 22 Mar 2021 19:34:00 +0000 (15:34 -0400)] 
Add verify_tls_client_common_name policy

4 years agoCI package tests: Use Azure-hosted mirrors for better reliability (#3981)
Terry Burton [Mon, 22 Mar 2021 19:37:32 +0000 (19:37 +0000)] 
CI package tests: Use Azure-hosted mirrors for better reliability (#3981)

4 years ago:wrench: rlm_yubikey: Fix parenting issues (#4012)
Jorge Pereira [Mon, 22 Mar 2021 15:50:57 +0000 (12:50 -0300)] 
:wrench: rlm_yubikey: Fix parenting issues (#4012)

4 years agoAdded Centec dictionary. Fixes #4010
Alan T. DeKok [Mon, 22 Mar 2021 13:01:53 +0000 (09:01 -0400)] 
Added Centec dictionary.  Fixes #4010

4 years agoMissing subsection search entry for "refresh" cache method (#4009)
Terry Burton [Fri, 19 Mar 2021 23:30:37 +0000 (23:30 +0000)] 
Missing subsection search entry for "refresh" cache method (#4009)

4 years agoTypo (#4008)
Terry Burton [Fri, 19 Mar 2021 21:44:24 +0000 (21:44 +0000)] 
Typo (#4008)

4 years agoremove from Jenkinsfile, too
Matthew Newton [Fri, 19 Mar 2021 21:14:49 +0000 (21:14 +0000)] 
remove from Jenkinsfile, too

4 years agoupdate to fix CentOS' powertools breakage
Matthew Newton [Fri, 19 Mar 2021 20:59:57 +0000 (20:59 +0000)] 
update to fix CentOS' powertools breakage

4 years agoRemove CentOS 6 from Jenkins builds as now EOL
Matthew Newton [Fri, 19 Mar 2021 20:51:33 +0000 (20:51 +0000)] 
Remove CentOS 6 from Jenkins builds as now EOL

4 years agowhoops, need this too
Alan T. DeKok [Mon, 15 Mar 2021 17:48:48 +0000 (13:48 -0400)] 
whoops, need this too

4 years agodocument "auth+acct" too
Alan T. DeKok [Mon, 15 Mar 2021 17:48:15 +0000 (13:48 -0400)] 
document "auth+acct" too

4 years agonote recent changes
Alan T. DeKok [Mon, 15 Mar 2021 17:38:06 +0000 (13:38 -0400)] 
note recent changes

4 years agoadd IPv6 address for server / client stats
Alan T. DeKok [Mon, 15 Mar 2021 17:36:46 +0000 (13:36 -0400)] 
add IPv6 address for server / client stats

and check for them when looking up stats for server / client

4 years agodon't count Status-Server in auth/acct counters
Alan T. DeKok [Mon, 15 Mar 2021 17:15:31 +0000 (13:15 -0400)] 
don't count Status-Server in auth/acct counters

because we already don't count the replies

4 years agorlm_yubikey: The API uris should be 'https' (#3979)
Jorge Pereira [Sun, 14 Mar 2021 17:37:13 +0000 (14:37 -0300)] 
rlm_yubikey: The API uris should be 'https' (#3979)

4 years agorlm_sql_map: Add 'multiple_rows' option (#3903)
Jorge Pereira [Sun, 7 Mar 2021 00:16:51 +0000 (21:16 -0300)] 
rlm_sql_map: Add 'multiple_rows' option (#3903)

4 years agorun EAP-MD5, too
Alan T. DeKok [Thu, 4 Mar 2021 22:14:51 +0000 (17:14 -0500)] 
run EAP-MD5, too

and sort the files, so they're always run in the same order.

4 years agoreformat and normalize eapol_test configuration files
Alan T. DeKok [Thu, 4 Mar 2021 22:06:36 +0000 (17:06 -0500)] 
reformat and normalize eapol_test configuration files

4 years agoeap: test for TLS session resumption
Alexander Clouter [Sat, 13 Feb 2021 10:37:50 +0000 (10:37 +0000)] 
eap: test for TLS session resumption

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