]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
5 years agomove control socket to new location
Alan T. DeKok [Mon, 15 Feb 2021 20:47:53 +0000 (15:47 -0500)] 
move control socket to new location

5 years agomove dhcpclient to the "bin" directory
Alan T. DeKok [Mon, 15 Feb 2021 20:45:03 +0000 (15:45 -0500)] 
move dhcpclient to the "bin" directory

there's no longer any other good place for it.

5 years agomove DHCPv6 to new location
Alan T. DeKok [Mon, 15 Feb 2021 20:40:33 +0000 (15:40 -0500)] 
move DHCPv6 to new location

5 years agomove TACACS+ to new location
Alan T. DeKok [Mon, 15 Feb 2021 20:18:49 +0000 (15:18 -0500)] 
move TACACS+ to new location

5 years agomove VMPS to new location
Alan T. DeKok [Mon, 15 Feb 2021 20:11:58 +0000 (15:11 -0500)] 
move VMPS to new location

5 years agomove dhcpv4 to new layout
Alan T. DeKok [Mon, 15 Feb 2021 19:57:31 +0000 (14:57 -0500)] 
move dhcpv4 to new layout

5 years agomove to new location
Alan T. DeKok [Mon, 15 Feb 2021 19:49:37 +0000 (14:49 -0500)] 
move to new location

in preparation for better separating process state machines
from the front-end listeners

5 years ago...and some more
Arran Cudbard-Bell [Mon, 15 Feb 2021 17:32:52 +0000 (17:32 +0000)] 
...and some more

5 years agov4: Change fr_pair_list_afrom_box() to work on externally created list head (#3931)
Nick Porter [Mon, 15 Feb 2021 17:28:18 +0000 (17:28 +0000)] 
v4: Change fr_pair_list_afrom_box() to work on externally created list head (#3931)

fr_pair_list_afrom_box() was previously allocating a list head and
returning that, even though the use cases were only temporary lists.

5 years agoClean up vmps dbuff usage (#3914)
James Jones [Mon, 15 Feb 2021 17:27:44 +0000 (11:27 -0600)] 
Clean up vmps dbuff usage (#3914)

5 years agoModernize radius encode use of dbuffs (#3926)
James Jones [Mon, 15 Feb 2021 17:27:07 +0000 (11:27 -0600)] 
Modernize radius encode use of dbuffs (#3926)

5 years agoPedantic code re-arrangement
Arran Cudbard-Bell [Mon, 15 Feb 2021 17:06:23 +0000 (17:06 +0000)] 
Pedantic code re-arrangement

5 years agoChange lists in dl.c to be doubly linked lists (#3934)
Nick Porter [Mon, 15 Feb 2021 16:40:45 +0000 (16:40 +0000)] 
Change lists in dl.c to be doubly linked lists (#3934)

Replacing the use of fr_cursor with fr_dcursor

5 years agorlm_redis: Fix configuration settings (#3936)
Jorge Pereira [Mon, 15 Feb 2021 15:13:10 +0000 (12:13 -0300)] 
rlm_redis: Fix configuration settings (#3936)

5 years agoEfficiently initialise unlang_module_event_t
Arran Cudbard-Bell [Mon, 15 Feb 2021 15:01:24 +0000 (15:01 +0000)] 
Efficiently initialise unlang_module_event_t

5 years agoFix names to be consistent
Arran Cudbard-Bell [Mon, 15 Feb 2021 12:48:19 +0000 (12:48 +0000)] 
Fix names to be consistent

5 years agoTypo
Arran Cudbard-Bell [Mon, 15 Feb 2021 12:19:09 +0000 (12:19 +0000)] 
Typo

5 years agoTypo
Arran Cudbard-Bell [Sun, 14 Feb 2021 23:16:32 +0000 (23:16 +0000)] 
Typo

5 years agoDon't need server_cs field
Arran Cudbard-Bell [Sun, 14 Feb 2021 23:12:53 +0000 (23:12 +0000)] 
Don't need server_cs field

5 years agore-arrange fields in request_t
Arran Cudbard-Bell [Sun, 14 Feb 2021 22:33:15 +0000 (22:33 +0000)] 
re-arrange fields in request_t

5 years agoUnused
Arran Cudbard-Bell [Sun, 14 Feb 2021 22:32:59 +0000 (22:32 +0000)] 
Unused

5 years agoUnused
Arran Cudbard-Bell [Sun, 14 Feb 2021 22:23:07 +0000 (22:23 +0000)] 
Unused

5 years agoUnused
Arran Cudbard-Bell [Sun, 14 Feb 2021 22:19:20 +0000 (22:19 +0000)] 
Unused

5 years agoRemove request->listener
Arran Cudbard-Bell [Sun, 14 Feb 2021 22:16:08 +0000 (22:16 +0000)] 
Remove request->listener

5 years agoUnused
Arran Cudbard-Bell [Sun, 14 Feb 2021 22:13:35 +0000 (22:13 +0000)] 
Unused

5 years agoFix redundant declarations of talloc_const_free
Arran Cudbard-Bell [Sun, 14 Feb 2021 21:51:00 +0000 (21:51 +0000)] 
Fix redundant declarations of talloc_const_free

5 years agoNeed signal.h
Arran Cudbard-Bell [Fri, 12 Feb 2021 23:00:24 +0000 (23:00 +0000)] 
Need signal.h

5 years agoReplace talloc_autofree_context with our own version Closes #3916
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

5 years agoAllow disarming of atexit thread-local destructors
Arran Cudbard-Bell [Fri, 12 Feb 2021 21:07:30 +0000 (21:07 +0000)] 
Allow disarming of atexit thread-local destructors

5 years agoJust return NULL at the detection of padding
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.

5 years agotalloc: Fix missing _talloc_pooled_object() configure check (#3935)
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>
5 years agoTalloc memory limit is deprecated as of Talloc 2.1.15 Closes #3925 Closes #3924 Close...
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.

5 years agoAdd dictionary pull request template
Arran Cudbard-Bell [Fri, 12 Feb 2021 01:14:01 +0000 (01:14 +0000)] 
Add dictionary pull request template

5 years agotypo
Alan T. DeKok [Thu, 11 Feb 2021 15:58:18 +0000 (10:58 -0500)] 
typo

5 years agomore error messages
Alan T. DeKok [Thu, 11 Feb 2021 15:57:44 +0000 (10:57 -0500)] 
more error messages

5 years agotalloc_setmemlimit() is now deprecated on OSX.
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.

5 years agoDelete old issue template
Arran Cudbard-Bell [Thu, 11 Feb 2021 14:45:58 +0000 (14:45 +0000)] 
Delete old issue template

5 years agomaster: Spawn tmate on failing package build and install jobs with ci-debug branch...
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

5 years agoEnsure DH parameters are created before stopping dovecot as root (#3927)
Nick Porter [Wed, 10 Feb 2021 16:44:18 +0000 (16:44 +0000)] 
Ensure DH parameters are created before stopping dovecot as root (#3927)

5 years agofix typos
Alan T. DeKok [Wed, 10 Feb 2021 16:01:50 +0000 (11:01 -0500)] 
fix typos

5 years agodon't copy listener
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

5 years agoupdate copyright date
Alan T. DeKok [Wed, 10 Feb 2021 13:33:37 +0000 (08:33 -0500)] 
update copyright date

5 years agouse the v4 dictionary format
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.

5 years agoupdate
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

5 years agoremove request->async->fake
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

5 years agoremove one more goto and break
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

5 years agoInitialize version_byte to make static analysis happy
James Jones [Tue, 9 Feb 2021 16:42:34 +0000 (10:42 -0600)] 
Initialize version_byte to make static analysis happy

5 years agoUse dbuff primitives to read/write from dbuffs. (#3912)
James Jones [Tue, 9 Feb 2021 15:14:32 +0000 (09:14 -0600)] 
Use dbuff primitives to read/write from dbuffs. (#3912)

5 years agoAllow fr_dbuff_in_memcpy() from marker to uint8_t * (#3906)
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)

5 years agoTypo
Arran Cudbard-Bell [Mon, 8 Feb 2021 22:46:21 +0000 (22:46 +0000)] 
Typo

5 years agoUse old deconsting method
Arran Cudbard-Bell [Mon, 8 Feb 2021 22:31:12 +0000 (22:31 +0000)] 
Use old deconsting method

5 years agoUnused
Arran Cudbard-Bell [Mon, 8 Feb 2021 20:12:59 +0000 (20:12 +0000)] 
Unused

5 years agoFix various isuses
Arran Cudbard-Bell [Mon, 8 Feb 2021 19:54:58 +0000 (19:54 +0000)] 
Fix various isuses

5 years agoStart of defining module methods in the dictionary
Arran Cudbard-Bell [Thu, 4 Feb 2021 10:52:27 +0000 (10:52 +0000)] 
Start of defining module methods in the dictionary

5 years agoHonour *_TEST_SERVER variables to exercise module feature tests (#3911)
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.

5 years agoQuiet compiler
Arran Cudbard-Bell [Mon, 8 Feb 2021 16:08:32 +0000 (16:08 +0000)] 
Quiet compiler

5 years agoUnconsting
Arran Cudbard-Bell [Mon, 8 Feb 2021 15:29:03 +0000 (15:29 +0000)] 
Unconsting

5 years agoTMPLs evaluated from LDAP responses are "at_runtime"
Nick Porter [Fri, 5 Feb 2021 16:15:26 +0000 (16:15 +0000)] 
TMPLs evaluated from LDAP responses are "at_runtime"

5 years agoOnly if we have a parent...
Arran Cudbard-Bell [Thu, 4 Feb 2021 20:10:47 +0000 (20:10 +0000)] 
Only if we have a parent...

5 years agoUse the request_alloc functions to setup logging in trigger_exec
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

5 years agoEven detachable requests should inherit log settings from their parents
Arran Cudbard-Bell [Thu, 4 Feb 2021 19:56:49 +0000 (19:56 +0000)] 
Even detachable requests should inherit log settings from their parents

5 years agoMove into a loop, so it's clearer what's going on
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

5 years agoFor when you can't event get a valid FD
Arran Cudbard-Bell [Thu, 4 Feb 2021 16:31:06 +0000 (16:31 +0000)] 
For when you can't event get a valid FD

5 years agoMore helpful asserts
Arran Cudbard-Bell [Thu, 4 Feb 2021 13:10:53 +0000 (13:10 +0000)] 
More helpful asserts

5 years agoWhitespace
Arran Cudbard-Bell [Thu, 4 Feb 2021 10:50:54 +0000 (10:50 +0000)] 
Whitespace

5 years agoRename fr_dict_attr_enum functions to fr_dict_enum
Arran Cudbard-Bell [Wed, 3 Feb 2021 20:12:36 +0000 (20:12 +0000)] 
Rename fr_dict_attr_enum functions to fr_dict_enum

5 years agoUnused
Arran Cudbard-Bell [Wed, 3 Feb 2021 14:34:47 +0000 (14:34 +0000)] 
Unused

5 years agoCheck if we have a trigger args list
Arran Cudbard-Bell [Tue, 2 Feb 2021 18:50:16 +0000 (18:50 +0000)] 
Check if we have  a trigger args list

5 years agoAdd fr_rb_node_t fields to structures that are inserted into rbtrees
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.

5 years agoUse names field initialisers
Arran Cudbard-Bell [Tue, 2 Feb 2021 17:32:24 +0000 (17:32 +0000)] 
Use names field initialisers

5 years agoMove shellcheck RC from root to workflow config; disable JSCPD (#3904)
Terry Burton [Tue, 2 Feb 2021 17:13:50 +0000 (17:13 +0000)] 
Move shellcheck RC from root to workflow config; disable JSCPD (#3904)

5 years agoFuzzer artifact fetcher (#3893)
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.

5 years agoRevise dbuff_tests to avoid provoking jscpd (#3902)
James Jones [Tue, 2 Feb 2021 14:56:23 +0000 (08:56 -0600)] 
Revise dbuff_tests to avoid provoking jscpd (#3902)

5 years agoOnly run the free walker if we have a free callback
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

5 years agoMore rbmonkey fixes
Arran Cudbard-Bell [Tue, 2 Feb 2021 11:51:11 +0000 (11:51 +0000)] 
More rbmonkey fixes

5 years agoDelete data as the _last_ step when removing or inserting a node
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

5 years agoLLVM snapshot repository is broken; switch to LLVM 10 for now
Terry Burton [Mon, 1 Feb 2021 20:11:08 +0000 (20:11 +0000)] 
LLVM snapshot repository is broken; switch to LLVM 10 for now

5 years agoAdd Arista Captive-Portal and fix WebAuth start/complete values (#3900)
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

5 years agoTypo
Terry Burton [Sun, 31 Jan 2021 20:28:03 +0000 (20:28 +0000)] 
Typo

5 years agolook at listener only if it exists
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

5 years agoFix condition
Arran Cudbard-Bell [Fri, 29 Jan 2021 19:34:51 +0000 (19:34 +0000)] 
Fix condition

5 years agoDon't crash if env_pairs are NULL
Arran Cudbard-Bell [Fri, 29 Jan 2021 19:24:45 +0000 (19:24 +0000)] 
Don't crash if env_pairs are NULL

5 years agoAdd Hitron dictionary
Arran Cudbard-Bell [Fri, 29 Jan 2021 18:57:26 +0000 (18:57 +0000)] 
Add Hitron dictionary

5 years agosqlcounter: fixed configuration for PostgreSQL #3867
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.

5 years agoAdd inverse type mappings for bool
Arran Cudbard-Bell [Fri, 29 Jan 2021 18:08:59 +0000 (18:08 +0000)] 
Add inverse type mappings for bool

5 years agoMore helpful error messages
Arran Cudbard-Bell [Fri, 29 Jan 2021 17:44:01 +0000 (17:44 +0000)] 
More helpful error messages

5 years agorlm_python: The detach() function in example.py expects parameter
Jorge Pereira [Tue, 12 Jan 2021 14:12:41 +0000 (11:12 -0300)] 
rlm_python: The detach() function in example.py expects parameter

5 years agoAdd extra tests to rlm_attr_filter to exercise the different operators
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

5 years agoradclient: Fix 'invalid attribute' test
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

5 years agoChanged prematurely
Arran Cudbard-Bell [Thu, 28 Jan 2021 18:13:47 +0000 (18:13 +0000)] 
Changed prematurely

5 years agothresh should be an fr_rb_test_node_t
Arran Cudbard-Bell [Thu, 28 Jan 2021 16:51:22 +0000 (16:51 +0000)] 
thresh should be an fr_rb_test_node_t

5 years agoGrr stupid generics
Arran Cudbard-Bell [Thu, 28 Jan 2021 16:18:25 +0000 (16:18 +0000)] 
Grr stupid generics

5 years agoAvoid type conflicts in fr_dbuff_advance
Arran Cudbard-Bell [Thu, 28 Jan 2021 16:04:47 +0000 (16:04 +0000)] 
Avoid type conflicts in fr_dbuff_advance

5 years agoradclient: Add tests validating invalid attributes
Jorge Pereira [Tue, 26 Jan 2021 20:34:30 +0000 (17:34 -0300)] 
radclient: Add tests validating invalid attributes

5 years agotest: Add 'IGNORE_ERROR' option for radclient tests
Jorge Pereira [Tue, 26 Jan 2021 21:17:39 +0000 (18:17 -0300)] 
test: Add 'IGNORE_ERROR' option for radclient tests

5 years agoAvoid backing up markers and make naming and usage consistent.
James Jones [Tue, 26 Jan 2021 14:40:53 +0000 (08:40 -0600)] 
Avoid backing up markers and make naming and usage consistent.

5 years agoModernize and clean up dhcpv4 encoding code to make better use of dbuffs and markers
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

5 years agoDon't allow the length argument of fr_dbuff_advance to be a signed integer
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

5 years agoRemove FR_DBUFF_RESERVE*() now that nothing uses it.
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)

5 years agoFixup rbmonkey so it does not duplicate private structs
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.