]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
6 years agoConvert templates.conf to a directory, include it within radiusd.conf again
Arran Cudbard-Bell [Mon, 20 Jan 2020 17:34:09 +0000 (12:34 -0500)] 
Convert templates.conf to a directory, include it within radiusd.conf again

Not sure why the include was removed TBH

6 years agoSQLite schema extensions and script for processing radacct: Data usage per period...
Terry Burton [Sat, 18 Jan 2020 20:48:30 +0000 (20:48 +0000)] 
SQLite schema extensions and script for processing radacct: Data usage per period (#3265)

Provides a table, indexes and SP for extracting per-user data usage within
arbitrary periods using the standard radacct table entries.

6 years agoreturn if alloc failed
Matthew Newton [Fri, 17 Jan 2020 22:50:51 +0000 (22:50 +0000)] 
return if alloc failed

6 years agoOracle schema extensions for processing radacct: Data usage per period (#3259)
Terry Burton [Fri, 17 Jan 2020 21:36:10 +0000 (21:36 +0000)] 
Oracle schema extensions for processing radacct: Data usage per period (#3259)

Provides a table, indexes and SP for extracting per-user data usage within
arbitrary periods using the standard radacct table entries.

6 years agoPostgreSQL schema extensions for processing radacct: Data usage per period (#3258)
Terry Burton [Fri, 17 Jan 2020 21:36:02 +0000 (21:36 +0000)] 
PostgreSQL schema extensions for processing radacct: Data usage per period (#3258)

Provides a table, index and SP for extracting per-user data usage within
arbitrary periods using the standard radacct table entries.

6 years agoprocess-radacct MySQL: Example of calling the SP (#3257)
Terry Burton [Fri, 17 Jan 2020 21:35:51 +0000 (21:35 +0000)] 
process-radacct MySQL: Example of calling the SP (#3257)

6 years agoencode all required struct fields
Alan T. DeKok [Fri, 17 Jan 2020 20:12:40 +0000 (15:12 -0500)] 
encode all required struct fields

i.e. if a struct member is missing at the end of a VP list,
then we still need to encode it.  Silently truncating the struct
is not an option.

6 years agotest multiple rules in the same group
Alan T. DeKok [Fri, 17 Jan 2020 19:50:02 +0000 (14:50 -0500)] 
test multiple rules in the same group

6 years agoclarify text
Alan T. DeKok [Fri, 17 Jan 2020 19:46:41 +0000 (14:46 -0500)] 
clarify text

6 years agoAdd tests for DHCPv6 / rfc7600
Jorge Pereira [Fri, 17 Jan 2020 15:55:24 +0000 (12:55 -0300)] 
Add tests for DHCPv6 / rfc7600

Add for section 4.9.  Provisioning 4rd Parameters to CEs

6 years agoAdd tests for DHCPv6 / rfc7078
Jorge Pereira [Fri, 17 Jan 2020 17:36:44 +0000 (14:36 -0300)] 
Add tests for DHCPv6 / rfc7078

6 years agofix typo
Alan T. DeKok [Fri, 17 Jan 2020 17:43:16 +0000 (12:43 -0500)] 
fix typo

6 years agochildren are already parented from 'vp'
Alan T. DeKok [Fri, 17 Jan 2020 16:58:25 +0000 (11:58 -0500)] 
children are already parented from 'vp'

6 years agomore checks / processing of FR_TYPE_GROUP
Alan T. DeKok [Fri, 17 Jan 2020 15:07:40 +0000 (10:07 -0500)] 
more checks / processing of FR_TYPE_GROUP

6 years agoavoid strlen, as fr_pair_value_from_str() will figure it out
Alan T. DeKok [Fri, 17 Jan 2020 15:20:10 +0000 (10:20 -0500)] 
avoid strlen, as fr_pair_value_from_str() will figure it out

6 years agoconvert IA-PD-Options to data type 'group'
Alan T. DeKok [Thu, 16 Jan 2020 20:27:13 +0000 (15:27 -0500)] 
convert IA-PD-Options to data type 'group'

6 years agoFound an updated Fortinet dictionary. Added details to FreeRADIUS 4.x (#3247)
Stefan Paetow [Fri, 17 Jan 2020 02:47:13 +0000 (02:47 +0000)] 
Found an updated Fortinet dictionary. Added details to FreeRADIUS 4.x (#3247)

6 years agoUpdate copyrights on time code
Arran Cudbard-Bell [Fri, 17 Jan 2020 02:08:06 +0000 (21:08 -0500)] 
Update copyrights on time code

6 years agoOnly retrieve the time once in fr_time_sync
Arran Cudbard-Bell [Fri, 17 Jan 2020 02:00:52 +0000 (21:00 -0500)] 
Only retrieve the time once in fr_time_sync

6 years agoUpdated Aerohive (Extreme) dictionary as per their KB (#3248)
Stefan Paetow [Thu, 16 Jan 2020 23:58:05 +0000 (23:58 +0000)] 
Updated Aerohive (Extreme) dictionary as per their KB (#3248)

6 years ago4.0.x - explain DHCP destination port when sending to a giaddr (#3229)
Nicolas C [Thu, 16 Jan 2020 23:49:02 +0000 (00:49 +0100)] 
4.0.x - explain DHCP destination port when sending to a giaddr (#3229)

Helps understanding #3221

6 years agoMySQL schema extensions for processing radacct: Data usage per period (#3241)
Terry Burton [Thu, 16 Jan 2020 23:48:07 +0000 (23:48 +0000)] 
MySQL schema extensions for processing radacct: Data usage per period (#3241)

Provides a table, index and SP for extracting per-user data usage within
arbitrary periods using the standard radacct table entries.

6 years agoAdd missing 'Coverage' doc (#3242)
Jorge Pereira [Thu, 16 Jan 2020 23:47:55 +0000 (20:47 -0300)] 
Add missing 'Coverage' doc (#3242)

6 years agoFix typo (#3250)
Jorge Pereira [Thu, 16 Jan 2020 23:46:09 +0000 (20:46 -0300)] 
Fix typo (#3250)

6 years agorlm_postgresql: Bound the total query time on non-Linux systems too (#3252)
Terry Burton [Thu, 16 Jan 2020 23:44:22 +0000 (23:44 +0000)] 
rlm_postgresql: Bound the total query time on non-Linux systems too (#3252)

Non-Linux systems do not decrease the timeval passed in the timeout parameter
to select, so we keep track of the elapsed time ourselves.

6 years agoRevert "get rid of request->async->process and move to unlang functions"
Alan T. DeKok [Thu, 16 Jan 2020 20:18:17 +0000 (15:18 -0500)] 
Revert "get rid of request->async->process and move to unlang functions"

This reverts commit 55a07a1571c0ed80a1d83a519f41d694ad566498.

6 years agoprint out frame number, too
Alan T. DeKok [Thu, 16 Jan 2020 16:36:42 +0000 (11:36 -0500)] 
print out frame number, too

6 years agoadd support for encode / decode of grouped options
Alan T. DeKok [Thu, 16 Jan 2020 15:59:56 +0000 (10:59 -0500)] 
add support for encode / decode of grouped options

6 years agoit helps to store the VPs we parsed.
Alan T. DeKok [Thu, 16 Jan 2020 15:09:12 +0000 (10:09 -0500)] 
it helps to store the VPs we parsed.

6 years agofunctions can yield, too
Alan T. DeKok [Thu, 16 Jan 2020 14:49:33 +0000 (09:49 -0500)] 
functions can yield, too

6 years agofix typo. Closes #3249
Alan T. DeKok [Thu, 16 Jan 2020 14:39:57 +0000 (09:39 -0500)] 
fix typo. Closes #3249

6 years agotell the caller about hashes, too
Alan T. DeKok [Wed, 15 Jan 2020 23:35:30 +0000 (18:35 -0500)] 
tell the caller about hashes, too

6 years agoone more "one last fix". Use the API correctly
Alan T. DeKok [Wed, 15 Jan 2020 23:20:21 +0000 (18:20 -0500)] 
one more "one last fix".  Use the API correctly

6 years agoend of day issues. One last fix
Alan T. DeKok [Wed, 15 Jan 2020 22:55:36 +0000 (17:55 -0500)] 
end of day issues.  One last fix

6 years agoone more free
Alan T. DeKok [Wed, 15 Jan 2020 22:54:54 +0000 (17:54 -0500)] 
one more free

6 years agobe more careful about da_unknown
Alan T. DeKok [Wed, 15 Jan 2020 22:53:51 +0000 (17:53 -0500)] 
be more careful about da_unknown

6 years agofree unknown da's
Alan T. DeKok [Wed, 15 Jan 2020 21:47:33 +0000 (16:47 -0500)] 
free unknown da's

6 years agoparse FR_TYPE_GROUP
Alan T. DeKok [Wed, 15 Jan 2020 21:27:57 +0000 (16:27 -0500)] 
parse FR_TYPE_GROUP

and remove fr_pair_raw_from_str()

6 years agomore cleanups in preparation for parsing grouped attributes
Alan T. DeKok [Wed, 15 Jan 2020 20:57:01 +0000 (15:57 -0500)] 
more cleanups in preparation for parsing grouped attributes

6 years agostart deleting fr_pair_raw_from_str(), and using a modern API
Alan T. DeKok [Wed, 15 Jan 2020 20:21:21 +0000 (15:21 -0500)] 
start deleting fr_pair_raw_from_str(), and using a modern API

6 years agomake fr_pair_raw_from_str() internal. There's only one caller.
Alan T. DeKok [Wed, 15 Jan 2020 20:20:10 +0000 (15:20 -0500)] 
make fr_pair_raw_from_str() internal.  There's only one caller.

6 years agoprint grouped options as Foo = { attr = 1, attr = 2 }
Alan T. DeKok [Wed, 15 Jan 2020 18:55:44 +0000 (13:55 -0500)] 
print grouped options as Foo = { attr = 1, attr = 2 }

6 years agoCommit auto-generated config .adoc files
Arran Cudbard-Bell [Wed, 15 Jan 2020 19:37:24 +0000 (14:37 -0500)] 
Commit auto-generated config .adoc files

6 years agoFix minor leak on dict_read_process_protocol() (#3246)
Jorge Pereira [Wed, 15 Jan 2020 01:09:43 +0000 (22:09 -0300)] 
Fix minor leak on dict_read_process_protocol() (#3246)

We are missing to release the 'dict', therefore just add
'error' label to have single release point.

6 years agodictionaries now say if they require libfreeradius-foo.so
Alan T. DeKok [Tue, 14 Jan 2020 13:39:50 +0000 (08:39 -0500)] 
dictionaries now say if they require libfreeradius-foo.so

so that we get errors like "can't find libfreeradius-foo",
instead of "unknown flag 'encrypt'"

6 years agouse same client IP as packet src/dst IP: 0/0
Alan T. DeKok [Tue, 14 Jan 2020 13:21:37 +0000 (08:21 -0500)] 
use same client IP as packet src/dst IP: 0/0

6 years agowhoops. Need these, too
Alan T. DeKok [Mon, 13 Jan 2020 23:54:10 +0000 (18:54 -0500)] 
whoops.  Need these, too

6 years agoremove unnecessary comment
Alan T. DeKok [Mon, 13 Jan 2020 23:30:07 +0000 (18:30 -0500)] 
remove unnecessary comment

6 years agoget rid of request->async->process and move to unlang functions
Alan T. DeKok [Mon, 13 Jan 2020 23:22:07 +0000 (18:22 -0500)] 
get rid of request->async->process and move to unlang functions

6 years agorename for consistency
Alan T. DeKok [Mon, 13 Jan 2020 18:30:08 +0000 (13:30 -0500)] 
rename for consistency

6 years agorename for consistency
Alan T. DeKok [Mon, 13 Jan 2020 18:28:35 +0000 (13:28 -0500)] 
rename for consistency

6 years agomake io_process functions use module_method_t signature
Alan T. DeKok [Mon, 13 Jan 2020 18:26:11 +0000 (13:26 -0500)] 
make io_process functions use module_method_t signature

for consistency and future thread-safety

6 years agomove "set vendor code" to dict_attr_init
Alan T. DeKok [Mon, 13 Jan 2020 14:19:24 +0000 (09:19 -0500)] 
move "set vendor code" to dict_attr_init

which is called in more places, and is the logical place to put
these checks

6 years agoadd da->vendor
Alan T. DeKok [Mon, 13 Jan 2020 12:57:36 +0000 (07:57 -0500)] 
add da->vendor

which is now a pointer to the vendor definition.

6 years agominor rearrangements
Alan T. DeKok [Mon, 13 Jan 2020 12:53:30 +0000 (07:53 -0500)] 
minor rearrangements

6 years agoadd clearer description for flags
Alan T. DeKok [Sat, 11 Jan 2020 16:33:21 +0000 (11:33 -0500)] 
add clearer description for flags

6 years agomove commonly used fields to the start of the struct
Alan T. DeKok [Fri, 10 Jan 2020 14:55:31 +0000 (09:55 -0500)] 
move commonly used fields to the start of the struct

this helps with cache lines and general organization

6 years agoremove unused macros
Alan T. DeKok [Thu, 9 Jan 2020 22:32:57 +0000 (17:32 -0500)] 
remove unused macros

6 years agomove EAP-TLS to common API
Alan T. DeKok [Thu, 9 Jan 2020 22:32:19 +0000 (17:32 -0500)] 
move EAP-TLS to common API

6 years agomove AKA' to common API
Alan T. DeKok [Thu, 9 Jan 2020 22:29:21 +0000 (17:29 -0500)] 
move AKA' to common API

6 years agouse the correct name for debugging
Alan T. DeKok [Thu, 9 Jan 2020 22:27:53 +0000 (17:27 -0500)] 
use the correct name for debugging

6 years agomove AKA to using common API
Alan T. DeKok [Thu, 9 Jan 2020 22:26:32 +0000 (17:26 -0500)] 
move AKA to using common API

6 years agomove EAP-SIM to using data structures and a common function
Alan T. DeKok [Thu, 9 Jan 2020 21:46:24 +0000 (16:46 -0500)] 
move EAP-SIM to using data structures and a common function

in preparation for further cleanup

6 years agoreturn the instruction if asked
Alan T. DeKok [Thu, 9 Jan 2020 21:41:31 +0000 (16:41 -0500)] 
return the instruction if asked

it's OK to compile the same section twice, but we should also
return the compiled instruction if asked

6 years agoreturn the number of compiled sections
Alan T. DeKok [Thu, 9 Jan 2020 21:33:38 +0000 (16:33 -0500)] 
return the number of compiled sections

6 years agoallocate the thing from the parent CONF_SECTION
Alan T. DeKok [Thu, 9 Jan 2020 18:27:10 +0000 (13:27 -0500)] 
allocate the thing from the parent CONF_SECTION

the previous changes should fix ordering issues

6 years agofix up dict / namespace checks
Alan T. DeKok [Thu, 9 Jan 2020 18:03:12 +0000 (13:03 -0500)] 
fix up dict / namespace checks

use correct type for dictionary lookups in cf_data_find()

if there's no listener, we MUST have a known dictionary

6 years agothis function should return 'const'
Alan T. DeKok [Thu, 9 Jan 2020 15:43:00 +0000 (10:43 -0500)] 
this function should return 'const'

6 years agofree the intermediate struct, too
Alan T. DeKok [Thu, 9 Jan 2020 15:39:05 +0000 (10:39 -0500)] 
free the intermediate struct, too

6 years agovns_tree may be NULL
Alan T. DeKok [Thu, 9 Jan 2020 15:08:30 +0000 (10:08 -0500)] 
vns_tree may be NULL

6 years agouse app->dict instead of more complex logic
Alan T. DeKok [Thu, 9 Jan 2020 14:56:08 +0000 (09:56 -0500)] 
use app->dict instead of more complex logic

remove namespace_on_read(), and add check for dictionary to
listen_on_read().

Also update the virtual_servers_instantiate() to look in the
vns_tree only if a dictionary was not previously defined.

6 years agorevert
Alan T. DeKok [Thu, 9 Jan 2020 14:29:19 +0000 (09:29 -0500)] 
revert

6 years agovns_tree MUST be created before we instantiate the virtual servers
Alan T. DeKok [Thu, 9 Jan 2020 14:26:55 +0000 (09:26 -0500)] 
vns_tree MUST be created before we instantiate the virtual servers

6 years agonamespace might not be in the vns tree
Alan T. DeKok [Thu, 9 Jan 2020 14:25:13 +0000 (09:25 -0500)] 
namespace might not be in the vns tree

6 years agoadd dict pointer to proto modules
Alan T. DeKok [Thu, 9 Jan 2020 14:08:09 +0000 (09:08 -0500)] 
add dict pointer to proto modules

6 years agoadd dict pointer
Alan T. DeKok [Thu, 9 Jan 2020 14:08:00 +0000 (09:08 -0500)] 
add dict pointer

6 years agoremove incorrect example
Alan T. DeKok [Thu, 9 Jan 2020 14:06:45 +0000 (09:06 -0500)] 
remove incorrect example

6 years agoAdd missing 'Profile' links
Jorge Pereira [Wed, 8 Jan 2020 00:23:34 +0000 (21:23 -0300)] 
Add missing 'Profile' links

6 years agoAt a broad overview of what happens on request enqueue
Arran Cudbard-Bell [Tue, 7 Jan 2020 22:00:17 +0000 (16:00 -0600)] 
At a broad overview of what happens on request enqueue

6 years agoDoxygen fixes
Arran Cudbard-Bell [Tue, 7 Jan 2020 21:33:38 +0000 (15:33 -0600)] 
Doxygen fixes

6 years agoUpdate doxyfile
Arran Cudbard-Bell [Tue, 7 Jan 2020 20:52:56 +0000 (14:52 -0600)] 
Update doxyfile

6 years agoFix the trunk API docs to make them a bit easier to understand
Arran Cudbard-Bell [Tue, 7 Jan 2020 18:55:19 +0000 (12:55 -0600)] 
Fix the trunk API docs to make them a bit easier to understand

6 years agodoxygen
Alan T. DeKok [Tue, 7 Jan 2020 18:21:27 +0000 (13:21 -0500)] 
doxygen

6 years agoThis too...
Arran Cudbard-Bell [Tue, 7 Jan 2020 17:58:35 +0000 (11:58 -0600)] 
This too...

6 years agoUse correct options for specifying signing CA in rlm_rest Closes #3237
Arran Cudbard-Bell [Tue, 7 Jan 2020 17:54:43 +0000 (11:54 -0600)] 
Use correct options for specifying signing CA in rlm_rest Closes #3237

6 years agomove scheduler to using config struct, instead of CONF_SECTION
Alan T. DeKok [Tue, 7 Jan 2020 14:36:45 +0000 (09:36 -0500)] 
move scheduler to using config struct, instead of CONF_SECTION

6 years agothese were deprecated in v3. They can be deleted in v4
Alan T. DeKok [Tue, 7 Jan 2020 13:42:17 +0000 (08:42 -0500)] 
these were deprecated in v3.  They can be deleted in v4

6 years agothere's no need for a header to include itself
Alan T. DeKok [Tue, 7 Jan 2020 13:39:55 +0000 (08:39 -0500)] 
there's no need for a header to include itself

6 years agoDisambiguate BPF vs RADIUS attribute filters in radsniff manpage (#3236)
Terry Burton [Mon, 6 Jan 2020 16:36:45 +0000 (16:36 +0000)] 
Disambiguate BPF vs RADIUS attribute filters in radsniff manpage (#3236)

6 years agoadd URL
Alan T. DeKok [Sat, 4 Jan 2020 14:03:39 +0000 (09:03 -0500)] 
add URL

6 years agobusy-loop processing requests for 0.1ms
Alan T. DeKok [Sat, 4 Jan 2020 14:01:37 +0000 (09:01 -0500)] 
busy-loop processing requests for 0.1ms

which means we're not polling the event loop after every request
has yielded.  Instead, run more requests until we spend 0.1ms
total processing requests.  This process significantly lowers
response latency in performance tests.

6 years agoonly resume if the request was stopped
Alan T. DeKok [Sat, 4 Jan 2020 13:57:24 +0000 (08:57 -0500)] 
only resume if the request was stopped

6 years agoallow load up to 400K PPS
Alan T. DeKok [Sat, 4 Jan 2020 13:53:46 +0000 (08:53 -0500)] 
allow load up to 400K PPS

6 years agoBackport policy OIDs from v3. ref #3230
Jorge Pereira [Fri, 3 Jan 2020 14:30:51 +0000 (11:30 -0300)] 
Backport policy OIDs from v3. ref #3230

6 years agoupdate copyright dates
Alan T. DeKok [Fri, 3 Jan 2020 02:02:55 +0000 (21:02 -0500)] 
update copyright dates

6 years agorun through reformatter
Alan T. DeKok [Fri, 3 Jan 2020 02:02:36 +0000 (21:02 -0500)] 
run through reformatter

6 years agoupdate "now" after running multiple timers
Alan T. DeKok [Thu, 2 Jan 2020 00:42:21 +0000 (19:42 -0500)] 
update "now" after running multiple timers

6 years agoremove unnecessary API
Alan T. DeKok [Thu, 2 Jan 2020 00:22:07 +0000 (19:22 -0500)] 
remove unnecessary API

6 years agosimplify logic
Alan T. DeKok [Wed, 1 Jan 2020 17:39:27 +0000 (12:39 -0500)] 
simplify logic

so that pop / run of request is all handled in one function

6 years agoAruba RADIUS dictionary update v2020-01
Tim Cappalli [Fri, 3 Jan 2020 00:20:44 +0000 (19:20 -0500)] 
Aruba RADIUS dictionary update v2020-01