]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Arran Cudbard-Bell [Fri, 1 Apr 2022 21:13:09 +0000 (15:13 -0600)]
Try *really* hard to pull down packages
github-actions[bot] [Fri, 1 Apr 2022 09:37:16 +0000 (09:37 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar
github-actions[bot] [Fri, 1 Apr 2022 09:37:13 +0000 (09:37 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Fri, 1 Apr 2022 09:37:10 +0000 (09:37 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar
github-actions[bot] [Fri, 1 Apr 2022 09:37:07 +0000 (09:37 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
github-actions[bot] [Fri, 1 Apr 2022 09:37:04 +0000 (09:37 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Fri, 1 Apr 2022 09:37:01 +0000 (09:37 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Fri, 1 Apr 2022 09:36:57 +0000 (09:36 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Fri, 1 Apr 2022 09:36:55 +0000 (09:36 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
Alan T. DeKok [Thu, 31 Mar 2022 18:03:33 +0000 (14:03 -0400)]
correct references and numbers
apparently the formatter isn't quite perfect
Arran Cudbard-Bell [Thu, 31 Mar 2022 17:10:25 +0000 (11:10 -0600)]
Bump the timeout
This'll temporarily fix CI, but we should try and figure out exactly what's happening.
Arran Cudbard-Bell [Thu, 31 Mar 2022 17:09:09 +0000 (11:09 -0600)]
Return NULL on error
Alan T. DeKok [Thu, 31 Mar 2022 16:45:43 +0000 (12:45 -0400)]
run through the formatting script
which updates the copyright date, and changes whitespace
Alan T. DeKok [Thu, 31 Mar 2022 16:44:41 +0000 (12:44 -0400)]
this encoded as DNS
Arran Cudbard-Bell [Thu, 31 Mar 2022 16:35:02 +0000 (10:35 -0600)]
Check for NULL heap pointers
Arran Cudbard-Bell [Thu, 31 Mar 2022 16:12:05 +0000 (10:12 -0600)]
Remove one layer of heap derefs and shrink heaps as elements are removed
Alan T. DeKok [Thu, 31 Mar 2022 16:04:29 +0000 (12:04 -0400)]
update and rearrange
to reset TLV numbers
Alan T. DeKok [Thu, 31 Mar 2022 14:29:35 +0000 (10:29 -0400)]
the first 2 fields are mandatory, so we might as well define them :(
Alan T. DeKok [Thu, 31 Mar 2022 14:21:52 +0000 (10:21 -0400)]
these are "bool encode=exists", like Rapid-Commit
James Jones [Thu, 31 Mar 2022 14:04:17 +0000 (09:04 -0500)]
Continue splitting dictionaries by RFC (#4445)
Matthew Newton [Thu, 31 Mar 2022 09:05:43 +0000 (10:05 +0100)]
Remove prefixes
Matthew Newton [Wed, 30 Mar 2022 20:03:13 +0000 (21:03 +0100)]
Add netelastic dictionary
Terry Burton [Wed, 30 Mar 2022 12:06:10 +0000 (13:06 +0100)]
freeradius-snmp "proxy": Fixes and cleanup (#4446)
Accelerate walks with a "next OID" hash.
Enable collection of per-client stats by default.
Populate accounting client table with real data.
Avoid race by hoisting radius_stats_init() out of updater thread.
Have radius_updater thread terminate on SIGINT.
Refresh RADIUS-AUTH-SERVER-MIB and RADIUS-ACC-SERVER-MIBs.
Add IPv6 client support.
Assume default value (0) for non-existent stats attributes.
Whitespace and style.
Arran Cudbard-Bell [Mon, 28 Mar 2022 21:19:37 +0000 (15:19 -0600)]
Try and fix the random debian packaging failures
Arran Cudbard-Bell [Mon, 28 Mar 2022 21:15:06 +0000 (15:15 -0600)]
add back Centos 7 support, apparently that was still passing in the scheduled builds somehow
Arran Cudbard-Bell [Mon, 28 Mar 2022 21:08:10 +0000 (15:08 -0600)]
Typo
Arran Cudbard-Bell [Mon, 28 Mar 2022 21:04:10 +0000 (15:04 -0600)]
Use another source of centos stream
Strip support for fedora and centos-7
Arran Cudbard-Bell [Mon, 28 Mar 2022 20:31:36 +0000 (14:31 -0600)]
See if this fixes the centos 8 package build...
Arran Cudbard-Bell [Mon, 28 Mar 2022 19:31:42 +0000 (13:31 -0600)]
Fix failures in OpenSSL 3.0 with custom logging BIOs
Apparently the create callbacks need to call BIO_set_init() otherwise all operations on the BIO will fail. This isn't documented anywhere.
Arran Cudbard-Bell [Mon, 28 Mar 2022 18:21:09 +0000 (12:21 -0600)]
If we're building OpenSSL make sure it's a debug build
Arran Cudbard-Bell [Mon, 28 Mar 2022 17:56:08 +0000 (11:56 -0600)]
We still need the request for state reset
Arran Cudbard-Bell [Mon, 28 Mar 2022 17:28:37 +0000 (11:28 -0600)]
Hack in stack over-allocation for OpenSSL async contexts
Arran Cudbard-Bell [Mon, 28 Mar 2022 16:32:24 +0000 (10:32 -0600)]
Bump OpenSSL for alt libs
Alan T. DeKok [Mon, 28 Mar 2022 14:29:27 +0000 (10:29 -0400)]
i->ifa_addr may not be aligned
on OSX it fails with alignment issues, as apparently the alignment
requirements are different for sockaddr and sockaddr_storage?
Or at least ubsan complains on my Mac.
Alan T. DeKok [Mon, 28 Mar 2022 14:55:23 +0000 (10:55 -0400)]
more sanity checks on parsing dates / times
Alan T. DeKok [Sat, 26 Mar 2022 13:05:06 +0000 (09:05 -0400)]
move private macros to private header
Alan T. DeKok [Sat, 26 Mar 2022 13:04:42 +0000 (09:04 -0400)]
add cf_item_has_no_children()
Alan T. DeKok [Sat, 26 Mar 2022 12:58:00 +0000 (08:58 -0400)]
doxygen
Alan T. DeKok [Sat, 26 Mar 2022 12:55:32 +0000 (08:55 -0400)]
use inline API for node removal
Alan T. DeKok [Sat, 26 Mar 2022 01:35:18 +0000 (21:35 -0400)]
move item initialization to a common function
Alan T. DeKok [Sat, 26 Mar 2022 01:25:44 +0000 (21:25 -0400)]
more use cf_item_foreach()
Alan T. DeKok [Sat, 26 Mar 2022 01:22:05 +0000 (21:22 -0400)]
insert the twin, not the entry we're deleting
Alan T. DeKok [Sat, 26 Mar 2022 00:57:30 +0000 (20:57 -0400)]
add cf_item_foreach_prev()
which avoids many manual calls to dlist code
Alan T. DeKok [Fri, 25 Mar 2022 22:11:09 +0000 (18:11 -0400)]
add cf_item_foreach
which makes things much easier
Alan T. DeKok [Fri, 25 Mar 2022 21:06:18 +0000 (17:06 -0400)]
inputs may be NULL
Alan T. DeKok [Fri, 25 Mar 2022 19:43:43 +0000 (15:43 -0400)]
add fr_tlist_parent()
Arran Cudbard-Bell [Sat, 26 Mar 2022 01:40:10 +0000 (19:40 -0600)]
Add fr_rb_delete_by_inline_node and fr_rb_remove_by_inline_node
Alan T. DeKok [Fri, 25 Mar 2022 18:50:26 +0000 (14:50 -0400)]
add more tlist-specific functions
Alan T. DeKok [Fri, 25 Mar 2022 18:24:00 +0000 (14:24 -0400)]
add the child list, too
MIZUTA Takeshi [Thu, 3 Mar 2022 06:28:56 +0000 (15:28 +0900)]
Don't refer to errno when the pthread library fails
When the pthread library fails, errno is referenced even though errno is not set.
Fix to refer to the return code of the pthread library instead of errno.
Nick Porter [Fri, 25 Mar 2022 17:33:38 +0000 (17:33 +0000)]
v4: Remove ifdefs for longstanding OpenLDAP features (#4439)
* Remove #ifdef LDAP_OPT_X_TLS_PROTOCOL_MIN
Has been in libldap for 13 years
* Remove #ifdef LDAP_OPT_NETWORK_TIMEOUT
Has been in libldap for 19 years
* Remove #ifdef LDAP_OPT_X_KEEPALIVE_IDLE
Has been in libldap for 13 years
* Remove #ifdef LDAP_OPT_X_KEEPALIVE_PROBES
Has been in libldap for 13 years
* Remove #ifdef LDAP_OPT_X_KEEPALIVE_INTERVAL
Has been in libldap for 13 years
* Remove #ifdef LDAP_MOD_INCREMENT
Has been in libldap for 15 years
* Remove #ifdef LDAP_OPT_X_TLS_NEVER
Has been in libldap for 18 years
* Remove #ifdef LDAP_SCOPE_CHILDREN
Has been in libldap for 18 years
* Remove #ifdef LDAP_OPT_TIMEOUT
Has been in libldap for 23 years
* Remove #ifdef LDAP_OPT_DEBUG_LEVEL
Has been in libldap for 23 years
* Remove #ifdef LDAP_OPT_TLS_RANDOM_FILE
Has been in libldap for 21 years
* Remove #ifdef LDAP_OPT_X_TLS_REQUIRE_CERT
Has been in libldap for 23 years
* Remove #ifdef LDAP_OPT_X_TLS_NEWCTX
Has been in libldap for 16 years
* Remove #ifdef HAVE_LDAP_UNBIND_EXT_S
Has been in libldap for 23 years
* Remove #ifdef HAVE_LDAP_INITIALIZE
Has been in libldap for 22 years
* Remove #ifdef HAVE_LDAP_URL_PARSE
Has been in libldap for 23 years
* Remove #ifdef HAVE_LDAP_IS_LDAP_URL
Has been in libldap for 23 years
* Remove #ifdef HAVE_LDAP_URL_DESC2STR (and LDAP_CAN_PARSE_URLS)
Has been in libldap for 21 years
* Remove #ifdef HAVE_LDAP_CREATE_SORT_KEYLIST and HAVE_LDAP_FREE_SORT_KEYLIST
Have been in libldap for 22 years
* Remove #ifdef HAVE_LDAP_CREATE_SORT_CONTROL
Has been in libldap for 20 years
* Remove #ifdef HAVE_LDAP_SASL_INTERACTIVE_BIND
Has been in libldap for 11 years
* Remove #ifdef HAVE_LDAP_START_TLS_S
Has been in libldap for 22 years
* Update configure.ac to reflect changes in libldap tests
Alan T. DeKok [Fri, 25 Mar 2022 15:38:33 +0000 (11:38 -0400)]
fix types and compile errors
Nick Porter [Fri, 25 Mar 2022 13:45:06 +0000 (13:45 +0000)]
talloc_array_length() doesn't handle array resized by talloc_realloc_fn() (#4428)
Alan T. DeKok [Fri, 25 Mar 2022 13:02:18 +0000 (09:02 -0400)]
port last dlist -> tlist changes
Alan T. DeKok [Thu, 24 Mar 2022 20:30:30 +0000 (16:30 -0400)]
manual pull of PR #4440
Matthew Newton [Thu, 24 Mar 2022 19:35:48 +0000 (19:35 +0000)]
add freeradius-freetds deb package
we already build a .rpm, so may as well build a .deb too
Jorge Pereira [Thu, 24 Mar 2022 16:28:37 +0000 (13:28 -0300)]
Add attributes for Ruckus SmartCell Insight (#4442)
Nick Porter [Thu, 24 Mar 2022 16:18:00 +0000 (16:18 +0000)]
Add reconnection_delay to mods-available/ldap (#4413)
Nick Porter [Thu, 24 Mar 2022 15:13:26 +0000 (15:13 +0000)]
Add dictionary for LDAP sync internal protocol (#4432)
Nick Porter [Thu, 24 Mar 2022 15:11:25 +0000 (15:11 +0000)]
v4: Two amendments to existing LDAP functions to support LDAP sync (#4429)
* Detect return of e-syncRefreshRequired LDAP result code
* Retrieve controls for LDAP search reference messages
James Jones [Wed, 23 Mar 2022 16:39:38 +0000 (11:39 -0500)]
Take more advantage of dns_label (#4437)
Terry Burton [Wed, 23 Mar 2022 15:10:13 +0000 (15:10 +0000)]
CI fuzzing: Interactive access to fuzzer CI env using debug-fuzzer-* branch (#4416)
This makes it easy to use the same CI environment that runs the scheduled
fuzzing to execute reproducers, e.g. for debugging when a reproducer isn't
failing locally.
* Push to debug-fuzzer-<protocol>, e.g. debug-fuzzer-radius
* Watch the CI run in GitHub Actions until the tmate session starts
* SSH to the emitted rendezvous point
* Run scripts/build/fuzzer-fetch-artifacts, and follow the output
Arran Cudbard-Bell [Tue, 22 Mar 2022 01:47:55 +0000 (21:47 -0400)]
Fix another md5 ctx free location
Arran Cudbard-Bell [Tue, 22 Mar 2022 01:17:51 +0000 (21:17 -0400)]
Fix free lists for md4/md5 for our internal md4/md5 functions
Arran Cudbard-Bell [Mon, 21 Mar 2022 22:55:54 +0000 (18:55 -0400)]
60 minutes isn't enough for some matrix entries
Alan T. DeKok [Mon, 21 Mar 2022 22:36:13 +0000 (18:36 -0400)]
update for child struct
Alan T. DeKok [Mon, 21 Mar 2022 22:27:53 +0000 (18:27 -0400)]
skip internal attributes when encoding nested structs
We really also want to skip any attributes which aren't parented
from the enclosing structure. But doing so means that any child
structures which depend on "key" will likely get skipped, too.
So for now we just do this.
Alan T. DeKok [Mon, 21 Mar 2022 22:13:47 +0000 (18:13 -0400)]
return child structs AFTER the members of the current struct
Alan T. DeKok [Mon, 21 Mar 2022 21:56:14 +0000 (17:56 -0400)]
more debugging
James Jones [Mon, 21 Mar 2022 21:09:01 +0000 (16:09 -0500)]
Changed DHCPv4 Authentication (90) to struct and added test (#4425)
Co-authored-by: Alan DeKok <aland@freeradius.org>
James Jones [Mon, 21 Mar 2022 21:08:03 +0000 (16:08 -0500)]
Make Client-NDI (code 94) a struct, add test, move to appropriate dictionary. (#4434)
Arran Cudbard-Bell [Mon, 21 Mar 2022 20:23:42 +0000 (16:23 -0400)]
Reduce timeout so hung jobs only stick around for an hour...
Nick Porter [Mon, 21 Mar 2022 20:08:02 +0000 (20:08 +0000)]
Initialise LDAP connection fd to an invalid fd number (#4430)
Alan T. DeKok [Mon, 21 Mar 2022 16:07:30 +0000 (12:07 -0400)]
update for RFC 7291
yet another weird format
Alan T. DeKok [Mon, 21 Mar 2022 15:44:56 +0000 (11:44 -0400)]
don't allow wrong lengths for protocol
Alan T. DeKok [Mon, 21 Mar 2022 15:26:30 +0000 (11:26 -0400)]
allow "length=uint8" for structs
and update encode / decode of struct
and ensure that the encoders don't add too many lengths
Alan T. DeKok [Mon, 21 Mar 2022 12:52:51 +0000 (08:52 -0400)]
whitespace
Nick Porter [Mon, 21 Mar 2022 12:29:20 +0000 (12:29 +0000)]
v4: Two minor changes to berval handling (#4427)
* Allocate the correct length when extracting from bervals
* Add fr_ldap_berval_to_value_str_shallow()
Nick Porter [Mon, 21 Mar 2022 12:28:42 +0000 (12:28 +0000)]
v4: Updates to functions for establishing LDAP directory type (#4424)
* Make parsing of LDAP directory type results a library function.
* Define fr_ldap_conn_directory_alloc_async()
For querying the LDAP directory type on a single connection
* Add a type to represent which sync protocol an LDAP directory supports
* Correct identification of IBM LDAP directories
* Define Active Directory specific OIDs
* Use supportedControl to identify which sync method an LDAP directory supports
Nick Porter [Mon, 21 Mar 2022 12:27:26 +0000 (12:27 +0000)]
v4: Three small fixes to fr_network_listen_sent_packet() (#4426)
* The child listener has the socket rather than the parent
* Handle errors in sending packet, and increase the outstanding count
* Set the channel data listener
Alan T. DeKok [Sun, 20 Mar 2022 20:11:10 +0000 (16:11 -0400)]
minor cleanups
Alan T. DeKok [Sun, 20 Mar 2022 20:04:53 +0000 (16:04 -0400)]
clean up and rearrange
Alan T. DeKok [Sat, 19 Mar 2022 14:37:03 +0000 (10:37 -0400)]
ignore exact flag for now
Alan T. DeKok [Sat, 19 Mar 2022 13:58:21 +0000 (09:58 -0400)]
rearrange and cleanup
Alan T. DeKok [Fri, 18 Mar 2022 23:55:17 +0000 (19:55 -0400)]
this is no longer needed
Alan T. DeKok [Fri, 18 Mar 2022 23:55:03 +0000 (19:55 -0400)]
clean up and centralize checks for arrays
Alan T. DeKok [Fri, 18 Mar 2022 14:34:22 +0000 (10:34 -0400)]
just use a different data type
Alan T. DeKok [Fri, 18 Mar 2022 14:29:00 +0000 (10:29 -0400)]
cast to shut up compiler
Alan T. DeKok [Fri, 18 Mar 2022 14:05:32 +0000 (10:05 -0400)]
move option and add tests
Alan T. DeKok [Fri, 18 Mar 2022 13:16:04 +0000 (09:16 -0400)]
move code to shut up clang scan
Alan T. DeKok [Fri, 18 Mar 2022 00:05:49 +0000 (20:05 -0400)]
one more stupid format for IPv4 prefixes
Alan T. DeKok [Fri, 18 Mar 2022 00:05:17 +0000 (20:05 -0400)]
decode array of structs (whew!)
Alan T. DeKok [Fri, 18 Mar 2022 00:04:54 +0000 (20:04 -0400)]
return the correct location of the error
Alan T. DeKok [Fri, 18 Mar 2022 00:03:28 +0000 (20:03 -0400)]
allow partial decoding of structs
if we weren't looking for "decode everything"
Alan T. DeKok [Thu, 17 Mar 2022 22:55:36 +0000 (18:55 -0400)]
allow "prefix=bits"
for prefixes which are encoded as 8 bits of prefix, followed by
0..3 bytes of actual content
Alan T. DeKok [Thu, 17 Mar 2022 22:54:25 +0000 (18:54 -0400)]
allow arrays of known-width structs
and do more checks on known widths
Alan T. DeKok [Thu, 17 Mar 2022 22:53:18 +0000 (18:53 -0400)]
allow structs to be children of structs
ATTR foo struct
member bar uint8
member baz struct
member x # of 'baz' struct!
member y
It looks stupid, but it works.
Alan T. DeKok [Thu, 17 Mar 2022 22:50:53 +0000 (18:50 -0400)]
we don't need element_len here
just trust encode_value(), and da->flags.length
Terry Burton [Fri, 18 Mar 2022 12:26:30 +0000 (12:26 +0000)]
Typo in Roaring-Penguin dictionary (#4423)
Arran Cudbard-Bell [Thu, 17 Mar 2022 18:01:25 +0000 (14:01 -0400)]
trunk: Fix scan issue