]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
6 years agoOracle schema.conf: Typo
Terry Burton [Tue, 13 Aug 2019 17:18:10 +0000 (18:18 +0100)] 
Oracle schema.conf: Typo

6 years agoMSSQL queries.conf: Use Event-Timestamp rather than %S
Terry Burton [Tue, 13 Aug 2019 23:23:26 +0000 (00:23 +0100)] 
MSSQL queries.conf: Use Event-Timestamp rather than %S

6 years agoMSSQL queries.conf: Add a post-auth logging query
Terry Burton [Tue, 13 Aug 2019 15:04:54 +0000 (16:04 +0100)] 
MSSQL queries.conf: Add a post-auth logging query

MSSQL accepts SQL timestamps to millisecond precision.
Don't log the CHAP password hex string, just a moniker.

6 years agoMSSQL queries.conf: Typo
Terry Burton [Tue, 13 Aug 2019 23:22:22 +0000 (00:22 +0100)] 
MSSQL queries.conf: Typo

Column name not matching schema.

6 years agoMSSQL schema.conf: Invalid syntax.
Terry Burton [Tue, 13 Aug 2019 14:28:07 +0000 (15:28 +0100)] 
MSSQL schema.conf: Invalid syntax.

Fix CREATE TABLE lines with invalid syntax.

The defaults that were provided in these lines are applied subsequent ALTER
TABLE statements.

6 years agoSQLite queries.conf: Use %l as default for missing Event-Timestamp
Terry Burton [Tue, 13 Aug 2019 20:38:31 +0000 (21:38 +0100)] 
SQLite queries.conf: Use %l as default for missing Event-Timestamp

6 years agoSQLite queries.conf: Fix acctsessiontime calculation for accounting-on/off
Terry Burton [Tue, 13 Aug 2019 20:35:43 +0000 (21:35 +0100)] 
SQLite queries.conf: Fix acctsessiontime calculation for accounting-on/off

acctstarttime is already in epoch format.

6 years agoSQLite query.conf: Increase post-auth logging precision
Terry Burton [Tue, 13 Aug 2019 19:37:31 +0000 (20:37 +0100)] 
SQLite query.conf: Increase post-auth logging precision

Switch to microsecond precision on timestamps.

6 years agoMySQL queries.conf: Use %l as default for missing Event-Timestamp.
Terry Burton [Tue, 13 Aug 2019 20:48:22 +0000 (21:48 +0100)] 
MySQL queries.conf: Use %l as default for missing Event-Timestamp.

6 years agoMySQL schema.conf: Enable fractional timestamps for post-auth logging
Terry Burton [Tue, 13 Aug 2019 15:55:09 +0000 (16:55 +0100)] 
MySQL schema.conf: Enable fractional timestamps for post-auth logging

All vendor-supported versions of MySQL (since 5.6.4) support a fractional
precision timestamp data type for an additional cost of three bytes per datum.

We enable this for the post-auth table.

6 years agoMySQL queries.conf: Increase post-auth logging precision
Terry Burton [Tue, 13 Aug 2019 15:45:38 +0000 (16:45 +0100)] 
MySQL queries.conf: Increase post-auth logging precision

MySQL can support microsecond precision on timestamps. When it isn't supported
the fractional part is simply discarded.

6 years agoPostgreSQL queries.conf: Use %l as default for missing Event-Timestamp
Terry Burton [Tue, 13 Aug 2019 21:00:09 +0000 (22:00 +0100)] 
PostgreSQL queries.conf: Use %l as default for missing Event-Timestamp

6 years agoPostgreSQL queries.conf: Use Event-Timestamp rather than %S
Terry Burton [Tue, 13 Aug 2019 20:52:29 +0000 (21:52 +0100)] 
PostgreSQL queries.conf: Use Event-Timestamp rather than %S

Use the provided Event-Timestamp to close accounting records
when receiving an Accounting-On/Off request.

6 years agoPostgreSQL queries.conf: Increase post-auth logging precision
Terry Burton [Tue, 13 Aug 2019 14:43:43 +0000 (15:43 +0100)] 
PostgreSQL queries.conf: Increase post-auth logging precision

PostgreSQL supports microsecond precision on timestamps.

Don't use NOW() since the queries can be replayed from a file.

6 years agodoc: Add sanity checks for verify if the xlat's is documented
Jorge Pereira [Thu, 22 Aug 2019 21:51:27 +0000 (18:51 -0300)] 
doc: Add sanity checks for verify if the xlat's is documented

6 years agoAdd tables that can hold pointers
Arran Cudbard-Bell [Thu, 22 Aug 2019 19:54:06 +0000 (15:54 -0400)] 
Add tables that can hold pointers

6 years agoMinor naming fixups
Arran Cudbard-Bell [Thu, 22 Aug 2019 02:53:20 +0000 (22:53 -0400)] 
Minor naming fixups

6 years agofilter out test / example / whatever modules
Alan T. DeKok [Thu, 22 Aug 2019 19:44:54 +0000 (15:44 -0400)] 
filter out test / example / whatever modules

6 years agoIgnore doc/doxygen/html directory
Jorge Pereira [Thu, 22 Aug 2019 19:02:33 +0000 (16:02 -0300)] 
Ignore doc/doxygen/html directory

6 years agoAdd some documentation for missing xlat's functions.
Jorge Pereira [Tue, 20 Aug 2019 23:43:46 +0000 (20:43 -0300)] 
Add some documentation for missing xlat's functions.

for the below modules:

rlm_dhcpv4
rlm_eap
rlm_json
rlm_ldap
rlm_yubikey

6 years agomake sure that the heading starts on a new line
Alan T. DeKok [Thu, 22 Aug 2019 17:54:20 +0000 (13:54 -0400)] 
make sure that the heading starts on a new line

6 years agoRename heading to be clearer
Alan T. DeKok [Thu, 22 Aug 2019 17:30:43 +0000 (13:30 -0400)] 
Rename heading to be clearer

perl -p -i -e 's/## Default instance/## Configuration Settings/' raddb/mods-available/*

6 years agothis is a link, not a config item
Alan T. DeKok [Thu, 22 Aug 2019 17:27:09 +0000 (13:27 -0400)] 
this is a link, not a config item

6 years agoprint module config at the end of the file
Alan T. DeKok [Thu, 22 Aug 2019 17:25:31 +0000 (13:25 -0400)] 
print module config at the end of the file

instead of in-line, which can get confusing

The behavior can be toggle via `-t`, which is nice

6 years agocleanups
Alan T. DeKok [Thu, 22 Aug 2019 17:15:08 +0000 (13:15 -0400)] 
cleanups

6 years agodon't refer to documentation which may move
Alan T. DeKok [Thu, 22 Aug 2019 17:06:55 +0000 (13:06 -0400)] 
don't refer to documentation which may move

6 years agoregenerate
Alan T. DeKok [Thu, 22 Aug 2019 17:00:36 +0000 (13:00 -0400)] 
regenerate

6 years agotypo here, too
Alan T. DeKok [Thu, 22 Aug 2019 17:02:56 +0000 (13:02 -0400)] 
typo here, too

6 years agouse the correct name
Alan T. DeKok [Thu, 22 Aug 2019 17:02:32 +0000 (13:02 -0400)] 
use the correct name

6 years agotypo
Alan T. DeKok [Thu, 22 Aug 2019 16:59:10 +0000 (12:59 -0400)] 
typo

6 years agono one uses this, and it's non-standard
Alan T. DeKok [Thu, 22 Aug 2019 16:56:45 +0000 (12:56 -0400)] 
no one uses this, and it's non-standard

6 years agoneed this, too
Alan T. DeKok [Thu, 22 Aug 2019 16:09:46 +0000 (12:09 -0400)] 
need this, too

6 years agoclarifications and cleanups
Alan T. DeKok [Thu, 22 Aug 2019 15:08:55 +0000 (11:08 -0400)] 
clarifications and cleanups

6 years agoadd an "all module" list
Alan T. DeKok [Thu, 22 Aug 2019 14:54:51 +0000 (10:54 -0400)] 
add an "all module" list

and a script to generate it.

6 years agofix help text
Alan T. DeKok [Thu, 22 Aug 2019 14:54:06 +0000 (10:54 -0400)] 
fix help text

6 years agoword smithing
Alan T. DeKok [Thu, 22 Aug 2019 14:53:45 +0000 (10:53 -0400)] 
word smithing

6 years agoAllow parsing of 'float64' in configuration files (#2913)
Nicolas C [Thu, 22 Aug 2019 13:16:20 +0000 (15:16 +0200)] 
Allow parsing of 'float64' in configuration files (#2913)

This small patch adds support of type 'float64' in configuration file.

Rationale: precision of float32 is not always sufficient, even for what would seem to be very simple numbers.
For example: "88.005" when printed with the default precision shows "88.004997".

6 years agoMerge rlm_attr_filter.5 with raddb/mods-available/attr_filter
Jorge Pereira [Thu, 22 Aug 2019 01:45:51 +0000 (22:45 -0300)] 
Merge rlm_attr_filter.5 with raddb/mods-available/attr_filter

The 'man/man5/rlm_attr_filter.5' is not necessary anymore.

6 years agoMerge rlm_pap.5 with raddb/mods-available/pap
Jorge Pereira [Thu, 22 Aug 2019 01:17:25 +0000 (22:17 -0300)] 
Merge rlm_pap.5 with raddb/mods-available/pap

The 'man/man5/rlm_pap.5' is not necessary anymore.

6 years agoMerge rlm_always.5 with raddb/mods-available/always
Jorge Pereira [Thu, 22 Aug 2019 00:14:52 +0000 (21:14 -0300)] 
Merge rlm_always.5 with raddb/mods-available/always

The 'man/man5/rlm_always.5' is not necessary anymore.

6 years agoAllow parsing of 'float64' in configuration files
nchaigne [Thu, 22 Aug 2019 08:16:34 +0000 (10:16 +0200)] 
Allow parsing of 'float64' in configuration files

This small patch adds support of type 'float64' in configuration file.

Rationale: precision of float32 is not always sufficient, even for what would seem to be very simple numbers.
For example: "88.005" when printed with the default precision shows "88.004997".

6 years agoReorganise dictionary code into separate files
Arran Cudbard-Bell [Thu, 22 Aug 2019 00:29:28 +0000 (20:29 -0400)] 
Reorganise dictionary code into separate files

6 years agocleanups and additions
Alan T. DeKok [Thu, 22 Aug 2019 00:02:50 +0000 (20:02 -0400)] 
cleanups and additions

6 years agotypo
Alan T. DeKok [Thu, 22 Aug 2019 00:02:45 +0000 (20:02 -0400)] 
typo

6 years agoclean ups and rephrasing
Alan T. DeKok [Thu, 22 Aug 2019 00:02:32 +0000 (20:02 -0400)] 
clean ups and rephrasing

6 years agoIgnore generated adoc files for now...
Arran Cudbard-Bell [Wed, 21 Aug 2019 22:55:05 +0000 (18:55 -0400)] 
Ignore generated adoc files for now...

6 years agorenamed and moved
Alan T. DeKok [Wed, 21 Aug 2019 21:30:30 +0000 (17:30 -0400)] 
renamed and moved

6 years agoall of the content here is wrong, old, or in mods-available/files
Alan T. DeKok [Wed, 21 Aug 2019 21:25:53 +0000 (17:25 -0400)] 
all of the content here is wrong, old, or in mods-available/files

6 years agowe don't need this any more.
Alan T. DeKok [Wed, 21 Aug 2019 19:50:42 +0000 (15:50 -0400)] 
we don't need this any more.

All of the radrelay configuration is documented elsewhere

6 years agomove radsniff to asciidoc format
Alan T. DeKok [Wed, 21 Aug 2019 19:43:24 +0000 (15:43 -0400)] 
move radsniff to asciidoc format

6 years agotypo
Alan T. DeKok [Wed, 21 Aug 2019 19:42:21 +0000 (15:42 -0400)] 
typo

6 years agouse descriptive error messages for all cases
Alan T. DeKok [Wed, 21 Aug 2019 19:24:20 +0000 (15:24 -0400)] 
use descriptive error messages for all cases

6 years agorlm_client: Don't leak memory on error conditions.
Jorge Pereira [Wed, 21 Aug 2019 17:52:47 +0000 (14:52 -0300)] 
rlm_client: Don't leak memory on error conditions.

6 years agoTake a pass through builtin.adoc
Arran Cudbard-Bell [Wed, 21 Aug 2019 18:09:41 +0000 (14:09 -0400)] 
Take a pass through builtin.adoc

Still only partially complete

6 years agorlm_dhcpv4: Don't leak memory on error conditions. (#2910)
Jorge Pereira [Wed, 21 Aug 2019 17:39:29 +0000 (14:39 -0300)] 
rlm_dhcpv4: Don't leak memory on error conditions. (#2910)

6 years agopull call to localtime_r() higher in the function.
Alan T. DeKok [Wed, 21 Aug 2019 14:12:14 +0000 (10:12 -0400)] 
pull call to localtime_r() higher in the function.

6 years agoadd tests for dates with millisecond precision
Alan T. DeKok [Wed, 21 Aug 2019 14:05:06 +0000 (10:05 -0400)] 
add tests for dates with millisecond precision

note that despite inputs in various time zones, the tests
run in GMT

6 years agoadd '.' to subseconds
Alan T. DeKok [Wed, 21 Aug 2019 14:04:39 +0000 (10:04 -0400)] 
add '.' to subseconds

and fix closing quote

6 years agoparse subseconds correctly by scaling them
Alan T. DeKok [Wed, 21 Aug 2019 13:58:04 +0000 (09:58 -0400)] 
parse subseconds correctly by scaling them

and add descriptive error messages.

6 years agoallow attributes of type 'date' to set type_size
Alan T. DeKok [Wed, 21 Aug 2019 13:43:25 +0000 (09:43 -0400)] 
allow attributes of type 'date' to set type_size

for setting time precision

6 years agoadd parser for ISO8601 date formats
Alan T. DeKok [Wed, 21 Aug 2019 12:54:51 +0000 (08:54 -0400)] 
add parser for ISO8601 date formats

Which incidentally also gets the time zone conversions correct.
The old parser just ignored the time zone.

6 years agomake fr_time_from_str() use fr_time_t
Alan T. DeKok [Wed, 21 Aug 2019 11:50:47 +0000 (07:50 -0400)] 
make fr_time_from_str() use fr_time_t

In preparation for parsing RFC 3339 dates.

6 years agonote which time standard we produce
Alan T. DeKok [Wed, 21 Aug 2019 11:44:26 +0000 (07:44 -0400)] 
note which time standard we produce

6 years agoAdd time zone qualifiers
Alan T. DeKok [Wed, 21 Aug 2019 11:42:14 +0000 (07:42 -0400)] 
Add time zone qualifiers

6 years agocall value_box_snprint() to print type date
Alan T. DeKok [Wed, 21 Aug 2019 11:41:34 +0000 (07:41 -0400)] 
call value_box_snprint() to print type date

as the way to do so is now complex

6 years agoone more "remove date"
Alan T. DeKok [Tue, 20 Aug 2019 23:32:45 +0000 (19:32 -0400)] 
one more "remove date"

6 years agoRename predefined to built-in
Arran Cudbard-Bell [Tue, 20 Aug 2019 23:05:34 +0000 (19:05 -0400)] 
Rename predefined to built-in

6 years agodoc: Add some missing predefined xlat's functions (#2908)
Jorge Pereira [Tue, 20 Aug 2019 23:00:54 +0000 (20:00 -0300)] 
doc: Add some missing predefined xlat's functions (#2908)

6 years agodoc: Fix the links to the asciidoc format (#2901)
Jorge Pereira [Tue, 20 Aug 2019 22:59:24 +0000 (19:59 -0300)] 
doc: Fix the links to the asciidoc format (#2901)

6 years agowe shouldn't be casting DATE to anything else
Alan T. DeKok [Tue, 20 Aug 2019 21:31:53 +0000 (17:31 -0400)] 
we shouldn't be casting DATE to anything else

6 years agotype 'date' is no longer a 32-bit integer
Alan T. DeKok [Tue, 20 Aug 2019 19:45:18 +0000 (15:45 -0400)] 
type 'date' is no longer a 32-bit integer

6 years agorespect time precision when casting to uint32 / uint64
Alan T. DeKok [Tue, 20 Aug 2019 19:10:14 +0000 (15:10 -0400)] 
respect time precision when casting to uint32 / uint64

6 years agoRevert "pass fr_dict_attr_t to fr_value_box_to_network()"
Alan T. DeKok [Tue, 20 Aug 2019 18:42:06 +0000 (14:42 -0400)] 
Revert "pass fr_dict_attr_t to fr_value_box_to_network()"

This reverts commit e2be98d40355649a94d656b7018abe540f36101f.

set dst->enumv in from_network().  And then use it in to_network()
and the same for to_str and from_str

6 years agotypo
Alan T. DeKok [Tue, 20 Aug 2019 18:35:13 +0000 (14:35 -0400)] 
typo

6 years agouse cast instead of manual coersion
Alan T. DeKok [Tue, 20 Aug 2019 18:33:39 +0000 (14:33 -0400)] 
use cast instead of manual coersion

We probably have to fix the various modules, too

6 years ago255, not 256 for 8-bit max
Alan T. DeKok [Tue, 20 Aug 2019 18:32:10 +0000 (14:32 -0400)] 
255, not 256 for 8-bit max

6 years agodoc: Add 'raddb' nav bar content
Jorge Pereira [Tue, 20 Aug 2019 17:58:49 +0000 (14:58 -0300)] 
doc: Add 'raddb' nav bar content

It add "The raddb configuration directory" new option to the tree list.

6 years agotypo
Alan T. DeKok [Tue, 20 Aug 2019 18:00:59 +0000 (14:00 -0400)] 
typo

6 years agohelps to have RADIUS tests which mirror data_types.txt
Alan T. DeKok [Tue, 20 Aug 2019 17:47:12 +0000 (13:47 -0400)] 
helps to have RADIUS tests which mirror data_types.txt

6 years agomake vb_date / vp_date into fr_time_t
Alan T. DeKok [Tue, 20 Aug 2019 17:30:02 +0000 (13:30 -0400)] 
make vb_date / vp_date into fr_time_t

the tests pass, so everything is OK, right?

6 years agoremove unused definitions
Alan T. DeKok [Tue, 20 Aug 2019 17:07:17 +0000 (13:07 -0400)] 
remove unused definitions

6 years agoAcct-Session-Time is uint32, not date data type.
Alan T. DeKok [Tue, 20 Aug 2019 17:06:27 +0000 (13:06 -0400)] 
Acct-Session-Time is uint32, not date data type.

6 years agowe can't dereference a 64-bit int as a 32-bit one
Alan T. DeKok [Tue, 20 Aug 2019 16:53:19 +0000 (12:53 -0400)] 
we can't dereference a 64-bit int as a 32-bit one

6 years agoadd files deleted in earlier commit
Alan T. DeKok [Tue, 20 Aug 2019 16:48:04 +0000 (12:48 -0400)] 
add files deleted in earlier commit

6 years agoadd tests for dates
Alan T. DeKok [Tue, 20 Aug 2019 16:39:23 +0000 (12:39 -0400)] 
add tests for dates

before we start mangling the date functions

6 years agodon't use quotation marks for dates
Alan T. DeKok [Tue, 20 Aug 2019 16:33:12 +0000 (12:33 -0400)] 
don't use quotation marks for dates

6 years agopass fr_dict_attr_t to fr_value_box_to_network()
Alan T. DeKok [Tue, 20 Aug 2019 16:01:23 +0000 (12:01 -0400)] 
pass fr_dict_attr_t to fr_value_box_to_network()

in preparation for variable-sized dates on the network

6 years agoset the size of the parent structure
Alan T. DeKok [Tue, 20 Aug 2019 14:57:53 +0000 (10:57 -0400)] 
set the size of the parent structure

Which is only the size of the header, and does not include
any TLVs or sub-structures

6 years agoremove unused types
Alan T. DeKok [Tue, 20 Aug 2019 14:25:49 +0000 (10:25 -0400)] 
remove unused types

6 years agoallow bare dictionary name
Alan T. DeKok [Tue, 20 Aug 2019 13:58:16 +0000 (09:58 -0400)] 
allow bare dictionary name

6 years agoadd AUTHOR line
Alan T. DeKok [Tue, 20 Aug 2019 13:40:46 +0000 (09:40 -0400)] 
add AUTHOR line

6 years agodoc: Add 'INSTALL' to howto/ section (#2904)
Jorge Pereira [Tue, 20 Aug 2019 14:23:15 +0000 (11:23 -0300)] 
doc: Add 'INSTALL' to howto/ section (#2904)

6 years agomove radclient to adoc
Alan T. DeKok [Tue, 20 Aug 2019 13:35:04 +0000 (09:35 -0400)] 
move radclient to adoc

added build rules for ".1" man pages.

fixed the install rule to use ${FILE} instead of $(MAN_FILES)
which means the install rule is for one file, not all of them

6 years agotypos
Alan T. DeKok [Tue, 20 Aug 2019 13:34:39 +0000 (09:34 -0400)] 
typos

6 years agofix for new formatting and new call methods. Helps with #2901
Alan T. DeKok [Tue, 20 Aug 2019 13:06:47 +0000 (09:06 -0400)] 
fix for new formatting and new call methods.  Helps with #2901

Tho we should likely just delete a good chunk of this file,
and point instead to the doxygen definitions for the module
init, instantiate. etc. functions

6 years agoupdate install. Helps with #2901
Alan T. DeKok [Tue, 20 Aug 2019 12:59:02 +0000 (08:59 -0400)] 
update install.  Helps with #2901

6 years agouse double quotes. Helps with #2901
Alan T. DeKok [Tue, 20 Aug 2019 12:54:51 +0000 (08:54 -0400)] 
use double quotes.  Helps with #2901

6 years agodo "group" fixups for forward references to other dictionaries
Alan T. DeKok [Mon, 19 Aug 2019 22:23:50 +0000 (18:23 -0400)] 
do "group" fixups for forward references to other dictionaries

the basics seem to work.  But the reference counts for these
auto-loaded dictionaries should be checked.  We may need to add
code to deal with that, *or* delete the code that is currently
mangling the reference counts.

More testing will let us know

6 years agomove radiusd.8 to doc/man/radiusd.adoc
Alan T. DeKok [Mon, 19 Aug 2019 22:20:13 +0000 (18:20 -0400)] 
move radiusd.8 to doc/man/radiusd.adoc

now that we have rules to create the "radiusd.8" file from
"radiusd.adoc", along with rules to install the "radiusd.8" file

6 years agostrip trailing '/' off of directories
Alan T. DeKok [Mon, 19 Aug 2019 22:17:34 +0000 (18:17 -0400)] 
strip trailing '/' off of directories

Because GNU Make works on strings.  So "foo/" is NOT the same
as "foo", even though they both point to the same directory.