]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Alan T. DeKok [Thu, 5 Aug 2021 19:00:01 +0000 (15:00 -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
Manual port of commit
7875ca06d1
James Jones [Thu, 5 Aug 2021 14:44:18 +0000 (09:44 -0500)]
Lst (#4169)
* Add leftmost skeleton tree API as a choice for priority queues
Relevant paper: "Stronger Quickheaps", Gonzalo Navarro, Rodrigo
Paredes, Patricio Poblete, and Peter Sanders, International
Journal of Foundations of Computer Science, November 2011.
* Remove flst
Terry Burton [Tue, 3 Aug 2021 21:16:46 +0000 (22:16 +0100)]
MySQL sqlippool SP: Run as invoker, not definer; close transaction on error (#4171)
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.
Alan T. DeKok [Thu, 29 Jul 2021 13:53:45 +0000 (09:53 -0400)]
set extra=0 only when min=max. Fixes #4163
Alan T. DeKok [Thu, 29 Jul 2021 11:57:58 +0000 (07:57 -0400)]
typo
Alan T. DeKok [Thu, 29 Jul 2021 10:59:49 +0000 (06:59 -0400)]
formatting, and make it more consistent
Masamichi Hosoda [Thu, 29 Jul 2021 10:57:09 +0000 (19:57 +0900)]
Fix unnecessary periodic close/open in connection pools (#4161)
When "min" and "max" values of the connection pool setting were the same,
periodic connection closing and opening occurred.
It was different from the closing caused
"uses", "lifetime", and "idle_timeout" settings.
"spare" setting is not helpful since it is capped to zero
by "min" and "max" are the same.
The behavior of the issue is as follows.
When the number of connections was "max" and there was an idol connection,
it was closed without checking "min".
Then, the number of connections dropped below "min" due to the close.
Therefore, a new connection was opened immediately
and the number of connections reached "max"
since "min" and "max" were the same.
These occurred repeatedly.
So periodic close/open happened.
This commit fixes the issue
by adding the "min" check to prevent unnecessary closing connections.
Masamichi Hosoda [Wed, 28 Jul 2021 23:30:43 +0000 (08:30 +0900)]
Fix idle_timeout (#4155)
fr_pool_connection_release() recorded connection's last_reserved time
instead of last_released.
Since the last_released time of the connection was not updated,
the starting point of the idle_timeout was
always the connection opened time instead of the connection released time.
This commit fixes it.
Masamichi Hosoda [Wed, 28 Jul 2021 19:14:18 +0000 (04:14 +0900)]
Fix connection_check (#4154)
connection_check() in pool.c did not work
if more than 1 second has passed since the start of radiusd.
This commit makes the function works
as long as more than 1 second has passed since the last time it did work
by fixing a comparison operator.
Nick Porter [Wed, 21 Jul 2021 20:46:34 +0000 (21:46 +0100)]
v4: Convert %(unbound: ) to new xlat API (#4122)
* Remove un-needed char[] variables
* Define and initialise thread specific data for rlm_unbound
* Define xlat thread data for unbound
* Initialise unbound xlat thread data
* Add unbound_request_t to hold state of running unbound request
* Define xlat_unbound_callback() to be called when unbound event completes
* Define unbound xlat resume callback
* Define xlat_unbound_signal() for cancelling unbound requests
* Define new generic unbound xlat
* Remove old unbound xlats
* Remove un-used items from module inst and un-needed instantiate / detach
* Remove unused rrlabels_tostr()
Parsing of DNS labels done by functions from util/dns.c
* Remove un-used ub_common_fail()
* Add test for rlm_unbound
* Amend docs for unbound xlat
* Remove old unbound callback
* Remove un-used ub_common_wait()
* Always inform unbound when its timeout event happens
This is used for unbound to maintain its statistics about
rtt for given servers.
* Remove unused code
* Add timeout for unbound calls
The timeouts within unbound itself are on individual network calls.
This is our overall timeout on the whole resolution.
* Add resolvconf and hosts options to rlm_unbound
resolvconf - file name of a resolv.conf file to load
hosts - file name of a hosts file to load
* Add destructor for unbound_request_t to cancel pending requests
* Temporarily disable test which trips bug in libunbound
* Ensure ub_cancel() is not called after the request is completed
James Jones [Wed, 21 Jul 2021 20:45:08 +0000 (15:45 -0500)]
Remove remaining from heap_cycle() (#4149)
heap_cycle() calloc()s an array and frees it, but never uses it.
Arran Cudbard-Bell [Wed, 21 Jul 2021 20:44:43 +0000 (15:44 -0500)]
Fix other uses of TLS-Cert
Arran Cudbard-Bell [Wed, 21 Jul 2021 19:56:13 +0000 (14:56 -0500)]
Add simple fr_pair_debug function
Arran Cudbard-Bell [Wed, 21 Jul 2021 19:52:12 +0000 (14:52 -0500)]
Don't access data union if it's a structural attribute
Arran Cudbard-Bell [Wed, 21 Jul 2021 19:09:35 +0000 (14:09 -0500)]
Don't use abbreviations in attribute names
Fix trailing \0 in OID -> Attr conversion
Arran Cudbard-Bell [Mon, 19 Jul 2021 22:18:50 +0000 (17:18 -0500)]
Fix test
Arran Cudbard-Bell [Mon, 19 Jul 2021 21:56:07 +0000 (16:56 -0500)]
Populate randle request pointer
Arran Cudbard-Bell [Mon, 19 Jul 2021 21:23:54 +0000 (16:23 -0500)]
Pull URI escaping code into util library
We'll likely need this for utilities at some point
Thomas Faller [Mon, 19 Jul 2021 19:45:13 +0000 (19:45 +0000)]
Fix comments for auth password logging. (#4135)
Arran Cudbard-Bell [Thu, 15 Jul 2021 18:16:29 +0000 (13:16 -0500)]
any better?
Arran Cudbard-Bell [Thu, 15 Jul 2021 18:11:56 +0000 (13:11 -0500)]
Fix close condition
Arran Cudbard-Bell [Thu, 15 Jul 2021 13:47:26 +0000 (08:47 -0500)]
Better one one line
Matthew Newton [Thu, 15 Jul 2021 08:57:25 +0000 (09:57 +0100)]
'close' job does this better
Nick Porter [Thu, 15 Jul 2021 02:12:22 +0000 (03:12 +0100)]
v4: Define arguments for %(rest: ) xlat and parse / escape URIs (#4127)
* Define args for rest xlat
* Define xlat_uri_part_t - for defining parts of URIs for parsing
* Add xlat_parse_uri() to parse defined URI structures.
* Define url_part_escape() to escape part of a URI
* Define rest_uri_parts
* Update rest_xlat() to parse inbound boxes and escape tainted values
* Update syntax for %(rest: ) tests
* Add tests using inbound data for other parts of a rest URI
* Update documentation for %(rest: )
* Ensure we "exdent" before returning
* Add additional test cases for %(rest: )
* Make sure test web server handles different paths correctly
Arran Cudbard-Bell [Thu, 15 Jul 2021 02:06:56 +0000 (21:06 -0500)]
Make it clear what log output we want
Arran Cudbard-Bell [Thu, 15 Jul 2021 01:48:50 +0000 (20:48 -0500)]
Add client log output section
Arran Cudbard-Bell [Wed, 14 Jul 2021 17:42:02 +0000 (12:42 -0500)]
Minor tweaks
Arran Cudbard-Bell [Wed, 14 Jul 2021 15:59:15 +0000 (10:59 -0500)]
Mailto links don't work
Arran Cudbard-Bell [Wed, 14 Jul 2021 15:58:11 +0000 (10:58 -0500)]
Add security@freeradius.org link
Arran Cudbard-Bell [Wed, 14 Jul 2021 15:44:21 +0000 (10:44 -0500)]
Fix link to bug report
Arran Cudbard-Bell [Wed, 14 Jul 2021 15:40:48 +0000 (10:40 -0500)]
Comma
Arran Cudbard-Bell [Wed, 14 Jul 2021 15:38:55 +0000 (10:38 -0500)]
Update instructions
Arran Cudbard-Bell [Wed, 14 Jul 2021 15:37:55 +0000 (10:37 -0500)]
Try adding line breaks...
Arran Cudbard-Bell [Wed, 14 Jul 2021 15:37:04 +0000 (10:37 -0500)]
See if we can formalise the "other" issue template more
Arran Cudbard-Bell [Wed, 14 Jul 2021 15:28:53 +0000 (10:28 -0500)]
Use the correct label
Arran Cudbard-Bell [Wed, 14 Jul 2021 15:26:41 +0000 (10:26 -0500)]
Fix required tags
Arran Cudbard-Bell [Wed, 14 Jul 2021 15:25:59 +0000 (10:25 -0500)]
Multiline placeholders don't work
Arran Cudbard-Bell [Wed, 14 Jul 2021 15:21:47 +0000 (10:21 -0500)]
Add more placeholder text
Arran Cudbard-Bell [Wed, 14 Jul 2021 15:16:21 +0000 (10:16 -0500)]
and another
Arran Cudbard-Bell [Wed, 14 Jul 2021 15:15:27 +0000 (10:15 -0500)]
Fix typo
Arran Cudbard-Bell [Wed, 14 Jul 2021 15:14:41 +0000 (10:14 -0500)]
Update and rename bug_report.md to bug_report.yml
Arran Cudbard-Bell [Wed, 14 Jul 2021 15:02:47 +0000 (10:02 -0500)]
s/tag/label
Arran Cudbard-Bell [Wed, 14 Jul 2021 15:01:31 +0000 (10:01 -0500)]
Use the close tag here too
Arran Cudbard-Bell [Wed, 14 Jul 2021 15:00:46 +0000 (10:00 -0500)]
We might actually want "other" for something
Arran Cudbard-Bell [Wed, 14 Jul 2021 14:59:32 +0000 (09:59 -0500)]
Still give users a chance to open an issue if they actually read the issue text
Arran Cudbard-Bell [Wed, 14 Jul 2021 14:52:02 +0000 (09:52 -0500)]
Try checking labels instead
Arran Cudbard-Bell [Wed, 14 Jul 2021 14:44:41 +0000 (09:44 -0500)]
Provide more helpful links, make formatting more consistent
Arran Cudbard-Bell [Wed, 14 Jul 2021 14:33:53 +0000 (09:33 -0500)]
Simplify issue links
Arran Cudbard-Bell [Wed, 14 Jul 2021 14:28:05 +0000 (09:28 -0500)]
Create close.yml
Jorge Pereira [Tue, 13 Jul 2021 14:08:48 +0000 (11:08 -0300)]
Add coccinelle semanthic patch mechanism (#3240)
It adds the new targets:
make coccinelle.help - Print this
make coccinelle.clean - Clean up the build/coccinelle
make coccinelle.diff - Print diffs for files which would be changed by coccinelle.patch
make coccinelle.patch - Apply Coccinelle patches to all source files in the tree.
Alan T. DeKok [Tue, 13 Jul 2021 12:06:37 +0000 (08:06 -0400)]
James Jones [Tue, 13 Jul 2021 11:38:18 +0000 (06:38 -0500)]
Removed the ability to pass NULL as data argument to fr_heap_extract(). (#4136)
It was set up to return fr_heap_pop() if passed NULL, but the only
users of that capability were in heap test code.
Matthew Newton [Mon, 12 Jul 2021 18:23:45 +0000 (19:23 +0100)]
More updates to GitHub issues
- Actions job to close invalid issues
- Add users/devel mailing lists to new issue page
- Disable blank issue link
Matthew Newton [Mon, 12 Jul 2021 15:53:17 +0000 (16:53 +0100)]
Add GitHub issue trap
Expectations on it working are not high...
Youfu Zhang [Mon, 12 Jul 2021 16:10:06 +0000 (00:10 +0800)]
Extend the H3C dictionary based on public manuals (#4112)
Arran Cudbard-Bell [Mon, 12 Jul 2021 05:25:43 +0000 (00:25 -0500)]
Move PERL_SYS_INIT3 to mod_load
Jorge Pereira [Thu, 8 Jul 2021 19:52:10 +0000 (16:52 -0300)]
NetworkOnly value for APC-Service-Type. refs #4109 (#4132)
Arran Cudbard-Bell [Thu, 8 Jul 2021 17:14:28 +0000 (12:14 -0500)]
Fix up rlm_perl to use thead instantiation and destruction callbacks
Nick Porter [Thu, 8 Jul 2021 14:17:46 +0000 (15:17 +0100)]
v4: Expand the performance tests for pair lists (#4107)
* Replicate test pairs to form longer lists of attributes
* Use the correct length of the input pair list for the test list length
* Pass the percentage attribute replication in the test list to tests
Include in logging to identify which list is being used.
* Expand test list to use different percentage repetition lists
Matthew Newton [Wed, 7 Jul 2021 20:09:52 +0000 (21:09 +0100)]
It's faster if we don't have to run configure
Matthew Newton [Wed, 7 Jul 2021 11:04:26 +0000 (12:04 +0100)]
Get the build matrix correct
Matthew Newton [Wed, 7 Jul 2021 10:05:22 +0000 (11:05 +0100)]
All required .deb packages now in "extras" repo
Matthew Newton [Thu, 1 Jul 2021 13:15:19 +0000 (14:15 +0100)]
No need to run configure before 'make rpm'
Update ci-rpm accorgingly; the system openssl libs will cause it
to fail, though we do still need it for building eapol_test
Matthew Newton [Thu, 1 Jul 2021 10:29:59 +0000 (11:29 +0100)]
Need to use the nwkrad packages on CentOS 7 for recent libs
Matthew Newton [Thu, 1 Jul 2021 10:27:15 +0000 (11:27 +0100)]
Use Network RADIUS 'extras' repo in RPM CI
We need recent json-c and openssl in CentOS 7, and will also use
own-built libkqueue packages which saves building it every time
Alan T. DeKok [Mon, 5 Jul 2021 12:59:28 +0000 (08:59 -0400)]
remove virtual namespace compile callback
now that we have src/process/ libraries for everything
Alan T. DeKok [Thu, 1 Jul 2021 13:06:47 +0000 (09:06 -0400)]
whoops
Alan T. DeKok [Wed, 30 Jun 2021 12:29:11 +0000 (08:29 -0400)]
add sample load generator
Alan T. DeKok [Tue, 29 Jun 2021 21:00:56 +0000 (17:00 -0400)]
use only one FD
and bootstrap the process, because we have to at least read from
the FD before we start the load generation
Alan T. DeKok [Tue, 29 Jun 2021 19:23:15 +0000 (15:23 -0400)]
add proto_listen_load
doesn't quite work yet for a few reasons, but that will come
next.
Alan T. DeKok [Tue, 29 Jun 2021 19:21:39 +0000 (15:21 -0400)]
add listener to network before calling app_io
so that the app_io event_list_set can do some bootstrapping
of its own
Alan T. DeKok [Tue, 29 Jun 2021 14:21:24 +0000 (10:21 -0400)]
move proto_radius_load out of the way, to proto_load_step
next is to add a proto_load.c, and link it all together
Arran Cudbard-Bell [Tue, 29 Jun 2021 17:17:33 +0000 (12:17 -0500)]
Add namesapce/hashtable validation
Alan T. DeKok [Tue, 29 Jun 2021 13:00:36 +0000 (09:00 -0400)]
fix links
Arran Cudbard-Bell [Tue, 29 Jun 2021 03:05:33 +0000 (22:05 -0500)]
More dictionary attribute validation
Arran Cudbard-Bell [Tue, 29 Jun 2021 00:24:55 +0000 (19:24 -0500)]
Don't redirect stderr/stdout to stdin in CI
Alan T. DeKok [Mon, 28 Jun 2021 23:43:47 +0000 (19:43 -0400)]
put detail file listeners into a global tree for dedup
so we forbid multiple listeners on exactly the same wildcards
Alan T. DeKok [Mon, 28 Jun 2021 23:41:17 +0000 (19:41 -0400)]
tweak messages to be clearer
Alan T. DeKok [Mon, 28 Jun 2021 23:08:00 +0000 (19:08 -0400)]
we now have to qualify the detail listener with a second name
Alan T. DeKok [Mon, 28 Jun 2021 23:05:42 +0000 (19:05 -0400)]
we do optional checking on the INPUT to "integer"
not on the OUTPUT of "integer"
Arran Cudbard-Bell [Mon, 28 Jun 2021 23:18:14 +0000 (18:18 -0500)]
Rework TLS BIOs to allow bidirectional producer/consumer, and multiple heap allocated BIOs
Arran Cudbard-Bell [Mon, 28 Jun 2021 23:17:29 +0000 (18:17 -0500)]
Print more useful info when we trip time tracking asserts
Arran Cudbard-Bell [Mon, 28 Jun 2021 23:17:08 +0000 (18:17 -0500)]
Change dbuff macro names to make auto-advancing the exception
Matthew Newton [Mon, 28 Jun 2021 16:05:09 +0000 (17:05 +0100)]
better to just report if the option is not set
Matthew Newton [Mon, 28 Jun 2021 15:33:15 +0000 (16:33 +0100)]
sqlite: try to be helpful if the database couldn't be opened
Matthew Newton [Mon, 28 Jun 2021 15:32:56 +0000 (16:32 +0100)]
whitespace
Arran Cudbard-Bell [Fri, 25 Jun 2021 13:36:50 +0000 (08:36 -0500)]
Fix ordering issue
Arran Cudbard-Bell [Fri, 25 Jun 2021 12:58:47 +0000 (07:58 -0500)]
Don't need anything special for access request
Arran Cudbard-Bell [Fri, 25 Jun 2021 02:56:24 +0000 (21:56 -0500)]
Move EAP-SIM/AKA/AKA' config into the virtual servers
Matthew Newton [Fri, 25 Jun 2021 01:31:42 +0000 (02:31 +0100)]
docker: make sure we are using the latest build tools in CentOS 7
Matthew Newton [Fri, 25 Jun 2021 01:31:03 +0000 (02:31 +0100)]
Use nwkrad json-c packages on CentOS7
Arran Cudbard-Bell [Thu, 24 Jun 2021 20:34:15 +0000 (15:34 -0500)]
Not having a matching state entry is not an error!
Arran Cudbard-Bell [Thu, 24 Jun 2021 18:47:38 +0000 (13:47 -0500)]
A more helpful error if we run out of jobs
Arran Cudbard-Bell [Thu, 24 Jun 2021 18:05:45 +0000 (13:05 -0500)]
Deal with request cancellations when we're yielded in an OpenSSL callback
Arran Cudbard-Bell [Thu, 24 Jun 2021 18:05:13 +0000 (13:05 -0500)]
Add unlang function signal set
Matthew Newton [Thu, 24 Jun 2021 15:13:28 +0000 (16:13 +0100)]
docker: install some useful tools by default for debugging purposes
Arran Cudbard-Bell [Thu, 24 Jun 2021 14:01:25 +0000 (09:01 -0500)]
print yielded count
Terry Burton [Thu, 24 Jun 2021 13:51:23 +0000 (14:51 +0100)]
CI: Clearer instructions on how to shell into a GH Actions session (#4121)
Alan T. DeKok [Thu, 24 Jun 2021 13:22:57 +0000 (09:22 -0400)]
init, not clear
Alan T. DeKok [Thu, 24 Jun 2021 13:18:38 +0000 (09:18 -0400)]
delete timeout before we return