]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
5 years agoFixup start pointers on fr_sbuff_shift
Arran Cudbard-Bell [Thu, 17 Sep 2020 15:43:06 +0000 (10:43 -0500)] 
Fixup start pointers on fr_sbuff_shift

5 years agoAdd script to read fixed leases from ISC DHCP config
Nick Porter [Tue, 8 Sep 2020 12:02:38 +0000 (13:02 +0100)] 
Add script to read fixed leases from ISC DHCP config

5 years agoAmend script to reflect new pool tables
Nick Porter [Tue, 8 Sep 2020 11:04:45 +0000 (12:04 +0100)] 
Amend script to reflect new pool tables

5 years agoAdd DBD comment to man page
Nick Porter [Tue, 8 Sep 2020 10:41:34 +0000 (11:41 +0100)] 
Add DBD comment to man page

5 years agoMan page for script
Nick Porter [Tue, 8 Sep 2020 10:36:02 +0000 (11:36 +0100)] 
Man page for script

5 years agoAdd RPM prerequisites
Nick Porter [Tue, 8 Sep 2020 10:29:35 +0000 (11:29 +0100)] 
Add RPM prerequisites

5 years agodeb config for rlm_sqlippool_tool
Nick Porter [Tue, 8 Sep 2020 10:26:55 +0000 (11:26 +0100)] 
deb config for rlm_sqlippool_tool

5 years agoAdd script to make file
Nick Porter [Tue, 8 Sep 2020 10:20:40 +0000 (11:20 +0100)] 
Add script to make file

5 years agoNew IP Pool SQL helper script
Nick Porter [Tue, 8 Sep 2020 10:14:45 +0000 (11:14 +0100)] 
New IP Pool SQL helper script

An amalgamated version of generate_pool_addresses.pl and
align_sql_pools.pl suitable for adding to packaged distributions

5 years agodon't track duplicates for TCP
Alan T. DeKok [Wed, 16 Sep 2020 13:48:40 +0000 (09:48 -0400)] 
don't track duplicates for TCP

5 years agoit helps to return an error
Alan T. DeKok [Wed, 16 Sep 2020 12:53:44 +0000 (08:53 -0400)] 
it helps to return an error

5 years agoAdd explanitory comment to update_update query
Nick Porter [Mon, 14 Sep 2020 08:18:41 +0000 (09:18 +0100)] 
Add explanitory comment to update_update query

5 years agoAdd counter to DHCP ippool schema
Nick Porter [Fri, 11 Sep 2020 12:51:35 +0000 (13:51 +0100)] 
Add counter to DHCP ippool schema

By updating a counter every time a REQUEST is responded to successfully
we ensure that records are changed, thus all database engines return an
affected row count of 1 for successful matches. This safeguards the new
DHCP site config which uses the affected row count to determine between
ACK and NAK responses.

5 years agoCorrect stored procedure calling
Nick Porter [Thu, 10 Sep 2020 16:33:48 +0000 (17:33 +0100)] 
Correct stored procedure calling

5 years agoOracle DHCP queries
Nick Porter [Thu, 10 Sep 2020 15:33:51 +0000 (16:33 +0100)] 
Oracle DHCP queries

5 years agoMySQL DHCP query updates
Nick Porter [Thu, 10 Sep 2020 15:11:11 +0000 (16:11 +0100)] 
MySQL DHCP query updates

5 years agoMS SQL DHCP queries
Nick Porter [Thu, 10 Sep 2020 14:33:27 +0000 (15:33 +0100)] 
MS SQL DHCP queries

5 years agoSQLite DHCP query updates
Nick Porter [Thu, 10 Sep 2020 14:12:58 +0000 (15:12 +0100)] 
SQLite DHCP query updates

5 years agoPostgreSQL DHCP query updates
Nick Porter [Thu, 10 Sep 2020 13:57:53 +0000 (14:57 +0100)] 
PostgreSQL DHCP query updates

5 years agoImprove comments on dhcp_sqlippool module and add extra items
Nick Porter [Thu, 10 Sep 2020 13:55:01 +0000 (14:55 +0100)] 
Improve comments on dhcp_sqlippool module and add extra items

5 years agoUpdate template dhcp site to use common policy
Nick Porter [Thu, 10 Sep 2020 15:34:30 +0000 (16:34 +0100)] 
Update template dhcp site to use common policy

5 years agoMove common option setting into a policy
Nick Porter [Thu, 10 Sep 2020 13:30:30 +0000 (14:30 +0100)] 
Move common option setting into a policy

5 years agocheck for consistency at bootstrap. Fixes #3639
Alan T. DeKok [Wed, 16 Sep 2020 12:29:37 +0000 (08:29 -0400)] 
check for consistency at bootstrap.  Fixes #3639

We should probably just delete `track_duplicates`, and switch
to using the existence of the `track` function

5 years agoadd more notes
Alan T. DeKok [Tue, 15 Sep 2020 15:30:32 +0000 (11:30 -0400)] 
add more notes

5 years agoclarify the warning about using version 4
Alan T. DeKok [Fri, 11 Sep 2020 18:04:52 +0000 (14:04 -0400)] 
clarify the warning about using version 4

5 years agoPROTOCOLS is used elsewhere
Alan T. DeKok [Fri, 11 Sep 2020 17:56:50 +0000 (13:56 -0400)] 
PROTOCOLS is used elsewhere

so we use FUZZER_PROTOCOLS here

5 years agoadd rules for fuzzer.PROTOCOL
Alan T. DeKok [Fri, 11 Sep 2020 17:03:35 +0000 (13:03 -0400)] 
add rules for fuzzer.PROTOCOL

when we don't have -fsanitize=fuzzer

as a way of being nice to people

5 years agoignore the fuzzer VMPS corpus file
Jorge Pereira [Fri, 11 Sep 2020 16:31:34 +0000 (13:31 -0300)] 
ignore the fuzzer VMPS corpus file

5 years agoupdate notes on clients
Alan T. DeKok [Fri, 11 Sep 2020 13:06:48 +0000 (09:06 -0400)] 
update notes on clients

5 years agofuzzer: Add VMPS corpus files to git LFS
Jorge Pereira [Fri, 11 Sep 2020 12:43:31 +0000 (09:43 -0300)] 
fuzzer: Add VMPS corpus files to git LFS

5 years ago:gear: vmps: Update raddb/sites-available/vmps
Jorge Pereira [Fri, 11 Sep 2020 00:21:12 +0000 (21:21 -0300)] 
:gear: vmps: Update raddb/sites-available/vmps

5 years agotacacs: Update missing suffix for tacas_proto test
Jorge Pereira [Thu, 10 Sep 2020 17:40:45 +0000 (14:40 -0300)] 
tacacs: Update missing suffix for tacas_proto test

5 years agoRevert "Should now be fixed"
Arran Cudbard-Bell [Thu, 10 Sep 2020 23:54:12 +0000 (18:54 -0500)] 
Revert "Should now be fixed"

This reverts commit 13ebcd5b1b2e299ecba600a9f84dadc4e7f253eb.

5 years agoShould now be fixed
Arran Cudbard-Bell [Thu, 10 Sep 2020 23:21:36 +0000 (18:21 -0500)] 
Should now be fixed

5 years agoKnowing when we can remove the entry would be good...
Arran Cudbard-Bell [Thu, 10 Sep 2020 23:21:16 +0000 (18:21 -0500)] 
Knowing when we can remove the entry would be good...

5 years agomake it faster
Alan T. DeKok [Thu, 10 Sep 2020 18:59:02 +0000 (14:59 -0400)] 
make it faster

`make` is too stupid to do what we want.  So instead we just
check manually for the output directory.  And only do git-lfs
and un-tar if the output directory isn't already there.

5 years agoremove old docs
Alan T. DeKok [Thu, 10 Sep 2020 17:40:22 +0000 (13:40 -0400)] 
remove old docs

5 years agoSuppress leak warnings in perl_construct() on OSX
Jorge Pereira [Thu, 3 Sep 2020 22:28:10 +0000 (19:28 -0300)] 
Suppress leak warnings in perl_construct() on OSX

it is happening with Perl >= 5.32.0 only on OSX

5 years agoupdate comments
Alan T. DeKok [Thu, 10 Sep 2020 17:37:24 +0000 (13:37 -0400)] 
update comments

5 years agoRevert "fuzzer: Update how to use it"
Alan T. DeKok [Thu, 10 Sep 2020 17:36:29 +0000 (13:36 -0400)] 
Revert "fuzzer: Update how to use it"

This reverts commit dc122ed2c16ed8d090d40c79a09ad5f0a1eaaf13.

5 years agofuzzer: Update how to use it
Jorge Pereira [Thu, 10 Sep 2020 17:31:16 +0000 (14:31 -0300)] 
fuzzer: Update how to use it

5 years agoadd "fuzzer.help" target
Alan T. DeKok [Thu, 10 Sep 2020 17:30:16 +0000 (13:30 -0400)] 
add "fuzzer.help" target

5 years agoadd "fuzzer.PROTOCOL" targets. Fixes #3637
Alan T. DeKok [Thu, 10 Sep 2020 17:12:12 +0000 (13:12 -0400)] 
add "fuzzer.PROTOCOL" targets.  Fixes #3637

which now check out the fuzzer corpus, and then run the fuzzer
binary against the data set.

5 years agoignore the fuzzer corpus files
Alan T. DeKok [Thu, 10 Sep 2020 17:07:50 +0000 (13:07 -0400)] 
ignore the fuzzer corpus files

5 years agouse correct beginning for loop
Alan T. DeKok [Thu, 10 Sep 2020 17:02:27 +0000 (13:02 -0400)] 
use correct beginning for loop

5 years agowe don't need to re-add -fsanitize=fuzzer
Alan T. DeKok [Thu, 10 Sep 2020 15:19:23 +0000 (11:19 -0400)] 
we don't need to re-add -fsanitize=fuzzer

5 years agofuzzer: Add corpus files to git LFS
Arran Cudbard-Bell [Thu, 10 Sep 2020 15:48:55 +0000 (10:48 -0500)] 
fuzzer: Add corpus files to git LFS

5 years ago:gear: vmps: Add fuzzer entrypoint for VMPS
Jorge Pereira [Wed, 9 Sep 2020 18:00:12 +0000 (15:00 -0300)] 
:gear: vmps: Add fuzzer entrypoint for VMPS

5 years ago:gear: vmps: Add tests for proto_vmps
Jorge Pereira [Wed, 9 Sep 2020 15:04:19 +0000 (12:04 -0300)] 
:gear: vmps: Add tests for proto_vmps

5 years ago:gear: vmps: Add decode/encode tests
Jorge Pereira [Mon, 7 Sep 2020 21:00:59 +0000 (18:00 -0300)] 
:gear: vmps: Add decode/encode tests

5 years ago:gear: vmps: Add encode test entrypoint
Jorge Pereira [Mon, 7 Sep 2020 21:00:36 +0000 (18:00 -0300)] 
:gear: vmps: Add encode test entrypoint

5 years ago:gear: vmps: Add decode test entrypoint
Jorge Pereira [Mon, 7 Sep 2020 20:50:00 +0000 (17:50 -0300)] 
:gear: vmps: Add decode test entrypoint

5 years ago:gear: vmps: Add fr_vqp_ctx_t type
Jorge Pereira [Mon, 7 Sep 2020 20:47:56 +0000 (17:47 -0300)] 
:gear: vmps: Add fr_vqp_ctx_t type

5 years ago:gear: vmps: Fix heap-overflow reported by LLVM-fuzzer
Jorge Pereira [Wed, 9 Sep 2020 20:39:22 +0000 (17:39 -0300)] 
:gear: vmps: Fix heap-overflow reported by LLVM-fuzzer

5 years ago:gear: vmps: Fix the encode to use 'Error-Code'
Jorge Pereira [Wed, 9 Sep 2020 16:19:08 +0000 (13:19 -0300)] 
:gear: vmps: Fix the encode to use 'Error-Code'

It allows the user set the 'Error-Code'.

e.g: No-Error, Shutdown, Deny, ...

5 years ago:gear: vmps: Fix fr_vmps_encode() to accept Sequence and Code attributes
Jorge Pereira [Wed, 9 Sep 2020 03:15:47 +0000 (00:15 -0300)] 
:gear: vmps: Fix fr_vmps_encode() to accept Sequence and Code attributes

It allows the user to use 'Packet-Type' (code) and Sequence-Number.

5 years ago:gear: vmps: Fix fr_vmps_encode() attr checks
Jorge Pereira [Wed, 9 Sep 2020 02:25:13 +0000 (23:25 -0300)] 
:gear: vmps: Fix fr_vmps_encode() attr checks

5 years ago:gear: vmps: Fix fr_vmps_decode() return value
Jorge Pereira [Wed, 9 Sep 2020 00:17:31 +0000 (21:17 -0300)] 
:gear: vmps: Fix fr_vmps_decode() return value

5 years ago:gear: vmps: Fix VQP protocol tabulation
Jorge Pereira [Wed, 9 Sep 2020 01:55:59 +0000 (22:55 -0300)] 
:gear: vmps: Fix VQP protocol tabulation

5 years ago:gear: vmps: that fields shouldn't be 'internal'
Jorge Pereira [Wed, 9 Sep 2020 16:18:34 +0000 (13:18 -0300)] 
:gear: vmps: that fields shouldn't be 'internal'

5 years ago:book: vmps: Add VQP-spec.txt document for reference
Jorge Pereira [Mon, 7 Sep 2020 21:50:09 +0000 (18:50 -0300)] 
:book: vmps: Add VQP-spec.txt document for reference

5 years agoconfigure: Add sanitizer fuzzer support
Jorge Pereira [Wed, 9 Sep 2020 18:11:29 +0000 (15:11 -0300)] 
configure: Add sanitizer fuzzer support

5 years agoprocess-radacct sqlite: Fix start of period calculation with no active sessions
Terry Burton [Thu, 10 Sep 2020 12:28:23 +0000 (13:28 +0100)] 
process-radacct sqlite: Fix start of period calculation with no active sessions

5 years agoprocess-radacct pgsql: Fix start of period calculation with no active sessions
Terry Burton [Thu, 10 Sep 2020 12:27:59 +0000 (13:27 +0100)] 
process-radacct pgsql: Fix start of period calculation with no active sessions

5 years agoprocess-radacct oracle: Fix start of period calculation with no active sessions
Terry Burton [Thu, 10 Sep 2020 12:26:26 +0000 (13:26 +0100)] 
process-radacct oracle: Fix start of period calculation with no active sessions

5 years agoprocess-radacct mysql: Fix start of period calculation with no active sessions
Terry Burton [Thu, 10 Sep 2020 12:26:12 +0000 (13:26 +0100)] 
process-radacct mysql: Fix start of period calculation with no active sessions

5 years agoprocess-radacct mssql: Fix start of period calculation with no active sessions
Terry Burton [Thu, 10 Sep 2020 12:25:44 +0000 (13:25 +0100)] 
process-radacct mssql: Fix start of period calculation with no active sessions

5 years agoperl: Minor formatting fixes
Arran Cudbard-Bell [Wed, 9 Sep 2020 14:00:16 +0000 (10:00 -0400)] 
perl: Minor formatting fixes

5 years agominor cleanups
Alan T. DeKok [Wed, 9 Sep 2020 13:13:19 +0000 (09:13 -0400)] 
minor cleanups

5 years agoAdd fr_radius_ascend_secret_dbuff()
James Jones [Thu, 20 Aug 2020 18:29:48 +0000 (13:29 -0500)] 
Add fr_radius_ascend_secret_dbuff()

fr_radius_ascend_secret() is now a wrapper around
fr_radius_ascend_secret_dbuff(), so the latter is exercised
and the transition to (directly) use it needn't happen all
at once.

5 years agomove TACACS checks to tests/tacacs/all.mk
Alan T. DeKok [Wed, 9 Sep 2020 13:08:50 +0000 (09:08 -0400)] 
move TACACS checks to tests/tacacs/all.mk

and add dependencies so that we don't re-run python on every build.

5 years agoadd ADD_INSTALL_RULE.bin
Alan T. DeKok [Tue, 8 Sep 2020 16:11:32 +0000 (12:11 -0400)] 
add ADD_INSTALL_RULE.bin

in order to make it easier to install binaries

5 years ago:rocket: tacacs: Add tests for TACACS+
Jorge Pereira [Wed, 26 Aug 2020 18:57:29 +0000 (15:57 -0300)] 
:rocket: tacacs: Add tests for TACACS+

5 years ago:gear: tacacs_client: Add option to don't change the exit if failed
Jorge Pereira [Wed, 26 Aug 2020 19:48:28 +0000 (16:48 -0300)] 
:gear: tacacs_client: Add option to don't change the exit if failed

That option '--return-0-if-failed' is useful to use with scripts
catching only real errors.

5 years ago:gear: travis: Add 'tacacs_plus' pip3 installation
Jorge Pereira [Thu, 3 Sep 2020 18:33:43 +0000 (15:33 -0300)] 
:gear: travis: Add 'tacacs_plus' pip3 installation

5 years agomod_perl: Print out the version
Jorge Pereira [Thu, 3 Sep 2020 16:45:38 +0000 (13:45 -0300)] 
mod_perl: Print out the version

It's helpful to know which version was linked.

5 years agoAdd alloc_requested and update_free queries
Nick Porter [Tue, 8 Sep 2020 13:35:31 +0000 (14:35 +0100)] 
Add alloc_requested and update_free queries

alloc_requested is an optional query that can be used to check for
availability of a requested IP address (as can happen in DHCP Discover).

update_free is an optional query that can be used to tidy up prior to
updating leases.  Primarily intended for multi-server DHCP setups
sharing a common SQL back end which could result in multiple pool
addresses being offered to a client.

5 years agoFix "request" queries
Nick Porter [Fri, 4 Sep 2020 07:39:07 +0000 (08:39 +0100)] 
Fix "request" queries

Initial Request packets use Requested-IP-Address, whereas renewal ones
use Client-IP-Address

5 years agoPublish generic methods
Nick Porter [Wed, 26 Aug 2020 09:10:26 +0000 (10:10 +0100)] 
Publish generic methods

5 years agoUpdate docs to match query names
Nick Porter [Tue, 25 Aug 2020 11:07:08 +0000 (12:07 +0100)] 
Update docs to match query names

5 years agoAmend mark_update queries
Nick Porter [Tue, 25 Aug 2020 10:01:34 +0000 (11:01 +0100)] 
Amend mark_update queries

Add pool_key to the query so that declines are only processed if the IP
address was offered to the client in question.

5 years agoRename mod_bulkrelease to mod_bulk_release plus query names
Nick Porter [Tue, 25 Aug 2020 09:56:32 +0000 (10:56 +0100)] 
Rename mod_bulkrelease to mod_bulk_release plus query names

5 years agoRemove un-used accouting methods
Nick Porter [Tue, 25 Aug 2020 09:27:05 +0000 (10:27 +0100)] 
Remove un-used accouting methods

5 years agoRename mod_extend as mod_update, plus associated queries
Nick Porter [Tue, 25 Aug 2020 09:22:10 +0000 (10:22 +0100)] 
Rename mod_extend as mod_update, plus associated queries

5 years agoRename mod_allocate to mod_alloc, plus matching queries
Nick Porter [Tue, 25 Aug 2020 09:01:06 +0000 (10:01 +0100)] 
Rename mod_allocate to mod_alloc, plus matching queries

5 years agoUpdate howto
Nick Porter [Wed, 19 Aug 2020 09:55:34 +0000 (10:55 +0100)] 
Update howto

5 years agoRemove un-needed .dflt="" and tidy configs
Nick Porter [Wed, 19 Aug 2020 09:37:34 +0000 (10:37 +0100)] 
Remove un-needed .dflt="" and tidy configs

5 years agoCorrect comment
Nick Porter [Wed, 19 Aug 2020 09:11:02 +0000 (10:11 +0100)] 
Correct comment

5 years agoSet default _begin and _commit queries to blank
Nick Porter [Mon, 17 Aug 2020 18:46:14 +0000 (19:46 +0100)] 
Set default _begin and _commit queries to blank

Most operations are carried out by single queries, so have no need to be
wrapped as transactions.  The exception is Oracle where everything is a
transaction so wrap in "commit".

5 years agoUpdate ippool queries to new names
Nick Porter [Mon, 17 Aug 2020 16:28:58 +0000 (17:28 +0100)] 
Update ippool queries to new names

5 years agoUpdate DHCP queries to reflect new names
Nick Porter [Mon, 17 Aug 2020 16:08:34 +0000 (17:08 +0100)] 
Update DHCP queries to reflect new names

5 years agoAdd mod_release and mod_mark
Nick Porter [Mon, 17 Aug 2020 15:01:13 +0000 (16:01 +0100)] 
Add mod_release and mod_mark

5 years agoAdd mod_extend
Nick Porter [Mon, 17 Aug 2020 14:12:12 +0000 (15:12 +0100)] 
Add mod_extend

5 years agoRename mod_post_auth to mod_allocate
Nick Porter [Fri, 14 Aug 2020 11:52:20 +0000 (12:52 +0100)] 
Rename mod_post_auth to mod_allocate

To head towards generic functions referenced by each protocol

5 years agoError handling
Nick Porter [Fri, 14 Aug 2020 11:49:37 +0000 (12:49 +0100)] 
Error handling

Add v3 error handling

5 years agoReturn affected rows from sql command
Nick Porter [Fri, 14 Aug 2020 11:41:42 +0000 (12:41 +0100)] 
Return affected rows from sql command

Allows for the number of affected rows from update queries to be used to
detect success or failure of an update.

Also pulled in error checking from v3

5 years agoAmend query sequence names
Nick Porter [Fri, 14 Aug 2020 11:10:10 +0000 (12:10 +0100)] 
Amend query sequence names

Make the query sequence names generic rather than protocol specific

5 years ago:gear: vqp: Rename s/fr_vqp_/vr_vmps_/g'
Jorge Pereira [Tue, 8 Sep 2020 16:20:26 +0000 (13:20 -0300)] 
:gear: vqp: Rename s/fr_vqp_/vr_vmps_/g'

5 years ago:gear: vqp: Rename src/protocols/vqp to src/protocols/vmps
Jorge Pereira [Tue, 8 Sep 2020 16:18:13 +0000 (13:18 -0300)] 
:gear: vqp: Rename src/protocols/vqp to src/protocols/vmps

Let's keep everything as VMPS

5 years agoperl: Strip fstack clash protection here too
Arran Cudbard-Bell [Tue, 8 Sep 2020 21:02:52 +0000 (17:02 -0400)] 
perl: Strip fstack clash protection here too