]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
github-actions[bot] [Wed, 5 Feb 2025 09:35:01 +0000 (09:35 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Wed, 5 Feb 2025 09:34:43 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Wed, 5 Feb 2025 09:34:40 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Wed, 5 Feb 2025 09:34:35 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar
github-actions[bot] [Wed, 5 Feb 2025 09:34:25 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar
github-actions[bot] [Wed, 5 Feb 2025 09:34:22 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar
github-actions[bot] [Wed, 5 Feb 2025 09:34:19 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
github-actions[bot] [Wed, 5 Feb 2025 09:34:16 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
Nick Porter [Tue, 4 Feb 2025 20:21:09 +0000 (20:21 +0000)]
Use expression evaluation in place of map for LDAP profile condition
Alan T. DeKok [Sat, 1 Feb 2025 17:30:24 +0000 (12:30 -0500)]
do more compile-time checks of values.
This is only for the modules "delay", "attr_filter", and "exec".
Tho "exec" hasn't been updated yet, as it takes attributes.
These modules should arguably be moved to the call_env framework.
Alan T. DeKok [Sat, 1 Feb 2025 17:05:37 +0000 (12:05 -0500)]
No need to do key="%{User-Name}". We can just do key=User-Name
we should likely also update the examples to use the pre/post-proxy
attr filtering, too
Alan T. DeKok [Sat, 1 Feb 2025 16:47:39 +0000 (11:47 -0500)]
better error message when parsing time deltas
"token not found" is technically correct, but isn't helpful
Alan T. DeKok [Sat, 1 Feb 2025 15:07:51 +0000 (10:07 -0500)]
clean up attribute parsing.
a conf item can be required to be an attribute. However, right
now only "sometimes" and "sqlcounter" do this. That needs to be
fixed.
If it is marked up as an attribute, then call the attribute parser,
and not the generic tmpl parser which then tries everything.
Remove cast of attribute. The rest of the parser wouldn't allow it,
so that code was never used.
Alan T. DeKok [Sat, 1 Feb 2025 14:37:29 +0000 (09:37 -0500)]
set attribute prefix to AUTO
Alan T. DeKok [Sat, 1 Feb 2025 14:24:12 +0000 (09:24 -0500)]
remove '&' again
Alan T. DeKok [Sat, 1 Feb 2025 14:22:32 +0000 (09:22 -0500)]
remove '&' again
Alan T. DeKok [Sat, 1 Feb 2025 14:20:13 +0000 (09:20 -0500)]
remove '&' again
now that the server and tmpl code have been double checked
Alan T. DeKok [Sat, 1 Feb 2025 14:19:57 +0000 (09:19 -0500)]
check input rules, and not output tmpl
Alan T. DeKok [Sat, 1 Feb 2025 14:17:58 +0000 (09:17 -0500)]
don't modify tmpl_require_enum_prefix here.
Alan T. DeKok [Fri, 31 Jan 2025 19:29:30 +0000 (14:29 -0500)]
re-add '&' to get the tests to pass
the xlat argument parser still needs:
%json.encode("&request.[*]")
and this without the "&" doesn't work
%json.encode("request.[*])
Alan T. DeKok [Fri, 31 Jan 2025 19:22:36 +0000 (14:22 -0500)]
regenerate from raddb source
Alan T. DeKok [Fri, 31 Jan 2025 19:21:55 +0000 (14:21 -0500)]
tweaks to make Antora happier
Alan T. DeKok [Fri, 31 Jan 2025 19:10:14 +0000 (14:10 -0500)]
just remove unused lines
nolade [Wed, 29 Jan 2025 21:56:25 +0000 (16:56 -0500)]
Moved Installation module to under the Howto module
Please enter the commit message for your changes. Lines starting
Howto & Installation modules topo updates
Alan T. DeKok [Fri, 31 Jan 2025 19:02:57 +0000 (14:02 -0500)]
minor typos
nolade [Tue, 28 Jan 2025 17:00:19 +0000 (12:00 -0500)]
Update ldap auth file. Modified nav files and lots of xref stuff Resolved filepaths for files in the reference and howto modules Update xrefs and fix broken links.Add file panic.gdb.adoc (found in src raddb panic.gdb)
update ref nav file
Alan T. DeKok [Fri, 31 Jan 2025 17:31:36 +0000 (12:31 -0500)]
update and document migration flags
Alan T. DeKok [Fri, 31 Jan 2025 15:08:52 +0000 (10:08 -0500)]
remove require_enum_prefixi=yes from config in tests
now that it's the default, we don't need to set it in the configs
Alan T. DeKok [Fri, 31 Jan 2025 12:33:14 +0000 (07:33 -0500)]
reply items can only have assignment operators
Alan T. DeKok [Fri, 31 Jan 2025 12:12:22 +0000 (07:12 -0500)]
clean up last bits of "&" manually
Alan T. DeKok [Fri, 31 Jan 2025 00:52:55 +0000 (19:52 -0500)]
remove '&' from virtual servers
Mostly. There are a few left, which will need to be addressed
manually
Alan T. DeKok [Thu, 30 Jan 2025 22:22:31 +0000 (17:22 -0500)]
remove the couchbase module.
It is old an unused by essentially anyone
Alan T. DeKok [Thu, 30 Jan 2025 21:50:30 +0000 (16:50 -0500)]
remove & from debug messages
perl -p -i -e 'next if !/DEBUG/;s/\"&/\"/' $(git grep '"&' src | grep DEBUG | sed 's/:.*//' | sort -u)
perl -p -i -e 'next if !/DEBUG/;s/&control/control/g' $(git grep DEBUG | grep '&' | sed 's/:.*//' | sort -u)
along with request, reply, session, and a few manual edits
Alan T. DeKok [Thu, 30 Jan 2025 17:13:05 +0000 (12:13 -0500)]
add :: to enum names
Alan T. DeKok [Thu, 30 Jan 2025 17:02:13 +0000 (12:02 -0500)]
swap to get rid of &
Alan T. DeKok [Thu, 30 Jan 2025 16:29:07 +0000 (11:29 -0500)]
Make the new ::ENUM syntax the default
Alan T. DeKok [Thu, 30 Jan 2025 16:46:59 +0000 (11:46 -0500)]
use single quotes
Alan T. DeKok [Thu, 30 Jan 2025 15:47:12 +0000 (10:47 -0500)]
ensure that unknown DA's aren't parented from the NULL ctx
and add assertion to that effect in the dictionary ext handler.
This avoids memory leaks when the callers aren't careful about
passing in the correct ctx.
Alan T. DeKok [Thu, 30 Jan 2025 16:00:02 +0000 (11:00 -0500)]
add cbor
Alan T. DeKok [Thu, 30 Jan 2025 15:49:08 +0000 (10:49 -0500)]
remove dead code
Alan T. DeKok [Thu, 30 Jan 2025 15:46:46 +0000 (10:46 -0500)]
we should free node before exiting
Alan T. DeKok [Thu, 30 Jan 2025 15:46:24 +0000 (10:46 -0500)]
print out -S flag, too
Alan T. DeKok [Thu, 30 Jan 2025 14:14:40 +0000 (09:14 -0500)]
move unit tests to run without "&"
Alan T. DeKok [Wed, 29 Jan 2025 21:29:28 +0000 (16:29 -0500)]
The abfab project is dead. Remove all references to abfab
nolade [Tue, 28 Jan 2025 17:00:19 +0000 (12:00 -0500)]
Updated nav files and lots of xref stuff Resolved filepaths for files in the reference and howto modules Update xrefs and fix broken links.Add file panic.gdb.adoc (found in src raddb panic.gdb)
update ref nav file
Nick Porter [Wed, 29 Jan 2025 15:51:43 +0000 (15:51 +0000)]
Doxygen fixes
Nick Porter [Wed, 29 Jan 2025 15:37:28 +0000 (15:37 +0000)]
Add basic test of LDAP profile check_attribute
Nick Porter [Wed, 29 Jan 2025 15:34:28 +0000 (15:34 +0000)]
Add check attribute processing to rlm_ldap profile handling
Comparable to check items in rlm_files and check entries in rlm_sql with
comparison operators.
Nick Porter [Wed, 29 Jan 2025 11:38:25 +0000 (11:38 +0000)]
Add radiusProfileCondition to LDAP schema
Nick Porter [Wed, 29 Jan 2025 11:34:25 +0000 (11:34 +0000)]
Typo
Nick Porter [Wed, 29 Jan 2025 11:28:39 +0000 (11:28 +0000)]
Add profile check attr to LDAP search request maps
Nick Porter [Wed, 29 Jan 2025 11:27:10 +0000 (11:27 +0000)]
Add check_attribute to rlm_ldap profile section
An LDAP attribute which will contain conditions to evaluate to determine
if the profile should be applied
Nick Porter [Tue, 28 Jan 2025 11:00:36 +0000 (11:00 +0000)]
Test profile sorting in LDAP
Nick Porter [Tue, 28 Jan 2025 10:57:12 +0000 (10:57 +0000)]
Load service side sort overlay in CI LDAP server
Nick Porter [Tue, 28 Jan 2025 10:56:05 +0000 (10:56 +0000)]
Add profile sort_by to sample LDAP module config
Nick Porter [Tue, 28 Jan 2025 10:54:12 +0000 (10:54 +0000)]
Add radiusProfilePriority attribute to LDAP schema
Intended for sorting when multiple profiles are matched
Nick Porter [Tue, 28 Jan 2025 10:35:16 +0000 (10:35 +0000)]
Use server side sort control when fetching profiles
Nick Porter [Tue, 28 Jan 2025 10:34:03 +0000 (10:34 +0000)]
Add sort_by option to rlm_ldap profile section
Alan T. DeKok [Tue, 28 Jan 2025 02:50:53 +0000 (21:50 -0500)]
add aliases for Cleartext-Password, etc.
Alan T. DeKok [Tue, 28 Jan 2025 02:22:45 +0000 (21:22 -0500)]
add and export v3_compat flag for the "files" module
Alan T. DeKok [Mon, 27 Jan 2025 21:26:50 +0000 (16:26 -0500)]
map RHS should be single-quoted string
Alan T. DeKok [Mon, 27 Jan 2025 17:46:59 +0000 (12:46 -0500)]
disable expansion in SQL modules for RHS values of check queries
it turns out to be not particularly useful, and has some corner
cases we're going to avoid for a bit.
As a result, disabled the "attrref" test.
nolade [Fri, 24 Jan 2025 18:44:40 +0000 (13:44 -0500)]
remove merge text
Files Updates to remove merge conflict texts (squashed)
Updated xrefs/hyperlinks and formatting
Index and nav files tweaked to urls resolved. Other hyperlinks fixed & format tweaks.
Alan T. DeKok [Mon, 27 Jan 2025 14:20:13 +0000 (09:20 -0500)]
remove accounting from unix module
no one has used this for a long time
Alan T. DeKok [Mon, 27 Jan 2025 14:15:44 +0000 (09:15 -0500)]
regenerate with inline code
Alan T. DeKok [Mon, 27 Jan 2025 14:14:46 +0000 (09:14 -0500)]
print inline code for virtual servers
Alan T. DeKok [Mon, 27 Jan 2025 13:35:11 +0000 (08:35 -0500)]
remove radutmp, radlast, radwho, and radzap
Many OS's have moved away from using flat-text files for utmp.
Some don't even provide utmp functionality or header files.
I can't remember the last time I ran into someone using radutmp,
even in v3. And I can't recall ever designing a system with
radutmp. It's 2025, and people should use sqlite instead.
Alan T. DeKok [Mon, 27 Jan 2025 12:20:31 +0000 (07:20 -0500)]
better catch corner case of "Framed-User"
Which can end up being parsed as "Framed-User - User". Because:
* '-' is a terminal character, so unescaping of Framed-User stops
at it, and returns "Framed"
* "Framed" is a valid enum name, and is a synonym for Framed-User
* the enum "Framed-User" is then returned, with a trailing sbuff
of "-User"
* the rest is parsed, and the final result is that "Framed-User"
turns into "Framed-User - User".
Nick Porter [Mon, 27 Jan 2025 09:13:40 +0000 (09:13 +0000)]
Avoid noise in log files
Alan T. DeKok [Sun, 26 Jan 2025 19:17:12 +0000 (14:17 -0500)]
complain on empty conditions
update error messages for spelling mistake
batten down the rules for parsing enum names
Alan T. DeKok [Sun, 26 Jan 2025 21:19:14 +0000 (16:19 -0500)]
it helps to set enumv in the value box.
so that when the value is printed, it's printed as the name.
This wasn't needed before, because almost all of the tmpls were
unresolved data, and any printing used the tmpl name.
Alan T. DeKok [Sun, 26 Jan 2025 17:40:52 +0000 (12:40 -0500)]
more errors when tmpl_require_enum_prefix is set
Alan T. DeKok [Sun, 26 Jan 2025 16:38:00 +0000 (11:38 -0500)]
updates for new parsing
map_afrom_cp() now requires that the RHS of !* and =* are ANY,
as with map_afrom_fields()
update the keyword tests to use quoted strings or ::NAME in more
places, which helps with migration away from &
Alan T. DeKok [Sun, 26 Jan 2025 16:07:21 +0000 (11:07 -0500)]
FR_FAULT_LOG() can only take strings
%pR isn't a valid expansion, and even if it was, it doesn't take
value-boxes
Alan T. DeKok [Sun, 26 Jan 2025 15:38:03 +0000 (10:38 -0500)]
cleanups of expression and condition parsing
we need quotes around bare words in more places.
Any explicit cast is NOT passed down when parsing the next thing.
Instead, the next thing is parsed as-is, and then the cast is
applied by the current function. This cleans up a lot of odd cases.
Also add more checks for different tmpl types when casting things
Add '#if 0' out code to complain on unresolved data when parsing.
Changing that will require a bunch of other updates, to add quotes
around bare words.
the tmpl_resolve() function would treat unresolved data as either
enums or strings. That will be changing to require either '::'
prefix on enums, OR quotes around non-attribute bare words.
So (ippadr)* is now invalid, as "*" can't be parsed by
tmpl_afrom_substr(). Instead, we must use (ipaddr)'*'
Alan T. DeKok [Sun, 26 Jan 2025 14:13:04 +0000 (09:13 -0500)]
tail_da might not exist for &reply.
Alan T. DeKok [Sun, 26 Jan 2025 13:00:54 +0000 (08:00 -0500)]
these functions aren't pure
Alan T. DeKok [Fri, 24 Jan 2025 21:03:20 +0000 (16:03 -0500)]
add and use -S require_enum_prefix=yes to unit_test_attribute
all of the protocols pass tests without '&'. The only things
remaining are the condition and xlat tests
Alan T. DeKok [Fri, 24 Jan 2025 21:02:45 +0000 (16:02 -0500)]
remove -a
missed in commit
d711382
Alan T. DeKok [Fri, 24 Jan 2025 19:32:44 +0000 (14:32 -0500)]
remove -a, as we now use xref instead of full path
Alan T. DeKok [Fri, 24 Jan 2025 19:29:28 +0000 (14:29 -0500)]
move to xref instead of hard-coded paths
Alan T. DeKok [Fri, 24 Jan 2025 19:27:34 +0000 (14:27 -0500)]
more shut up Coverity
Alan T. DeKok [Fri, 24 Jan 2025 00:53:31 +0000 (19:53 -0500)]
rename directories to go along with commit
38571c5e
Alan T. DeKok [Thu, 23 Jan 2025 19:08:09 +0000 (14:08 -0500)]
wrap macro fields due to operator precedence
Alan T. DeKok [Thu, 23 Jan 2025 18:02:29 +0000 (13:02 -0500)]
suppress casts of string to string
Alan T. DeKok [Thu, 23 Jan 2025 03:27:01 +0000 (22:27 -0500)]
more cleanups
Alan T. DeKok [Thu, 23 Jan 2025 02:28:35 +0000 (21:28 -0500)]
be a bit more descriptive about what triggered the error
Alan T. DeKok [Thu, 23 Jan 2025 02:18:58 +0000 (21:18 -0500)]
add one more assert for tmpl_require_enum_prefix
all YES to '&' should have been changed to AUTO by the tmpl
tokenizer
Alan T. DeKok [Thu, 23 Jan 2025 01:56:56 +0000 (20:56 -0500)]
print out casts and nested xlats in xlat_debug functions
Alan T. DeKok [Wed, 22 Jan 2025 23:35:20 +0000 (18:35 -0500)]
fix links on index pages
Alan T. DeKok [Wed, 22 Jan 2025 23:33:35 +0000 (18:33 -0500)]
regenerate and fix links
Alan T. DeKok [Wed, 22 Jan 2025 23:24:04 +0000 (18:24 -0500)]
change link to new location
nolade [Tue, 21 Jan 2025 21:27:52 +0000 (16:27 -0500)]
fix file links to conf files
nolade [Tue, 21 Jan 2025 20:46:52 +0000 (15:46 -0500)]
fix in-page links for modules
no kafka.adoc found. Temp remove link if it doesn’t exist
Alan T. DeKok [Wed, 22 Jan 2025 22:25:27 +0000 (17:25 -0500)]
this is no longer needed
Alan T. DeKok [Wed, 22 Jan 2025 20:53:35 +0000 (15:53 -0500)]
fix links in navbar
Alan T. DeKok [Wed, 22 Jan 2025 16:50:46 +0000 (11:50 -0500)]
update docs and rename
after some thought (finally), it makes more sense to drop the
"alias/foo.txt" names, and instead use "v3/dictionary.foo".
It is now clearer that the names are for v3 compatibility.
Alan T. DeKok [Wed, 22 Jan 2025 16:43:48 +0000 (11:43 -0500)]
clarify error message
Alan T. DeKok [Wed, 22 Jan 2025 15:30:12 +0000 (10:30 -0500)]
allow adding files to dictionaries
without specifying the full dictionary path. It doesn't make a lot
of sense to load "radius/foo" when the function is being asked to
load the file into the RADIUS dictionary
Alan T. DeKok [Wed, 22 Jan 2025 15:13:11 +0000 (10:13 -0500)]
move utility function to common location