]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
7 years agoupdates
Alan T. DeKok [Fri, 22 Mar 2019 13:32:39 +0000 (09:32 -0400)] 
updates

from http://www.3gpp2.org/Public_html/Specs/X.S0011-005-E_v1.0_091116.pdf
among others

7 years agoMerge pull request #2578 from restena-sw/v3.0.x
Alan DeKok [Fri, 22 Mar 2019 12:12:06 +0000 (08:12 -0400)] 
Merge pull request #2578 from restena-sw/v3.0.x

V3.0.x the documentation mentions a parameter ignore_null which doesn't exist in the realm module

7 years agoUpdate inner-tunnel 2578/head
Stefan Winter [Fri, 22 Mar 2019 12:04:29 +0000 (13:04 +0100)] 
Update inner-tunnel

7 years agothe parameter ignore_null doesn't exist
Stefan Winter [Fri, 22 Mar 2019 12:03:30 +0000 (13:03 +0100)] 
the parameter ignore_null doesn't exist

7 years agosql typo
Matthew Newton [Tue, 19 Mar 2019 00:10:47 +0000 (00:10 +0000)] 
sql typo

7 years agoperhaps a more backwards compatible fix. Helps with #2576
Alan T. DeKok [Mon, 18 Mar 2019 12:20:46 +0000 (08:20 -0400)] 
perhaps a more backwards compatible fix.  Helps with #2576

7 years agoUse newer API. Closes #2576
Alan T. DeKok [Mon, 18 Mar 2019 12:18:24 +0000 (08:18 -0400)] 
Use newer API.  Closes #2576

7 years agonotes for mssql
Alan T. DeKok [Sun, 17 Mar 2019 15:14:36 +0000 (11:14 -0400)] 
notes for mssql

7 years agouncomment the driver-specific sections
Alan T. DeKok [Sun, 17 Mar 2019 14:41:23 +0000 (10:41 -0400)] 
uncomment the driver-specific sections

so that it's less work for the admin to do at run time

7 years agomake the default config clearer
Alan T. DeKok [Sun, 17 Mar 2019 14:37:44 +0000 (10:37 -0400)] 
make the default config clearer

7 years agore-add "show client config" command
Alan T. DeKok [Mon, 11 Mar 2019 17:26:47 +0000 (13:26 -0400)] 
re-add "show client config" command

7 years agoremove unused command
Alan T. DeKok [Mon, 11 Mar 2019 13:00:10 +0000 (09:00 -0400)] 
remove unused command

7 years agoMerge pull request #2566 from SearchLightNZ/fix_sqlippool_pgsql_null
Alan DeKok [Sun, 10 Mar 2019 13:45:23 +0000 (09:45 -0400)] 
Merge pull request #2566 from SearchLightNZ/fix_sqlippool_pgsql_null

Fix sqlippool pgsql procedure, and PgPool load balancing

7 years agoLet PgPool detect the stored procedure as needing a write transaction. 2566/head
Nathan Ward [Sat, 9 Mar 2019 02:27:54 +0000 (15:27 +1300)] 
Let PgPool detect the stored procedure as needing a write transaction.

- Add an SQL comment, and documentation for the same, which triggers PgPool to not load balance this to a read-only server, and instead send it to a write server. As noted, this does not have any negative effect if PgPool is not in use, so it is useful to have here to avoid problems caused by someone starting to used this procedure when they've got a working PgPool/PostgreSQL installation already.

Signed-off-by: Nathan Ward <nward@searchlight.nz>
7 years agoFix the NULL comparison.
Nathan Ward [Sat, 9 Mar 2019 02:27:34 +0000 (15:27 +1300)] 
Fix the NULL comparison.

Signed-off-by: Nathan Ward <nward@searchlight.nz>
7 years agoupdate documentation
Alan T. DeKok [Fri, 8 Mar 2019 17:12:26 +0000 (12:12 -0500)] 
update documentation

7 years agoMerge pull request #2557 from alejandro-perez/patch-1
Alan DeKok [Wed, 6 Mar 2019 22:17:51 +0000 (17:17 -0500)] 
Merge pull request #2557 from alejandro-perez/patch-1

Fix TrustRouter query potential deadlock

7 years agoFix TrustRouter query potential deadlock 2557/head
Alejandro Perez Mendez [Tue, 5 Mar 2019 15:40:41 +0000 (15:40 +0000)] 
Fix TrustRouter query potential deadlock

Existing code uses a single lock to protect concurrent access to the
global_tidc variable. Under certain circumstances, two FreeRadius servers
wanting to resolve each other's realms at the same time might provoke
a deadlock situation, if this query triggered in turn another realm
resolution attempt for the APC's realm on both sides.

While this is a corner case, it has been observed in stress testing
environments.

This patch gets rid of the global_tidc in favour of a local approach,
and provides a pool of mutexes that are used to serialise different queries for
a particular realm, while allowing concurrent queries for different realms.

7 years agoFix references to eap.conf
Arran Cudbard-Bell [Tue, 5 Mar 2019 11:00:13 +0000 (19:00 +0800)] 
Fix references to eap.conf

7 years agomore checks for !handle. May help with #2532
Alan T. DeKok [Mon, 4 Mar 2019 21:28:07 +0000 (16:28 -0500)] 
more checks for !handle.  May help with #2532

7 years agonote recent changes
Alan T. DeKok [Mon, 4 Mar 2019 14:23:28 +0000 (09:23 -0500)] 
note recent changes

7 years agoPrint correct name, and use correct check
Alan T. DeKok [Mon, 4 Mar 2019 14:22:52 +0000 (09:22 -0500)] 
Print correct name, and use correct check

7 years agonote recent changes
Alan T. DeKok [Mon, 4 Mar 2019 12:42:30 +0000 (07:42 -0500)] 
note recent changes

7 years agohandle more cases of reconnect. May help with #2532
Alan T. DeKok [Mon, 4 Mar 2019 12:39:09 +0000 (07:39 -0500)] 
handle more cases of reconnect.  May help with #2532

7 years agonote recent changes
Matthew Newton [Fri, 1 Mar 2019 01:13:00 +0000 (01:13 +0000)] 
note recent changes

7 years agoEnsure freeradius can write its pidfile
Matthew Newton [Thu, 28 Feb 2019 21:37:07 +0000 (21:37 +0000)] 
Ensure freeradius can write its pidfile

7 years agoFix up systemd watchdog timer calculations
Matthew Newton [Thu, 28 Feb 2019 19:55:52 +0000 (19:55 +0000)] 
Fix up systemd watchdog timer calculations

7 years agotidy watchdog interval notice
Matthew Newton [Thu, 28 Feb 2019 17:23:38 +0000 (17:23 +0000)] 
tidy watchdog interval notice

7 years agoAdd systemd to redhat spec file configure options
Matthew Newton [Thu, 28 Feb 2019 16:14:56 +0000 (16:14 +0000)] 
Add systemd to redhat spec file configure options

7 years agorefresh configure
Matthew Newton [Thu, 28 Feb 2019 15:20:44 +0000 (15:20 +0000)] 
refresh configure

7 years agosd_notify needs to be called as well
Matthew Newton [Thu, 28 Feb 2019 16:06:14 +0000 (16:06 +0000)] 
sd_notify needs to be called as well

7 years agofix autogen search paths so includes can be found
Matthew Newton [Thu, 28 Feb 2019 15:19:12 +0000 (15:19 +0000)] 
fix autogen search paths so includes can be found

7 years agoFix up the systemd configure checks and backport the missing bits
Matthew Newton [Thu, 28 Feb 2019 13:29:17 +0000 (13:29 +0000)] 
Fix up the systemd configure checks and backport the missing bits

7 years agoCentOS 6 is pre-systemd and needs /lib/lsb/init-functions
Matthew Newton [Thu, 28 Feb 2019 00:11:09 +0000 (00:11 +0000)] 
CentOS 6 is pre-systemd and needs /lib/lsb/init-functions

7 years agoCentOS 6 doesn't fully support Samba 4, so don't try and use it
Matthew Newton [Wed, 27 Feb 2019 23:44:59 +0000 (23:44 +0000)] 
CentOS 6 doesn't fully support Samba 4, so don't try and use it

Samba 3 libwbclient is too old

7 years agonote recent changes
Alan T. DeKok [Thu, 28 Feb 2019 16:17:09 +0000 (11:17 -0500)] 
note recent changes

7 years agomove procedure to new file
Alan T. DeKok [Thu, 28 Feb 2019 16:16:37 +0000 (11:16 -0500)] 
move procedure to new file

It's better to have a different file than to ask the admin
to un-comment lots of code.

7 years agoMerge pull request #2540 from SearchLightNZ/sqlippool_previous_ip_improvements
Alan DeKok [Thu, 28 Feb 2019 16:11:23 +0000 (11:11 -0500)] 
Merge pull request #2540 from SearchLightNZ/sqlippool_previous_ip_improvements

Add a stored procedure for PostgreSQL rlm_sqlippool.

7 years agoas posted to the list
Alan T. DeKok [Thu, 28 Feb 2019 12:39:33 +0000 (07:39 -0500)] 
as posted to the list

7 years agoAdd a stored procedure for PostgreSQL rlm_sqlippool. 2540/head
Nathan Ward [Thu, 28 Feb 2019 02:47:27 +0000 (15:47 +1300)] 
Add a stored procedure for PostgreSQL rlm_sqlippool.

This matches the functionality of the existing example query which returns the users previous IP, if possible, however it runs approx 400x faster.

7 years agoMerge pull request #2533 from SearchLightNZ/fix_sqlippool_driver_specific_escapes
Alan DeKok [Wed, 27 Feb 2019 13:18:33 +0000 (08:18 -0500)] 
Merge pull request #2533 from SearchLightNZ/fix_sqlippool_driver_specific_escapes

Pass handle to radius_axlat in sqlippool, rather than the sql instance

7 years agoPass handle to radius_axlat in sqlippool, rather than the sql instance 2533/head
Nathan Ward [Wed, 27 Feb 2019 13:07:37 +0000 (02:07 +1300)] 
Pass handle to radius_axlat in sqlippool, rather than the sql instance

Fix #2532

7 years agosave / restore module name
Alan T. DeKok [Tue, 26 Feb 2019 17:50:34 +0000 (12:50 -0500)] 
save / restore module name

7 years agonote recent changes
Alan T. DeKok [Tue, 26 Feb 2019 15:17:49 +0000 (10:17 -0500)] 
note recent changes

7 years agocheck for client from `dynamic_clients` module
Alan T. DeKok [Tue, 26 Feb 2019 15:16:50 +0000 (10:16 -0500)] 
check for client from `dynamic_clients` module

and don't parse VPs if the client struct was already created.

7 years agouse better checks for normal packets
Alan T. DeKok [Tue, 26 Feb 2019 15:16:10 +0000 (10:16 -0500)] 
use better checks for normal packets

and mark up the client as being dynamic, so the core can check
that flag.

7 years agoMerge pull request #2526 from alejandro-perez/patch-1
Alan DeKok [Tue, 26 Feb 2019 15:22:43 +0000 (10:22 -0500)] 
Merge pull request #2526 from alejandro-perez/patch-1

Update abfab-tr-idp

7 years agoRemove unneeded comment 2526/head
Alejandro Perez [Tue, 26 Feb 2019 13:56:32 +0000 (14:56 +0100)] 
Remove unneeded comment

7 years agoUpdate abfab-tr-idp
Alejandro Perez [Tue, 26 Feb 2019 13:54:22 +0000 (14:54 +0100)] 
Update abfab-tr-idp

Apply change made to sites-available/default also to abfab-tr-idp.

7 years agoavoid m4 special []s in configure script
Matthew Newton [Tue, 26 Feb 2019 11:35:54 +0000 (11:35 +0000)] 
avoid m4 special []s in configure script

7 years agoadd ubuntu18 Dockerfile, use that for dockerhub image
Matthew Newton [Tue, 26 Feb 2019 02:10:08 +0000 (02:10 +0000)] 
add ubuntu18 Dockerfile, use that for dockerhub image

7 years agoalpine switched back to openssl, so we can too
Matthew Newton [Tue, 26 Feb 2019 02:07:15 +0000 (02:07 +0000)] 
alpine switched back to openssl, so we can too

which is a good job, as recent FR barfs on libressl anyway

7 years agobackport the rest of the control.in patch from v4
Matthew Newton [Mon, 25 Feb 2019 22:20:09 +0000 (22:20 +0000)] 
backport the rest of the control.in patch from v4

7 years agobump for 3.0.19
Alan T. DeKok [Mon, 25 Feb 2019 20:08:09 +0000 (15:08 -0500)] 
bump for 3.0.19

7 years agobump for 3.0.18 release_3_0_18
Alan T. DeKok [Mon, 25 Feb 2019 19:55:30 +0000 (14:55 -0500)] 
bump for 3.0.18

7 years agonote recent changes
Alan T. DeKok [Mon, 25 Feb 2019 15:45:47 +0000 (10:45 -0500)] 
note recent changes

7 years agocheck for openssl/rand.h. Fixes #2517
Alan T. DeKok [Mon, 25 Feb 2019 15:39:59 +0000 (10:39 -0500)] 
check for openssl/rand.h.  Fixes #2517

There are a few places in code that check for HAVE_OPENSSL_RAND_H.

7 years agoallow build with no openssl engine support. Fixes #2517
Alan T. DeKok [Mon, 25 Feb 2019 15:39:11 +0000 (10:39 -0500)] 
allow build with no openssl engine support.  Fixes #2517

7 years agofail if proxy reply is too late
Alan T. DeKok [Fri, 22 Feb 2019 12:30:53 +0000 (07:30 -0500)] 
fail if proxy reply is too late

even if the reply was found in the proxy hash, we still might
have request->proxy_listener=NULL.  This shouldn't happen, but...

7 years agonote recent changes
Alan T. DeKok [Thu, 21 Feb 2019 12:31:35 +0000 (07:31 -0500)] 
note recent changes

7 years agoAvoid spurious error messages on acctuniqueid conflicts using PG's 'upsert' functionality
Arran Cudbard-Bell [Wed, 20 Feb 2019 12:24:49 +0000 (20:24 +0800)] 
Avoid spurious error messages on acctuniqueid conflicts using PG's 'upsert' functionality

Switch condition to use AcctUniqueId which is much cleaner so long as it really is unique.

7 years agoMerge pull request #2504 from jpereira/v3/fix-warning
Alan DeKok [Wed, 20 Feb 2019 20:32:00 +0000 (15:32 -0500)] 
Merge pull request #2504 from jpereira/v3/fix-warning

raddb/sites-available/default: Suppres warning message

7 years agoraddb/sites-available/default: Suppres warning message 2504/head
Jorge Pereira [Wed, 20 Feb 2019 20:24:57 +0000 (17:24 -0300)] 
raddb/sites-available/default: Suppres warning message

7 years agoMerge pull request #2502 from jpereira/v3/systemd1
Alan DeKok [Wed, 20 Feb 2019 20:12:10 +0000 (15:12 -0500)] 
Merge pull request #2502 from jpereira/v3/systemd1

Add support for systemd watchdogs #2499

7 years ago#2499 systemd: Add support for watchdogs 2502/head
Jorge Pereira [Wed, 20 Feb 2019 17:28:49 +0000 (14:28 -0300)] 
#2499 systemd: Add support for watchdogs

7 years ago#2499 systemd: Add mechanism to detect the library
Jorge Pereira [Wed, 20 Feb 2019 17:30:22 +0000 (14:30 -0300)] 
#2499 systemd: Add mechanism to detect the library

7 years ago(no commit message)
Jorge Pereira [Wed, 20 Feb 2019 18:02:45 +0000 (15:02 -0300)] 

7 years agocheck for 0 bytes, too. We dup "" then
Alan T. DeKok [Wed, 20 Feb 2019 18:14:32 +0000 (13:14 -0500)] 
check for 0 bytes, too.  We dup "" then

7 years agouse the correct size of the buffer
Alan T. DeKok [Wed, 20 Feb 2019 18:09:17 +0000 (13:09 -0500)] 
use the correct size of the buffer

7 years ago#2499 systemd: Adjustments for Debian/Redhat packages
Jorge Pereira [Wed, 20 Feb 2019 17:27:00 +0000 (14:27 -0300)] 
#2499 systemd: Adjustments for Debian/Redhat packages

7 years agodebug map types other than "attr" and "list"
Alan T. DeKok [Mon, 18 Feb 2019 00:57:20 +0000 (19:57 -0500)] 
debug map types other than "attr" and "list"

7 years agoMerge pull request #2486 from alejandro-perez/fix_misleading_msg
Arran Cudbard-Bell [Sun, 17 Feb 2019 02:55:54 +0000 (08:25 +0530)] 
Merge pull request #2486 from alejandro-perez/fix_misleading_msg

Fix misleading error message

7 years agoMerge pull request #2497 from jpereira/v3/typo1
Arran Cudbard-Bell [Sun, 17 Feb 2019 02:55:37 +0000 (08:25 +0530)] 
Merge pull request #2497 from jpereira/v3/typo1

Changelog: Typo

7 years agoMerge branch 'v3.0.x' into v3/typo1 2497/head
Arran Cudbard-Bell [Sun, 17 Feb 2019 02:55:29 +0000 (08:25 +0530)] 
Merge branch 'v3.0.x' into v3/typo1

7 years agonote recent changes
Alan T. DeKok [Sun, 17 Feb 2019 01:42:28 +0000 (20:42 -0500)] 
note recent changes

7 years agoMerge pull request #2493 from alejandro-perez/doc_ukerna_dict
Alan DeKok [Sun, 17 Feb 2019 01:38:27 +0000 (20:38 -0500)] 
Merge pull request #2493 from alejandro-perez/doc_ukerna_dict

Add some documentation to the ukerna dictionary

7 years agoMerge pull request #2492 from alejandro-perez/add_rfc7542_bangpath
Alan DeKok [Sun, 17 Feb 2019 01:37:54 +0000 (20:37 -0500)] 
Merge pull request #2492 from alejandro-perez/add_rfc7542_bangpath

Add RFC7542 bang path support as a recipe.

7 years agoChangelog: Typo
Jorge Pereira [Sat, 16 Feb 2019 17:31:39 +0000 (15:31 -0200)] 
Changelog: Typo

7 years agoMerge pull request #2495 from jpereira/v3/fix-mysql-mariadb-build
Alan DeKok [Sat, 16 Feb 2019 15:40:36 +0000 (10:40 -0500)] 
Merge pull request #2495 from jpereira/v3/fix-mysql-mariadb-build

rlm_sql_mysql: Add better mechanism to detect MariaDB (Old MySQL)

7 years agorlm_sql_mysql: Add better mechanism to detect MariaDB (Old MySQL) 2495/head
Jorge Pereira [Fri, 15 Feb 2019 22:41:11 +0000 (20:41 -0200)] 
rlm_sql_mysql: Add better mechanism to detect MariaDB (Old MySQL)

7 years agoit's no longer an "initial implementation"
Alan T. DeKok [Fri, 15 Feb 2019 21:21:37 +0000 (16:21 -0500)] 
it's no longer an "initial implementation"

7 years agoMerge pull request #2490 from jpereira/feature/v3-mysql-tls
Alan DeKok [Fri, 15 Feb 2019 17:38:46 +0000 (12:38 -0500)] 
Merge pull request #2490 from jpereira/feature/v3-mysql-tls

Expose more TLS options in MySQL driver ref #2481

7 years agoAdd some documentation to the ukerna dictionary 2493/head
Alejandro Perez [Fri, 15 Feb 2019 16:15:29 +0000 (17:15 +0100)] 
Add some documentation to the ukerna dictionary

7 years agoAdd RFC7542 bang path support as a recipe. 2492/head
Alejandro Perez [Fri, 15 Feb 2019 16:03:40 +0000 (17:03 +0100)] 
Add RFC7542 bang path support as a recipe.

Also enabling it immediately in the ABFAB server

7 years agoExpose more TLS options in MySQL driver ref #2481 2490/head
Jorge Pereira [Fri, 15 Feb 2019 15:21:56 +0000 (13:21 -0200)] 
Expose more TLS options in MySQL driver ref #2481

* Availability of TLS and reconnect options in MySQL driver
checked by using MySQL or MariaDB version.

7 years agoMerge pull request #2489 from jpereira/fix/v3-mysql-reconect
Alan DeKok [Fri, 15 Feb 2019 13:27:04 +0000 (08:27 -0500)] 
Merge pull request #2489 from jpereira/fix/v3-mysql-reconect

Fix reconnect correctly in rlm_sql_mysql

7 years agoFix reconnect correctly in rlm_sql_mysql. 2489/head
Jorge Pereira [Fri, 15 Feb 2019 04:04:17 +0000 (02:04 -0200)] 
Fix reconnect correctly in rlm_sql_mysql.

7 years agoFix misleading error message 2486/head
Alejandro Perez [Thu, 14 Feb 2019 08:34:30 +0000 (09:34 +0100)] 
Fix misleading error message

When the realm is already found, it still said that no TR was configured.

7 years agoHnadle the case of no existing entry, fixes #2485
Alan T. DeKok [Thu, 14 Feb 2019 01:42:52 +0000 (20:42 -0500)] 
Hnadle the case of no existing entry, fixes #2485

Setting a Cache-TTL of < 0 means expire the existing entry
(without merging) and create a new one with TTL set to value * -1.

If there is no existing entry, the previous code just set
ttl = inst->ttl

It should instead use Cache-TTL

7 years agoRevert new MySQL code which doesn't yet work.
Alan T. DeKok [Wed, 13 Feb 2019 13:08:26 +0000 (08:08 -0500)] 
Revert new MySQL code which doesn't yet work.

It will be added again post 3.0.18.

This reverts commits: c41dcb2e 60690ad5 f896a87560

7 years agonote recent changes
Alan T. DeKok [Tue, 12 Feb 2019 21:08:18 +0000 (16:08 -0500)] 
note recent changes

7 years agodocument new config
Alan T. DeKok [Tue, 12 Feb 2019 21:07:17 +0000 (16:07 -0500)] 
document new config

7 years agoMerge pull request #2481 from 2128506/v3.0.x
Alan DeKok [Tue, 12 Feb 2019 18:51:42 +0000 (13:51 -0500)] 
Merge pull request #2481 from 2128506/v3.0.x

V3.0.x

7 years agoExpose more TLS options in MySQL driver 2481/head
Arran Cudbard-Bell [Mon, 11 Feb 2019 04:26:52 +0000 (09:56 +0530)] 
Expose more TLS options in MySQL driver
Availability of TLS and reconnect options in MySQL driver checked by using MySQL version instead of ifdefs

7 years agocheck home server, not pool for virtual server.
Alan T. DeKok [Thu, 7 Feb 2019 15:42:25 +0000 (10:42 -0500)] 
check home server, not pool for virtual server.

We already picked a home server from the pool.  And in some
cases, there's no pool, just a home server.

7 years agoadd Module-Failure-Message here, too. Helps with #2464
Alan T. DeKok [Tue, 5 Feb 2019 15:16:13 +0000 (10:16 -0500)] 
add Module-Failure-Message here, too.  Helps with #2464

7 years agoadd Module-Failure-Message on failure. Addresses #2464
Alan T. DeKok [Tue, 5 Feb 2019 13:35:13 +0000 (08:35 -0500)] 
add Module-Failure-Message on failure.  Addresses #2464

7 years agobump the upper limit by a bit, to daily or so
Alan T. DeKok [Fri, 1 Feb 2019 15:58:30 +0000 (10:58 -0500)] 
bump the upper limit by a bit, to daily or so

7 years agoadd 'M' as per v4 for packet usec
Alan T. DeKok [Thu, 31 Jan 2019 19:38:18 +0000 (14:38 -0500)] 
add 'M' as per v4 for packet usec

7 years agoonly print open / close messages in debug mode
Alan T. DeKok [Thu, 31 Jan 2019 15:56:49 +0000 (10:56 -0500)] 
only print open / close messages in debug mode

otherwise we spam the logs with things that aren't relevant.

The code already produces ERROR messages for error situations,
so that's fine.