]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
3 years agorlm_unix Fix wrong data-type of Acct-Delay-Time. (#4232)
Jorge Pereira [Fri, 17 Sep 2021 15:40:38 +0000 (12:40 -0300)] 
rlm_unix Fix wrong data-type of Acct-Delay-Time. (#4232)

3 years agotypo
Alan T. DeKok [Fri, 17 Sep 2021 12:20:55 +0000 (08:20 -0400)] 
typo

3 years agocorrect PAC lifetime calculation
Alan T. DeKok [Fri, 17 Sep 2021 12:02:29 +0000 (08:02 -0400)] 
correct PAC lifetime calculation

the lifetime is a delta, and the "expires" field is a wall-clock
time.

3 years agobetter error message
Alan T. DeKok [Tue, 14 Sep 2021 16:39:56 +0000 (12:39 -0400)] 
better error message

3 years agoadd more (TLS) headers to TLS log messages
Alan T. DeKok [Tue, 14 Sep 2021 16:35:52 +0000 (12:35 -0400)] 
add more (TLS) headers to TLS log messages

3 years agodelete attribute after it's no longer needed
Alan T. DeKok [Tue, 14 Sep 2021 00:18:21 +0000 (20:18 -0400)] 
delete attribute after it's no longer needed

3 years agocopy certs even on failure, so that they can be logged.
Alan T. DeKok [Mon, 13 Sep 2021 21:13:24 +0000 (17:13 -0400)] 
copy certs even on failure, so that they can be logged.

finalizing commit c157da82eb

3 years agoadd (TLS) to more messages
Alan T. DeKok [Mon, 13 Sep 2021 21:06:24 +0000 (17:06 -0400)] 
add (TLS) to more messages

3 years agoupdates now that we have TOTP
Alan T. DeKok [Mon, 13 Sep 2021 16:20:11 +0000 (12:20 -0400)] 
updates now that we have TOTP

3 years agonote recent changes
Alan T. DeKok [Sun, 12 Sep 2021 21:30:25 +0000 (17:30 -0400)] 
note recent changes

3 years agoadd last_time_xlat
Alan T. DeKok [Tue, 7 Sep 2021 17:49:33 +0000 (13:49 -0400)] 
add last_time_xlat

3 years agoallow IPv6 parsing
Alan T. DeKok [Tue, 7 Sep 2021 12:04:15 +0000 (08:04 -0400)] 
allow IPv6 parsing

3 years agoallow Simultaneous-Use to use IPv6 addresses, too
Alan T. DeKok [Mon, 6 Sep 2021 12:39:03 +0000 (08:39 -0400)] 
allow Simultaneous-Use to use IPv6 addresses, too

3 years agobetter error messages. Helps with #4219
Alan T. DeKok [Wed, 1 Sep 2021 21:12:20 +0000 (17:12 -0400)] 
better error messages.  Helps with #4219

3 years agoFix Docker typo same as #4215 (#4218)
Jorge Pereira [Wed, 1 Sep 2021 12:52:16 +0000 (09:52 -0300)] 
Fix Docker typo same as #4215 (#4218)

3 years agoAdd 'weeklycounter' for sqlcounter (#4216)
Jorge Pereira [Tue, 31 Aug 2021 22:42:16 +0000 (19:42 -0300)] 
Add 'weeklycounter' for sqlcounter (#4216)

3 years agoFix Docker/Centos8 build (#4215)
Jorge Pereira [Tue, 31 Aug 2021 22:41:29 +0000 (19:41 -0300)] 
Fix Docker/Centos8 build (#4215)

3 years agowhoops... clear this once we're using the packet
Alan T. DeKok [Tue, 31 Aug 2021 13:46:06 +0000 (09:46 -0400)] 
whoops... clear this once we're using the packet

3 years agonote recent changes
Alan T. DeKok [Tue, 31 Aug 2021 12:51:29 +0000 (08:51 -0400)] 
note recent changes

3 years agoread partial packets, ala dual_tcp_recv()
Alan T. DeKok [Tue, 31 Aug 2021 12:42:43 +0000 (08:42 -0400)] 
read partial packets, ala dual_tcp_recv()

3 years agofix debug message, and rename variables
Alan T. DeKok [Mon, 30 Aug 2021 21:35:08 +0000 (17:35 -0400)] 
fix debug message, and rename variables

smurf1 smurf2 and my_smurf are bad names.

3 years agodon't allow: Foo = &Client-Shortname
Alan T. DeKok [Sun, 29 Aug 2021 12:30:58 +0000 (08:30 -0400)] 
don't allow: Foo = &Client-Shortname

it won't work, because the attribut doesn't exist, it's virtual.
It has to be "%{Client-Shortname}"

3 years agodon't allow: Foo = %{...}
Alan T. DeKok [Sun, 29 Aug 2021 12:26:34 +0000 (08:26 -0400)] 
don't allow:  Foo = %{...}

it must be in a double-quoted string.

3 years agowarn on "switch attribute" without "switch &attribute"
Alan T. DeKok [Fri, 27 Aug 2021 22:07:33 +0000 (18:07 -0400)] 
warn on "switch attribute" without "switch &attribute"

3 years agonotes on session timeout
Alan T. DeKok [Fri, 27 Aug 2021 14:39:25 +0000 (10:39 -0400)] 
notes on session timeout

3 years agoLet's keep lowercase as we have in everywhere (#4211)
Jorge Pereira [Thu, 26 Aug 2021 21:58:24 +0000 (18:58 -0300)] 
Let's keep lowercase as we have in everywhere (#4211)

3 years agoFix typo (#4207)
Jorge Pereira [Thu, 26 Aug 2021 18:37:14 +0000 (15:37 -0300)] 
Fix typo (#4207)

3 years agoprint out values we're parsing
Alan T. DeKok [Thu, 26 Aug 2021 12:58:29 +0000 (08:58 -0400)] 
print out values we're parsing

3 years agotypo. Fixes #4209
Alan T. DeKok [Wed, 25 Aug 2021 13:21:15 +0000 (09:21 -0400)] 
typo.  Fixes #4209

3 years agotypo
Alan T. DeKok [Wed, 25 Aug 2021 12:33:17 +0000 (08:33 -0400)] 
typo

3 years agoThis attribute is "abinary"
Alan T. DeKok [Wed, 25 Aug 2021 12:06:15 +0000 (08:06 -0400)] 
This attribute is "abinary"

See https://documentation.nokia.com/cgi-bin/dbaccessfilename.cgi/9304720101_V1_7750%20SR%20OS%20RADIUS%20Attributes%20Reference%20Guide%2011.0.R1.pdf

3 years agoUsage schema extension for SQLite: Typo (#4200)
Terry Burton [Fri, 20 Aug 2021 18:49:59 +0000 (19:49 +0100)] 
Usage schema extension for SQLite: Typo (#4200)

Typo in 4c67d412956d2efed8b6ab4f216eb49abf3119c5 component of PR #3635.

3 years agoData usage for MySQL: Run SP as invoker not definer (#4202)
Terry Burton [Fri, 20 Aug 2021 18:49:48 +0000 (19:49 +0100)] 
Data usage for MySQL: Run SP as invoker not definer (#4202)

3 years agopause and resume sockets if we're not reading from them.
Alan T. DeKok [Fri, 20 Aug 2021 12:51:56 +0000 (08:51 -0400)] 
pause and resume sockets if we're not reading from them.

3 years agoword smithing
Alan T. DeKok [Fri, 20 Aug 2021 00:26:13 +0000 (20:26 -0400)] 
word smithing

3 years agoadd --allow-mschapv2
Alan T. DeKok [Thu, 12 Aug 2021 12:44:01 +0000 (08:44 -0400)] 
add  --allow-mschapv2

3 years agoPROXY Protocol howto (#4197)
Terry Burton [Thu, 19 Aug 2021 14:33:48 +0000 (15:33 +0100)] 
PROXY Protocol howto (#4197)

3 years agonote recent changes (#4193)
Jorge Pereira [Wed, 18 Aug 2021 13:50:45 +0000 (10:50 -0300)] 
note recent changes (#4193)

3 years agoAdd missing '-v' in 'radmin' (#4189)
Jorge Pereira [Wed, 18 Aug 2021 13:36:53 +0000 (10:36 -0300)] 
Add missing '-v' in 'radmin' (#4189)

3 years agosqlcounter: Fix wrong memory free (#4192)
Jorge Pereira [Wed, 18 Aug 2021 13:36:45 +0000 (10:36 -0300)] 
sqlcounter: Fix wrong memory free (#4192)

3 years agoAdd missing '-v' in 'radwho' (#4188)
Jorge Pereira [Tue, 17 Aug 2021 22:41:59 +0000 (19:41 -0300)] 
Add missing '-v' in 'radwho' (#4188)

3 years agorlm_rest Fix typo (#4184)
Jorge Pereira [Sun, 15 Aug 2021 13:21:11 +0000 (10:21 -0300)] 
rlm_rest Fix typo (#4184)

It should be '='

3 years agoippool: Fix missing 'Called-Station-Id' in the MySQL/procedure.sql (#4185)
Jorge Pereira [Sun, 15 Aug 2021 13:20:51 +0000 (10:20 -0300)] 
ippool: Fix missing 'Called-Station-Id' in the MySQL/procedure.sql (#4185)

As the scheme.sql has the 'calledstationid' field, we should fill it up.

3 years agoadd Debian 11 Bullseye Dockerfile and to CI
Matthew Newton [Sat, 14 Aug 2021 20:47:06 +0000 (21:47 +0100)] 
add Debian 11 Bullseye Dockerfile and to CI

3 years agoUpdate package dependencies for Debian 11 Bullseye
Matthew Newton [Sat, 14 Aug 2021 21:34:33 +0000 (22:34 +0100)] 
Update package dependencies for Debian 11 Bullseye

3 years agoMariADB >= 10.6 also support 'SKIP LOCK' (#4180)
Jorge Pereira [Fri, 13 Aug 2021 13:01:50 +0000 (10:01 -0300)] 
MariADB >= 10.6 also support 'SKIP LOCK' (#4180)

3 years agoadd (commented out) docs on using the haproxy protocol
Alan T. DeKok [Wed, 11 Aug 2021 15:07:51 +0000 (11:07 -0400)] 
add (commented out) docs on using the haproxy protocol

3 years agouse EOL. which removes the listener from the event list
Alan T. DeKok [Wed, 11 Aug 2021 14:48:25 +0000 (10:48 -0400)] 
use EOL. which removes the listener from the event list

3 years agoRevert "close connection on "no TLS data, but connection isn't set up""
Alan T. DeKok [Wed, 11 Aug 2021 14:46:31 +0000 (10:46 -0400)] 
Revert "close connection on "no TLS data, but connection isn't set up""

This reverts commit 75620b2fb9e7eb4f7853373fe3ffc2f67e97bb22.

not needed

4 years agominor word smithing
Alan T. DeKok [Sat, 7 Aug 2021 16:12:36 +0000 (12:12 -0400)] 
minor word smithing

4 years agodon't unlock the mutex if it was never locked.
Alan T. DeKok [Fri, 6 Aug 2021 16:38:34 +0000 (12:38 -0400)] 
don't unlock the mutex if it was never locked.

4 years agonote recent changes
Alan T. DeKok [Fri, 6 Aug 2021 13:44:19 +0000 (09:44 -0400)] 
note recent changes

4 years agoallocate from the request, which is thread-safe. Helps with #3188
Alan T. DeKok [Thu, 5 Aug 2021 15:22:12 +0000 (11:22 -0400)] 
allocate from the request, which is thread-safe.  Helps with #3188

The "check" item is taken from the "huntgroups" file.  It's in
a statically allocated list which doesn't change, and shouldn't
change during run-time.  Allocating memory in its context is
not thread-safe, and can cause issues

4 years agosimple config for testing
Alan T. DeKok [Thu, 5 Aug 2021 14:17:22 +0000 (10:17 -0400)] 
simple config for testing

4 years agoStatus-Server packets are left in the TCP proxy hash
Alan T. DeKok [Wed, 4 Aug 2021 23:05:10 +0000 (19:05 -0400)] 
Status-Server packets are left in the TCP proxy hash

until such time as the listener is being shut down

4 years agoallow status-server checks for TCP
Alan T. DeKok [Wed, 4 Aug 2021 22:59:20 +0000 (18:59 -0400)] 
allow status-server checks for TCP

nothing yet implements that, but it's a start.

We still have to allocate a permanent ID for status-server checks

4 years agowe cache preg only for PCRE
Alan T. DeKok [Wed, 4 Aug 2021 12:25:31 +0000 (08:25 -0400)] 
we cache preg only for PCRE

4 years agomore assertions
Alan T. DeKok [Wed, 4 Aug 2021 12:26:38 +0000 (08:26 -0400)] 
more assertions

4 years agoMySQL sqlippool SP: Run as invoker, not definer; close transaction on error (#4170)
Terry Burton [Tue, 3 Aug 2021 21:17:04 +0000 (22:17 +0100)] 
MySQL sqlippool SP: Run as invoker, not definer; close transaction on error (#4170)

In MariaDB/MySQL, stored procedures default to running in the context of
the definer rather than the invoker.

This is a problem in a streaming replication scenario since the definer
is often the root user who has the "super" power to write to a read-only
database (unless super-read-only is enabled, which is not available for
MariaDB), thus breaking the replication timeline.

Additionally, exiting an SP does not finalise any running transaction.
If an exception is raised within the SP (e.g. due to the database being
read-only) we must handle this and finalise the transaction, otherwise
subsequent calls to "SET TRANSACTION ISOLATION LEVEL READ COMMITTED"
will fail ad nauseam until the connection is finally closed.

4 years agodon't build coa tunnel by default
Alan T. DeKok [Tue, 3 Aug 2021 18:42:15 +0000 (14:42 -0400)] 
don't build coa tunnel by default

4 years agoproxy_listener may not exist
Alan T. DeKok [Tue, 3 Aug 2021 18:41:18 +0000 (14:41 -0400)] 
proxy_listener may not exist

4 years agoprint out better errors
Alan T. DeKok [Tue, 3 Aug 2021 17:24:25 +0000 (13:24 -0400)] 
print out better errors

4 years agoreturn type is ssize_t if we return -1
Alan T. DeKok [Tue, 3 Aug 2021 17:16:04 +0000 (13:16 -0400)] 
return type is ssize_t if we return -1

4 years agosimple test haproxy configuration file
Alan T. DeKok [Mon, 2 Aug 2021 12:19:18 +0000 (08:19 -0400)] 
simple test haproxy configuration file

4 years agodocument proxy_protocol
Alan T. DeKok [Fri, 30 Jul 2021 13:58:41 +0000 (09:58 -0400)] 
document proxy_protocol

4 years agoprint ip, not fr_ipaddr_t
Alan T. DeKok [Fri, 30 Jul 2021 13:24:18 +0000 (09:24 -0400)] 
print ip, not fr_ipaddr_t

4 years agothe end client must be known, too.
Alan T. DeKok [Fri, 30 Jul 2021 13:07:01 +0000 (09:07 -0400)] 
the end client must be known, too.

4 years agoreturn 1 for "done" instead of "error"
Alan T. DeKok [Thu, 29 Jul 2021 21:41:12 +0000 (17:41 -0400)] 
return 1 for "done" instead of "error"

4 years agoDump raw data
Alan T. DeKok [Thu, 29 Jul 2021 21:40:36 +0000 (17:40 -0400)] 
Dump raw data

4 years agofix misplaced bracket
Alan T. DeKok [Thu, 29 Jul 2021 21:37:44 +0000 (17:37 -0400)] 
fix misplaced bracket

4 years agoprint out things before mangling them
Alan T. DeKok [Thu, 29 Jul 2021 21:37:15 +0000 (17:37 -0400)] 
print out things before mangling them

4 years agorework connection management. Fixes #4163
Alan T. DeKok [Thu, 29 Jul 2021 19:03:52 +0000 (15:03 -0400)] 
rework connection management.  Fixes #4163

4 years agodon't read from the socket twice in a row, that's blocking
Alan T. DeKok [Thu, 29 Jul 2021 18:10:33 +0000 (14:10 -0400)] 
don't read from the socket twice in a row, that's blocking

4 years agospaces are allowed...
Alan T. DeKok [Thu, 29 Jul 2021 17:55:58 +0000 (13:55 -0400)] 
spaces are allowed...

4 years agoset extra=0 only when min=max.
Alan T. DeKok [Thu, 29 Jul 2021 13:54:16 +0000 (09:54 -0400)] 
set extra=0 only when min=max.

4 years agoformatting, so we don't have nested "else" when they're not needed
Alan T. DeKok [Thu, 29 Jul 2021 11:22:57 +0000 (07:22 -0400)] 
formatting, so we don't have nested "else" when they're not needed

4 years agoformatting
Alan T. DeKok [Thu, 29 Jul 2021 10:58:15 +0000 (06:58 -0400)] 
formatting

4 years agoFix typo in SQL ippool query (#4156)
Jorge Pereira [Thu, 29 Jul 2021 11:19:53 +0000 (08:19 -0300)] 
Fix typo in SQL ippool query (#4156)

4 years agoFix unnecessary periodic close/open in connection pools. refs #4161 (#4162)
Masamichi Hosoda [Thu, 29 Jul 2021 10:57:35 +0000 (19:57 +0900)] 
Fix unnecessary periodic close/open in connection pools. refs #4161 (#4162)

4 years agoFix another typo in SQL ippool queries.conf (#4158)
Jorge Pereira [Thu, 29 Jul 2021 10:56:38 +0000 (07:56 -0300)] 
Fix another typo in SQL ippool queries.conf (#4158)

4 years agoFix ippool mysql schema.sql (#4157)
Jorge Pereira [Thu, 29 Jul 2021 10:56:18 +0000 (07:56 -0300)] 
Fix ippool mysql schema.sql (#4157)

It must create even if already exists

4 years agoFix DHCP common policy (#4159)
Jorge Pereira [Thu, 29 Jul 2021 04:01:42 +0000 (01:01 -0300)] 
Fix DHCP common policy (#4159)

4 years agorearrange for simplicity
Alan T. DeKok [Wed, 28 Jul 2021 23:39:01 +0000 (19:39 -0400)] 
rearrange for simplicity

4 years agoFix ippool 'skip_locked' variable set (#4153)
Jorge Pereira [Wed, 28 Jul 2021 19:14:49 +0000 (16:14 -0300)] 
Fix ippool 'skip_locked' variable set (#4153)

If not in use, it must be declared just to make the parser happy.

4 years agoFix typo in MySQL/ippool queries.conf (#4152)
Jorge Pereira [Wed, 28 Jul 2021 13:52:43 +0000 (10:52 -0300)] 
Fix typo in MySQL/ippool queries.conf (#4152)

4 years agoFix raddb SQL config path (#4151)
Jorge Pereira [Wed, 28 Jul 2021 13:51:09 +0000 (10:51 -0300)] 
Fix raddb SQL config path (#4151)

4 years agolet's scan the newly read data, too
Alan T. DeKok [Wed, 28 Jul 2021 11:33:20 +0000 (07:33 -0400)] 
let's scan the newly read data, too

4 years agoclear prev, too?
Alan T. DeKok [Wed, 28 Jul 2021 11:21:13 +0000 (07:21 -0400)] 
clear prev, too?

4 years agoparse PROXY line.
Alan T. DeKok [Tue, 27 Jul 2021 13:58:26 +0000 (09:58 -0400)] 
parse PROXY line.

This should work.  Testing?  Meh.  That's for later

4 years agowe support PROXY protocol only for TLS
Alan T. DeKok [Tue, 27 Jul 2021 12:40:44 +0000 (08:40 -0400)] 
we support PROXY protocol only for TLS

4 years agostart of proxy_protocol support
Alan T. DeKok [Tue, 27 Jul 2021 12:00:49 +0000 (08:00 -0400)] 
start of proxy_protocol support

it doesn't yet parse the full "PROXY ..." string, but the basics
are there

4 years agominor updates to messages
Alan T. DeKok [Tue, 27 Jul 2021 11:13:16 +0000 (07:13 -0400)] 
minor updates to messages

4 years agocleanups and fixes
Alan T. DeKok [Mon, 26 Jul 2021 14:44:12 +0000 (10:44 -0400)] 
cleanups and fixes

4 years agolet's build without TLS, too
Alan T. DeKok [Sun, 25 Jul 2021 21:03:51 +0000 (17:03 -0400)] 
let's build without TLS, too

4 years agorename
Alan T. DeKok [Sun, 25 Jul 2021 19:46:43 +0000 (15:46 -0400)] 
rename

4 years agodo SNI on the server side.
Alan T. DeKok [Sun, 25 Jul 2021 19:30:40 +0000 (15:30 -0400)] 
do SNI on the server side.

And cache the name in TLS-Server-Name-Indication

4 years agotypos
Alan T. DeKok [Sun, 25 Jul 2021 16:45:10 +0000 (12:45 -0400)] 
typos

4 years agonote recent changes
Alan T. DeKok [Sun, 25 Jul 2021 16:38:05 +0000 (12:38 -0400)] 
note recent changes

4 years agomove SNI to the correct place
Alan T. DeKok [Sun, 25 Jul 2021 16:35:35 +0000 (12:35 -0400)] 
move SNI to the correct place

4 years agoupdate numbers
Alan T. DeKok [Sun, 25 Jul 2021 16:31:19 +0000 (12:31 -0400)] 
update numbers