]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
2 years agoadd foreign handlers for DHCPv6
Alan T. DeKok [Sun, 28 Jan 2024 16:22:37 +0000 (11:22 -0500)] 
add foreign handlers for DHCPv6

2 years agothis attribute encodes other DHCPv6 options, not TLVs
Alan T. DeKok [Sun, 28 Jan 2024 16:21:17 +0000 (11:21 -0500)] 
this attribute encodes other DHCPv6 options, not TLVs

2 years agoupdate test for code changes
Alan T. DeKok [Sun, 28 Jan 2024 15:26:14 +0000 (10:26 -0500)] 
update test for code changes

2 years agoslen maybe SSIZE_MIN :(
Alan T. DeKok [Sun, 28 Jan 2024 15:12:31 +0000 (10:12 -0500)] 
slen maybe SSIZE_MIN :(

2 years agoprint actual reasons
Alan T. DeKok [Sun, 28 Jan 2024 14:54:06 +0000 (09:54 -0500)] 
print actual reasons

2 years agoclean up corner cases for decoder as found by fuzzer
Alan T. DeKok [Sun, 28 Jan 2024 14:53:44 +0000 (09:53 -0500)] 
clean up corner cases for decoder as found by fuzzer

2 years agojust return on error on TLV decode
Alan T. DeKok [Sun, 28 Jan 2024 14:46:22 +0000 (09:46 -0500)] 
just return on error on TLV decode

2 years agodhcp attributes can have zeeo length
Alan T. DeKok [Sun, 28 Jan 2024 14:20:52 +0000 (09:20 -0500)] 
dhcp attributes can have zeeo length

2 years agouse thread-local buffer for decoding
Alan T. DeKok [Sat, 27 Jan 2024 21:41:32 +0000 (16:41 -0500)] 
use thread-local buffer for decoding

to save on heap memory allocation

2 years agochange scope of variable
Alan T. DeKok [Sat, 27 Jan 2024 20:58:22 +0000 (15:58 -0500)] 
change scope of variable

2 years agouse tmp_ctx for decoding, not decode_ctx
Alan T. DeKok [Sat, 27 Jan 2024 16:38:20 +0000 (11:38 -0500)] 
use tmp_ctx for decoding, not decode_ctx

2 years agoadd fragmentation for encoding VSAs
Alan T. DeKok [Sat, 27 Jan 2024 15:53:16 +0000 (10:53 -0500)] 
add fragmentation for encoding VSAs

2 years agoencode groups for VSAs
Alan T. DeKok [Sat, 27 Jan 2024 14:52:18 +0000 (09:52 -0500)] 
encode groups for VSAs

update the dictionaries, and the tests

2 years agoRevert "disable until we figure out why it passes locally but not in CI"
Alan T. DeKok [Sat, 27 Jan 2024 14:30:39 +0000 (09:30 -0500)] 
Revert "disable until we figure out why it passes locally but not in CI"

This reverts commit 7aa50d26d3a963509f3f08ba80385b2e0ed55b17.

2 years agomash protocol names to lowercase
Alan T. DeKok [Sat, 27 Jan 2024 14:47:34 +0000 (09:47 -0500)] 
mash protocol names to lowercase

the names in the dictionaries are case insensitive, but the
file names are lowercase.

2 years agodon't overwrite the upstream error message
Alan T. DeKok [Sat, 27 Jan 2024 14:29:44 +0000 (09:29 -0500)] 
don't overwrite the upstream error message

2 years agoensure the list is freed
Alan T. DeKok [Sat, 27 Jan 2024 13:31:01 +0000 (08:31 -0500)] 
ensure the list is freed

2 years agoVP isn't used
Alan T. DeKok [Fri, 26 Jan 2024 22:11:58 +0000 (17:11 -0500)] 
VP isn't used

2 years agodisable until we figure out why it passes locally but not in CI
Alan T. DeKok [Fri, 26 Jan 2024 21:55:02 +0000 (16:55 -0500)] 
disable until we figure out why it passes locally but not in CI

2 years agoclean up corner case for loading name
Alan T. DeKok [Fri, 26 Jan 2024 21:46:13 +0000 (16:46 -0500)] 
clean up corner case for loading name

2 years agoreturn NULL on error
Alan T. DeKok [Fri, 26 Jan 2024 21:28:20 +0000 (16:28 -0500)] 
return NULL on error

2 years agoadd init/free to fr_dict_protocol_t
Alan T. DeKok [Fri, 26 Jan 2024 21:14:53 +0000 (16:14 -0500)] 
add init/free to fr_dict_protocol_t

and call them for autoref dictionaries

2 years agomove encode_group to its own function
Alan T. DeKok [Fri, 26 Jan 2024 21:14:28 +0000 (16:14 -0500)] 
move encode_group to its own function

so that we can re-use it for VSAs

2 years agoadd foreign decoder for RADIUS and DHCPv4
Alan T. DeKok [Fri, 26 Jan 2024 16:35:16 +0000 (11:35 -0500)] 
add foreign decoder for RADIUS and DHCPv4

2 years agoadd note on how to handle ALIAS
Alan T. DeKok [Fri, 26 Jan 2024 16:34:41 +0000 (11:34 -0500)] 
add note on how to handle ALIAS

which "jumps ahead" in the tree

2 years agoremove limitation which isn't needed
Alan T. DeKok [Fri, 26 Jan 2024 15:06:32 +0000 (10:06 -0500)] 
remove limitation which isn't needed

2 years agocorrectly handle inter-dictionary dependencies.
Alan T. DeKok [Fri, 26 Jan 2024 13:54:24 +0000 (08:54 -0500)] 
correctly handle inter-dictionary dependencies.

when adding them, make the "next" one depend on the one which
loaded it.  Then add the "next" one to the autofree list for the
current dictionary.

When freeing the global context, walk through all of the
dictionaries and free the autoref references first. Then walk through
them again, freeing the externally loaded references.

2 years agoencode foreign references
Alan T. DeKok [Fri, 26 Jan 2024 03:04:20 +0000 (22:04 -0500)] 
encode foreign references

2 years agomake tag limitations more narrow
Alan T. DeKok [Fri, 26 Jan 2024 15:07:43 +0000 (10:07 -0500)] 
make tag limitations more narrow

in preparation for adding groups

2 years agoallow encoding for foreign options
Alan T. DeKok [Fri, 26 Jan 2024 02:59:57 +0000 (21:59 -0500)] 
allow encoding for foreign options

2 years agoexport fr_dict_protocol_t
Alan T. DeKok [Fri, 26 Jan 2024 02:48:35 +0000 (21:48 -0500)] 
export fr_dict_protocol_t

2 years agoencode functions take a "const" list
Alan T. DeKok [Fri, 26 Jan 2024 02:25:08 +0000 (21:25 -0500)] 
encode functions take a "const" list

2 years agoRemove unneeded headers
Nick Porter [Wed, 24 Jan 2024 13:56:09 +0000 (13:56 +0000)] 
Remove unneeded headers

2 years agoRemove unused module option
Nick Porter [Mon, 22 Jan 2024 19:34:45 +0000 (19:34 +0000)] 
Remove unused module option

2 years agoAlign sqlippool behaviour with redis_ippool
Nick Porter [Mon, 22 Jan 2024 13:55:44 +0000 (13:55 +0000)] 
Align sqlippool behaviour with redis_ippool

by updating `gateway` on each address update.

2 years agosqlippool_queries don't use SQL-User-Name attribute, so don't create it
Nick Porter [Mon, 22 Jan 2024 12:31:00 +0000 (12:31 +0000)] 
sqlippool_queries don't use SQL-User-Name attribute, so don't create it

2 years agoMore appropriate debug messages
Nick Porter [Fri, 19 Jan 2024 17:47:40 +0000 (17:47 +0000)] 
More appropriate debug messages

2 years agoRemove un-used pool_name
Nick Porter [Fri, 19 Jan 2024 16:58:02 +0000 (16:58 +0000)] 
Remove un-used pool_name

2 years agoMore tidying up of sqlippool method names
Nick Porter [Fri, 19 Jan 2024 16:15:34 +0000 (16:15 +0000)] 
More tidying up of sqlippool method names

2 years agoReplace mod_accounting with named methods
Nick Porter [Fri, 19 Jan 2024 16:14:07 +0000 (16:14 +0000)] 
Replace mod_accounting with named methods

2 years agoBump github cache action version for newer node.js
Nick Porter [Fri, 26 Jan 2024 08:03:19 +0000 (08:03 +0000)] 
Bump github cache action version for newer node.js

2 years agoVarious fixes
Arran Cudbard-Bell [Fri, 26 Jan 2024 02:04:04 +0000 (20:04 -0600)] 
Various fixes

2 years agoFix redundant declarations
Arran Cudbard-Bell [Fri, 26 Jan 2024 01:02:06 +0000 (19:02 -0600)] 
Fix redundant declarations

2 years agoReplace vb->safe with vb->safe_for
Arran Cudbard-Bell [Fri, 26 Jan 2024 00:19:33 +0000 (18:19 -0600)] 
Replace vb->safe with vb->safe_for

This is usually a pointer to a function used for escaping.  This is still only partially integrated and requires more work.

2 years agoMove instantiation functions in rlm_sql
Arran Cudbard-Bell [Fri, 26 Jan 2024 00:05:24 +0000 (18:05 -0600)] 
Move instantiation functions in rlm_sql

2 years agoMove fr_assert() check of mutex-guarded data after the lock (CID #1587069)
James Jones [Thu, 25 Jan 2024 21:56:41 +0000 (15:56 -0600)] 
Move fr_assert() check of mutex-guarded data after the lock (CID #1587069)

2 years agoFix typos in src
Dimitri Papadopoulos [Thu, 25 Jan 2024 21:52:09 +0000 (22:52 +0100)] 
Fix typos in src

Misspellings found by codespell.

2 years agoUpdate GitHub Actions
Dimitri Papadopoulos [Thu, 25 Jan 2024 22:21:21 +0000 (23:21 +0100)] 
Update GitHub Actions

This should fix this warning:

FreeBSD build

Node.js 16 actions are deprecated. Please update the following
actions to use Node.js 20: actions/checkout@v3, actions/cache@v3,
cross-platform-actions/action@v0.21.0. For more information see:
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

2 years agoMake foreign dictionary references work.
Alan T. DeKok [Thu, 25 Jan 2024 22:08:33 +0000 (17:08 -0500)] 
Make foreign dictionary references work.

2 years agotypo
Alan T. DeKok [Thu, 25 Jan 2024 17:14:43 +0000 (12:14 -0500)] 
typo

2 years agoFix typos in debian
Dimitri Papadopoulos [Thu, 25 Jan 2024 22:07:17 +0000 (23:07 +0100)] 
Fix typos in debian

Misspellings found by codespell.

2 years agoFix typos in doc
Dimitri Papadopoulos [Thu, 25 Jan 2024 22:03:11 +0000 (23:03 +0100)] 
Fix typos in doc

Misspellings found by codespell.

2 years agoFix typos in scripts
Dimitri Papadopoulos [Thu, 25 Jan 2024 21:58:06 +0000 (22:58 +0100)] 
Fix typos in scripts

Misspellings found by codespell.

2 years agoCorrect auth vector reference
Nick Porter [Thu, 25 Jan 2024 20:55:39 +0000 (20:55 +0000)] 
Correct auth vector reference

2 years agoHandle coverity defects in do_xlats() error messages (CID #1533664)
James Jones [Tue, 26 Sep 2023 20:26:11 +0000 (15:26 -0500)] 
Handle coverity defects in do_xlats() error messages (CID #1533664)

2 years agoHoist remaining locks after tests of fr_io_client ht (CIDs below)
James Jones [Tue, 21 Nov 2023 15:56:51 +0000 (09:56 -0600)] 
Hoist remaining locks after tests of fr_io_client ht (CIDs below)

CIDS: 155170615517031551699

2 years agomutexes near returns (CID #1551697, #1551698)
James Jones [Wed, 22 Nov 2023 18:56:30 +0000 (12:56 -0600)] 
mutexes near returns (CID #1551697, #1551698)

1551697 Guard reference to is_exiting if HAVE_PTHREADS defined
1551698 Annotate leaving exfiles opened for exclusive use locked

2 years agoAdd needed lock/unlock to access t->inst->list (CID 1551705)
James Jones [Mon, 22 Jan 2024 22:36:16 +0000 (16:36 -0600)] 
Add needed lock/unlock to access t->inst->list (CID 1551705)

2 years agoChange redhat similarly to debian
Dimitri Papadopoulos [Mon, 25 Dec 2023 15:53:34 +0000 (16:53 +0100)] 
Change redhat similarly to debian

2 years agoAddress ssues raised durign review
Dimitri Papadopoulos [Mon, 25 Dec 2023 15:48:09 +0000 (16:48 +0100)] 
Address ssues raised durign review

2 years agoUpdate URLs: http:// → https://
Dimitri Papadopoulos [Mon, 25 Dec 2023 14:41:04 +0000 (15:41 +0100)] 
Update URLs: http:// → https://

2 years agoAttempt to keep coverity from being silly (CID #1551707)
James Jones [Tue, 23 Jan 2024 17:21:44 +0000 (11:21 -0600)] 
Attempt to keep coverity from being silly (CID #1551707)

For some unknown reason, Coverity skips the declaration of subst in
fr_vasprintf_internal()...and said declaration initializes it, so
that later, when substr is used, Coverity complains that subst is
not initialized!

To try to avoid this; we move the declaration of subst out of the
do {} while () loop it was in, to the outer block of the function
body, and then just assign to it in the loop.

2 years agoupdate Radius dictionary form Extreme Networks
Markus Nikulski [Thu, 25 Jan 2024 11:12:41 +0000 (12:12 +0100)] 
update Radius dictionary form Extreme Networks

extend the dictionary with the current status of Extreme Networks

2 years agoadd foreign encoders for RADIUS
Alan T. DeKok [Thu, 25 Jan 2024 17:03:37 +0000 (12:03 -0500)] 
add foreign encoders for RADIUS

2 years agoadd encode / decode callbacks for dictionaries
Alan T. DeKok [Thu, 25 Jan 2024 16:49:40 +0000 (11:49 -0500)] 
add encode / decode callbacks for dictionaries

with forward definitions for fr_pair_list_t, and fr_dbuff_t,
so that we don't have circular references

2 years agoadd radclient-ng, and allow it to be used in tests
Alan T. DeKok [Thu, 25 Jan 2024 14:14:17 +0000 (09:14 -0500)] 
add radclient-ng, and allow it to be used in tests

but install it to a build directory, so that it doesn't muck up
the packages

2 years agomove client programs to new API
Alan T. DeKok [Thu, 25 Jan 2024 14:06:53 +0000 (09:06 -0500)] 
move client programs to new API

We're gradually getting rid of the fr_radius_packet_foo() APIs.
They're essentially tiny wrappers around the fr_radius_foo()
functions, and they make it more difficult to switch to using
bios.

2 years agouse better names
Alan T. DeKok [Thu, 25 Jan 2024 14:00:39 +0000 (09:00 -0500)] 
use better names

2 years agotypo
Alan T. DeKok [Thu, 25 Jan 2024 13:33:04 +0000 (08:33 -0500)] 
typo

2 years agoensure that decode_ctx->request_authenticator is initialized
Alan T. DeKok [Thu, 25 Jan 2024 13:31:44 +0000 (08:31 -0500)] 
ensure that decode_ctx->request_authenticator is initialized

2 years agothe expected result should be listed first
Alan T. DeKok [Thu, 25 Jan 2024 13:29:23 +0000 (08:29 -0500)] 
the expected result should be listed first

2 years agohoist reply checks to core code
Alan T. DeKok [Thu, 25 Jan 2024 13:21:45 +0000 (08:21 -0500)] 
hoist reply checks to core code

2 years agoAdd libfreeradius-bio.so to Debian packaging
Nick Porter [Thu, 25 Jan 2024 13:17:21 +0000 (13:17 +0000)] 
Add libfreeradius-bio.so to Debian packaging

2 years agoremove erroneous assert. should help with #5276
Alan T. DeKok [Thu, 25 Jan 2024 08:49:47 +0000 (03:49 -0500)] 
remove erroneous assert.  should help with #5276

The code for NAK later assumes that there is a connection, so the
assert is wrong

2 years agouse length from struct instead of talloc_array_length
Alan T. DeKok [Thu, 25 Jan 2024 01:33:59 +0000 (20:33 -0500)] 
use length from struct instead of talloc_array_length

2 years agostart removing duplicate APIs
Alan T. DeKok [Thu, 25 Jan 2024 01:18:15 +0000 (20:18 -0500)] 
start removing duplicate APIs

2 years agomove to using request_authenticator for encode, too
Alan T. DeKok [Thu, 25 Jan 2024 01:12:48 +0000 (20:12 -0500)] 
move to using request_authenticator for encode, too

2 years agomove to using decode_ctx for public APIs, v2
Alan T. DeKok [Thu, 25 Jan 2024 01:04:19 +0000 (20:04 -0500)] 
move to using decode_ctx for public APIs, v2

2 years agotypo
Alan T. DeKok [Thu, 25 Jan 2024 00:51:27 +0000 (19:51 -0500)] 
typo

2 years agoRevert "move to using decode_ctx for public APIs."
Alan T. DeKok [Thu, 25 Jan 2024 00:16:51 +0000 (19:16 -0500)] 
Revert "move to using decode_ctx for public APIs."

This reverts commit 6bcda326683aea8b877a4c6e2f5fb4dff6eb0871.

2 years agoinitialize rcode
Alan T. DeKok [Thu, 25 Jan 2024 00:07:54 +0000 (19:07 -0500)] 
initialize rcode

2 years agoRename ldap escape and unescape xlats...
Arran Cudbard-Bell [Wed, 24 Jan 2024 23:09:44 +0000 (17:09 -0600)] 
Rename ldap escape and unescape xlats...

2 years agoMerge ERX/Unisphere, nuke ERX
Arran Cudbard-Bell [Wed, 24 Jan 2024 22:41:31 +0000 (16:41 -0600)] 
Merge ERX/Unisphere, nuke ERX

2 years agoclean up duplicate APIs
Alan T. DeKok [Wed, 24 Jan 2024 21:11:01 +0000 (16:11 -0500)] 
clean up duplicate APIs

2 years agomove to using decode_ctx for public APIs.
Alan T. DeKok [Wed, 24 Jan 2024 17:25:52 +0000 (12:25 -0500)] 
move to using decode_ctx for public APIs.

2 years agowhitespace
Alan T. DeKok [Wed, 24 Jan 2024 18:16:19 +0000 (13:16 -0500)] 
whitespace

2 years agoremove unnecessary "break"
Alan T. DeKok [Wed, 24 Jan 2024 18:13:46 +0000 (13:13 -0500)] 
remove unnecessary "break"

2 years agoadd basic test for proxying
Alan T. DeKok [Wed, 24 Jan 2024 15:48:48 +0000 (10:48 -0500)] 
add basic test for proxying

and ensure we re-run the tests when the handlers change

2 years agoAdd test for [*] filter in files comparison
Nick Porter [Wed, 24 Jan 2024 19:36:49 +0000 (19:36 +0000)] 
Add test for [*] filter in files comparison

2 years agoUse tmpl_dcursor in radius_lecacy_map_cmp
Nick Porter [Wed, 24 Jan 2024 19:25:42 +0000 (19:25 +0000)] 
Use tmpl_dcursor in radius_lecacy_map_cmp

Allows for the lhs to use the [*] filter

2 years agobind to unix sockets correctly for ACCEPT
Alan T. DeKok [Wed, 24 Jan 2024 15:27:12 +0000 (10:27 -0500)] 
bind to unix sockets correctly for ACCEPT

2 years agomore sanity checks so that files are only connected bios
Alan T. DeKok [Wed, 24 Jan 2024 14:13:09 +0000 (09:13 -0500)] 
more sanity checks so that files are only connected bios

2 years agomove to run-time error instead of build error
Alan T. DeKok [Wed, 24 Jan 2024 14:11:36 +0000 (09:11 -0500)] 
move to run-time error instead of build error

FreeBSD has IP_RECVIF, not SO_BINDTODEVICE.  And IP_RECVIF only
works for datagram sockets, and has to be used with recvmsg()

So until we get that code working, just disallow binding to an
interface.

2 years agopass original vector to verify / sign
Alan T. DeKok [Wed, 24 Jan 2024 13:31:44 +0000 (08:31 -0500)] 
pass original vector to verify / sign

instead of the complete packet.  This makes later changes easier

2 years ago.diff files can have trailing whitespace
Nick Porter [Wed, 24 Jan 2024 13:42:30 +0000 (13:42 +0000)] 
.diff files can have trailing whitespace

2 years agoFix debian packaging patch file
Nick Porter [Wed, 24 Jan 2024 13:09:48 +0000 (13:09 +0000)] 
Fix debian packaging patch file

2 years agows
Nick Porter [Wed, 24 Jan 2024 12:17:04 +0000 (12:17 +0000)] 
ws

2 years agoInitialise the correct member
Nick Porter [Wed, 24 Jan 2024 12:16:54 +0000 (12:16 +0000)] 
Initialise the correct member

2 years agoQuiet compiler warning
Arran Cudbard-Bell [Wed, 24 Jan 2024 00:58:12 +0000 (18:58 -0600)] 
Quiet compiler warning

2 years agoAllow the OID of a pair to be printed
Arran Cudbard-Bell [Wed, 24 Jan 2024 00:50:31 +0000 (18:50 -0600)] 
Allow the OID of a pair to be printed