]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Arran Cudbard-Bell [Tue, 18 Apr 2023 11:55:09 +0000 (21:55 +1000)]
rlm_detail: Don't re-resolve the group names to GIDs on every entry written to a detail file
Arran Cudbard-Bell [Tue, 18 Apr 2023 11:16:45 +0000 (21:16 +1000)]
Fix spurious assert on exit
Arran Cudbard-Bell [Tue, 18 Apr 2023 11:12:19 +0000 (21:12 +1000)]
radius: Return treq to the free list if there's no upstreams
Nick Porter [Tue, 18 Apr 2023 09:30:42 +0000 (10:30 +0100)]
Align unlang_function_signal_set with _unlang_function_signal_set
Nick Porter [Tue, 18 Apr 2023 09:29:44 +0000 (10:29 +0100)]
unlang_function_push actually returns an unlang_action_t
Arran Cudbard-Bell [Mon, 17 Apr 2023 23:42:22 +0000 (09:42 +1000)]
zombie state should be determined outside of the muxer
Arran Cudbard-Bell [Mon, 17 Apr 2023 10:13:07 +0000 (20:13 +1000)]
rest: Fix arg list
Arran Cudbard-Bell [Mon, 17 Apr 2023 05:51:57 +0000 (15:51 +1000)]
Add multiple types of variadic argument
Fix redis xlats to keep argument order and not crash when empty values are provided
Arran Cudbard-Bell [Mon, 17 Apr 2023 05:51:14 +0000 (15:51 +1000)]
Disallow setting required on varidic args
It makes the code more complex, and it's not 100% clear what it means
Arran Cudbard-Bell [Mon, 17 Apr 2023 05:49:52 +0000 (15:49 +1000)]
skip null values in concat functions
Arran Cudbard-Bell [Mon, 17 Apr 2023 05:48:37 +0000 (15:48 +1000)]
remove instances of .variadic = false
Arran Cudbard-Bell [Sun, 16 Apr 2023 23:45:52 +0000 (09:45 +1000)]
xlat: Don't crash printing empty secondary alternate expansion
...and actually print alternate expansions correctly
Arran Cudbard-Bell [Sun, 16 Apr 2023 22:28:17 +0000 (08:28 +1000)]
redis: Deal with first func argument specially
Make sure it's an integer, and don't require future varidic arguments to be non-null
Arran Cudbard-Bell [Sun, 16 Apr 2023 09:20:32 +0000 (19:20 +1000)]
Use the existing bind function for binding client sockets to interfaces, ipaddrs, and ports
Arran Cudbard-Bell [Sat, 15 Apr 2023 11:37:00 +0000 (21:37 +1000)]
radius: re-add support for binding radius client sockets to interfaces
Arran Cudbard-Bell [Sat, 15 Apr 2023 02:48:51 +0000 (12:48 +1000)]
...and another missing free
Arran Cudbard-Bell [Sat, 15 Apr 2023 00:38:30 +0000 (10:38 +1000)]
redis: Don't leak replies when we reconnect a node
Arran Cudbard-Bell [Sat, 15 Apr 2023 00:36:14 +0000 (10:36 +1000)]
redis: Free existing reply before attempting to call the function
Alan T. DeKok [Fri, 14 Apr 2023 14:56:11 +0000 (10:56 -0400)]
use TLS_method()
as per https://www.openssl.org/docs/man3.1/man3/TLS_method.html
Alan T. DeKok [Wed, 5 Apr 2023 19:50:30 +0000 (15:50 -0400)]
add test for editing session-state, too
Nick Porter [Fri, 14 Apr 2023 07:43:53 +0000 (08:43 +0100)]
Not an error
Nick Porter [Fri, 14 Apr 2023 07:43:32 +0000 (08:43 +0100)]
Free on both read/write and read only paths
Arran Cudbard-Bell [Thu, 13 Apr 2023 22:52:02 +0000 (08:52 +1000)]
customer: *stab* *stab* *stab*
Arran Cudbard-Bell [Thu, 13 Apr 2023 21:48:20 +0000 (07:48 +1000)]
Fix talloc foreach so it doesn't have issues with NULL input arrays
Nick Porter [Thu, 13 Apr 2023 15:43:25 +0000 (16:43 +0100)]
Only need trunk for lookups if we don't have a cached DN
If the cached DN is already in the control list, then there is no need
to perform any lookup queries - just the auth bind will be done, which
is not on the trunk used for queries.
Nick Porter [Tue, 11 Apr 2023 10:27:03 +0000 (11:27 +0100)]
Add missing net_timeout option to sample ldap config
Nick Porter [Fri, 7 Apr 2023 15:25:46 +0000 (16:25 +0100)]
Update sample ldap module to reflect trunk parameters
Aligned with fr_trunk_config CONF_PARSER
Nick Porter [Thu, 13 Apr 2023 17:23:42 +0000 (18:23 +0100)]
Avoid NULL pointer error
Nick Porter [Thu, 13 Apr 2023 16:19:14 +0000 (17:19 +0100)]
Free redis result on failure paths
Nick Porter [Thu, 13 Apr 2023 16:18:33 +0000 (17:18 +0100)]
Free previous redis result before retrieving another
Arran Cudbard-Bell [Thu, 13 Apr 2023 11:41:10 +0000 (21:41 +1000)]
redis: Don't allocate a default section
Arran Cudbard-Bell [Thu, 13 Apr 2023 11:06:12 +0000 (21:06 +1000)]
redis ippool: Need the delay module here too
Arran Cudbard-Bell [Thu, 13 Apr 2023 10:57:07 +0000 (20:57 +1000)]
redis: If remap fails because the connection is bad, don't leave the stale connection open
Arran Cudbard-Bell [Thu, 13 Apr 2023 10:55:43 +0000 (20:55 +1000)]
redis: Fix remap rate limit
Arran Cudbard-Bell [Thu, 13 Apr 2023 10:22:15 +0000 (20:22 +1000)]
redis: Fix const issue
Arran Cudbard-Bell [Thu, 13 Apr 2023 10:13:52 +0000 (20:13 +1000)]
redis: Version specific fixes in redis-setup.sh
Arran Cudbard-Bell [Thu, 13 Apr 2023 05:55:59 +0000 (15:55 +1000)]
redis: Add the ability to add xlat wrappers which allow lua functions to be called on the redis cluster
Arran Cudbard-Bell [Thu, 13 Apr 2023 07:43:41 +0000 (17:43 +1000)]
redis: Fix node fail test to be more reliable
Arran Cudbard-Bell [Thu, 13 Apr 2023 07:39:41 +0000 (17:39 +1000)]
redis: Fixup redis setup script to enable debug commands
Arran Cudbard-Bell [Thu, 13 Apr 2023 07:11:06 +0000 (17:11 +1000)]
redis: Fix timing issues in cluster reset
It takes 5-6 seconds for replicas to appear in the output of cluster slots
Arran Cudbard-Bell [Thu, 13 Apr 2023 06:49:31 +0000 (16:49 +1000)]
redis: No need to mangle this for other platforms
Arran Cudbard-Bell [Wed, 12 Apr 2023 01:16:14 +0000 (11:16 +1000)]
build: Document RELEASE=1 and RELEASE=0
Arran Cudbard-Bell [Wed, 12 Apr 2023 00:14:25 +0000 (10:14 +1000)]
workflow: Install a more recent version of Git for centos 7
Nick Porter [Tue, 11 Apr 2023 09:15:12 +0000 (10:15 +0100)]
Correct state machine for SASL bind auth
There needs to be one more call to ldap_sasl_interactive_bind after
ldap_result returns success to complete the SASL bind.
It is the return code of ldap_sasl_interactive_bind which indicates
whether a further call is required or not.
Nick Porter [Tue, 11 Apr 2023 09:07:36 +0000 (10:07 +0100)]
Use correct type for bind_auth_ctx->ret
Arran Cudbard-Bell [Mon, 10 Apr 2023 17:09:17 +0000 (10:09 -0700)]
Partially revert change in version.sh
Arran Cudbard-Bell [Mon, 10 Apr 2023 17:08:00 +0000 (10:08 -0700)]
build: Use --add-file not --add-virtual-file
Arran Cudbard-Bell [Mon, 10 Apr 2023 04:36:22 +0000 (21:36 -0700)]
build: Improve versioning support
RELEASE=0 or RELEASE=1 can now be used to influence the default state of enable-developer when making archives, running configure, and building packages.
All versioning values are now produced by version.sh instead of being spread between our Makefile and configure.
Commit and commit depth are inserted into into tar/gz files so that developer builds are automatically enabled for non-release builds, and the commit is embedded in version strings for all builds.
Max Khon [Fri, 7 Apr 2023 12:13:45 +0000 (13:13 +0100)]
Fix build-essential package name (#4971)
Arran Cudbard-Bell [Fri, 7 Apr 2023 07:16:11 +0000 (00:16 -0700)]
value: Add value box acopy function
Arran Cudbard-Bell [Fri, 7 Apr 2023 07:15:05 +0000 (00:15 -0700)]
fix comment
Arran Cudbard-Bell [Fri, 7 Apr 2023 03:29:24 +0000 (20:29 -0700)]
deb: Remove hack in debian/rules, it should not be necessary
Arran Cudbard-Bell [Fri, 7 Apr 2023 03:11:34 +0000 (20:11 -0700)]
git: Fix check for whether we're in a git repo
Alan T. DeKok [Wed, 5 Apr 2023 19:08:30 +0000 (15:08 -0400)]
force RHS of edits to use full paths when referencing an attribute
because it's crazy to do
&reply += {
&User-Name = &User-Name
}
Alan T. DeKok [Wed, 5 Apr 2023 19:07:59 +0000 (15:07 -0400)]
add tests for nested groups
and update parsing rules to not leave namespace as internal
Alan T. DeKok [Wed, 5 Apr 2023 02:11:42 +0000 (22:11 -0400)]
move copy of attrs file to make rules
so that we don't do the copy every time
Arran Cudbard-Bell [Wed, 5 Apr 2023 13:48:41 +0000 (07:48 -0600)]
Formatting
Arran Cudbard-Bell [Wed, 5 Apr 2023 01:31:06 +0000 (19:31 -0600)]
clang scan fixes
Arran Cudbard-Bell [Wed, 5 Apr 2023 01:20:53 +0000 (19:20 -0600)]
exec: Create two distinct interfaces for the exec code
- Low level interface is used for spawning global processes used in pool.
- High level interface is for oneshot requests use for backticks and rlm_exec.
Arran Cudbard-Bell [Wed, 5 Apr 2023 01:16:36 +0000 (19:16 -0600)]
event-waitid: When waitid returns 0, info isn't initialised so we can't check it
Arran Cudbard-Bell [Wed, 5 Apr 2023 00:12:42 +0000 (18:12 -0600)]
Ignore doxygen src
Alan T. DeKok [Tue, 4 Apr 2023 19:15:49 +0000 (15:15 -0400)]
The RADIUS module can only use RADIUS attributes for status-server
Alan T. DeKok [Tue, 4 Apr 2023 19:08:30 +0000 (15:08 -0400)]
update for WITH_SASL build
Nick Porter [Tue, 4 Apr 2023 17:20:00 +0000 (18:20 +0100)]
Remove unused connection pool
Nick Porter [Tue, 4 Apr 2023 16:16:02 +0000 (17:16 +0100)]
Use correct debug level
Alan T. DeKok [Mon, 3 Apr 2023 20:53:07 +0000 (16:53 -0400)]
rename to "PROTO.encode"
as most everything else is hiearchical based on protocol name
Nick Porter [Fri, 31 Mar 2023 17:17:46 +0000 (18:17 +0100)]
No need for non-async LDAP modify now
Nick Porter [Fri, 31 Mar 2023 12:13:10 +0000 (13:13 +0100)]
Rework LDAP user_modify to use async queries
Nick Porter [Tue, 28 Mar 2023 13:51:27 +0000 (14:51 +0100)]
Rework mod_authorize_resume to use state, group and profile async lookups
Nick Porter [Thu, 30 Mar 2023 18:41:19 +0000 (19:41 +0100)]
Rework LDAP profile lookup to use async queries
Nick Porter [Tue, 28 Mar 2023 13:40:56 +0000 (14:40 +0100)]
Rework rlm_ldap_cacheable_groupobj() to use async queries
Nick Porter [Tue, 28 Mar 2023 13:33:56 +0000 (14:33 +0100)]
Rework rlm_ldap_cacheable_userobj() to use async lookups
Nick Porter [Tue, 28 Mar 2023 13:16:38 +0000 (14:16 +0100)]
Create async functions to convert group DNs to names
The sync version is still needed for LDAP-Group pair cmp magic at
present.
Nick Porter [Tue, 28 Mar 2023 13:06:15 +0000 (14:06 +0100)]
Re-work group name to DN lookup to be async
Nick Porter [Tue, 28 Mar 2023 13:06:43 +0000 (14:06 +0100)]
Add context for resolving group membership from user object
Nick Porter [Tue, 28 Mar 2023 11:31:59 +0000 (12:31 +0100)]
Set a valid LOG_PREFIX
Nick Porter [Wed, 22 Mar 2023 19:41:01 +0000 (19:41 +0000)]
Remove tmpl expansions now done by module environment
Nick Porter [Tue, 28 Mar 2023 13:52:17 +0000 (14:52 +0100)]
Use module environment in rlm_ldap_map_profile
Nick Porter [Wed, 22 Mar 2023 19:39:55 +0000 (19:39 +0000)]
Make SASL binds work again for user auth
Nick Porter [Wed, 22 Mar 2023 19:37:03 +0000 (19:37 +0000)]
Add fr_ldap_sasl_bind_auth_async and supporting functions
Nick Porter [Wed, 22 Mar 2023 14:52:19 +0000 (14:52 +0000)]
Allow for SASL bind ctx in LDAP auth bind ctx
Nick Porter [Tue, 28 Mar 2023 11:19:04 +0000 (12:19 +0100)]
Add state to LDAP authorization ctx
To track progress through multiple async LDAP queries
Nick Porter [Wed, 21 Sep 2022 09:36:00 +0000 (10:36 +0100)]
Use async lookup of user DN in rlm_ldap mod_authorize
Nick Porter [Tue, 20 Sep 2022 16:47:20 +0000 (17:47 +0100)]
Use async user DN lookup in LDAP authentication
Nick Porter [Wed, 22 Mar 2023 18:54:25 +0000 (18:54 +0000)]
Module environment for rlm_ldap
Nick Porter [Wed, 15 Mar 2023 14:54:15 +0000 (14:54 +0000)]
Add macro for module env subsections
Nick Porter [Tue, 20 Sep 2022 16:38:23 +0000 (17:38 +0100)]
Move include - function.h will be needed by most LDAP source
Nick Porter [Tue, 20 Sep 2022 16:37:21 +0000 (17:37 +0100)]
Add rlm_ldap_find_user_async() and supporting functions
Nick Porter [Tue, 20 Sep 2022 16:35:43 +0000 (17:35 +0100)]
Add rlm_find_user_dn_cached()
Nick Porter [Wed, 29 Mar 2023 18:19:33 +0000 (19:19 +0100)]
Correct return of fr_ldap_trunk_search and fr_ldap_trunk_modify
It is the child function which yields (until everything becomes async at
which point this will get simplified)
Arran Cudbard-Bell [Tue, 4 Apr 2023 00:34:36 +0000 (18:34 -0600)]
slab: Style guide says alloc functions should return the newly allocated structure unless they have complex failure conditions which slabs don't
https://wiki.freeradius.org/contributing/coding-standards#return-types_pointer
Arran Cudbard-Bell [Mon, 3 Apr 2023 23:31:35 +0000 (17:31 -0600)]
jlibtool: Fix minor warnings
Arran Cudbard-Bell [Mon, 3 Apr 2023 23:09:00 +0000 (17:09 -0600)]
clangd: Ignore osmocom code in submodules
Arran Cudbard-Bell [Mon, 3 Apr 2023 22:40:09 +0000 (16:40 -0600)]
slab: Remove implicit fr_ prefix
Yes, the framework for creating slabs is in the util library, but the functions and types it produces may not be so should not have an implicit fr_ prefix.
Arran Cudbard-Bell [Mon, 3 Apr 2023 22:19:55 +0000 (16:19 -0600)]
cf_util: Add cf_log_perr_by_child
Arran Cudbard-Bell [Mon, 3 Apr 2023 22:19:23 +0000 (16:19 -0600)]
cf_util: Pass in copy of va_list not original va_list
Arran Cudbard-Bell [Mon, 3 Apr 2023 02:18:08 +0000 (20:18 -0600)]
rlm_exec: Various cleanups
Arran Cudbard-Bell [Mon, 3 Apr 2023 02:11:43 +0000 (20:11 -0600)]
Add CONF_PARSER snippet for slabs
Arran Cudbard-Bell [Mon, 3 Apr 2023 00:07:50 +0000 (18:07 -0600)]
Simplify and document conf parser macros
Alan T. DeKok [Mon, 3 Apr 2023 17:00:53 +0000 (13:00 -0400)]
update code and add tests to allow a group on the RHS of edits