]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
16 months agoRemove references to old RHEL versions from packaging
Nick Porter [Mon, 22 Apr 2024 16:31:51 +0000 (17:31 +0100)] 
Remove references to old RHEL versions from packaging

16 months agoSome MariaDB installations use mariadb_config in place of mysql_config
Nick Porter [Mon, 22 Apr 2024 15:22:28 +0000 (16:22 +0100)] 
Some MariaDB installations use mariadb_config in place of mysql_config

16 months agoRemove call to sql_num_fields() which does nothing
Nick Porter [Mon, 22 Apr 2024 11:13:17 +0000 (12:13 +0100)] 
Remove call to sql_num_fields() which does nothing

16 months agoNothing we build FRv4 on has MySQL < 5.7
Nick Porter [Mon, 22 Apr 2024 10:49:44 +0000 (11:49 +0100)] 
Nothing we build FRv4 on has MySQL < 5.7

And the options difference for MariaDB is `MYSQL_OPT_SSL_MODE` doesn't
exist - the other MYSQL_OPT_SSL options do exist.

16 months agoMinor re-arrangement to pacify Coverity (CID #1596468)
Nick Porter [Thu, 18 Apr 2024 09:16:19 +0000 (10:16 +0100)] 
Minor re-arrangement to pacify Coverity (CID #1596468)

16 months agoUse function for conf error with marker
Nick Porter [Wed, 17 Apr 2024 10:17:02 +0000 (11:17 +0100)] 
Use function for conf error with marker

16 months agoSQL box escaping function is really a fr_value_box_escape_t
Nick Porter [Tue, 16 Apr 2024 16:58:28 +0000 (17:58 +0100)] 
SQL box escaping function is really a fr_value_box_escape_t

16 months agoPass module instance data to call env section custom parser
Nick Porter [Tue, 16 Apr 2024 16:42:10 +0000 (17:42 +0100)] 
Pass module instance data to call env section custom parser

16 months agoTidy up
Nick Porter [Tue, 16 Apr 2024 18:37:06 +0000 (19:37 +0100)] 
Tidy up

16 months agoRetain matched name1/name2
Nick Porter [Tue, 16 Apr 2024 18:26:23 +0000 (19:26 +0100)] 
Retain matched name1/name2

16 months agoReturn correct pointer for name1
Nick Porter [Tue, 16 Apr 2024 13:10:34 +0000 (14:10 +0100)] 
Return correct pointer for name1

16 months agoAlso pass section_name1 and section_name2 to custom call env section parser
Nick Porter [Tue, 16 Apr 2024 09:35:35 +0000 (10:35 +0100)] 
Also pass section_name1 and section_name2 to custom call env section parser

16 months agoPass section name1 and name2 to call env parsing for module calls
Nick Porter [Fri, 12 Apr 2024 14:39:58 +0000 (15:39 +0100)] 
Pass section name1 and name2 to call env parsing for module calls

And pass these onto the pair parsing functions

16 months agoAllow for mulit-pair call env to produce array of pointers
Nick Porter [Fri, 12 Apr 2024 10:20:11 +0000 (11:20 +0100)] 
Allow for mulit-pair call env to produce array of pointers

where the pointers to the original tmpl or pointer produced by custom
parser are required.

16 months agoPacify clang scan
Nick Porter [Wed, 10 Apr 2024 15:42:28 +0000 (16:42 +0100)] 
Pacify clang scan

16 months agosimul check queries are no longer in use
Nick Porter [Wed, 10 Apr 2024 14:22:00 +0000 (15:22 +0100)] 
simul check queries are no longer in use

16 months agoadd pending list
Alan T. DeKok [Tue, 16 Apr 2024 18:12:20 +0000 (14:12 -0400)] 
add pending list

16 months agoadd get_item API
Alan T. DeKok [Mon, 15 Apr 2024 18:04:45 +0000 (14:04 -0400)] 
add get_item API

16 months agowe can release a partially written packet
Alan T. DeKok [Mon, 15 Apr 2024 17:57:45 +0000 (13:57 -0400)] 
we can release a partially written packet

16 months agoset TCP_NODELAY by default
Alan T. DeKok [Mon, 15 Apr 2024 15:59:50 +0000 (11:59 -0400)] 
set TCP_NODELAY by default

16 months agofirst try at server-side dedup
Alan T. DeKok [Mon, 15 Apr 2024 13:17:15 +0000 (09:17 -0400)] 
first try at server-side dedup

16 months agoremove old code
Alan T. DeKok [Sun, 14 Apr 2024 14:31:35 +0000 (10:31 -0400)] 
remove old code

copied from radius, and then never updated to remove all traces
of radius

16 months agorename to be clearer
Alan T. DeKok [Sun, 14 Apr 2024 13:01:03 +0000 (09:01 -0400)] 
rename to be clearer

and update list of allowed replies

16 months agoenforce allowed list of packets in verify callback
Alan T. DeKok [Sun, 14 Apr 2024 12:59:48 +0000 (08:59 -0400)] 
enforce allowed list of packets in verify callback

which let us drop bad packets earlier in the process

16 months agoAPI to update array of allowed replies
Alan T. DeKok [Sun, 14 Apr 2024 12:58:51 +0000 (08:58 -0400)] 
API to update array of allowed replies

16 months agocatch more corner cases
Alan T. DeKok [Thu, 11 Apr 2024 19:24:58 +0000 (15:24 -0400)] 
catch more corner cases

return WOULD_BLOCK error instead of 0

16 months agomove resend etc. so the loop actually finishes
Alan T. DeKok [Thu, 11 Apr 2024 17:48:56 +0000 (13:48 -0400)] 
move resend etc. so the loop actually finishes

16 months agominor cleanups
Alan T. DeKok [Thu, 11 Apr 2024 16:09:34 +0000 (12:09 -0400)] 
minor cleanups

16 months agominor cleanups
Alan T. DeKok [Wed, 10 Apr 2024 14:50:47 +0000 (10:50 -0400)] 
minor cleanups

16 months agoInst should be const
Arran Cudbard-Bell [Mon, 15 Apr 2024 03:45:18 +0000 (23:45 -0400)] 
Inst should be const

16 months agoSupport custom key callenv parsers in rlm_cache
Arran Cudbard-Bell [Mon, 15 Apr 2024 03:22:21 +0000 (23:22 -0400)] 
Support custom key callenv parsers in rlm_cache

16 months agoAdd function to retrieve the cast type
Arran Cudbard-Bell [Mon, 15 Apr 2024 03:21:02 +0000 (23:21 -0400)] 
Add function to retrieve the cast type

16 months agoSplit out generic call env parsing code so we can call it from custom functions
Arran Cudbard-Bell [Mon, 15 Apr 2024 03:09:46 +0000 (23:09 -0400)] 
Split out generic call env parsing code so we can call it from custom functions

16 months agoAdd fr_htrie_type_to_str
Arran Cudbard-Bell [Mon, 15 Apr 2024 03:09:19 +0000 (23:09 -0400)] 
Add fr_htrie_type_to_str

16 months agoTrim WS
Arran Cudbard-Bell [Mon, 15 Apr 2024 03:09:06 +0000 (23:09 -0400)] 
Trim WS

16 months agoAdd strings for htrie types and FR_HTRIE_AUTO
Arran Cudbard-Bell [Sat, 13 Apr 2024 15:51:08 +0000 (09:51 -0600)] 
Add strings for htrie types and FR_HTRIE_AUTO

16 months agoExecute all the children of a timeout section ‽
Arran Cudbard-Bell [Fri, 12 Apr 2024 19:53:29 +0000 (13:53 -0600)] 
Execute all the children of a timeout section ‽

16 months agoUse the most significant unit between base10 and base2
Arran Cudbard-Bell [Fri, 12 Apr 2024 16:59:10 +0000 (10:59 -0600)] 
Use the most significant unit between base10 and base2

16 months agorlm_sql_log was removed a while ago
Nick Porter [Fri, 12 Apr 2024 11:13:37 +0000 (12:13 +0100)] 
rlm_sql_log was removed a while ago

Instead the null SQL driver should be used in conjunction with the
logfile configuration option.

16 months agoMove sql module call to accounting sections
Nick Porter [Fri, 12 Apr 2024 11:09:33 +0000 (12:09 +0100)] 
Move sql module call to accounting sections

16 months agoDon't call rlm_unix by default when processing accounting
Nick Porter [Fri, 12 Apr 2024 10:22:08 +0000 (11:22 +0100)] 
Don't call rlm_unix by default when processing accounting

16 months agoTypo
Arran Cudbard-Bell [Fri, 12 Apr 2024 01:41:05 +0000 (19:41 -0600)] 
Typo

16 months agoAdd expect_password to disable password warnings in rlm_ldap
Arran Cudbard-Bell [Fri, 12 Apr 2024 01:34:49 +0000 (19:34 -0600)] 
Add expect_password to disable password warnings in rlm_ldap

16 months agoMove user config fields in rlm_ldap to a separate struct
Arran Cudbard-Bell [Fri, 12 Apr 2024 01:33:56 +0000 (19:33 -0600)] 
Move user config fields in rlm_ldap to a separate struct

16 months agoFix typo in code example
Arran Cudbard-Bell [Fri, 12 Apr 2024 01:32:10 +0000 (19:32 -0600)] 
Fix typo in code example

16 months agoReturn updated from rlm_ldap when we update things
Arran Cudbard-Bell [Thu, 11 Apr 2024 21:24:14 +0000 (15:24 -0600)] 
Return updated from rlm_ldap when we update things

16 months agoApply attribute maps before profiles
Arran Cudbard-Bell [Thu, 11 Apr 2024 20:48:48 +0000 (14:48 -0600)] 
Apply attribute maps before profiles

16 months agoPrint sizes with suffixes
Arran Cudbard-Bell [Thu, 11 Apr 2024 17:00:03 +0000 (11:00 -0600)] 
Print sizes with suffixes

17 months agoremove unused variable
Alan T. DeKok [Tue, 9 Apr 2024 20:18:34 +0000 (16:18 -0400)] 
remove unused variable

17 months agoensure that each Access-Request packet is unique
Alan T. DeKok [Tue, 9 Apr 2024 19:53:41 +0000 (15:53 -0400)] 
ensure that each Access-Request packet is unique

17 months agoflush items after write becomes unblocked
Alan T. DeKok [Tue, 9 Apr 2024 19:43:33 +0000 (15:43 -0400)] 
flush items after write becomes unblocked

17 months agosimplify and handle more corner cases
Alan T. DeKok [Tue, 9 Apr 2024 15:50:48 +0000 (11:50 -0400)] 
simplify and handle more corner cases

remove the difference between write_partial and write_cancelled.
it turns out they're both largely the same.

Which then simplifies the cancel() function, as it just sets
item->cancelled, which is much better.

ensure that if we're writing a partial packet, that the timers
are removed.  Because if writes are blocked, there's no reason
to run the retries to write more packets.

There's still an @todo to flush the outbound retry list when
write becomes unblocked.

17 months agohandle the case of WOULD_BLOCK
Alan T. DeKok [Tue, 9 Apr 2024 14:51:49 +0000 (10:51 -0400)] 
handle the case of WOULD_BLOCK

17 months agoNeed to track what log destination was cloned
Nick Porter [Tue, 9 Apr 2024 13:12:01 +0000 (14:12 +0100)] 
Need to track what log destination was cloned

log_dst_by_name() returns a destination from the list of destinations
parsed from the config, which then gets cloned for appending to a
request's list.

Therefore when matching in the request's list we need to know what the
original destination was that was cloned.

17 months agoSet request debug level when amending list of log destinations
Nick Porter [Tue, 9 Apr 2024 13:07:27 +0000 (14:07 +0100)] 
Set request debug level when amending list of log destinations

17 months agoTest SQL cache_groups option
Nick Porter [Mon, 8 Apr 2024 13:23:12 +0000 (14:23 +0100)] 
Test SQL cache_groups option

17 months agoUse distinct prioities in test data to ensure consistent behaviour
Nick Porter [Mon, 8 Apr 2024 13:18:23 +0000 (14:18 +0100)] 
Use distinct prioities in test data to ensure consistent behaviour

17 months agoCorrect handling of cache_groups option
Nick Porter [Mon, 8 Apr 2024 13:07:54 +0000 (14:07 +0100)] 
Correct handling of cache_groups option

17 months agoAdd testing of Fall-Through to SQL groups
Nick Porter [Wed, 3 Apr 2024 09:49:32 +0000 (10:49 +0100)] 
Add testing of Fall-Through to SQL groups

17 months agoRemove unused attribute refs
Nick Porter [Fri, 29 Mar 2024 12:16:54 +0000 (12:16 +0000)] 
Remove unused attribute refs

17 months agoupdate as per documentation. Fixes #5312
Alan T. DeKok [Sat, 6 Apr 2024 15:16:38 +0000 (11:16 -0400)] 
update as per documentation.  Fixes #5312

Manual changes as a result of looking at the PR, and updating
it based on the v4 format

17 months agoallow relative references in "clone="
Alan T. DeKok [Sat, 6 Apr 2024 15:10:38 +0000 (11:10 -0400)] 
allow relative references in "clone="

remove code which allowed clone to reference other protocols.
The "reference protocol" code was changed during the refactoring
to support

ATTRIBUTE ... group ref=..DHCPv4

which now makes this code invalid.  So we fix up this code to work,
and (at least temporarily) remove the ability to reference other
protocols.

Now that the framework supports relative references, it should be
fairly simply to re-add protocol references as a separate commit.

17 months agoCorrectly handle open() return value
Nick Porter [Fri, 5 Apr 2024 11:22:18 +0000 (12:22 +0100)] 
Correctly handle open() return value

17 months agoNo destination means disable
Nick Porter [Fri, 5 Apr 2024 09:51:10 +0000 (10:51 +0100)] 
No destination means disable

17 months agoUse correct free function
Nick Porter [Fri, 5 Apr 2024 09:49:55 +0000 (10:49 +0100)] 
Use correct free function

17 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Fri, 5 Apr 2024 09:35:08 +0000 (09:35 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar

17 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Fri, 5 Apr 2024 09:34:55 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar

17 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Fri, 5 Apr 2024 09:34:52 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar

17 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Fri, 5 Apr 2024 09:34:49 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar

17 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
github-actions[bot] [Fri, 5 Apr 2024 09:34:46 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar

17 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar
github-actions[bot] [Fri, 5 Apr 2024 09:34:43 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar

17 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar
github-actions[bot] [Fri, 5 Apr 2024 09:34:37 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar

17 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar
github-actions[bot] [Fri, 5 Apr 2024 09:34:34 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar

17 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
github-actions[bot] [Fri, 5 Apr 2024 09:34:31 +0000 (09:34 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar

17 months agoReturn the fr_log_t not the fr_log_track_t
Nick Porter [Thu, 4 Apr 2024 17:32:15 +0000 (18:32 +0100)] 
Return the fr_log_t not the fr_log_track_t

17 months agoFix up args for %log.destination()
Nick Porter [Thu, 4 Apr 2024 17:31:13 +0000 (18:31 +0100)] 
Fix up args for %log.destination()

So they're individual value boxes rather than groups

17 months agodhcp is no-longer in a separate deb package
Nick Porter [Thu, 4 Apr 2024 13:58:53 +0000 (14:58 +0100)] 
dhcp is no-longer in a separate deb package

17 months agorandomize the ID array.
Alan T. DeKok [Wed, 3 Apr 2024 23:31:04 +0000 (19:31 -0400)] 
randomize the ID array.

There's no reason to let observers know how many packets we've sent.

17 months agocatch more corner cases and cleanups
Alan T. DeKok [Wed, 3 Apr 2024 23:10:15 +0000 (19:10 -0400)] 
catch more corner cases and cleanups

17 months agoRun the correct section
Nick Porter [Thu, 4 Apr 2024 09:27:35 +0000 (10:27 +0100)] 
Run the correct section

17 months agomake '-c' work again
Alan T. DeKok [Tue, 2 Apr 2024 21:10:24 +0000 (17:10 -0400)] 
make '-c' work again

we can do do

RADCLIENT="radclient-ng" make test.radclient

and the tests pass.  So that's something.

17 months agoset ifindex, allow -i to work, print filename
Alan T. DeKok [Tue, 2 Apr 2024 21:01:48 +0000 (17:01 -0400)] 
set ifindex, allow -i to work, print filename

17 months agoadd fr_ipaddr_get_scope_id() function and use it in FD bios
Alan T. DeKok [Tue, 2 Apr 2024 20:56:30 +0000 (16:56 -0400)] 
add fr_ipaddr_get_scope_id() function and use it in FD bios

17 months agorename fr_packet_log() to fr_radius_packet_log()
Alan T. DeKok [Tue, 2 Apr 2024 20:12:07 +0000 (16:12 -0400)] 
rename fr_packet_log() to fr_radius_packet_log()

17 months agoadd API to force a client ID
Alan T. DeKok [Tue, 2 Apr 2024 20:10:34 +0000 (16:10 -0400)] 
add API to force a client ID

largely used only for radclient

17 months agomake -r and -t work again
Alan T. DeKok [Tue, 2 Apr 2024 19:01:58 +0000 (15:01 -0400)] 
make -r and -t work again

17 months agomake -p work again
Alan T. DeKok [Tue, 2 Apr 2024 18:44:07 +0000 (14:44 -0400)] 
make -p work again

along with a few other minor cleanups, and an initial stab at
making -i work again

17 months agoWOULD_BLOCK is not a fatal error when opening connected sockets
Alan T. DeKok [Tue, 2 Apr 2024 16:37:06 +0000 (12:37 -0400)] 
WOULD_BLOCK is not a fatal error when opening connected sockets

17 months agocomment out unused code
Alan T. DeKok [Tue, 2 Apr 2024 16:36:57 +0000 (12:36 -0400)] 
comment out unused code

17 months agore-enable filters and stats
Alan T. DeKok [Tue, 2 Apr 2024 13:44:04 +0000 (09:44 -0400)] 
re-enable filters and stats

17 months agodon't use id_ctx after it's been deallocated
Alan T. DeKok [Tue, 2 Apr 2024 12:55:33 +0000 (08:55 -0400)] 
don't use id_ctx after it's been deallocated

17 months agoprint out times, too
Alan T. DeKok [Mon, 1 Apr 2024 16:34:35 +0000 (12:34 -0400)] 
print out times, too

17 months agoadd assertions and fix return code check for reset timer
Alan T. DeKok [Mon, 1 Apr 2024 13:07:22 +0000 (09:07 -0400)] 
add assertions and fix return code check for reset timer

17 months agoremove redundant code, and use correct source port
Alan T. DeKok [Sun, 31 Mar 2024 23:20:54 +0000 (19:20 -0400)] 
remove redundant code, and use correct source port

17 months ago...and lib64
Arran Cudbard-Bell [Tue, 2 Apr 2024 16:36:27 +0000 (11:36 -0500)] 
...and lib64

17 months agoAdd alt openldap dir
Arran Cudbard-Bell [Tue, 2 Apr 2024 16:28:34 +0000 (11:28 -0500)] 
Add alt openldap dir

17 months agoNeeded for linux
Arran Cudbard-Bell [Tue, 2 Apr 2024 16:20:22 +0000 (11:20 -0500)] 
Needed for linux

17 months agoAdd rlm_rest cancellation test
Arran Cudbard-Bell [Tue, 2 Apr 2024 15:52:09 +0000 (10:52 -0500)] 
Add rlm_rest cancellation test

17 months agoSimplify dealing with indentations
Arran Cudbard-Bell [Tue, 2 Apr 2024 15:51:21 +0000 (10:51 -0500)] 
Simplify dealing with indentations

17 months agorlm_sql_freetds: handle returned NULL column values
Nick Porter [Mon, 1 Apr 2024 17:33:20 +0000 (18:33 +0100)] 
rlm_sql_freetds: handle returned NULL column values

These don't update the results buffer - so zero it out during
allocation.