]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
6 years agoldap: Add references for Active Directory 'Nested groups' (#3532)
Jorge Pereira [Thu, 23 Jul 2020 15:34:19 +0000 (12:34 -0300)] 
ldap: Add references for Active Directory 'Nested groups' (#3532)

6 years agov3.0.x certs: Don't drop extensions when creating server certificates; doc and Makefi...
Terry Burton [Tue, 21 Jul 2020 19:32:50 +0000 (20:32 +0100)] 
v3.0.x certs: Don't drop extensions when creating server certificates; doc and Makefile tidy (#3529)

* certs: Reorder the deps for the Makefile targets

Makes the output of running `make` more logical: First the all the CA
certs steps, then the server cert steps, then the client cert steps.

* certs: Include configured extensions in the server and inner-server certs

We set "[ CA_default ] ... copy_extensions = copy" to ensure that the
basic constrains, key usage and subject alternate name extensions set in
the config file and included in the CSR are actually applied to the
resulting certificate.

* certs: Refer to safer Makefile targets

6 years agonote recent changes
Alan T. DeKok [Tue, 21 Jul 2020 15:02:26 +0000 (11:02 -0400)] 
note recent changes

6 years agonot available in older versions of OpenSSL
Alan T. DeKok [Fri, 17 Jul 2020 12:53:41 +0000 (08:53 -0400)] 
not available in older versions of OpenSSL

6 years agomerge constant time fixes from "master"
Alan T. DeKok [Fri, 17 Jul 2020 12:37:08 +0000 (08:37 -0400)] 
merge constant time fixes from "master"

Based on a patch from Daniel De Almeida Braga.

The code is now largely the same between master and v3.0.x,
which makes it easier to see that it's correct

6 years agoUpdate dictionary.ruckus (#3523)
lyubomirtraykov [Fri, 17 Jul 2020 12:00:55 +0000 (15:00 +0300)] 
Update dictionary.ruckus (#3523)

Add Ruckus-FlexAuth-AVP for ICX Switches

6 years agorun through format.pl
Alan T. DeKok [Fri, 17 Jul 2020 02:04:14 +0000 (22:04 -0400)] 
run through format.pl

6 years agoUpdate dictionary.juniper (#3522)
lyubomirtraykov [Fri, 17 Jul 2020 02:03:40 +0000 (05:03 +0300)] 
Update dictionary.juniper (#3522)

Add Juniper-AV-Pair ATTRIBUTE

6 years agorlm_python3: Fix build against Python 3.8.x (#3504)
Jorge Pereira [Thu, 16 Jul 2020 22:59:33 +0000 (19:59 -0300)] 
rlm_python3: Fix build against Python 3.8.x (#3504)

We don't need the compiler '-specs=/path/whatever.specs' that comes from Python

6 years agoUpdate dictionary.foundry for 3.0.x (#3505)
lyubomirtraykov [Wed, 15 Jul 2020 22:53:49 +0000 (01:53 +0300)] 
Update dictionary.foundry for 3.0.x (#3505)

Add Foundry-COA-Command and Foundry-Voice-Phone-Config for ICX Switches

6 years agorequest->home_server may be NULL after proxying
Alan T. DeKok [Wed, 15 Jul 2020 16:45:33 +0000 (12:45 -0400)] 
request->home_server may be NULL after proxying

if all proxying fails

6 years agonote recent changes
Alan T. DeKok [Wed, 15 Jul 2020 15:22:40 +0000 (11:22 -0400)] 
note recent changes

6 years agoretry TCP / Radsec proxying if the connection attempt fails
Alan T. DeKok [Wed, 15 Jul 2020 15:20:33 +0000 (11:20 -0400)] 
retry TCP / Radsec proxying if the connection attempt fails

6 years agoset label for TLS 1.3 in eaptls_success()
Alan T. DeKok [Mon, 13 Jul 2020 17:35:13 +0000 (13:35 -0400)] 
set label for TLS 1.3 in eaptls_success()

as the label is the same for all TLS-based EAP versions.
If it ends up being different for FAST or TEAP, well, we can change
that later.

6 years agoswitch to just using TLS1_3_VERSION
Alan T. DeKok [Mon, 13 Jul 2020 17:30:12 +0000 (13:30 -0400)] 
switch to just using TLS1_3_VERSION

instead of checking for a particular revision of OpenSSL

6 years agonote recent changes
Alan T. DeKok [Tue, 7 Jul 2020 12:04:40 +0000 (08:04 -0400)] 
note recent changes

6 years agoecho EAP-Key-Name back, if requested
Alan T. DeKok [Tue, 16 Jun 2020 12:55:01 +0000 (08:55 -0400)] 
echo EAP-Key-Name back, if requested

as per RFC 7268 Section 2.2

6 years agov3.0.x: TLSv1.3 support for EAP-{TLS,TTLS,PEAP} (#3516)
Alexander Clouter [Tue, 7 Jul 2020 11:13:23 +0000 (12:13 +0100)] 
v3.0.x: TLSv1.3 support for EAP-{TLS,TTLS,PEAP} (#3516)

* eap-tls: tls version 1.3

draft-ietf-emu-eap-tls13 (tls) and draft-ietf-emu-tls-eap-types (ttls/peap)

* SQUASH: remove unneeded line, compilers complain about more readable code rather than sensibly optimise away

https://github.com/FreeRADIUS/freeradius-server/pull/3516#pullrequestreview-443451513

* SQUASH: comment about early data

* SQUASH: middleware boxen comment

* SQUASH: method of using context is too confusing retain original behaviour

6 years agoApply previous pool changes for default server to decoupled-accounting
Terry Burton [Wed, 1 Jul 2020 17:23:33 +0000 (18:23 +0100)] 
Apply previous pool changes for default server to decoupled-accounting

Amalgam of:

c388934758640bf6708f2b489f48218080212a0b
81cf0fb15e3c734fb029d355031c5fea62959e24

6 years agoBring v3 dhcp_sqlippool config in line with V4
Nick Porter [Wed, 24 Jun 2020 13:58:59 +0000 (14:58 +0100)] 
Bring v3 dhcp_sqlippool config in line with V4

Rather than putting returned addresses into Framed-IP-Address and then
copying into DHCP-Your-IP-Address, place the IP address directly into
the correct attribute.

6 years agoAdd comment to clarify need for Pool-Name
Nick Porter [Tue, 23 Jun 2020 12:13:22 +0000 (13:13 +0100)] 
Add comment to clarify need for Pool-Name

6 years agoNew helper scripts for defining IP pools and aligning sqlippools
Terry Burton [Thu, 4 Jun 2020 02:02:41 +0000 (03:02 +0100)] 
New helper scripts for defining IP pools and aligning sqlippools

generate_pool_addresses.pl allow multiple pools, each containing one or more
address ranges (IPv4 or IPv6) to the specified by YAML file and will output a
list of addresses meeting the specification.

These address ranges may be defined as contiguous or sparse (useful in the case
of IPv6!). In the case of sparse ranges, if a file listing pre-existing
addresses is supplied then these are used. The remainder of the addresses (up
to the given capacity of the range) are allocated randomly.

align_sql_pools.pl takes the list of addresses output by
generate_pool_addresses.pl and generates a set of dialect-specific SQL
statements to align the sqlippools, preserving any existing leases that are
using an addresses that is retained in the pool.

6 years agoAdd 'dictionary.format' target just to keep organized
Jorge Pereira [Tue, 16 Jun 2020 13:06:26 +0000 (10:06 -0300)] 
Add 'dictionary.format' target just to keep organized

6 years agoAdd missing DHCP6 Alcatel attributes
Jorge Pereira [Tue, 16 Jun 2020 12:35:11 +0000 (09:35 -0300)] 
Add missing DHCP6 Alcatel attributes

6 years agonote recent changes
Alan T. DeKok [Wed, 10 Jun 2020 23:20:35 +0000 (19:20 -0400)] 
note recent changes

6 years agocheck for TAG_ANY. Fixes #3491
Alan T. DeKok [Wed, 10 Jun 2020 23:17:16 +0000 (19:17 -0400)] 
check for TAG_ANY.  Fixes #3491

6 years agolooks like package has been renamed
Matthew Newton [Wed, 10 Jun 2020 13:08:02 +0000 (14:08 +0100)] 
looks like package has been renamed

6 years agofreeradius.spec: tidy
Matthew Newton [Wed, 10 Jun 2020 12:26:06 +0000 (13:26 +0100)] 
freeradius.spec: tidy

6 years agoupdate freeradius.spec for new sql configs
Matthew Newton [Wed, 10 Jun 2020 12:15:55 +0000 (13:15 +0100)] 
update freeradius.spec for new sql configs

6 years agoMinor spelling fixes in man files
Alexander Scheel [Tue, 9 Jun 2020 16:02:47 +0000 (12:02 -0400)] 
Minor spelling fixes in man files

Signed-off-by: Alexander Scheel <ascheel@redhat.com>
6 years agouse talloc_zero_array
Alan T. DeKok [Wed, 10 Jun 2020 01:32:37 +0000 (21:32 -0400)] 
use talloc_zero_array

6 years agomore debug messages
Alan T. DeKok [Fri, 5 Jun 2020 19:33:44 +0000 (15:33 -0400)] 
more debug messages

6 years agomore complaints
Alan T. DeKok [Thu, 4 Jun 2020 20:45:32 +0000 (16:45 -0400)] 
more complaints

6 years agoDHCP Release pool config should be a comment as with other examples
Terry Burton [Tue, 9 Jun 2020 13:16:45 +0000 (14:16 +0100)] 
DHCP Release pool config should be a comment as with other examples

6 years agoRefresh dhcp-ippool queries and stored procedures
Terry Burton [Tue, 9 Jun 2020 15:22:51 +0000 (16:22 +0100)] 
Refresh dhcp-ippool queries and stored procedures

Almost identical to the RADIUS ippool queries but worth maintaining
differentiation since in future the queries may honour a
Requested-IP-Address.

6 years agoproto_dhcp: Server must echo DHCP-Client-Identifier if given
Terry Burton [Mon, 8 Jun 2020 23:45:41 +0000 (00:45 +0100)] 
proto_dhcp: Server must echo DHCP-Client-Identifier if given

As per RFC 6842.

6 years agodhcp_sqlippool: Key pool entries by DHCP-Client-Identifier if it is given
Terry Burton [Mon, 1 Jun 2020 23:47:20 +0000 (00:47 +0100)] 
dhcp_sqlippool: Key pool entries by DHCP-Client-Identifier if it is given

6 years agodhcp-sqlippools: Realign module configuration with sqlippools
Terry Burton [Sat, 30 May 2020 00:39:26 +0000 (01:39 +0100)] 
dhcp-sqlippools: Realign module configuration with sqlippools

Since the introduction of dynamic pool names this has been looking for
pool_name with an incorrect scope.

6 years agoDHCP sqlippools: De-allocate IP address upon receiving DHCP Release
Terry Burton [Tue, 9 Jun 2020 11:48:14 +0000 (12:48 +0100)] 
DHCP sqlippools: De-allocate IP address upon receiving DHCP Release

6 years agoAllow the developer build macro WITH_VERIFY_PTR to be disabled
Terry Burton [Sat, 6 Jun 2020 21:22:50 +0000 (22:22 +0100)] 
Allow the developer build macro WITH_VERIFY_PTR to be disabled

-DWITH_VERIFY_PTR=1 significantly scews the function call profile.

6 years agorlm_perl: Add missing %RAD_PERLCONF as our()
Jorge Pereira [Wed, 27 May 2020 21:27:58 +0000 (18:27 -0300)] 
rlm_perl: Add missing %RAD_PERLCONF as our()

6 years agocrypt may return a string when the salt is invalid
Matthew Newton [Tue, 19 May 2020 14:18:26 +0000 (15:18 +0100)] 
crypt may return a string when the salt is invalid

6 years agoallow unpacking the rest of the string
Alan T. DeKok [Mon, 18 May 2020 17:11:18 +0000 (13:11 -0400)] 
allow unpacking the rest of the string

6 years agomore error messages
Alan T. DeKok [Thu, 7 May 2020 21:50:58 +0000 (17:50 -0400)] 
more error messages

6 years agoAdd ubuntu20 to Jenkins
Matthew Newton [Mon, 11 May 2020 09:22:29 +0000 (10:22 +0100)] 
Add ubuntu20 to Jenkins

6 years agoMySQL: Use correct syntax for creating the radius user
Terry Burton [Fri, 8 May 2020 12:38:53 +0000 (13:38 +0100)] 
MySQL: Use correct syntax for creating the radius user

This syntax works from at least MySQL 5.7 to MySQL 8 and corresponding MariaDB
versions.

6 years agodynamic_home_servers.md: Add references for listing the home servers
Jorge Pereira [Thu, 7 May 2020 14:03:53 +0000 (11:03 -0300)] 
dynamic_home_servers.md: Add references for listing the home servers

6 years agoPython3 fixes (#3350)
Alejandro Perez [Thu, 7 May 2020 16:29:06 +0000 (17:29 +0100)] 
Python3 fixes (#3350)

* python3-config for Python 3.8 requires --embed parameter

As described in https://bugs.python.org/issue36721, python3-config now
requires --embed for embedded interpreters. Otherwise, -lpython3.8 is
not included in ldflags

* Python 3.8 has removed the "m" suffix in the library name

As discussed in: https://bugs.python.org/issue36707

* Use dl_iterate_phdr to find the appropriate python library

Otherwise, installation of the libpython3-dev packages is required
in most distributions

* Update configure file for rlm_python3

* Use AX_COMPARE_VERSION to check Python version

6 years agorlm_sql_mongo: Added support for aggregation pipelines to findAndModify
Benjamin Thompson [Mon, 4 May 2020 21:18:56 +0000 (00:18 +0300)] 
rlm_sql_mongo: Added support for aggregation pipelines to findAndModify

6 years agoMariaDB sqlippools: New SP that emulates SKIP LOCKED using "user locks"
Terry Burton [Wed, 29 Apr 2020 12:19:27 +0000 (13:19 +0100)] 
MariaDB sqlippools: New SP that emulates SKIP LOCKED using "user locks"

If we're careful we can emulate the SKIP LOCKED pragma by using user locks with
names based on the framedipaddress.

Testing shows greatly improved throughput largely due to preventing thread
starvation under highly concurrent load.

6 years agoradmin: Add capability to show more about the home servers
Jorge Pereira [Mon, 27 Apr 2020 21:04:11 +0000 (18:04 -0300)] 
radmin: Add capability to show more about the home servers

Now we can know the home server name and if is dynamic or no.

e.g:

radmin> show home_server list all

6 years agoupdate crossbuild dockerfiles
Matthew Newton [Fri, 1 May 2020 20:19:12 +0000 (21:19 +0100)] 
update crossbuild dockerfiles

- add ubuntu20
- add centos8
- bump node from v8 to v10
- fix llvm key on some images
- fix nodesource source repo issue in centos

6 years agofix files tests
Matthew Newton [Fri, 1 May 2020 21:23:30 +0000 (22:23 +0100)] 
fix files tests

6 years agocrossbuild: env var to pass options to docker build
Matthew Newton [Fri, 1 May 2020 20:18:31 +0000 (21:18 +0100)] 
crossbuild: env var to pass options to docker build

e.g. --no-cache

6 years agoadd dockerfile for ubuntu20
Matthew Newton [Fri, 1 May 2020 12:14:05 +0000 (13:14 +0100)] 
add dockerfile for ubuntu20

6 years agomanually set reply->code = challenge
Alan T. DeKok [Fri, 1 May 2020 15:58:15 +0000 (11:58 -0400)] 
manually set reply->code = challenge

for the case when we manually create an identity request

6 years agoupdate debian/ubuntu build-dep
Matthew Newton [Fri, 1 May 2020 12:03:19 +0000 (13:03 +0100)] 
update debian/ubuntu build-dep

6 years agocatch EAGAIN, too
Alan T. DeKok [Thu, 30 Apr 2020 12:17:59 +0000 (08:17 -0400)] 
catch EAGAIN, too

6 years agoradclient: The '-c' value should be >= 1
Jorge Pereira [Thu, 30 Apr 2020 02:19:39 +0000 (23:19 -0300)] 
radclient: The '-c' value should be >= 1

If we pass '-c 0' causes an infinity loop.

6 years agoremove 256 limit on "show clients" and "show home servers"
Alan T. DeKok [Thu, 30 Apr 2020 11:22:14 +0000 (07:22 -0400)] 
remove 256 limit on "show clients" and "show home servers"

6 years agoremove duplication
Alan T. DeKok [Mon, 27 Apr 2020 13:26:23 +0000 (09:26 -0400)] 
remove duplication

6 years agonote recent changes
Alan T. DeKok [Mon, 27 Apr 2020 12:44:02 +0000 (08:44 -0400)] 
note recent changes

6 years agoclean up and point to "howto" guide
Alan T. DeKok [Mon, 27 Apr 2020 12:40:10 +0000 (08:40 -0400)] 
clean up and point to "howto" guide

6 years agoFix rad_authenticate() to handle the new 'Home-Server-Name'
Jorge Pereira [Sun, 26 Apr 2020 21:47:52 +0000 (18:47 -0300)] 
Fix rad_authenticate() to handle the new 'Home-Server-Name'

6 years agodoc/configuration/dynamic_home_servers.md: Fix typo
Jorge Pereira [Sun, 26 Apr 2020 20:39:16 +0000 (17:39 -0300)] 
doc/configuration/dynamic_home_servers.md: Fix typo

6 years agohome_server_delete() should delete also from 'home_servers_bynumber'
Jorge Pereira [Sun, 26 Apr 2020 19:50:22 +0000 (16:50 -0300)] 
home_server_delete() should delete also from 'home_servers_bynumber'

6 years agohome_server_delete() should look up by name, not file
Jorge Pereira [Sun, 26 Apr 2020 19:49:50 +0000 (16:49 -0300)] 
home_server_delete() should look up by name, not file

6 years agoFix missing \n
Jorge Pereira [Sun, 26 Apr 2020 19:21:45 +0000 (16:21 -0300)] 
Fix missing \n

6 years agohome_server_afrom_file() single exit
Jorge Pereira [Sun, 26 Apr 2020 19:05:55 +0000 (16:05 -0300)] 
home_server_afrom_file() single exit

6 years agohome_server_afrom_cs() expects the subsection
Jorge Pereira [Sun, 26 Apr 2020 19:01:32 +0000 (16:01 -0300)] 
home_server_afrom_cs() expects the subsection

6 years agoFix typo, it's should be 'home_server'
Jorge Pereira [Sun, 26 Apr 2020 18:59:16 +0000 (15:59 -0300)] 
Fix typo, it's should be 'home_server'

6 years agohome_server_afrom_file() expects the file fullpath.
Jorge Pereira [Sun, 26 Apr 2020 18:20:14 +0000 (15:20 -0300)] 
home_server_afrom_file() expects the file fullpath.

6 years agoVerify if 'directory' is set before proceeding.
Jorge Pereira [Sun, 26 Apr 2020 18:17:36 +0000 (15:17 -0300)] 
Verify if 'directory' is set before proceeding.

6 years agoUpdate proxy.conf with new 'directory' parameter
Jorge Pereira [Sun, 26 Apr 2020 18:10:55 +0000 (15:10 -0300)] 
Update proxy.conf with new 'directory' parameter

6 years agoresource-check virtual server for triggering control flow updates (#3398)
Terry Burton [Thu, 23 Apr 2020 13:49:47 +0000 (14:49 +0100)] 
resource-check virtual server for triggering control flow updates (#3398)

6 years agorlm_always: xlat for setting module status and rcode via unlang (#3396)
Terry Burton [Tue, 21 Apr 2020 21:03:17 +0000 (22:03 +0100)] 
rlm_always: xlat for setting module status and rcode via unlang (#3396)

Parity with: radmin -e 'set module status db_status {alive,dead,notfound,...}'

6 years agoenable delta CRLs. Fixes #3393
Alan T. DeKok [Mon, 20 Apr 2020 20:59:51 +0000 (16:59 -0400)] 
enable delta CRLs.  Fixes #3393

6 years agoFix typo, It should be WITH_TLS. (#3394)
Jorge Pereira [Mon, 20 Apr 2020 20:16:11 +0000 (17:16 -0300)] 
Fix typo, It should be WITH_TLS. (#3394)

6 years agodocument updates
Alan T. DeKok [Mon, 20 Apr 2020 19:23:36 +0000 (15:23 -0400)] 
document updates

6 years agoerror out on TCP / TLS home servers
Alan T. DeKok [Mon, 20 Apr 2020 19:17:00 +0000 (15:17 -0400)] 
error out on TCP / TLS home servers

6 years agoTypo (#3391)
Jorge Pereira [Mon, 20 Apr 2020 12:44:23 +0000 (09:44 -0300)] 
Typo (#3391)

6 years agoexperimental document on dynamic home servers
Alan T. DeKok [Mon, 20 Apr 2020 12:37:36 +0000 (08:37 -0400)] 
experimental document on dynamic home servers

6 years agoadd `%{home_server_exists:name}`
Alan T. DeKok [Sun, 19 Apr 2020 17:51:06 +0000 (13:51 -0400)] 
add `%{home_server_exists:name}`

6 years agoallow proxying to home servers by name
Alan T. DeKok [Sun, 19 Apr 2020 17:44:44 +0000 (13:44 -0400)] 
allow proxying to home servers by name

6 years agouse a better name
Alan T. DeKok [Sun, 19 Apr 2020 17:33:29 +0000 (13:33 -0400)] 
use a better name

6 years agorealms: Clarify the message (#3388)
Jorge Pereira [Mon, 20 Apr 2020 01:15:44 +0000 (22:15 -0300)] 
realms: Clarify the message (#3388)

6 years agoproxy: Add missed 'dynamic' option in proxy.conf (#3389)
Jorge Pereira [Mon, 20 Apr 2020 01:15:23 +0000 (22:15 -0300)] 
proxy: Add missed 'dynamic' option in proxy.conf (#3389)

6 years agoradmin: Fix 'home_server' (#3387)
Jorge Pereira [Sun, 19 Apr 2020 21:15:10 +0000 (18:15 -0300)] 
radmin: Fix 'home_server' (#3387)

6 years agoQuiet the compiler (#3386)
Jorge Pereira [Sun, 19 Apr 2020 19:47:52 +0000 (16:47 -0300)] 
Quiet the compiler (#3386)

6 years agorealms: Fix missing closedir() (#3385)
Jorge Pereira [Sun, 19 Apr 2020 19:47:30 +0000 (16:47 -0300)] 
realms: Fix missing closedir() (#3385)

6 years agofix issues and allow for loading of dynamic home servers at boot
Alan T. DeKok [Sun, 19 Apr 2020 15:38:28 +0000 (11:38 -0400)] 
fix issues and allow for loading of dynamic home servers at boot

6 years agofix typos
Alan T. DeKok [Sun, 19 Apr 2020 15:37:51 +0000 (11:37 -0400)] 
fix typos

6 years agoadded provisions for dynamic home servers
Alan T. DeKok [Sat, 18 Apr 2020 23:56:50 +0000 (19:56 -0400)] 
added provisions for dynamic home servers

and glued them into radmin.

Untested as of yet.

6 years agoallow request_will_proxy() to return an error
Alan T. DeKok [Sat, 18 Apr 2020 23:40:28 +0000 (19:40 -0400)] 
allow request_will_proxy() to return an error

and check it in request_running()

6 years agorlm_cache: Fix sanity check for driver name (#3371)
Jorge Pereira [Mon, 13 Apr 2020 15:00:51 +0000 (12:00 -0300)] 
rlm_cache: Fix sanity check for driver name (#3371)

6 years agoFix memory leak in radsniff (#3360)
Jorge Pereira [Wed, 8 Apr 2020 21:20:19 +0000 (18:20 -0300)] 
Fix memory leak in radsniff (#3360)

We should call pcap_freealldevs() always after pcap_findalldevs()

6 years agonote recent changes
Alan T. DeKok [Tue, 7 Apr 2020 13:13:44 +0000 (09:13 -0400)] 
note recent changes

6 years agoallow receiving CoA packets on TLS listeners, too. Helps with #3356
Alan T. DeKok [Tue, 7 Apr 2020 13:09:24 +0000 (09:09 -0400)] 
allow receiving CoA packets on TLS listeners, too.  Helps with #3356

6 years agoallow reception of CoA responses over TLS. Helps with #3356
Alan T. DeKok [Tue, 7 Apr 2020 13:06:21 +0000 (09:06 -0400)] 
allow reception of CoA responses over TLS.  Helps with #3356

6 years agofix typo
Alan T. DeKok [Tue, 7 Apr 2020 13:06:06 +0000 (09:06 -0400)] 
fix typo