]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
2 years agodon't print out these values unless they're set
Alan T. DeKok [Wed, 1 Mar 2023 22:26:35 +0000 (17:26 -0500)] 
don't print out these values unless they're set

they confuse other protocols

2 years agoallow the caller to add extra bits after a client definition
Alan T. DeKok [Wed, 1 Mar 2023 22:09:56 +0000 (17:09 -0500)] 
allow the caller to add extra bits after a client definition

2 years ago"virtual_server" has not been supported for a while.
Alan T. DeKok [Wed, 1 Mar 2023 22:02:04 +0000 (17:02 -0500)] 
"virtual_server" has not been supported for a while.

2 years agoremove unused function
Alan T. DeKok [Wed, 1 Mar 2023 22:00:56 +0000 (17:00 -0500)] 
remove unused function

2 years agolet's not shout.
Alan T. DeKok [Wed, 1 Mar 2023 21:45:16 +0000 (16:45 -0500)] 
let's not shout.

RADCLIENT -> fr_client_t
RADCLIENT_LIST -> fr_client_list_t

2 years agomore sanity checks on values
Alan T. DeKok [Wed, 1 Mar 2023 21:20:53 +0000 (16:20 -0500)] 
more sanity checks on values

2 years agoinitialize reply packet
Alan T. DeKok [Wed, 1 Mar 2023 16:48:53 +0000 (11:48 -0500)] 
initialize reply packet

2 years agoGet rid of doxygen "Illegal member name found" warnings (#4913)
James Jones [Wed, 1 Mar 2023 19:50:02 +0000 (13:50 -0600)] 
Get rid of doxygen "Illegal member name found" warnings (#4913)

Analogous to not expanding STATE() hiding the type in
declarations, not expanding SBUFF_OUT_TALLOC_FUNC_NO_LEN_DEF()
hides function bodies. Not seeing them confuses doxygen.

2 years agoAdd proto_bfd_udp.so to RedHat packaging
Nick Porter [Wed, 1 Mar 2023 16:24:06 +0000 (16:24 +0000)] 
Add proto_bfd_udp.so to RedHat packaging

2 years agoneeded
Alan T. DeKok [Wed, 1 Mar 2023 15:39:30 +0000 (10:39 -0500)] 
needed

2 years agonote 3.2.x, too
Alan T. DeKok [Wed, 1 Mar 2023 15:27:22 +0000 (10:27 -0500)] 
note 3.2.x, too

2 years agoadd proto_bfd_udp
Alan T. DeKok [Wed, 1 Mar 2023 14:47:26 +0000 (09:47 -0500)] 
add proto_bfd_udp

2 years agodebug received packets
Alan T. DeKok [Wed, 1 Mar 2023 14:47:09 +0000 (09:47 -0500)] 
debug received packets

2 years agoonly require connection_set for TCP
Alan T. DeKok [Wed, 1 Mar 2023 14:38:40 +0000 (09:38 -0500)] 
only require connection_set for TCP

2 years agoadd proto_bfd
Alan T. DeKok [Tue, 28 Feb 2023 21:36:36 +0000 (16:36 -0500)] 
add proto_bfd

2 years agono longer need this
Alan T. DeKok [Tue, 28 Feb 2023 21:29:25 +0000 (16:29 -0500)] 
no longer need this

2 years agodocs: Update Doxygen project name and remove obsolete option
Nick Porter [Wed, 1 Mar 2023 12:18:22 +0000 (12:18 +0000)] 
docs: Update Doxygen project name and remove obsolete option

2 years agoUpdate documentation CI job to use new actions
Nick Porter [Wed, 1 Mar 2023 08:21:18 +0000 (08:21 +0000)] 
Update documentation CI job to use new actions

2 years agoAdd libfreeradius-bfd.so to RedHat packaging
Nick Porter [Wed, 1 Mar 2023 07:59:16 +0000 (07:59 +0000)] 
Add libfreeradius-bfd.so to RedHat packaging

2 years agoadd BFD decoder
Alan T. DeKok [Tue, 28 Feb 2023 21:07:09 +0000 (16:07 -0500)] 
add BFD decoder

2 years agoadd encoder for BFD, and test cases.
Alan T. DeKok [Tue, 28 Feb 2023 20:31:16 +0000 (15:31 -0500)] 
add encoder for BFD, and test cases.

There's no decoder, and no authentication tests yet

2 years agotypos "interval" not "internal"
Alan T. DeKok [Tue, 28 Feb 2023 19:45:56 +0000 (14:45 -0500)] 
typos "interval" not "internal"

2 years agoAdd missing xlat_frame_eval_resume() @params for doxygen (#4910)
James Jones [Tue, 28 Feb 2023 14:43:44 +0000 (08:43 -0600)] 
Add missing xlat_frame_eval_resume() @params for doxygen (#4910)

2 years agoGet rid of "explicit link to foo could not be resolved" warnings (#4912)
James Jones [Tue, 28 Feb 2023 14:43:32 +0000 (08:43 -0600)] 
Get rid of "explicit link to foo could not be resolved" warnings (#4912)

These turned up for a couple of reasons:
1. Macros expanding to variable declarations (here STATE());
   doxygen needs it expaded to see the declaration.
2. Forward references in @param

2 years agotrack requests and listeners
Alan T. DeKok [Mon, 27 Feb 2023 21:25:24 +0000 (16:25 -0500)] 
track requests and listeners

so that when a listener goes away, we cancel all requests
associated with it.

2 years agoUpdate Ciena dictionary
Nick Porter [Tue, 28 Feb 2023 08:04:31 +0000 (08:04 +0000)] 
Update Ciena dictionary

2 years agoBalance doxygen grouping commands (#4911)
James Jones [Mon, 27 Feb 2023 23:18:40 +0000 (17:18 -0600)] 
Balance doxygen grouping commands (#4911)

This is a minimal change to placate doxygen; I believe it's
consistent with the intent, but it definitely needs checking.

2 years agoAdd a cancel xlat which cancel's the current request or subrequest
Arran Cudbard-Bell [Mon, 27 Feb 2023 23:13:17 +0000 (17:13 -0600)] 
Add a cancel xlat which cancel's the current request or subrequest

2 years agoNDEBUG_UNUSED
Nick Porter [Mon, 27 Feb 2023 19:58:05 +0000 (19:58 +0000)] 
NDEBUG_UNUSED

2 years agoRevert "radius: Increase radius Access-Request timeouts significantly"
Arran Cudbard-Bell [Mon, 27 Feb 2023 02:18:50 +0000 (20:18 -0600)] 
Revert "radius: Increase radius Access-Request timeouts significantly"

This reverts commit 0f9808905ff8652102f6c50093fbc6ae7f5c5d2a.

2 years agoadd framework for network to notify workers that a socket has gone away
Alan T. DeKok [Mon, 27 Feb 2023 19:24:30 +0000 (14:24 -0500)] 
add framework for network to notify workers that a socket has gone away

2 years agoAdd process_bfd.so to RedHat packaging
Nick Porter [Mon, 27 Feb 2023 19:18:13 +0000 (19:18 +0000)] 
Add process_bfd.so to RedHat packaging

2 years agotypo
Nick Porter [Mon, 27 Feb 2023 15:06:36 +0000 (15:06 +0000)] 
typo

2 years agoCorrect condition for publishing doxygen content
Nick Porter [Mon, 27 Feb 2023 15:03:22 +0000 (15:03 +0000)] 
Correct condition for publishing doxygen content

2 years agofix build
Alan T. DeKok [Mon, 27 Feb 2023 14:39:48 +0000 (09:39 -0500)] 
fix build

2 years agostart of process_bfd state machine
Alan T. DeKok [Sun, 26 Feb 2023 23:13:14 +0000 (18:13 -0500)] 
start of process_bfd state machine

2 years agoallow the same packet code for request and reply
Alan T. DeKok [Mon, 27 Feb 2023 14:08:23 +0000 (09:08 -0500)] 
allow the same packet code for request and reply

2 years agoset TTL to 255, as suggested by RFC 5881
Alan T. DeKok [Sun, 26 Feb 2023 23:12:37 +0000 (18:12 -0500)] 
set TTL to 255, as suggested by RFC 5881

We likely want to have this configurable, so that the BFD links
can go slightly further.

2 years agouse port from RFC 5881
Alan T. DeKok [Sun, 26 Feb 2023 23:12:13 +0000 (18:12 -0500)] 
use port from RFC 5881

2 years agoremove references to ARP
Alan T. DeKok [Sun, 26 Feb 2023 15:02:58 +0000 (10:02 -0500)] 
remove references to ARP

2 years agodictionaries for BFD
Alan T. DeKok [Sat, 25 Feb 2023 15:06:03 +0000 (10:06 -0500)] 
dictionaries for BFD

2 years agoboth string and octets can be fixed size in arrays
Alan T. DeKok [Sat, 25 Feb 2023 14:59:45 +0000 (09:59 -0500)] 
both string and octets can be fixed size in arrays

2 years agotoo long lengths are encode errors
Alan T. DeKok [Sat, 25 Feb 2023 14:51:04 +0000 (09:51 -0500)] 
too long lengths are encode errors

2 years agostructs support "length=uint8"
Alan T. DeKok [Sat, 25 Feb 2023 14:44:59 +0000 (09:44 -0500)] 
structs support "length=uint8"

at least the encoder / decoder support it.

2 years agoprint encoding size for time/time_delta too
Alan T. DeKok [Sat, 25 Feb 2023 14:34:51 +0000 (09:34 -0500)] 
print encoding size for time/time_delta too

2 years agowe don't need "length=uint16" for bit fields.
Alan T. DeKok [Sat, 25 Feb 2023 14:31:36 +0000 (09:31 -0500)] 
we don't need "length=uint16" for bit fields.

2 years agotypo
Alan T. DeKok [Sat, 25 Feb 2023 14:15:56 +0000 (09:15 -0500)] 
typo

2 years agoExpand paths to trigger Documentation CI job to full trees
Nick Porter [Mon, 27 Feb 2023 11:52:46 +0000 (11:52 +0000)] 
Expand paths to trigger Documentation CI job to full trees

2 years agotacacs: Likely accidentally comitted
Arran Cudbard-Bell [Mon, 27 Feb 2023 02:12:15 +0000 (20:12 -0600)] 
tacacs: Likely accidentally comitted

2 years agoradius: Increase radius Access-Request timeouts significantly
Arran Cudbard-Bell [Mon, 27 Feb 2023 00:44:44 +0000 (18:44 -0600)] 
radius: Increase radius Access-Request timeouts significantly

So we can use NPS as an MFA gateway

2 years agoFormatting
Arran Cudbard-Bell [Sun, 26 Feb 2023 19:45:45 +0000 (13:45 -0600)] 
Formatting

2 years agomake a real PROTOCOL TEST
Alan T. DeKok [Fri, 24 Feb 2023 21:04:56 +0000 (16:04 -0500)] 
make a real PROTOCOL TEST

and glue it into:

* unit_test_module, as TEST is now a normal protocol
* process/test/base.c - as above

* src/test/process - more magic && code to run tests

2 years agoThere's no need to limit protocol numbers to 255.
Alan T. DeKok [Fri, 24 Feb 2023 20:58:18 +0000 (15:58 -0500)] 
There's no need to limit protocol numbers to 255.

The attribute number limit has long since been removed.

2 years agostatements can just run inline.
Alan T. DeKok [Fri, 24 Feb 2023 20:56:56 +0000 (15:56 -0500)] 
statements can just run inline.

There's no need to wrap them in "if" statements

2 years agouse new syntax for list refs
Alan T. DeKok [Fri, 24 Feb 2023 20:41:52 +0000 (15:41 -0500)] 
use new syntax for list refs

2 years agodon't use the "update" keyword in examples
Alan T. DeKok [Fri, 24 Feb 2023 19:51:49 +0000 (14:51 -0500)] 
don't use the "update" keyword in examples

2 years agoLet doxygen expand FR_DLIST_HEAD() (#4907)
James Jones [Fri, 24 Feb 2023 20:27:37 +0000 (14:27 -0600)] 
Let doxygen expand FR_DLIST_HEAD() (#4907)

FR_DLIST_HEAD() is a macro that expands to a type, and is used
to declare variables and parameters. By default doxygen doesn't
expand macros, and thus it is confused by seeing the macro invocation
rather than the type it expands to.

2 years agoadd "process test" state machine
Alan T. DeKok [Fri, 24 Feb 2023 15:42:45 +0000 (10:42 -0500)] 
add "process test" state machine

and the beginnings of "make test.process"

We will be running the protocol state machines from the "test"
virtual server, which lets us to multi-round challenge / response
where necessary

2 years agojust use the dict we loaded. No need to do more lookups
Alan T. DeKok [Fri, 24 Feb 2023 15:41:28 +0000 (10:41 -0500)] 
just use the dict we loaded.  No need to do more lookups

2 years agodon't worry about "has_value" being set for duplicates
Alan T. DeKok [Fri, 24 Feb 2023 14:13:18 +0000 (09:13 -0500)] 
don't worry about "has_value" being set for duplicates

2 years agoHide CC_HINT() from doxygen (#4909)
James Jones [Fri, 24 Feb 2023 04:02:56 +0000 (22:02 -0600)] 
Hide CC_HINT() from doxygen (#4909)

doxygen documentation mentions that it doesn't know about
__attribute()__, and recommends making it expand to the
empty string for doxygen using PREDEFINED. Letting CC_HINT()
through to doxygen confuses it, in particular about function
definitions/declarations. In src/lib/util/strerror.h it was
not recognizing the parameters of the functions therein as
such and therefore giving multiple "member <parameter> belongs
to two different groups" warnings.

2 years agodon't install test binaries.
Alan T. DeKok [Fri, 24 Feb 2023 02:20:54 +0000 (21:20 -0500)] 
don't install test binaries.

they're only needed for the build.

2 years agoonly register "module" commands for "rlm" modules.
Alan T. DeKok [Thu, 23 Feb 2023 23:52:12 +0000 (18:52 -0500)] 
only register "module" commands for "rlm" modules.

So that we can have both an rlm module "test", and a process
module "test".

We probably need similar command tables for the different types
of modules.

2 years agoremove unused code
Alan T. DeKok [Thu, 23 Feb 2023 17:41:22 +0000 (12:41 -0500)] 
remove unused code

2 years agothis struct doesn't need to be public
Alan T. DeKok [Thu, 23 Feb 2023 17:37:43 +0000 (12:37 -0500)] 
this struct doesn't need to be public

2 years agoallow setting SINGLE_CONNECT mode.
Alan T. DeKok [Thu, 23 Feb 2023 17:26:18 +0000 (12:26 -0500)] 
allow setting SINGLE_CONNECT mode.

note that we *or* in the SINGLE_CONNECT flag, because the other
flags control packet encryption.  And we don't want the admin to
magically send unencrypted packets when there's a shared secret.

We also do this only when sending replies from the server.  If
we're encoding a client packet, the "flags" attribute must already
exist, and must already have been encoded using fr_struct_to_network()

2 years agosupport encoding and decoding of dictionary.rfc8907
Alan T. DeKok [Thu, 23 Feb 2023 14:41:53 +0000 (09:41 -0500)] 
support encoding and decoding of dictionary.rfc8907

2 years agopass correct argv
Alan T. DeKok [Thu, 23 Feb 2023 14:39:39 +0000 (09:39 -0500)] 
pass correct argv

2 years agoAdd attributes from RFC 8907
Alan T. DeKok [Thu, 23 Feb 2023 13:37:04 +0000 (08:37 -0500)] 
Add attributes from RFC 8907

The encoder/decoder don't (yet) deal with them, but it is good
to define them.

2 years agothere's no need to limit time resolution to seconds, etc.
Alan T. DeKok [Thu, 23 Feb 2023 13:35:59 +0000 (08:35 -0500)] 
there's no need to limit time resolution to seconds, etc.

The print/parse code supports min/hour/etc.  And TACACS+ requires
minutes. :(

2 years agoMore doxygen cleanups
Nick Porter [Thu, 23 Feb 2023 11:15:37 +0000 (11:15 +0000)] 
More doxygen cleanups

2 years agotacacs: Respect reply.Flags so we can negotiate single connection mode
Arran Cudbard-Bell [Thu, 23 Feb 2023 04:12:35 +0000 (22:12 -0600)] 
tacacs: Respect reply.Flags so we can negotiate single connection mode

2 years agotacacs: Formatting
Arran Cudbard-Bell [Thu, 23 Feb 2023 04:12:12 +0000 (22:12 -0600)] 
tacacs: Formatting

2 years agoRevert "Overloaded for now"
Alan T. DeKok [Thu, 23 Feb 2023 01:17:16 +0000 (20:17 -0500)] 
Revert "Overloaded for now"

This reverts commit 8b55512b6955b5e587517279a4938e5ee11c01a9.

2 years agoname conflicts are relative to parent, not to root
Alan T. DeKok [Thu, 23 Feb 2023 01:16:42 +0000 (20:16 -0500)] 
name conflicts are relative to parent, not to root

2 years agoOverloaded for now
Arran Cudbard-Bell [Wed, 22 Feb 2023 23:19:01 +0000 (17:19 -0600)] 
Overloaded for now

2 years agocomplain about secret key on bad packets
Alan T. DeKok [Wed, 22 Feb 2023 21:54:36 +0000 (16:54 -0500)] 
complain about secret key on bad packets

which is almost always going to be the source of bad packets

2 years agomove local attributes to DEFINE
Alan T. DeKok [Wed, 22 Feb 2023 21:39:59 +0000 (16:39 -0500)] 
move local attributes to DEFINE

2 years agotacacs: Add Calix vendor dictionary
Arran Cudbard-Bell [Wed, 22 Feb 2023 21:38:33 +0000 (15:38 -0600)] 
tacacs: Add Calix vendor dictionary

2 years agowe don't need RADIUS-specific things in Perl
Alan T. DeKok [Wed, 22 Feb 2023 18:58:06 +0000 (13:58 -0500)] 
we don't need RADIUS-specific things in Perl

2 years agolinelog: Hexdump what we're writing at >= debug level 3
Arran Cudbard-Bell [Wed, 22 Feb 2023 19:24:00 +0000 (13:24 -0600)] 
linelog: Hexdump what we're writing at >= debug level 3

2 years agoAlign doxygen comments with function definitions
Nick Porter [Wed, 22 Feb 2023 17:39:28 +0000 (17:39 +0000)] 
Align doxygen comments with function definitions

2 years agoclean up doxygen complaints
Alan T. DeKok [Wed, 22 Feb 2023 16:53:50 +0000 (11:53 -0500)] 
clean up doxygen complaints

2 years agoignore third-party libraries
Alan T. DeKok [Wed, 22 Feb 2023 16:44:52 +0000 (11:44 -0500)] 
ignore third-party libraries

2 years agoadd sample accounting-error packet
Alan T. DeKok [Wed, 22 Feb 2023 16:33:38 +0000 (11:33 -0500)] 
add sample accounting-error packet

2 years agoExample of outbound TACACS+ client module.
Alan T. DeKok [Wed, 22 Feb 2023 14:08:36 +0000 (09:08 -0500)] 
Example of outbound TACACS+ client module.

2 years agoTry alternate 389ds docker image
Nick Porter [Wed, 22 Feb 2023 11:36:20 +0000 (11:36 +0000)] 
Try alternate 389ds docker image

2 years agoFix docs
Arran Cudbard-Bell [Wed, 22 Feb 2023 03:59:13 +0000 (21:59 -0600)] 
Fix docs

2 years agotacacs: Don't leak session data, and don't crash when copying pairs back
Arran Cudbard-Bell [Wed, 22 Feb 2023 03:55:39 +0000 (21:55 -0600)] 
tacacs: Don't leak session data, and don't crash when copying pairs back

2 years agonetwork: Error messages for humans
Arran Cudbard-Bell [Wed, 22 Feb 2023 03:28:41 +0000 (21:28 -0600)] 
network: Error messages for humans

2 years agoIndirection apparently shuts up clang scan
Arran Cudbard-Bell [Wed, 22 Feb 2023 02:15:27 +0000 (20:15 -0600)] 
Indirection apparently shuts up clang scan

2 years agodl: Fix access check so real errors are not obscured
Arran Cudbard-Bell [Tue, 21 Feb 2023 23:27:14 +0000 (17:27 -0600)] 
dl: Fix access check so real errors are not obscured

2 years agoxlat: Make %{} and %() functions take the same format argument list
Arran Cudbard-Bell [Tue, 21 Feb 2023 20:11:02 +0000 (14:11 -0600)] 
xlat: Make %{} and %() functions take the same format argument list

Add support for quoted arguments to curly bracketed expansions

2 years agovalue: Add flatten function
Arran Cudbard-Bell [Tue, 21 Feb 2023 17:21:23 +0000 (11:21 -0600)] 
value: Add flatten function

2 years agoFixup verification functions, add value box debug functions
Arran Cudbard-Bell [Mon, 20 Feb 2023 23:59:02 +0000 (17:59 -0600)] 
Fixup verification functions, add value box debug functions

2 years agodoxygen typo (@param, not @parma) (#4906)
James Jones [Tue, 21 Feb 2023 23:00:47 +0000 (17:00 -0600)] 
doxygen typo (@param, not @parma) (#4906)

2 years agofix typos to keep doxygen happy
Alan T. DeKok [Tue, 21 Feb 2023 22:39:02 +0000 (17:39 -0500)] 
fix typos to keep doxygen happy

2 years agominor changes to debug output
Alan T. DeKok [Tue, 21 Feb 2023 20:51:55 +0000 (15:51 -0500)] 
minor changes to debug output

2 years agoRevert "set idle timer when we CONNECT a socket"
Alan T. DeKok [Tue, 21 Feb 2023 19:56:35 +0000 (14:56 -0500)] 
Revert "set idle timer when we CONNECT a socket"

This reverts commit 63de5b222a0aea729788dcfe6e94568fe9796a64.

nope... there should be a better way

2 years agoset idle timer when we CONNECT a socket
Alan T. DeKok [Tue, 21 Feb 2023 19:48:57 +0000 (14:48 -0500)] 
set idle timer when we CONNECT a socket

so that we don't need to check it on every packet.