]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Wed, 5 Feb 2025 09:35:01 +0000 (09:35 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Wed, 5 Feb 2025 09:34:43 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Wed, 5 Feb 2025 09:34:40 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar
github-actions[bot] [Wed, 5 Feb 2025 09:34:35 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar
github-actions[bot] [Wed, 5 Feb 2025 09:34:25 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar
github-actions[bot] [Wed, 5 Feb 2025 09:34:22 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
github-actions[bot] [Wed, 5 Feb 2025 09:34:19 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar

6 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Wed, 5 Feb 2025 09:34:16 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar

6 months agoUse expression evaluation in place of map for LDAP profile condition
Nick Porter [Tue, 4 Feb 2025 20:21:09 +0000 (20:21 +0000)] 
Use expression evaluation in place of map for LDAP profile condition

6 months agodo more compile-time checks of values.
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.

6 months agoNo need to do key="%{User-Name}". We can just do key=User-Name
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

6 months agobetter error message when parsing time deltas
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

6 months agoclean up attribute parsing.
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.

6 months agoset attribute prefix to AUTO
Alan T. DeKok [Sat, 1 Feb 2025 14:37:29 +0000 (09:37 -0500)] 
set attribute prefix to AUTO

6 months agoremove '&' again
Alan T. DeKok [Sat, 1 Feb 2025 14:24:12 +0000 (09:24 -0500)] 
remove '&' again

6 months agoremove '&' again
Alan T. DeKok [Sat, 1 Feb 2025 14:22:32 +0000 (09:22 -0500)] 
remove '&' again

6 months agoremove '&' 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

6 months agocheck input rules, and not output tmpl
Alan T. DeKok [Sat, 1 Feb 2025 14:19:57 +0000 (09:19 -0500)] 
check input rules, and not output tmpl

6 months agodon't modify tmpl_require_enum_prefix here.
Alan T. DeKok [Sat, 1 Feb 2025 14:17:58 +0000 (09:17 -0500)] 
don't modify tmpl_require_enum_prefix here.

6 months agore-add '&' to get the tests to pass
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.[*])

6 months agoregenerate from raddb source
Alan T. DeKok [Fri, 31 Jan 2025 19:22:36 +0000 (14:22 -0500)] 
regenerate from raddb source

6 months agotweaks to make Antora happier
Alan T. DeKok [Fri, 31 Jan 2025 19:21:55 +0000 (14:21 -0500)] 
tweaks to make Antora happier

6 months agojust remove unused lines
Alan T. DeKok [Fri, 31 Jan 2025 19:10:14 +0000 (14:10 -0500)] 
just remove unused lines

6 months agoMoved Installation module to under the Howto module
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

6 months agominor typos
Alan T. DeKok [Fri, 31 Jan 2025 19:02:57 +0000 (14:02 -0500)] 
minor typos

6 months agoUpdate ldap auth file. Modified nav files and lots of xref stuff Resolved filepaths...
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

6 months agoupdate and document migration flags
Alan T. DeKok [Fri, 31 Jan 2025 17:31:36 +0000 (12:31 -0500)] 
update and document migration flags

6 months agoremove require_enum_prefixi=yes from config in tests
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

6 months agoreply items can only have assignment operators
Alan T. DeKok [Fri, 31 Jan 2025 12:33:14 +0000 (07:33 -0500)] 
reply items can only have assignment operators

6 months agoclean up last bits of "&" manually
Alan T. DeKok [Fri, 31 Jan 2025 12:12:22 +0000 (07:12 -0500)] 
clean up last bits of "&" manually

6 months agoremove '&' from virtual servers
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

6 months agoremove the couchbase module.
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

6 months agoremove & from debug messages
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

6 months agoadd :: to enum names
Alan T. DeKok [Thu, 30 Jan 2025 17:13:05 +0000 (12:13 -0500)] 
add :: to enum names

6 months agoswap to get rid of &
Alan T. DeKok [Thu, 30 Jan 2025 17:02:13 +0000 (12:02 -0500)] 
swap to get rid of &

6 months agoMake the new ::ENUM syntax the default
Alan T. DeKok [Thu, 30 Jan 2025 16:29:07 +0000 (11:29 -0500)] 
Make the new ::ENUM syntax the default

6 months agouse single quotes
Alan T. DeKok [Thu, 30 Jan 2025 16:46:59 +0000 (11:46 -0500)] 
use single quotes

6 months agoensure that unknown DA's aren't parented from the NULL ctx
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.

6 months agoadd cbor
Alan T. DeKok [Thu, 30 Jan 2025 16:00:02 +0000 (11:00 -0500)] 
add cbor

6 months agoremove dead code
Alan T. DeKok [Thu, 30 Jan 2025 15:49:08 +0000 (10:49 -0500)] 
remove dead code

6 months agowe should free node before exiting
Alan T. DeKok [Thu, 30 Jan 2025 15:46:46 +0000 (10:46 -0500)] 
we should free node before exiting

6 months agoprint out -S flag, too
Alan T. DeKok [Thu, 30 Jan 2025 15:46:24 +0000 (10:46 -0500)] 
print out -S flag, too

6 months agomove unit tests to run without "&"
Alan T. DeKok [Thu, 30 Jan 2025 14:14:40 +0000 (09:14 -0500)] 
move unit tests to run without "&"

6 months agoThe abfab project is dead. Remove all references to abfab
Alan T. DeKok [Wed, 29 Jan 2025 21:29:28 +0000 (16:29 -0500)] 
The abfab project is dead.  Remove all references to abfab

6 months agoUpdated nav files and lots of xref stuff Resolved filepaths for files in the referenc...
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

6 months agoDoxygen fixes
Nick Porter [Wed, 29 Jan 2025 15:51:43 +0000 (15:51 +0000)] 
Doxygen fixes

6 months agoAdd basic test of LDAP profile check_attribute
Nick Porter [Wed, 29 Jan 2025 15:37:28 +0000 (15:37 +0000)] 
Add basic test of LDAP profile check_attribute

6 months agoAdd check attribute processing to rlm_ldap profile handling
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.

6 months agoAdd radiusProfileCondition to LDAP schema
Nick Porter [Wed, 29 Jan 2025 11:38:25 +0000 (11:38 +0000)] 
Add radiusProfileCondition to LDAP schema

6 months agoTypo
Nick Porter [Wed, 29 Jan 2025 11:34:25 +0000 (11:34 +0000)] 
Typo

6 months agoAdd profile check attr to LDAP search request maps
Nick Porter [Wed, 29 Jan 2025 11:28:39 +0000 (11:28 +0000)] 
Add profile check attr to LDAP search request maps

6 months agoAdd check_attribute to rlm_ldap profile section
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

6 months agoTest profile sorting in LDAP
Nick Porter [Tue, 28 Jan 2025 11:00:36 +0000 (11:00 +0000)] 
Test profile sorting in LDAP

6 months agoLoad service side sort overlay in CI LDAP server
Nick Porter [Tue, 28 Jan 2025 10:57:12 +0000 (10:57 +0000)] 
Load service side sort overlay in CI LDAP server

6 months agoAdd profile sort_by to sample LDAP module config
Nick Porter [Tue, 28 Jan 2025 10:56:05 +0000 (10:56 +0000)] 
Add profile sort_by to sample LDAP module config

6 months agoAdd radiusProfilePriority attribute to LDAP schema
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

6 months agoUse server side sort control when fetching profiles
Nick Porter [Tue, 28 Jan 2025 10:35:16 +0000 (10:35 +0000)] 
Use server side sort control when fetching profiles

6 months agoAdd sort_by option to rlm_ldap profile section
Nick Porter [Tue, 28 Jan 2025 10:34:03 +0000 (10:34 +0000)] 
Add sort_by option to rlm_ldap profile section

6 months agoadd aliases for Cleartext-Password, etc.
Alan T. DeKok [Tue, 28 Jan 2025 02:50:53 +0000 (21:50 -0500)] 
add aliases for Cleartext-Password, etc.

6 months agoadd and export v3_compat flag for the "files" module
Alan T. DeKok [Tue, 28 Jan 2025 02:22:45 +0000 (21:22 -0500)] 
add and export v3_compat flag for the "files" module

6 months agomap RHS should be single-quoted string
Alan T. DeKok [Mon, 27 Jan 2025 21:26:50 +0000 (16:26 -0500)] 
map RHS should be single-quoted string

6 months agodisable expansion in SQL modules for RHS values of check queries
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.

6 months agoremove merge text
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.

6 months agoremove accounting from unix module
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

6 months agoregenerate with inline code
Alan T. DeKok [Mon, 27 Jan 2025 14:15:44 +0000 (09:15 -0500)] 
regenerate with inline code

6 months agoprint inline code for virtual servers
Alan T. DeKok [Mon, 27 Jan 2025 14:14:46 +0000 (09:14 -0500)] 
print inline code for virtual servers

6 months agoremove radutmp, radlast, radwho, and radzap
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.

6 months agobetter catch corner case of "Framed-User"
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".

6 months agoAvoid noise in log files
Nick Porter [Mon, 27 Jan 2025 09:13:40 +0000 (09:13 +0000)] 
Avoid noise in log files

6 months agocomplain on empty conditions
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

6 months agoit helps to set enumv in the value box.
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.

6 months agomore errors when tmpl_require_enum_prefix is set
Alan T. DeKok [Sun, 26 Jan 2025 17:40:52 +0000 (12:40 -0500)] 
more errors when tmpl_require_enum_prefix is set

6 months agoupdates for new parsing
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 &

6 months agoFR_FAULT_LOG() can only take strings
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

6 months agocleanups of expression and condition parsing
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)'*'

6 months agotail_da might not exist for &reply.
Alan T. DeKok [Sun, 26 Jan 2025 14:13:04 +0000 (09:13 -0500)] 
tail_da might not exist for &reply.

6 months agothese functions aren't pure
Alan T. DeKok [Sun, 26 Jan 2025 13:00:54 +0000 (08:00 -0500)] 
these functions aren't pure

6 months agoadd and use -S require_enum_prefix=yes to unit_test_attribute
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

6 months agoremove -a
Alan T. DeKok [Fri, 24 Jan 2025 21:02:45 +0000 (16:02 -0500)] 
remove -a

missed in commit d711382

6 months agoremove -a, as we now use xref instead of full path
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

6 months agomove to xref instead of hard-coded paths
Alan T. DeKok [Fri, 24 Jan 2025 19:29:28 +0000 (14:29 -0500)] 
move to xref instead of hard-coded paths

6 months agomore shut up Coverity
Alan T. DeKok [Fri, 24 Jan 2025 19:27:34 +0000 (14:27 -0500)] 
more shut up Coverity

6 months agorename directories to go along with commit 38571c5e
Alan T. DeKok [Fri, 24 Jan 2025 00:53:31 +0000 (19:53 -0500)] 
rename directories to go along with commit 38571c5e

6 months agowrap macro fields due to operator precedence
Alan T. DeKok [Thu, 23 Jan 2025 19:08:09 +0000 (14:08 -0500)] 
wrap macro fields due to operator precedence

6 months agosuppress casts of string to string
Alan T. DeKok [Thu, 23 Jan 2025 18:02:29 +0000 (13:02 -0500)] 
suppress casts of string to string

6 months agomore cleanups
Alan T. DeKok [Thu, 23 Jan 2025 03:27:01 +0000 (22:27 -0500)] 
more cleanups

6 months agobe a bit more descriptive about what triggered the error
Alan T. DeKok [Thu, 23 Jan 2025 02:28:35 +0000 (21:28 -0500)] 
be a bit more descriptive about what triggered the error

6 months agoadd one more assert for tmpl_require_enum_prefix
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

6 months agoprint out casts and nested xlats in xlat_debug functions
Alan T. DeKok [Thu, 23 Jan 2025 01:56:56 +0000 (20:56 -0500)] 
print out casts and nested xlats in xlat_debug functions

6 months agofix links on index pages
Alan T. DeKok [Wed, 22 Jan 2025 23:35:20 +0000 (18:35 -0500)] 
fix links on index pages

6 months agoregenerate and fix links
Alan T. DeKok [Wed, 22 Jan 2025 23:33:35 +0000 (18:33 -0500)] 
regenerate and fix links

6 months agochange link to new location
Alan T. DeKok [Wed, 22 Jan 2025 23:24:04 +0000 (18:24 -0500)] 
change link to new location

6 months agofix file links to conf files
nolade [Tue, 21 Jan 2025 21:27:52 +0000 (16:27 -0500)] 
fix file links to conf files

6 months agofix in-page links for modules
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

6 months agothis is no longer needed
Alan T. DeKok [Wed, 22 Jan 2025 22:25:27 +0000 (17:25 -0500)] 
this is no longer needed

7 months agofix links in navbar
Alan T. DeKok [Wed, 22 Jan 2025 20:53:35 +0000 (15:53 -0500)] 
fix links in navbar

7 months agoupdate docs and rename
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.

7 months agoclarify error message
Alan T. DeKok [Wed, 22 Jan 2025 16:43:48 +0000 (11:43 -0500)] 
clarify error message

7 months agoallow adding files to dictionaries
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

7 months agomove utility function to common location
Alan T. DeKok [Wed, 22 Jan 2025 15:13:11 +0000 (10:13 -0500)] 
move utility function to common location