]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Alan T. DeKok [Thu, 24 Apr 2025 10:36:48 +0000 (06:36 -0400)]
don't free name twice
Alan T. DeKok [Wed, 23 Apr 2025 20:02:11 +0000 (16:02 -0400)]
add new function names, and notes on when they are deprecated.
for now, nothing complains if these are used. :(
Alan T. DeKok [Wed, 23 Apr 2025 19:32:58 +0000 (15:32 -0400)]
note that deprecated functions are "removed"
we will remove the functions later, once we verify that no one
is using them.
Alan T. DeKok [Thu, 24 Apr 2025 15:43:30 +0000 (11:43 -0400)]
let's print out error messages on error
Alan T. DeKok [Wed, 23 Apr 2025 15:45:42 +0000 (11:45 -0400)]
don't write to "inst" in thread_instantiate
Alan T. DeKok [Wed, 23 Apr 2025 13:43:19 +0000 (09:43 -0400)]
remove "track_connections" configuration.
TCP sockets are always connected. UDP sockets cannot really be
connected. Posix says that UDP packets for that dst IP/port
will always be delivered, no matter what the source port.
Nick Porter [Thu, 24 Apr 2025 11:31:35 +0000 (12:31 +0100)]
Update sample lua module configuration
Nick Porter [Thu, 24 Apr 2025 11:09:39 +0000 (12:09 +0100)]
Update rlm_lua tests to use new function names
Nick Porter [Thu, 24 Apr 2025 11:04:44 +0000 (12:04 +0100)]
Use a call_env to determine function names for rlm_lua
Nick Porter [Thu, 24 Apr 2025 11:03:07 +0000 (12:03 +0100)]
Make fr_lua_check_func a library function
So it can be used in rlm_lua.c
Nick Porter [Thu, 24 Apr 2025 08:23:11 +0000 (09:23 +0100)]
Copy dedup_authenticator when copying clients
Nick Porter [Thu, 24 Apr 2025 08:21:14 +0000 (09:21 +0100)]
Set client dedup_authenticator to "yes" by default
Nick Porter [Wed, 23 Apr 2025 15:22:15 +0000 (16:22 +0100)]
Update example mruby module for new function names
Nick Porter [Wed, 23 Apr 2025 15:21:48 +0000 (16:21 +0100)]
Use a call_env to determine function names for rlm_mruby
nolade [Tue, 22 Apr 2025 20:32:24 +0000 (16:32 -0400)]
docs: update os/security certificates section
Nick Porter [Wed, 23 Apr 2025 12:53:32 +0000 (13:53 +0100)]
Handle missing name2
Nick Porter [Wed, 23 Apr 2025 11:26:19 +0000 (12:26 +0100)]
Update docs from current local dictionary comments
Nick Porter [Wed, 23 Apr 2025 11:25:12 +0000 (12:25 +0100)]
Update docs from updated perl module
Nick Porter [Wed, 23 Apr 2025 11:22:46 +0000 (12:22 +0100)]
Update sample perl module config
Nick Porter [Wed, 23 Apr 2025 11:10:08 +0000 (12:10 +0100)]
Update test Perl module.conf for new function mapping
Nick Porter [Wed, 23 Apr 2025 11:09:11 +0000 (12:09 +0100)]
Use a call_env to determine rlm_perl subroutine names to call
Alan T. DeKok [Tue, 22 Apr 2025 16:48:31 +0000 (12:48 -0400)]
allow "catch" after "timeout"
Alan T. DeKok [Wed, 23 Apr 2025 11:49:51 +0000 (07:49 -0400)]
fix coverity issue by removing code
the xlat_func_string() just copies its inputs to its outputs,
so we can use xlat_transparent() to do this work.
the actual "convert to string" bit is done by the xlat argument
parser
arguably, we should just remove %string(), as it's no longer
needed.
Alan T. DeKok [Wed, 23 Apr 2025 11:31:46 +0000 (07:31 -0400)]
add -e ignore_count=N
Arran Cudbard-Bell [Wed, 23 Apr 2025 04:30:56 +0000 (23:30 -0500)]
Use macros to check return codes of disam/delete functions
Arran Cudbard-Bell [Tue, 22 Apr 2025 20:06:51 +0000 (15:06 -0500)]
Remove incorrect condition in bfd/session.c, rename fields to consistently identify events
Arran Cudbard-Bell [Tue, 22 Apr 2025 18:40:57 +0000 (13:40 -0500)]
Various other timer fixes
Arran Cudbard-Bell [Tue, 22 Apr 2025 18:40:30 +0000 (13:40 -0500)]
Simplifying deleting timers in bio/fd.c and raise errors
Arran Cudbard-Bell [Tue, 22 Apr 2025 18:35:48 +0000 (13:35 -0500)]
Disarm the curl I/O timer instead of deleting it
Arran Cudbard-Bell [Tue, 22 Apr 2025 18:35:32 +0000 (13:35 -0500)]
Slightly more efficient timer armed check
Arran Cudbard-Bell [Tue, 22 Apr 2025 18:32:05 +0000 (13:32 -0500)]
Say which type of servicing failed
Nick Porter [Tue, 22 Apr 2025 16:31:43 +0000 (17:31 +0100)]
We don't recommend lua/perl/python for writing policy
Nick Porter [Tue, 22 Apr 2025 10:27:39 +0000 (11:27 +0100)]
No need to sort the list
Nick Porter [Tue, 22 Apr 2025 10:26:43 +0000 (11:26 +0100)]
Correct index itterator
fr_pair_dcursor_by_da returns the first pair.
Alan T. DeKok [Tue, 22 Apr 2025 16:21:10 +0000 (12:21 -0400)]
more debug messages for tracking state
Alan T. DeKok [Tue, 22 Apr 2025 13:40:58 +0000 (09:40 -0400)]
add unlang_interpret_set_timeout()
in preparation for moving max_request_time functionality to the
interpreter
nolade [Mon, 21 Apr 2025 21:03:50 +0000 (17:03 -0400)]
docs: update/copy-edit dhcpv4 pages under >>Howto >> Protocols >> DHCP
Nick Porter [Tue, 22 Apr 2025 07:11:41 +0000 (08:11 +0100)]
Update docs with latest sample module confs
Alan T. DeKok [Mon, 21 Apr 2025 21:50:42 +0000 (17:50 -0400)]
Don't allow "catch" by itself
and add tests for it
Alan T. DeKok [Mon, 21 Apr 2025 21:50:22 +0000 (17:50 -0400)]
give things good names
Alan T. DeKok [Sat, 19 Apr 2025 16:17:53 +0000 (12:17 -0400)]
clamp values for "retry" section
Alan T. DeKok [Sat, 19 Apr 2025 13:52:17 +0000 (09:52 -0400)]
updates from PR #5557
nolade [Mon, 21 Apr 2025 19:32:04 +0000 (15:32 -0400)]
docs: import customer info CoA-Originate-Relay info into Antora >> Howto >> Protocols >> RADIUS
Nick Porter [Mon, 21 Apr 2025 18:36:51 +0000 (19:36 +0100)]
Re-write rlm_python howto
Nick Porter [Mon, 21 Apr 2025 18:35:48 +0000 (19:35 +0100)]
Add debug level constants to rlm_python
Nick Porter [Mon, 21 Apr 2025 17:19:04 +0000 (18:19 +0100)]
Tidy rlm_python copyright
None of the original code exists anymore
Nick Porter [Mon, 21 Apr 2025 16:32:20 +0000 (17:32 +0100)]
Update sample rlm_python config
Nick Porter [Mon, 21 Apr 2025 15:07:56 +0000 (16:07 +0100)]
Update example.py
Nick Porter [Mon, 21 Apr 2025 09:24:39 +0000 (10:24 +0100)]
Update Python test function names
Nick Porter [Mon, 21 Apr 2025 09:06:24 +0000 (10:06 +0100)]
Use call_env to identify Python function names
Firstly a function `<name1>_<name2>` is looked for. If that is not
found (or there is no `name2`, then `<name1>` is looked for.
The Python module can be set with config option `mod_name1_name2` or
`mod_name1`.
The function can be overridden with config option `func_name1_name2` or
`func_name1`.
`name1` and `name2` are converted to lower case and any
non-alphanumercic characters are converted to underscores.
e.g. a module call in `recv Access-Request` will look for
`recv_accsss_request` and then `recv`.
Nick Porter [Fri, 18 Apr 2025 13:12:38 +0000 (14:12 +0100)]
Add tests of rlm_python attribute setting
Nick Porter [Fri, 18 Apr 2025 08:14:19 +0000 (09:14 +0100)]
Only accept an rcode in the Python function reply
Python functions can now directly amend attribute lists
Nick Porter [Fri, 18 Apr 2025 07:45:26 +0000 (08:45 +0100)]
Pass py_freeradius_request_t to python functions
In place of the tuple representation of the request list
Nick Porter [Fri, 18 Apr 2025 07:17:39 +0000 (08:17 +0100)]
Update Python module init
To add type definitions and add new objects
Nick Porter [Wed, 16 Apr 2025 17:37:10 +0000 (18:37 +0100)]
Create py_freeradius_state_t when instantiating thread instances
Nick Porter [Wed, 16 Apr 2025 16:09:20 +0000 (17:09 +0100)]
Remove Python 2.x comment
Nick Porter [Wed, 16 Apr 2025 16:07:30 +0000 (17:07 +0100)]
Add py_freeradius_pair_str
Get the string representation of a pair
Nick Porter [Wed, 16 Apr 2025 16:04:49 +0000 (17:04 +0100)]
Add py_freeradius_pair_setvalue
The setter called when a value is assigned to a pair's value attribute.
Nick Porter [Wed, 16 Apr 2025 15:57:53 +0000 (16:57 +0100)]
Add py_freeradius_pair_getvalue
The getter callback when the .value attribute of a pair is requested
Nick Porter [Wed, 16 Apr 2025 15:56:19 +0000 (16:56 +0100)]
Add py_freeradius_pair_map_set
Which handles assigning string values to pair objects accessed in dict
syntax and deleting pair objects.
Nick Porter [Wed, 16 Apr 2025 11:47:57 +0000 (12:47 +0100)]
Add py_freeradius_attribute_instance
Used to access a specific instance of an attribute
Nick Porter [Wed, 16 Apr 2025 11:46:50 +0000 (12:46 +0100)]
Add py_freeradius_pair_map_subscript()
Called when pair objects are accessed as dictionaries.
Nick Porter [Wed, 16 Apr 2025 11:42:14 +0000 (12:42 +0100)]
Add definitions of Python objects for pair access
And associated function prototypes
Nick Porter [Wed, 16 Apr 2025 10:35:53 +0000 (11:35 +0100)]
Add functions to set and get current request from Python thread state
Nick Porter [Wed, 16 Apr 2025 10:24:53 +0000 (11:24 +0100)]
Update Python freeradius.log() to use optional args
And move module definition to global static
Nick Porter [Wed, 16 Apr 2025 10:23:02 +0000 (11:23 +0100)]
Add functions to fetch module instance from python state
The dict `__State` entry will be added later
Nick Porter [Wed, 16 Apr 2025 09:58:01 +0000 (10:58 +0100)]
No need to talk about Python 2
Nick Porter [Wed, 16 Apr 2025 09:56:31 +0000 (10:56 +0100)]
Add C structure for Python state object
Nick Porter [Wed, 16 Apr 2025 09:47:34 +0000 (10:47 +0100)]
Define C structures for Python request and pair objects
Nick Porter [Wed, 16 Apr 2025 09:44:23 +0000 (10:44 +0100)]
Don't call python_error_log twice
It is called after `finish`
Nick Porter [Wed, 16 Apr 2025 08:34:38 +0000 (09:34 +0100)]
Change LOG_PREFIX to use inst->name
This is simpler to work with than mctx, when logging from python
callback functions.
In addition using `current_inst` in place of `current_mctx` avoids
setting a global to a stack allocated variable.
Nick Porter [Wed, 16 Apr 2025 08:19:34 +0000 (09:19 +0100)]
Set module instance name in instance data
Nick Porter [Tue, 15 Apr 2025 16:54:59 +0000 (17:54 +0100)]
The module name is freeradius
Nick Porter [Fri, 18 Apr 2025 14:50:15 +0000 (15:50 +0100)]
Switch GitHub runners to Ubuntu 24.04 to match self-hosted
Nick Porter [Mon, 21 Apr 2025 10:58:14 +0000 (11:58 +0100)]
Use sh in place of bash
For cross platform tests
Alan T. DeKok [Sat, 19 Apr 2025 13:46:23 +0000 (09:46 -0400)]
make timeout limits warnings, and limit to max_request_time
Alan T. DeKok [Sat, 19 Apr 2025 13:43:32 +0000 (09:43 -0400)]
add headings for accountng, and add docs for timeout section
Alan T. DeKok [Sat, 19 Apr 2025 13:43:18 +0000 (09:43 -0400)]
fix nav bar indentation
Alan T. DeKok [Sat, 19 Apr 2025 13:20:27 +0000 (09:20 -0400)]
add test for top-level "timeout" functionality
Alan T. DeKok [Sat, 19 Apr 2025 13:15:37 +0000 (09:15 -0400)]
allow time_delta as .3, in addition to 0.3
Alan T. DeKok [Sat, 19 Apr 2025 13:05:37 +0000 (09:05 -0400)]
Fix typos in CI #5542
Alan T. DeKok [Sat, 19 Apr 2025 13:01:24 +0000 (09:01 -0400)]
Update dictionary. fixes ##5545
Alan T. DeKok [Sat, 19 Apr 2025 12:52:45 +0000 (08:52 -0400)]
remove duplicate includes
By running scripts.build/min-includes.pl, and double-checking
the output.
The script should be updated to ignore things inside of #ifdef's,
as otherwise it will remove too many includes.
Alan T. DeKok [Fri, 18 Apr 2025 20:12:03 +0000 (16:12 -0400)]
limit timers
Arran Cudbard-Bell [Fri, 18 Apr 2025 20:43:33 +0000 (15:43 -0500)]
Fix issue in extendable talloced sbuffs, that would cause the sbuff to slowly shrink
Arran Cudbard-Bell [Fri, 18 Apr 2025 20:21:08 +0000 (15:21 -0500)]
Extend end on talloc_extend
Alan T. DeKok [Fri, 18 Apr 2025 18:51:22 +0000 (14:51 -0400)]
make global "timeout" section work
with some tweaks to unlang_timeout_section_push() to make it work
and indent the request correctly.
Alan T. DeKok [Fri, 18 Apr 2025 17:51:55 +0000 (13:51 -0400)]
look for and compile a per-server "timeout" section
Alan T. DeKok [Fri, 18 Apr 2025 18:37:20 +0000 (14:37 -0400)]
don't insert static clients into the dynamic client list
Alan T. DeKok [Fri, 18 Apr 2025 17:23:51 +0000 (13:23 -0400)]
distinguish frame_signal and interpret_signal
when we hit a timeout, we signal the frames to cancel. If pushing
the timer section onto the stack fails, we signal the entire
request to cancel.
Arran Cudbard-Bell [Fri, 18 Apr 2025 17:02:03 +0000 (12:02 -0500)]
Print errors when we fail copy log messages to the aggregation buffer
Alan T. DeKok [Fri, 18 Apr 2025 15:41:55 +0000 (11:41 -0400)]
add unlang_timeout_section_push()
not overly tested, but the actual timeout handler only has minor
changes from the existing one.
Alan T. DeKok [Fri, 18 Apr 2025 12:40:11 +0000 (08:40 -0400)]
hoist tmpls
if a tmpl is asked to parse %{...}. then the result is TMPL_TYPE_XLAT.
However, if the contents of that xlat are identically a tmpl, e.g.
User-Name, then there is no reason to keep the xlat. Instead, we
hoist the tmpl we really want, and discard the intermediate xlat
this simplifies the internal data structures, and allows for
additional optimizations. It also means that we do less work
at run-time in order to expand the tmpl.
Alan T. DeKok [Fri, 18 Apr 2025 12:39:32 +0000 (08:39 -0400)]
print out that it's a tmpl
Alan T. DeKok [Thu, 17 Apr 2025 19:53:41 +0000 (15:53 -0400)]
remove backticks from tests
And clean up corresponding use of exec module. We hoist it to
unit_test_module.conf, and then replace any module-specific
configuration with a module-specific instant of exec
Nick Porter [Fri, 18 Apr 2025 09:10:41 +0000 (10:10 +0100)]
Use a function actually in libmruby to check for the library
Arran Cudbard-Bell [Fri, 18 Apr 2025 00:57:34 +0000 (19:57 -0500)]
More fixes for OpenSSL's questionable design decisions
Always drain the thread local error stack before calling SSL_read() and SSL_write() to prevent stale errors from masking SSL_ERROR_WANT_* return codes from SSL_get_error().
Arran Cudbard-Bell [Wed, 16 Apr 2025 19:51:35 +0000 (14:51 -0500)]
Add "ping" xlat for winbind, so we can run periodic checks against AD
Arran Cudbard-Bell [Wed, 16 Apr 2025 18:23:41 +0000 (13:23 -0500)]
Cache more things, and only unprotect the protected page
Arran Cudbard-Bell [Wed, 16 Apr 2025 17:03:09 +0000 (12:03 -0500)]
Fix timer use in rlm_sql_oracle