]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
3 months agodon't free name twice
Alan T. DeKok [Thu, 24 Apr 2025 10:36:48 +0000 (06:36 -0400)] 
don't free name twice

3 months agoadd new function names, and notes on when they are deprecated.
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. :(

3 months agonote that deprecated functions are "removed"
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.

3 months agolet's print out error messages on error
Alan T. DeKok [Thu, 24 Apr 2025 15:43:30 +0000 (11:43 -0400)] 
let's print out error messages on error

3 months agodon't write to "inst" in thread_instantiate
Alan T. DeKok [Wed, 23 Apr 2025 15:45:42 +0000 (11:45 -0400)] 
don't write to "inst" in thread_instantiate

3 months agoremove "track_connections" configuration.
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.

3 months agoUpdate sample lua module configuration
Nick Porter [Thu, 24 Apr 2025 11:31:35 +0000 (12:31 +0100)] 
Update sample lua module configuration

3 months agoUpdate rlm_lua tests to use new function names
Nick Porter [Thu, 24 Apr 2025 11:09:39 +0000 (12:09 +0100)] 
Update rlm_lua tests to use new function names

3 months agoUse a call_env to determine function names for rlm_lua
Nick Porter [Thu, 24 Apr 2025 11:04:44 +0000 (12:04 +0100)] 
Use a call_env to determine function names for rlm_lua

3 months agoMake fr_lua_check_func a library function
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

3 months agoCopy dedup_authenticator when copying clients
Nick Porter [Thu, 24 Apr 2025 08:23:11 +0000 (09:23 +0100)] 
Copy dedup_authenticator when copying clients

3 months agoSet client dedup_authenticator to "yes" by default
Nick Porter [Thu, 24 Apr 2025 08:21:14 +0000 (09:21 +0100)] 
Set client dedup_authenticator to "yes" by default

3 months agoUpdate example mruby module for new function names
Nick Porter [Wed, 23 Apr 2025 15:22:15 +0000 (16:22 +0100)] 
Update example mruby module for new function names

3 months agoUse a call_env to determine function names for rlm_mruby
Nick Porter [Wed, 23 Apr 2025 15:21:48 +0000 (16:21 +0100)] 
Use a call_env to determine function names for rlm_mruby

3 months agodocs: update os/security certificates section
nolade [Tue, 22 Apr 2025 20:32:24 +0000 (16:32 -0400)] 
docs: update os/security certificates section

3 months agoHandle missing name2
Nick Porter [Wed, 23 Apr 2025 12:53:32 +0000 (13:53 +0100)] 
Handle missing name2

3 months agoUpdate docs from current local dictionary comments
Nick Porter [Wed, 23 Apr 2025 11:26:19 +0000 (12:26 +0100)] 
Update docs from current local dictionary comments

3 months agoUpdate docs from updated perl module
Nick Porter [Wed, 23 Apr 2025 11:25:12 +0000 (12:25 +0100)] 
Update docs from updated perl module

3 months agoUpdate sample perl module config
Nick Porter [Wed, 23 Apr 2025 11:22:46 +0000 (12:22 +0100)] 
Update sample perl module config

3 months agoUpdate test Perl module.conf for new function mapping
Nick Porter [Wed, 23 Apr 2025 11:10:08 +0000 (12:10 +0100)] 
Update test Perl module.conf for new function mapping

3 months agoUse a call_env to determine rlm_perl subroutine names to call
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

3 months agoallow "catch" after "timeout"
Alan T. DeKok [Tue, 22 Apr 2025 16:48:31 +0000 (12:48 -0400)] 
allow "catch" after "timeout"

3 months agofix coverity issue by removing code
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.

3 months agoadd -e ignore_count=N
Alan T. DeKok [Wed, 23 Apr 2025 11:31:46 +0000 (07:31 -0400)] 
add -e ignore_count=N

3 months agoUse macros to check return codes of disam/delete functions
Arran Cudbard-Bell [Wed, 23 Apr 2025 04:30:56 +0000 (23:30 -0500)] 
Use macros to check return codes of disam/delete functions

3 months agoRemove incorrect condition in bfd/session.c, rename fields to consistently identify...
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

3 months agoVarious other timer fixes
Arran Cudbard-Bell [Tue, 22 Apr 2025 18:40:57 +0000 (13:40 -0500)] 
Various other timer fixes

3 months agoSimplifying deleting timers in bio/fd.c and raise errors
Arran Cudbard-Bell [Tue, 22 Apr 2025 18:40:30 +0000 (13:40 -0500)] 
Simplifying deleting timers in bio/fd.c and raise errors

3 months agoDisarm the curl I/O timer instead of deleting it
Arran Cudbard-Bell [Tue, 22 Apr 2025 18:35:48 +0000 (13:35 -0500)] 
Disarm the curl I/O timer instead of deleting it

3 months agoSlightly more efficient timer armed check
Arran Cudbard-Bell [Tue, 22 Apr 2025 18:35:32 +0000 (13:35 -0500)] 
Slightly more efficient timer armed check

3 months agoSay which type of servicing failed
Arran Cudbard-Bell [Tue, 22 Apr 2025 18:32:05 +0000 (13:32 -0500)] 
Say which type of servicing failed

3 months agoWe don't recommend lua/perl/python for writing policy
Nick Porter [Tue, 22 Apr 2025 16:31:43 +0000 (17:31 +0100)] 
We don't recommend lua/perl/python for writing policy

3 months agoNo need to sort the list
Nick Porter [Tue, 22 Apr 2025 10:27:39 +0000 (11:27 +0100)] 
No need to sort the list

3 months agoCorrect index itterator
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.

3 months agomore debug messages for tracking state
Alan T. DeKok [Tue, 22 Apr 2025 16:21:10 +0000 (12:21 -0400)] 
more debug messages for tracking state

3 months agoadd unlang_interpret_set_timeout()
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

3 months agodocs: update/copy-edit dhcpv4 pages under >>Howto >> Protocols >> DHCP
nolade [Mon, 21 Apr 2025 21:03:50 +0000 (17:03 -0400)] 
docs: update/copy-edit dhcpv4 pages under >>Howto >> Protocols >> DHCP

3 months agoUpdate docs with latest sample module confs
Nick Porter [Tue, 22 Apr 2025 07:11:41 +0000 (08:11 +0100)] 
Update docs with latest sample module confs

3 months agoDon't allow "catch" by itself
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

3 months agogive things good names
Alan T. DeKok [Mon, 21 Apr 2025 21:50:22 +0000 (17:50 -0400)] 
give things good names

3 months agoclamp values for "retry" section
Alan T. DeKok [Sat, 19 Apr 2025 16:17:53 +0000 (12:17 -0400)] 
clamp values for "retry" section

3 months agoupdates from PR #5557
Alan T. DeKok [Sat, 19 Apr 2025 13:52:17 +0000 (09:52 -0400)] 
updates from PR #5557

3 months agodocs: import customer info CoA-Originate-Relay info into Antora >> Howto >> Protocols...
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

3 months agoRe-write rlm_python howto
Nick Porter [Mon, 21 Apr 2025 18:36:51 +0000 (19:36 +0100)] 
Re-write rlm_python howto

3 months agoAdd debug level constants to rlm_python
Nick Porter [Mon, 21 Apr 2025 18:35:48 +0000 (19:35 +0100)] 
Add debug level constants to rlm_python

3 months agoTidy rlm_python copyright
Nick Porter [Mon, 21 Apr 2025 17:19:04 +0000 (18:19 +0100)] 
Tidy rlm_python copyright

None of the original code exists anymore

3 months agoUpdate sample rlm_python config
Nick Porter [Mon, 21 Apr 2025 16:32:20 +0000 (17:32 +0100)] 
Update sample rlm_python config

3 months agoUpdate example.py
Nick Porter [Mon, 21 Apr 2025 15:07:56 +0000 (16:07 +0100)] 
Update example.py

3 months agoUpdate Python test function names
Nick Porter [Mon, 21 Apr 2025 09:24:39 +0000 (10:24 +0100)] 
Update Python test function names

3 months agoUse call_env to identify Python 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`.

3 months agoAdd tests of rlm_python attribute setting
Nick Porter [Fri, 18 Apr 2025 13:12:38 +0000 (14:12 +0100)] 
Add tests of rlm_python attribute setting

3 months agoOnly accept an rcode in the Python function reply
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

3 months agoPass py_freeradius_request_t to python functions
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

3 months agoUpdate Python module init
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

3 months agoCreate py_freeradius_state_t when instantiating thread instances
Nick Porter [Wed, 16 Apr 2025 17:37:10 +0000 (18:37 +0100)] 
Create py_freeradius_state_t when instantiating thread instances

3 months agoRemove Python 2.x comment
Nick Porter [Wed, 16 Apr 2025 16:09:20 +0000 (17:09 +0100)] 
Remove Python 2.x comment

3 months agoAdd py_freeradius_pair_str
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

3 months agoAdd py_freeradius_pair_setvalue
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.

3 months agoAdd py_freeradius_pair_getvalue
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

3 months agoAdd py_freeradius_pair_map_set
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.

3 months agoAdd py_freeradius_attribute_instance
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

3 months agoAdd py_freeradius_pair_map_subscript()
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.

3 months agoAdd definitions of Python objects for pair access
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

3 months agoAdd functions to set and get current request from Python thread state
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

3 months agoUpdate Python freeradius.log() to use optional args
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

3 months agoAdd functions to fetch module instance from python state
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

3 months agoNo need to talk about Python 2
Nick Porter [Wed, 16 Apr 2025 09:58:01 +0000 (10:58 +0100)] 
No need to talk about Python 2

3 months agoAdd C structure for Python state object
Nick Porter [Wed, 16 Apr 2025 09:56:31 +0000 (10:56 +0100)] 
Add C structure for Python state object

3 months agoDefine C structures for Python request and pair objects
Nick Porter [Wed, 16 Apr 2025 09:47:34 +0000 (10:47 +0100)] 
Define C structures for Python request and pair objects

3 months agoDon't call python_error_log twice
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`

3 months agoChange LOG_PREFIX to use inst->name
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.

3 months agoSet module instance name in instance data
Nick Porter [Wed, 16 Apr 2025 08:19:34 +0000 (09:19 +0100)] 
Set module instance name in instance data

3 months agoThe module name is freeradius
Nick Porter [Tue, 15 Apr 2025 16:54:59 +0000 (17:54 +0100)] 
The module name is freeradius

3 months agoSwitch GitHub runners to Ubuntu 24.04 to match self-hosted
Nick Porter [Fri, 18 Apr 2025 14:50:15 +0000 (15:50 +0100)] 
Switch GitHub runners to Ubuntu 24.04 to match self-hosted

3 months agoUse sh in place of bash
Nick Porter [Mon, 21 Apr 2025 10:58:14 +0000 (11:58 +0100)] 
Use sh in place of bash

For cross platform tests

3 months agomake timeout limits warnings, and limit to max_request_time
Alan T. DeKok [Sat, 19 Apr 2025 13:46:23 +0000 (09:46 -0400)] 
make timeout limits warnings, and limit to max_request_time

3 months agoadd headings for accountng, and add docs for timeout section
Alan T. DeKok [Sat, 19 Apr 2025 13:43:32 +0000 (09:43 -0400)] 
add headings for accountng, and add docs for timeout section

3 months agofix nav bar indentation
Alan T. DeKok [Sat, 19 Apr 2025 13:43:18 +0000 (09:43 -0400)] 
fix nav bar indentation

3 months agoadd test for top-level "timeout" functionality
Alan T. DeKok [Sat, 19 Apr 2025 13:20:27 +0000 (09:20 -0400)] 
add test for top-level "timeout" functionality

3 months agoallow time_delta as .3, in addition to 0.3
Alan T. DeKok [Sat, 19 Apr 2025 13:15:37 +0000 (09:15 -0400)] 
allow time_delta as .3, in addition to 0.3

3 months agoFix typos in CI #5542
Alan T. DeKok [Sat, 19 Apr 2025 13:05:37 +0000 (09:05 -0400)] 
Fix typos in CI #5542

3 months agoUpdate dictionary. fixes ##5545
Alan T. DeKok [Sat, 19 Apr 2025 13:01:24 +0000 (09:01 -0400)] 
Update dictionary.  fixes ##5545

3 months agoremove duplicate includes
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.

3 months agolimit timers
Alan T. DeKok [Fri, 18 Apr 2025 20:12:03 +0000 (16:12 -0400)] 
limit timers

3 months agoFix issue in extendable talloced sbuffs, that would cause the sbuff to slowly shrink
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

3 months agoExtend end on talloc_extend
Arran Cudbard-Bell [Fri, 18 Apr 2025 20:21:08 +0000 (15:21 -0500)] 
Extend end on talloc_extend

3 months agomake global "timeout" section work
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.

3 months agolook for and compile a per-server "timeout" section
Alan T. DeKok [Fri, 18 Apr 2025 17:51:55 +0000 (13:51 -0400)] 
look for and compile a per-server "timeout" section

3 months agodon't insert static clients into the dynamic client list
Alan T. DeKok [Fri, 18 Apr 2025 18:37:20 +0000 (14:37 -0400)] 
don't insert static clients into the dynamic client list

3 months agodistinguish frame_signal and interpret_signal
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.

3 months agoPrint errors when we fail copy log messages to the aggregation buffer
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

3 months agoadd unlang_timeout_section_push()
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.

3 months agohoist tmpls
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.

3 months agoprint out that it's a tmpl
Alan T. DeKok [Fri, 18 Apr 2025 12:39:32 +0000 (08:39 -0400)] 
print out that it's a tmpl

3 months agoremove backticks from tests
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

3 months agoUse a function actually in libmruby to check for the library
Nick Porter [Fri, 18 Apr 2025 09:10:41 +0000 (10:10 +0100)] 
Use a function actually in libmruby to check for the library

3 months agoMore fixes for OpenSSL's questionable design decisions
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().

3 months agoAdd "ping" xlat for winbind, so we can run periodic checks against AD
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

3 months agoCache more things, and only unprotect the protected page
Arran Cudbard-Bell [Wed, 16 Apr 2025 18:23:41 +0000 (13:23 -0500)] 
Cache more things, and only unprotect the protected page

3 months agoFix timer use in rlm_sql_oracle
Arran Cudbard-Bell [Wed, 16 Apr 2025 17:03:09 +0000 (12:03 -0500)] 
Fix timer use in rlm_sql_oracle