]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Arran Cudbard-Bell [Mon, 15 Feb 2021 15:01:24 +0000 (15:01 +0000)]
Efficiently initialise unlang_module_event_t
Arran Cudbard-Bell [Mon, 15 Feb 2021 12:48:19 +0000 (12:48 +0000)]
Fix names to be consistent
Arran Cudbard-Bell [Mon, 15 Feb 2021 12:19:09 +0000 (12:19 +0000)]
Typo
Arran Cudbard-Bell [Sun, 14 Feb 2021 23:16:32 +0000 (23:16 +0000)]
Typo
Arran Cudbard-Bell [Sun, 14 Feb 2021 23:12:53 +0000 (23:12 +0000)]
Don't need server_cs field
Arran Cudbard-Bell [Sun, 14 Feb 2021 22:33:15 +0000 (22:33 +0000)]
re-arrange fields in request_t
Arran Cudbard-Bell [Sun, 14 Feb 2021 22:32:59 +0000 (22:32 +0000)]
Unused
Arran Cudbard-Bell [Sun, 14 Feb 2021 22:23:07 +0000 (22:23 +0000)]
Unused
Arran Cudbard-Bell [Sun, 14 Feb 2021 22:19:20 +0000 (22:19 +0000)]
Unused
Arran Cudbard-Bell [Sun, 14 Feb 2021 22:16:08 +0000 (22:16 +0000)]
Remove request->listener
Arran Cudbard-Bell [Sun, 14 Feb 2021 22:13:35 +0000 (22:13 +0000)]
Unused
Arran Cudbard-Bell [Sun, 14 Feb 2021 21:51:00 +0000 (21:51 +0000)]
Fix redundant declarations of talloc_const_free
Arran Cudbard-Bell [Fri, 12 Feb 2021 23:00:24 +0000 (23:00 +0000)]
Need signal.h
Arran Cudbard-Bell [Fri, 12 Feb 2021 21:27:13 +0000 (21:27 +0000)]
Replace talloc_autofree_context with our own version Closes #3916
The original talloc_autofree_context was also deprecated in Talloc 2.1.15
Arran Cudbard-Bell [Fri, 12 Feb 2021 21:07:30 +0000 (21:07 +0000)]
Allow disarming of atexit thread-local destructors
James Jones [Thu, 11 Feb 2021 20:55:45 +0000 (14:55 -0600)]
Just return NULL at the detection of padding
As written, it incremented where and continued. That makes sure it
leaves the loop, but since *only* where is changed, data[0] is still
0 the next time through, so it's an O(size) way to return NULL.
Might as well just return NULL.
Arran Cudbard-Bell [Fri, 12 Feb 2021 19:07:45 +0000 (19:07 +0000)]
talloc: Fix missing _talloc_pooled_object() configure check (#3935)
It fixes the typo in _talloc_pooled_object
762c3a72100e079d5918f140d0c516c406495672
Co-authored-by: Jorge Pereira <jpereiran@gmail.com>
Arran Cudbard-Bell [Fri, 12 Feb 2021 15:26:30 +0000 (15:26 +0000)]
Talloc memory limit is deprecated as of Talloc 2.1.15 Closes #3925 Closes #3924 Closes #3923 Closes #3922 Closes #3921 Closes #3920 Closes #3919 Closes #3918 Closes #3917
Jeremy Allison and the talloc team believe the memlimt code is too complex and introduces too many corner cases.
None of our uses of memlimit are critical, so we're removing support in anticipation of talloc_set_memlimit being removed from the next major version of talloc.
Arran Cudbard-Bell [Fri, 12 Feb 2021 01:14:01 +0000 (01:14 +0000)]
Add dictionary pull request template
Alan T. DeKok [Thu, 11 Feb 2021 15:58:18 +0000 (10:58 -0500)]
typo
Alan T. DeKok [Thu, 11 Feb 2021 15:57:44 +0000 (10:57 -0500)]
more error messages
Alan T. DeKok [Thu, 11 Feb 2021 15:56:35 +0000 (10:56 -0500)]
talloc_setmemlimit() is now deprecated on OSX.
homebrew installs a newer version of talloc, which has marked
talloc_setmemlimit() as deprecated.
This change is a temporary stop-gap until we get rid of
talloc_setmemlimit() everywhere.
Arran Cudbard-Bell [Thu, 11 Feb 2021 14:45:58 +0000 (14:45 +0000)]
Delete old issue template
Terry Burton [Thu, 11 Feb 2021 11:04:03 +0000 (11:04 +0000)]
master: Spawn tmate on failing package build and install jobs with ci-debug branch (#3929)
* CI: Simplify now that authorized_keys restriction merged into GitHub Action
* CI: Spawn tmate on failing package build and install jobs with ci-debug branch
Nick Porter [Wed, 10 Feb 2021 16:44:18 +0000 (16:44 +0000)]
Ensure DH parameters are created before stopping dovecot as root (#3927)
Alan T. DeKok [Wed, 10 Feb 2021 16:01:50 +0000 (11:01 -0500)]
fix typos
Alan T. DeKok [Wed, 10 Feb 2021 15:03:21 +0000 (10:03 -0500)]
don't copy listener
child requests should be internal, and should have no idea
about external networks
Alan T. DeKok [Wed, 10 Feb 2021 13:33:37 +0000 (08:33 -0500)]
update copyright date
Alan T. DeKok [Wed, 10 Feb 2021 13:30:11 +0000 (08:30 -0500)]
use the v4 dictionary format
remove BEGIN-TLV.
Failover-DNS-Removal-Info is a *group*, not a TLV.
The DHCPv6 number space is global. So option 117 must be
defined globally, even if it can only occur inside of
attribute 116.
Alan T. DeKok [Wed, 10 Feb 2021 13:23:53 +0000 (08:23 -0500)]
update
Updated AVPs based on the latest SmartZone 5.1.1 RADIUS data dictionary, see https://support.ruckuswireless.com/articles/
000005220
Fixes #3907
Alan T. DeKok [Fri, 5 Feb 2021 15:29:19 +0000 (10:29 -0500)]
remove request->async->fake
as it's mirrors functionality of checking request->async->listen
and add macros to check for internal / external status, which
is clearer
Alan T. DeKok [Fri, 5 Feb 2021 15:20:29 +0000 (10:20 -0500)]
remove one more goto and break
by moving them into clearer control structures
James Jones [Tue, 9 Feb 2021 16:42:34 +0000 (10:42 -0600)]
Initialize version_byte to make static analysis happy
James Jones [Tue, 9 Feb 2021 15:14:32 +0000 (09:14 -0600)]
Use dbuff primitives to read/write from dbuffs. (#3912)
James Jones [Tue, 9 Feb 2021 15:13:57 +0000 (09:13 -0600)]
Allow fr_dbuff_in_memcpy() from marker to uint8_t * (#3906)
(and add a corresponding check in dbuff_tests)
Arran Cudbard-Bell [Mon, 8 Feb 2021 22:46:21 +0000 (22:46 +0000)]
Typo
Arran Cudbard-Bell [Mon, 8 Feb 2021 22:31:12 +0000 (22:31 +0000)]
Use old deconsting method
Arran Cudbard-Bell [Mon, 8 Feb 2021 20:12:59 +0000 (20:12 +0000)]
Unused
Arran Cudbard-Bell [Mon, 8 Feb 2021 19:54:58 +0000 (19:54 +0000)]
Fix various isuses
Arran Cudbard-Bell [Thu, 4 Feb 2021 10:52:27 +0000 (10:52 +0000)]
Start of defining module methods in the dictionary
Nick Porter [Mon, 8 Feb 2021 17:58:39 +0000 (17:58 +0000)]
Honour *_TEST_SERVER variables to exercise module feature tests (#3911)
* Respect individual *_TEST_SERVER variables if set
* Handle module tests in subdirectories
* Correct list references in SMTP tests
* Use correct group for Dovecot userdb
* Correct imap_setup script in light of linter comments
* Extend time for exim attachment delivery
* Parameterise IMAP test server settings.
* Parameterise SMTP test server settings.
Arran Cudbard-Bell [Mon, 8 Feb 2021 16:08:32 +0000 (16:08 +0000)]
Quiet compiler
Arran Cudbard-Bell [Mon, 8 Feb 2021 15:29:03 +0000 (15:29 +0000)]
Unconsting
Nick Porter [Fri, 5 Feb 2021 16:15:26 +0000 (16:15 +0000)]
TMPLs evaluated from LDAP responses are "at_runtime"
Arran Cudbard-Bell [Thu, 4 Feb 2021 20:10:47 +0000 (20:10 +0000)]
Only if we have a parent...
Arran Cudbard-Bell [Thu, 4 Feb 2021 19:57:45 +0000 (19:57 +0000)]
Use the request_alloc functions to setup logging in trigger_exec
So we don't do it wrong and trip up asserts elsewhere in the code... or double alloc log.dst
Arran Cudbard-Bell [Thu, 4 Feb 2021 19:56:49 +0000 (19:56 +0000)]
Even detachable requests should inherit log settings from their parents
Arran Cudbard-Bell [Thu, 4 Feb 2021 19:34:59 +0000 (19:34 +0000)]
Move into a loop, so it's clearer what's going on
Arran Cudbard-Bell [Thu, 4 Feb 2021 16:31:06 +0000 (16:31 +0000)]
For when you can't event get a valid FD
Arran Cudbard-Bell [Thu, 4 Feb 2021 13:10:53 +0000 (13:10 +0000)]
More helpful asserts
Arran Cudbard-Bell [Thu, 4 Feb 2021 10:50:54 +0000 (10:50 +0000)]
Whitespace
Arran Cudbard-Bell [Wed, 3 Feb 2021 20:12:36 +0000 (20:12 +0000)]
Rename fr_dict_attr_enum functions to fr_dict_enum
Arran Cudbard-Bell [Wed, 3 Feb 2021 14:34:47 +0000 (14:34 +0000)]
Unused
Arran Cudbard-Bell [Tue, 2 Feb 2021 18:50:16 +0000 (18:50 +0000)]
Check if we have a trigger args list
Arran Cudbard-Bell [Tue, 2 Feb 2021 18:49:04 +0000 (18:49 +0000)]
Add fr_rb_node_t fields to structures that are inserted into rbtrees
This is being done ahead of removing malloc calls in the rbtree.
Arran Cudbard-Bell [Tue, 2 Feb 2021 17:32:24 +0000 (17:32 +0000)]
Use names field initialisers
Terry Burton [Tue, 2 Feb 2021 17:13:50 +0000 (17:13 +0000)]
Move shellcheck RC from root to workflow config; disable JSCPD (#3904)
Terry Burton [Tue, 2 Feb 2021 14:57:03 +0000 (14:57 +0000)]
Fuzzer artifact fetcher (#3893)
* Fuzzer: Make sure that the fuzzer is built before attempting to run it
* Fuzzer: Script to fetch fuzzing artifacts from GH Actions workflows
Requires a Personal Access Token with "repo:public_repo" scope to be set in
GITHUB_TOKEN environment variable to download artifacts.
* Shut up linter
POSIX-compliant methods of getting around this are fugly.
James Jones [Tue, 2 Feb 2021 14:56:23 +0000 (08:56 -0600)]
Revise dbuff_tests to avoid provoking jscpd (#3902)
Arran Cudbard-Bell [Tue, 2 Feb 2021 11:52:17 +0000 (11:52 +0000)]
Only run the free walker if we have a free callback
The rest of the nodes are parented off the tree
Arran Cudbard-Bell [Tue, 2 Feb 2021 11:51:11 +0000 (11:51 +0000)]
More rbmonkey fixes
Arran Cudbard-Bell [Mon, 1 Feb 2021 20:06:46 +0000 (20:06 +0000)]
Delete data as the _last_ step when removing or inserting a node
Terry Burton [Mon, 1 Feb 2021 20:11:08 +0000 (20:11 +0000)]
LLVM snapshot repository is broken; switch to LLVM 10 for now
Hua Zhong [Mon, 1 Feb 2021 20:15:54 +0000 (12:15 -0800)]
Add Arista Captive-Portal and fix WebAuth start/complete values (#3900)
* Fix WebAuth start/complete values
* Add Arista-Captive-Portal
* Remove Arista- prefix
Terry Burton [Sun, 31 Jan 2021 20:28:03 +0000 (20:28 +0000)]
Typo
Alan T. DeKok [Fri, 29 Jan 2021 19:47:58 +0000 (14:47 -0500)]
look at listener only if it exists
by pushing checks for size to code where it exists
Arran Cudbard-Bell [Fri, 29 Jan 2021 19:34:51 +0000 (19:34 +0000)]
Fix condition
Arran Cudbard-Bell [Fri, 29 Jan 2021 19:24:45 +0000 (19:24 +0000)]
Don't crash if env_pairs are NULL
Arran Cudbard-Bell [Fri, 29 Jan 2021 18:57:26 +0000 (18:57 +0000)]
Add Hitron dictionary
Federico Capoano [Sun, 24 Jan 2021 23:35:04 +0000 (18:35 -0500)]
sqlcounter: fixed configuration for PostgreSQL #3867
ABSTIME is deprecated since PostgreSQL 7.0 and removed in PostgreSQL 12.
GREATER doesn't seem to be documented, but GREATEST is available
since PostgreSQL 9.
Arran Cudbard-Bell [Fri, 29 Jan 2021 18:08:59 +0000 (18:08 +0000)]
Add inverse type mappings for bool
Arran Cudbard-Bell [Fri, 29 Jan 2021 17:44:01 +0000 (17:44 +0000)]
More helpful error messages
Jorge Pereira [Tue, 12 Jan 2021 14:12:41 +0000 (11:12 -0300)]
rlm_python: The detach() function in example.py expects parameter
Nick Porter [Thu, 28 Jan 2021 16:28:27 +0000 (16:28 +0000)]
Add extra tests to rlm_attr_filter to exercise the different operators
Jorge Pereira [Thu, 28 Jan 2021 20:55:19 +0000 (17:55 -0300)]
radclient: Fix 'invalid attribute' test
It is necessary to match the output files built with/without -NDEBUG
Arran Cudbard-Bell [Thu, 28 Jan 2021 18:13:47 +0000 (18:13 +0000)]
Changed prematurely
Arran Cudbard-Bell [Thu, 28 Jan 2021 16:51:22 +0000 (16:51 +0000)]
thresh should be an fr_rb_test_node_t
Arran Cudbard-Bell [Thu, 28 Jan 2021 16:18:25 +0000 (16:18 +0000)]
Grr stupid generics
Arran Cudbard-Bell [Thu, 28 Jan 2021 16:04:47 +0000 (16:04 +0000)]
Avoid type conflicts in fr_dbuff_advance
Jorge Pereira [Tue, 26 Jan 2021 20:34:30 +0000 (17:34 -0300)]
radclient: Add tests validating invalid attributes
Jorge Pereira [Tue, 26 Jan 2021 21:17:39 +0000 (18:17 -0300)]
test: Add 'IGNORE_ERROR' option for radclient tests
James Jones [Tue, 26 Jan 2021 14:40:53 +0000 (08:40 -0600)]
Avoid backing up markers and make naming and usage consistent.
James Jones [Mon, 18 Jan 2021 21:45:45 +0000 (15:45 -0600)]
Modernize and clean up dhcpv4 encoding code to make better use of dbuffs and markers
Arran Cudbard-Bell [Thu, 28 Jan 2021 15:00:00 +0000 (15:00 +0000)]
Don't allow the length argument of fr_dbuff_advance to be a signed integer
James Jones [Tue, 26 Jan 2021 20:52:42 +0000 (14:52 -0600)]
Remove FR_DBUFF_RESERVE*() now that nothing uses it.
This allows a simpler, more direct expression of FR_DBUFF_MAX*()
(for now, at least; things will get interesting again when we
let FR_DBUFF_MAX*() take advantage of extensibility)
Arran Cudbard-Bell [Thu, 28 Jan 2021 13:42:39 +0000 (13:42 +0000)]
Fixup rbmonkey so it does not duplicate private structs
- Use a test structure with room for an rb node instead of just an integer.
- Minor style corrections.
Alan T. DeKok [Thu, 28 Jan 2021 13:32:10 +0000 (08:32 -0500)]
ensure that we do adoc -> man conversions, too
because $(wildcard ...) will only pick up files which exist
in the directory. the auto-generated "man" files might not,
so we need to add a dependency so that they are created, too
Nick Porter [Thu, 28 Jan 2021 09:03:29 +0000 (09:03 +0000)]
Correct path for man pages made from adoc files
Arran Cudbard-Bell [Thu, 28 Jan 2021 10:40:00 +0000 (10:40 +0000)]
We should always have list head pointer values now Closes #3889
Nick Porter [Thu, 28 Jan 2021 10:08:29 +0000 (10:08 +0000)]
Can't write to a const
Terry Burton [Wed, 27 Jan 2021 22:01:16 +0000 (22:01 +0000)]
CI: Allow one-off fuzzing runtime to be specified in the branch name
Terry Burton [Wed, 27 Jan 2021 15:54:23 +0000 (15:54 +0000)]
CI: Set explicit retention days for uploaded assets; name fixes
Default retention period is 90 days which is excessive for large
artifacts, especially now that this can be controlled.
Do not retain the packages built for post-install testing. We limit to
the minimum of 1 day. These assets are large and we don't want people to
use them.
Nick Porter [Wed, 27 Jan 2021 20:38:10 +0000 (20:38 +0000)]
Make attr_filter test pass
Nick Porter [Wed, 27 Jan 2021 20:33:56 +0000 (20:33 +0000)]
Remove pair from temporary list before adding to correct list
Alan T. DeKok [Wed, 27 Jan 2021 19:42:58 +0000 (14:42 -0500)]
unify checks for buffer_len==1 and do_not_respond
Alan T. DeKok [Wed, 27 Jan 2021 19:34:49 +0000 (14:34 -0500)]
always use protocol size, even for do_not_respond
we rely on proto_foo encode() to look at request->reply->code,
and then do "the right thing" to signal it's own write() layer
that we're not replying.
Alan T. DeKok [Wed, 27 Jan 2021 19:28:46 +0000 (14:28 -0500)]
tell the IO handler that we're done
Arran Cudbard-Bell [Wed, 27 Jan 2021 18:56:40 +0000 (18:56 +0000)]
DHCPv4: Still need to copy pairs to a local list so we can search for options
Alan T. DeKok [Wed, 27 Jan 2021 15:51:06 +0000 (10:51 -0500)]
add flag / assertion for request is finished
so that we don't erroneously refuse to clean it up
Arran Cudbard-Bell [Wed, 27 Jan 2021 15:43:42 +0000 (15:43 +0000)]
Use a local var for easier debugging