]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
github-actions[bot] [Wed, 3 Jan 2024 09:34:32 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar

2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Wed, 3 Jan 2024 09:34:28 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar

2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Wed, 3 Jan 2024 09:34:25 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar

2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Wed, 3 Jan 2024 09:34:22 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar

2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
github-actions[bot] [Wed, 3 Jan 2024 09:34:19 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar

2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar
github-actions[bot] [Wed, 3 Jan 2024 09:34:17 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar

2 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar
github-actions[bot] [Wed, 3 Jan 2024 09:34:10 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar

2 years agoRemove vendor name from attribute names
Nick Porter [Fri, 29 Dec 2023 09:12:50 +0000 (09:12 +0000)] 
Remove vendor name from attribute names

2 years agopush all leaf attributes to env pairs
Alan T. DeKok [Tue, 26 Dec 2023 15:55:48 +0000 (10:55 -0500)] 
push all leaf attributes to env pairs

2 years agocatch more corner cases
Alan T. DeKok [Tue, 26 Dec 2023 15:55:32 +0000 (10:55 -0500)] 
catch more corner cases

2 years agodon't use Tmp-* in examples
Alan T. DeKok [Tue, 26 Dec 2023 15:36:30 +0000 (10:36 -0500)] 
don't use Tmp-* in examples

2 years agodon't use Tmp-* in examples
Alan T. DeKok [Tue, 26 Dec 2023 15:33:03 +0000 (10:33 -0500)] 
don't use Tmp-* in examples

2 years agouse local variables in examples
Alan T. DeKok [Tue, 26 Dec 2023 15:31:45 +0000 (10:31 -0500)] 
use local variables in examples

2 years agouse local variables, and not "update"
Alan T. DeKok [Tue, 26 Dec 2023 15:31:26 +0000 (10:31 -0500)] 
use local variables, and not "update"

2 years agoformat, and include in the main dictionaries
Alan T. DeKok [Tue, 26 Dec 2023 13:54:26 +0000 (08:54 -0500)] 
format, and include in the main dictionaries

2 years agonotes on transactional rollbacks
Alan T. DeKok [Tue, 26 Dec 2023 13:51:31 +0000 (08:51 -0500)] 
notes on transactional rollbacks

2 years agoAdded tplink EAP225 radius dictionary
Cheserem Titus [Tue, 26 Dec 2023 10:47:26 +0000 (13:47 +0300)] 
Added tplink EAP225 radius dictionary

When imported the attributes can be viewed in the radius logs. Data limits similar to ChilliSpot-Max-Total-Octets and such are not yet supported but the dictionary can be updated with new attributes as TPLink adds in new feature support on their Devices.

2 years agoreset user_pl if user_list is NULL
Alan T. DeKok [Mon, 25 Dec 2023 15:34:53 +0000 (10:34 -0500)] 
reset user_pl if user_list is NULL

2 years agomore sanity checks on operators
Alan T. DeKok [Mon, 25 Dec 2023 15:01:37 +0000 (10:01 -0500)] 
more sanity checks on operators

2 years agotypo
Alan T. DeKok [Mon, 25 Dec 2023 14:27:03 +0000 (09:27 -0500)] 
typo

2 years agoupdate, clarify, and add cross-references
Alan T. DeKok [Mon, 25 Dec 2023 14:14:34 +0000 (09:14 -0500)] 
update, clarify, and add cross-references

2 years agomore functionality for relative attributes
Alan T. DeKok [Mon, 25 Dec 2023 13:58:26 +0000 (08:58 -0500)] 
more functionality for relative attributes

allow my_struct = {}.  We will add child pairs later.

set the parent properly if the current attribute is structural

2 years agoreset the relative map for each entry
Alan T. DeKok [Mon, 25 Dec 2023 13:39:47 +0000 (08:39 -0500)] 
reset the relative map for each entry

2 years agowe don't need an intermediate list
Alan T. DeKok [Mon, 25 Dec 2023 13:11:07 +0000 (08:11 -0500)] 
we don't need an intermediate list

2 years agomove to internal function for things which don't need to be public
Alan T. DeKok [Mon, 25 Dec 2023 13:07:26 +0000 (08:07 -0500)] 
move to internal function for things which don't need to be public

2 years agoPython: discard extraneous parentheses
Dimitri Papadopoulos [Wed, 20 Dec 2023 20:44:41 +0000 (21:44 +0100)] 
Python: discard extraneous parentheses

2 years agoPython: `super()` does not require arguments any more
Dimitri Papadopoulos [Wed, 20 Dec 2023 20:43:16 +0000 (21:43 +0100)] 
Python: `super()` does not require arguments any more

2 years agoPython: remove Python 2 leftovers
Dimitri Papadopoulos [Wed, 20 Dec 2023 20:38:38 +0000 (21:38 +0100)] 
Python: remove Python 2 leftovers

* The default source encoding is implictly UTF-8 in Python 3.
  No need to explictly declare  the encoding.
* In Python 3, `print` is a function. Do not attempt to force that.

2 years agoPython: use raw string for regex that contains `\`
Dimitri Papadopoulos [Wed, 20 Dec 2023 20:36:35 +0000 (21:36 +0100)] 
Python: use raw string for regex that contains `\`

2 years agoFix typos in src (#5257)
Dimitri Papadopoulos Orfanos [Mon, 25 Dec 2023 11:39:19 +0000 (12:39 +0100)] 
Fix typos in src (#5257)

* Fix typos in src

Misspellings found by codespell.

* Fix issue found by reviewer

* Update src/lib/unlang/try_priv.h

Co-authored-by: Dimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com>
---------

Co-authored-by: Arran Cudbard-Bell <a.cudbardb@freeradius.org>
2 years agothe files module now supports "undo" for failed operations
Alan T. DeKok [Sun, 24 Dec 2023 17:04:59 +0000 (12:04 -0500)] 
the files module now supports "undo" for failed operations

2 years agotypo
Alan T. DeKok [Sun, 24 Dec 2023 13:58:06 +0000 (08:58 -0500)] 
typo

2 years agoupdate docs for relative attributes
Alan T. DeKok [Sun, 24 Dec 2023 13:42:27 +0000 (08:42 -0500)] 
update docs for relative attributes

2 years agoresync
Alan T. DeKok [Sun, 24 Dec 2023 13:41:56 +0000 (08:41 -0500)] 
resync

2 years agoadd radius_legacy_map_list_apply() and use it in sql and files
Alan T. DeKok [Sun, 24 Dec 2023 12:54:03 +0000 (07:54 -0500)] 
add radius_legacy_map_list_apply() and use it in sql and files

2 years agohoist next shortest prefix out of main loop
Alan T. DeKok [Sun, 24 Dec 2023 12:48:35 +0000 (07:48 -0500)] 
hoist next shortest prefix out of main loop

2 years agomore cleanups to use edit lists
Alan T. DeKok [Sun, 24 Dec 2023 12:10:33 +0000 (07:10 -0500)] 
more cleanups to use edit lists

a few more places where we weren't calling the edit list functions.

hoist cursor code so that we only call it once when needed

2 years agotypo
Alan T. DeKok [Sun, 24 Dec 2023 03:44:45 +0000 (22:44 -0500)] 
typo

2 years agotmpl_find_vp() returns -1 for "list/request OK, but no VP"
Alan T. DeKok [Sun, 24 Dec 2023 03:29:22 +0000 (22:29 -0500)] 
tmpl_find_vp() returns -1 for "list/request OK, but no VP"

2 years agouse tmpls and cursors instead of pair nested functions
Alan T. DeKok [Sun, 24 Dec 2023 02:17:20 +0000 (21:17 -0500)] 
use tmpls and cursors instead of pair nested functions

which then respects array indexes, and sets us up for using the
edit lists.

2 years agoclean up handling of := deletion
Alan T. DeKok [Sun, 24 Dec 2023 01:22:09 +0000 (20:22 -0500)] 
clean up handling of := deletion

2 years agodon't init the pairs, it's not needed
Alan T. DeKok [Sat, 23 Dec 2023 22:35:47 +0000 (17:35 -0500)] 
don't init the pairs, it's not needed

2 years agoclean up and simplify
Alan T. DeKok [Sat, 23 Dec 2023 19:50:14 +0000 (14:50 -0500)] 
clean up and simplify

along with notes that &foo[1].bar[2]... isn't supported.

and we should really move some of the functionality to the edit
code, except that the callers (rlm_files and rlm_sql) don't expect
this function to return UNLANG_ACTION_PUSHED_CHILD

2 years agois RHS of struct assignment is xlat, cast it to a string
Alan T. DeKok [Sat, 23 Dec 2023 19:48:55 +0000 (14:48 -0500)] 
is RHS of struct assignment is xlat, cast it to a string

so that radius_legacy_map_apply() doesn't have to do much else

2 years agore-add support for nested attributes via ".foo" notation
Alan T. DeKok [Sat, 23 Dec 2023 14:24:47 +0000 (09:24 -0500)] 
re-add support for nested attributes via ".foo" notation

2 years agoprepare for nested maps in SQL
Alan T. DeKok [Fri, 22 Dec 2023 14:57:43 +0000 (09:57 -0500)] 
prepare for nested maps in SQL

the radius_legacy_map_apply() function doesn't support them yet,
but that's no longer difficult.

2 years agoBroken link in unlang doc
James Jones [Thu, 21 Dec 2023 20:04:50 +0000 (14:04 -0600)] 
Broken link in unlang doc

builtin.adoc is in the same directory as function.adoc

2 years agoName only attributes can be encoded as per commit 7f9e643e4e6b3ad7
Nick Porter [Fri, 22 Dec 2023 10:18:10 +0000 (10:18 +0000)] 
Name only attributes can be encoded as per commit 7f9e643e4e6b3ad7

2 years agoLDAP sync cookies contain all contextCSN values separated by ';'
Nick Porter [Fri, 22 Dec 2023 10:13:23 +0000 (10:13 +0000)] 
LDAP sync cookies contain all contextCSN values separated by ';'

2 years ago-Wunused
Alan T. DeKok [Fri, 22 Dec 2023 01:26:47 +0000 (20:26 -0500)] 
-Wunused

2 years agoremove dead code after commit 742e7f9a7f662b0f
Alan T. DeKok [Fri, 22 Dec 2023 00:55:52 +0000 (19:55 -0500)] 
remove dead code after commit 742e7f9a7f662b0f

2 years agoremove dead code
Alan T. DeKok [Fri, 22 Dec 2023 00:54:23 +0000 (19:54 -0500)] 
remove dead code

2 years agoshut up spurious Coverity complaints
Alan T. DeKok [Fri, 22 Dec 2023 00:53:21 +0000 (19:53 -0500)] 
shut up spurious Coverity complaints

2 years agoensure talloc parenting is OK
Alan T. DeKok [Thu, 21 Dec 2023 17:46:55 +0000 (12:46 -0500)] 
ensure talloc parenting is OK

2 years agoclean up corner cases
Alan T. DeKok [Thu, 21 Dec 2023 16:39:40 +0000 (11:39 -0500)] 
clean up corner cases

we don't allow comparison or assignment operators in child maps.
the legacy map cmp / apply functions don't handle that.

we don't allow expandable strings on the LHS. The legacy map
functions don't handle that, either.

2 years agoTypo
James Jones [Thu, 21 Dec 2023 17:05:13 +0000 (11:05 -0600)] 
Typo

Corrects description of octal escape in unlang double quoted strings

2 years agomove exec to new radius_legacy_map_apply() API
Alan T. DeKok [Thu, 21 Dec 2023 15:59:04 +0000 (10:59 -0500)] 
move exec to new radius_legacy_map_apply() API

2 years agoupdate comment to refer to newer code
Alan T. DeKok [Thu, 21 Dec 2023 14:37:58 +0000 (09:37 -0500)] 
update comment to refer to newer code

2 years agoupdate code and documentation for structural attributes in "users"
Alan T. DeKok [Thu, 21 Dec 2023 14:34:53 +0000 (09:34 -0500)] 
update code and documentation for structural attributes in "users"

2 years agoRework base64 keyword test to use local variables
Nick Porter [Thu, 21 Dec 2023 14:06:36 +0000 (14:06 +0000)] 
Rework base64 keyword test to use local variables

2 years agoupdate for string expansions on RHS of SQL
Alan T. DeKok [Thu, 21 Dec 2023 12:56:10 +0000 (07:56 -0500)] 
update for string expansions on RHS of SQL

and add tests

2 years agoallow attribute references for SQL, too
Alan T. DeKok [Thu, 21 Dec 2023 12:17:56 +0000 (07:17 -0500)] 
allow attribute references for SQL, too

2 years agono reason to close the connection after 2 uses
Alan T. DeKok [Thu, 21 Dec 2023 12:17:29 +0000 (07:17 -0500)] 
no reason to close the connection after 2 uses

2 years agoadd "make doc.raddb" target to auto-generate raddb files
Alan T. DeKok [Thu, 21 Dec 2023 11:55:20 +0000 (06:55 -0500)] 
add "make doc.raddb" target to auto-generate raddb files

2 years agorefresh antora documentation
Matthew Newton [Thu, 21 Dec 2023 11:07:52 +0000 (11:07 +0000)] 
refresh antora documentation

2 years agoFix typos in scripts
Dimitri Papadopoulos [Thu, 21 Dec 2023 09:08:00 +0000 (10:08 +0100)] 
Fix typos in scripts

Misspellings found by codespell.

I have left out files that appear to have been generated, such as:
scripts/boiler.mk
which has been generated from:
https://github.com/dmoulding/boilermake

2 years agoFix typos in documentation
Dimitri Papadopoulos [Wed, 20 Dec 2023 20:59:22 +0000 (21:59 +0100)] 
Fix typos in documentation

Misspellings found by codespell.

2 years agoFix typos in raddb
Dimitri Papadopoulos [Thu, 21 Dec 2023 08:40:55 +0000 (09:40 +0100)] 
Fix typos in raddb

Misspellings found by codespell.

2 years agoFix typos in assorted build files
Dimitri Papadopoulos [Thu, 21 Dec 2023 09:46:35 +0000 (10:46 +0100)] 
Fix typos in assorted build files

Misspellings found by codespell.

I have left out generated files such as:
configure
debian/rules

2 years agoFix typos in man
Dimitri Papadopoulos [Thu, 21 Dec 2023 09:38:47 +0000 (10:38 +0100)] 
Fix typos in man

Misspellings found by codespell.

2 years agoFix typos in share/dictionary
Dimitri Papadopoulos [Thu, 21 Dec 2023 09:32:46 +0000 (10:32 +0100)] 
Fix typos in share/dictionary

Misspellings found by codespell.

2 years agotypo in prototype (#5236)
James Jones [Thu, 21 Dec 2023 03:54:38 +0000 (21:54 -0600)] 
typo in prototype (#5236)

No semantic difference, but once you see it you can't unsee it.

2 years agofix the Null pointer dereference: prefix (#5251)
zengwei2000 [Thu, 21 Dec 2023 03:51:03 +0000 (11:51 +0800)] 
fix the Null pointer dereference: prefix (#5251)

fix the Null pointer dereference: prefix

Signed-off-by: zengwei zengwei1@uniontech.com
Signed-off-by: zengwei zengwei1@uniontech.com
2 years agorevert recent changes
Alan T. DeKok [Thu, 21 Dec 2023 02:24:53 +0000 (21:24 -0500)] 
revert recent changes

until they can be addressed a different way

Commits f1f7f31b5fa15bc5a97bec2, and 182209360

2 years agotry to quiet scanner
Alan T. DeKok [Thu, 21 Dec 2023 01:16:05 +0000 (20:16 -0500)] 
try to quiet scanner

2 years agoreturn on error or correct parse. Ignore noop
Alan T. DeKok [Thu, 21 Dec 2023 00:59:18 +0000 (19:59 -0500)] 
return on error or correct parse.  Ignore noop

2 years agolist is only NULL when ctx is NULL
Alan T. DeKok [Wed, 20 Dec 2023 22:38:09 +0000 (17:38 -0500)] 
list is only NULL when ctx is NULL

2 years agostruct fixes for radius_legacy_map_apply()
Alan T. DeKok [Wed, 20 Dec 2023 22:33:52 +0000 (17:33 -0500)] 
struct fixes for radius_legacy_map_apply()

parse structs from RHS strings

and various other cleanups

relative attributes on multiple lines in SQL aren't supported.

inter-attribute copies are permitted for structural types

tests still need to be finalized

2 years agostart of allowing structural attributes in legacy pairmove
Alan T. DeKok [Wed, 20 Dec 2023 21:48:43 +0000 (16:48 -0500)] 
start of allowing structural attributes in legacy pairmove

2 years agomore sanity checks
Alan T. DeKok [Wed, 20 Dec 2023 21:47:36 +0000 (16:47 -0500)] 
more sanity checks

2 years agohoist run-time checks to tmpl_afrom_value_substr()
Alan T. DeKok [Wed, 20 Dec 2023 19:58:14 +0000 (14:58 -0500)] 
hoist run-time checks to tmpl_afrom_value_substr()

because the same logic has to run in multiple places

2 years agoEnsure we have a list
Nick Porter [Wed, 20 Dec 2023 17:22:53 +0000 (17:22 +0000)] 
Ensure we have a list

2 years agolimitations have mostly been removed
Alan T. DeKok [Wed, 20 Dec 2023 16:06:52 +0000 (11:06 -0500)] 
limitations have mostly been removed

2 years agore-enable nested (sort of)
Alan T. DeKok [Wed, 20 Dec 2023 15:41:40 +0000 (10:41 -0500)] 
re-enable nested (sort of)

for now, only create an empty structural attribute.  Don't parse
the RHS as a list of pairs.  Don't allow relative names like
".foo"

2 years agoupdate depdendicies so rlm_sql is rebuilt before running sql tests
Alan T. DeKok [Wed, 20 Dec 2023 15:34:18 +0000 (10:34 -0500)] 
update depdendicies so rlm_sql is rebuilt before running sql tests

2 years agorename for clarity
Alan T. DeKok [Wed, 20 Dec 2023 15:12:30 +0000 (10:12 -0500)] 
rename for clarity

2 years agoupdate to use maps instead of vps
Alan T. DeKok [Wed, 20 Dec 2023 15:05:35 +0000 (10:05 -0500)] 
update to use maps instead of vps

call map_afrom_fields() for the various SQL fields.

call radius_legacy_map_cmp() and radius_legacy_map_apply() to
do the actual work.

It does not currently handle nested attributes, so the nested
tests have been omitted.  It also needs some minor cleanups

2 years agoadd map_afrom_fields() which will be used by SQL
Alan T. DeKok [Wed, 20 Dec 2023 15:04:51 +0000 (10:04 -0500)] 
add map_afrom_fields() which will be used by SQL

2 years agoif we can't find the vp, add it when requested
Alan T. DeKok [Wed, 20 Dec 2023 14:12:12 +0000 (09:12 -0500)] 
if we can't find the vp, add it when requested

2 years agoleave fewer unresolved tmpls at runtime
Alan T. DeKok [Wed, 20 Dec 2023 14:10:25 +0000 (09:10 -0500)] 
leave fewer unresolved tmpls at runtime

If it's runtime, then we know an enum name can't possibly match
at some point in the future.  We we just parse it now as the
expected data type.

2 years agore-add !* and =* for backwards compatibility
Alan T. DeKok [Tue, 19 Dec 2023 19:47:04 +0000 (14:47 -0500)] 
re-add !* and =* for backwards compatibility

2 years agouse consistent filenames
Alan T. DeKok [Tue, 19 Dec 2023 15:04:24 +0000 (10:04 -0500)] 
use consistent filenames

2 years agoauto-link files in doc/antora
Alan T. DeKok [Tue, 19 Dec 2023 14:05:16 +0000 (09:05 -0500)] 
auto-link files in doc/antora

so that the input file can give the full filename, but the asciidoc
files contain a proper antora xref link

2 years agoupdate and clarify the documentation
Alan T. DeKok [Tue, 19 Dec 2023 13:30:12 +0000 (08:30 -0500)] 
update and clarify the documentation

2 years agoconfigure: Fix type of argument to backtrace_symbols
Florian Weimer [Tue, 19 Dec 2023 06:56:42 +0000 (07:56 +0100)] 
configure: Fix type of argument to backtrace_symbols

The backtrace_symbols function expects a pointer to an array of
void * values, not a pointer to an array of a single element.
Removing the address operator ensures that the right type is used.

This avoids an unconditional failure of this probe with compilers
that treat incompatible pointer types as a compilation error.

2 years agoRemove man page from RHEL packaging
Nick Porter [Tue, 19 Dec 2023 08:02:14 +0000 (08:02 +0000)] 
Remove man page from RHEL packaging

2 years agoadd new-style documentation, and remove the old docs
Alan T. DeKok [Tue, 19 Dec 2023 01:43:36 +0000 (20:43 -0500)] 
add new-style documentation, and remove the old docs

2 years agoadd notes on automatic casting
Alan T. DeKok [Tue, 19 Dec 2023 01:14:10 +0000 (20:14 -0500)] 
add notes on automatic casting

2 years ago<cast> is not supported
Alan T. DeKok [Mon, 18 Dec 2023 23:57:31 +0000 (18:57 -0500)] 
<cast> is not supported

2 years agoadd more data types to htrie hint
Alan T. DeKok [Mon, 18 Dec 2023 23:14:45 +0000 (18:14 -0500)] 
add more data types to htrie hint