]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
7 years agoMerge branch 'master' into v4/xlat-async-length 2528/head
Arran Cudbard-Bell [Wed, 27 Feb 2019 01:06:53 +0000 (09:06 +0800)] 
Merge branch 'master' into v4/xlat-async-length

7 years agoMerge pull request #2523 from jpereira/v4/xlat-async-strlen
Arran Cudbard-Bell [Wed, 27 Feb 2019 00:59:37 +0000 (08:59 +0800)] 
Merge pull request #2523 from jpereira/v4/xlat-async-strlen

xlat: move '%{strlen: ...} to async

7 years agoMerge branch 'master' into v4/xlat-async-strlen 2523/head
Arran Cudbard-Bell [Wed, 27 Feb 2019 00:59:09 +0000 (08:59 +0800)] 
Merge branch 'master' into v4/xlat-async-strlen

7 years agoMerge pull request #2522 from jpereira/v4/xlat-async-module
Arran Cudbard-Bell [Wed, 27 Feb 2019 00:56:38 +0000 (08:56 +0800)] 
Merge pull request #2522 from jpereira/v4/xlat-async-module

xlat: move '%{module: ...} to async

7 years agoxlat: move '%{tag: ...}' to async
Jorge Pereira [Tue, 26 Feb 2019 23:56:49 +0000 (20:56 -0300)] 
xlat: move '%{tag: ...}' to async

7 years agofixup! xlat: move '%{length: ...}' to async
Jorge Pereira [Tue, 26 Feb 2019 23:44:02 +0000 (20:44 -0300)] 
fixup! xlat: move '%{length: ...}' to async

7 years agoxlat: move '%{length: ...}' to async
Jorge Pereira [Tue, 26 Feb 2019 23:24:02 +0000 (20:24 -0300)] 
xlat: move '%{length: ...}' to async

7 years agoadd support for `next-address IPADDR`
Alan T. DeKok [Tue, 26 Feb 2019 22:51:11 +0000 (17:51 -0500)] 
add support for `next-address IPADDR`

7 years agoadd parsers for `server-name STRING` and `filename STRING`
Alan T. DeKok [Tue, 26 Feb 2019 22:22:13 +0000 (17:22 -0500)] 
add parsers for `server-name STRING` and `filename STRING`

7 years agotypo
Alan T. DeKok [Tue, 26 Feb 2019 22:22:05 +0000 (17:22 -0500)] 
typo

7 years agoxlat: move '%{module: ...} to async 2522/head
Jorge Pereira [Tue, 26 Feb 2019 18:28:44 +0000 (15:28 -0300)] 
xlat: move '%{module: ...} to async

7 years agoremove extraneous printf
Alan T. DeKok [Tue, 26 Feb 2019 18:25:35 +0000 (13:25 -0500)] 
remove extraneous printf

7 years agomake hosts global
Alan T. DeKok [Tue, 26 Feb 2019 18:23:54 +0000 (13:23 -0500)] 
make hosts global

7 years agoxlat: move '%{strlen: ...} to async
Jorge Pereira [Tue, 26 Feb 2019 16:24:00 +0000 (13:24 -0300)] 
xlat: move '%{strlen: ...} to async

7 years agoremove duplicate sql config
Matthew Newton [Tue, 26 Feb 2019 16:05:20 +0000 (16:05 +0000)] 
remove duplicate sql config

7 years agoFix libcurl's apparently random line termination and concatenation in debug output
Arran Cudbard-Bell [Tue, 26 Feb 2019 14:01:27 +0000 (22:01 +0800)] 
Fix libcurl's apparently random line termination and concatenation in debug output

7 years agoDoxygen?
Arran Cudbard-Bell [Tue, 26 Feb 2019 11:48:59 +0000 (19:48 +0800)] 
Doxygen?

7 years agoAdd length to rest_debug_log
Arran Cudbard-Bell [Tue, 26 Feb 2019 11:47:18 +0000 (19:47 +0800)] 
Add length to rest_debug_log

7 years agoMinor doc typos closes #2524
Arran Cudbard-Bell [Tue, 26 Feb 2019 11:37:18 +0000 (19:37 +0800)] 
Minor doc typos closes #2524

7 years agoAdd debug functions for libcurl
Arran Cudbard-Bell [Tue, 26 Feb 2019 11:00:07 +0000 (19:00 +0800)] 
Add debug functions for libcurl

7 years agoIntegers passed to curl_set_option should be long
Arran Cudbard-Bell [Tue, 26 Feb 2019 10:59:56 +0000 (18:59 +0800)] 
Integers passed to curl_set_option should be long

7 years agoShould be debug level 2
Arran Cudbard-Bell [Tue, 26 Feb 2019 10:59:06 +0000 (18:59 +0800)] 
Should be debug level 2

7 years agoFormatting
Arran Cudbard-Bell [Tue, 26 Feb 2019 09:20:48 +0000 (17:20 +0800)] 
Formatting

7 years agoTypo
Arran Cudbard-Bell [Tue, 26 Feb 2019 09:20:38 +0000 (17:20 +0800)] 
Typo

7 years agoDocument PostgreSQL states override
Arran Cudbard-Bell [Tue, 26 Feb 2019 09:05:47 +0000 (17:05 +0800)] 
Document PostgreSQL states override

7 years agoRename 'done' rcode
Arran Cudbard-Bell [Tue, 26 Feb 2019 09:00:22 +0000 (17:00 +0800)] 
Rename 'done' rcode

7 years agoShouldn't be a title for $-INCLUDE
Arran Cudbard-Bell [Tue, 26 Feb 2019 09:00:10 +0000 (17:00 +0800)] 
Shouldn't be a title for $-INCLUDE

7 years agoBuild error
Arran Cudbard-Bell [Tue, 26 Feb 2019 08:23:02 +0000 (16:23 +0800)] 
Build error

7 years agoAllow user configurable sqlstate return codes for PostgreSQL
Arran Cudbard-Bell [Tue, 26 Feb 2019 07:07:40 +0000 (15:07 +0800)] 
Allow user configurable sqlstate return codes for PostgreSQL

7 years agoFormatting
Arran Cudbard-Bell [Tue, 26 Feb 2019 05:47:34 +0000 (13:47 +0800)] 
Formatting

7 years agoDefault to sending the application name in v4
Arran Cudbard-Bell [Tue, 26 Feb 2019 05:43:49 +0000 (13:43 +0800)] 
Default to sending the application name in v4

7 years agoFunction to mark pair as parsed, for when we're manually processing pairs
Arran Cudbard-Bell [Tue, 26 Feb 2019 05:42:51 +0000 (13:42 +0800)] 
Function to mark pair as parsed, for when we're manually processing pairs

7 years agoMinor fixes in trie function
Arran Cudbard-Bell [Tue, 26 Feb 2019 05:42:23 +0000 (13:42 +0800)] 
Minor fixes in trie function

- Data to insert should be marked as const
- Callback should take keylen as size_t

7 years agoNotes on setting up PostgreSQL server for macOS
Arran Cudbard-Bell [Tue, 26 Feb 2019 05:35:43 +0000 (13:35 +0800)] 
Notes on setting up PostgreSQL server for macOS

7 years agoadd "pedantic" flag
Alan T. DeKok [Mon, 25 Feb 2019 20:44:23 +0000 (15:44 -0500)] 
add "pedantic" flag

7 years agoadd "inst" to parsing state
Alan T. DeKok [Mon, 25 Feb 2019 20:34:14 +0000 (15:34 -0500)] 
add "inst" to parsing state

7 years agocheck for first 3 characters, to avoid strncmp() cost
Alan T. DeKok [Mon, 25 Feb 2019 20:31:54 +0000 (15:31 -0500)] 
check for first 3 characters, to avoid strncmp() cost

7 years agotypo
Alan T. DeKok [Mon, 25 Feb 2019 20:31:44 +0000 (15:31 -0500)] 
typo

7 years agoencode "bool" types, too
Alan T. DeKok [Mon, 25 Feb 2019 20:29:16 +0000 (15:29 -0500)] 
encode "bool" types, too

7 years agorun through the formatting script.
Alan T. DeKok [Mon, 25 Feb 2019 20:23:04 +0000 (15:23 -0500)] 
run through the formatting script.

and touch up a few attributes

7 years agoMerge pull request #2514 from jpereira/v4/isc-dictionary2
Alan DeKok [Mon, 25 Feb 2019 20:05:32 +0000 (15:05 -0500)] 
Merge pull request #2514 from jpereira/v4/isc-dictionary2

Add ISC dictionaries for rlm_isc_dhcp. ref #2501

7 years agoMerge pull request #2519 from jpereira/v4/fix1
Alan DeKok [Mon, 25 Feb 2019 20:01:26 +0000 (15:01 -0500)] 
Merge pull request #2519 from jpereira/v4/fix1

rlm_isc_dhcp: Add missing talloc_free()

7 years agorlm_isc_dhcp: Add missing talloc_free() 2519/head
Jorge Pereira [Mon, 25 Feb 2019 19:47:55 +0000 (16:47 -0300)] 
rlm_isc_dhcp: Add missing talloc_free()

7 years agoallow and parse 'array of'
Alan T. DeKok [Sun, 24 Feb 2019 18:21:56 +0000 (13:21 -0500)] 
allow and parse 'array of'

and parse arrays attributes properly, too

7 years agocreate a new VP for each array VPs
Alan T. DeKok [Sun, 24 Feb 2019 18:21:29 +0000 (13:21 -0500)] 
create a new VP for each array VPs

7 years agoadd in the new option that the user defined
Alan T. DeKok [Sun, 24 Feb 2019 18:00:58 +0000 (13:00 -0500)] 
add in the new option that the user defined

7 years agostart of adding option definitions
Alan T. DeKok [Sun, 24 Feb 2019 17:02:26 +0000 (12:02 -0500)] 
start of adding option definitions

7 years agocleanups and fixes
Alan T. DeKok [Sun, 24 Feb 2019 15:34:30 +0000 (10:34 -0500)] 
cleanups and fixes

differentiate between options we deliberately ignore, and ones
we don't implement.

start of parsing for multiple different option statements

7 years agorlm_isc_dhcp: Add ISC dictionary. ref #2501 2514/head
Jorge Pereira [Sat, 23 Feb 2019 23:31:52 +0000 (20:31 -0300)] 
rlm_isc_dhcp: Add ISC dictionary. ref #2501

7 years agodon't print offset
Alan T. DeKok [Sat, 23 Feb 2019 19:04:06 +0000 (14:04 -0500)] 
don't print offset

we don't track which token came from which line, so it's best
to not mislead the admin.

We can fix this by tracking line numbers and start of lines
in the input buffer, which is a bit more work...

7 years agostart of a parser for quoted strings, too
Alan T. DeKok [Sat, 23 Feb 2019 19:03:49 +0000 (14:03 -0500)] 
start of a parser for quoted strings, too

7 years agouse a macro for less cut & paste
Alan T. DeKok [Sat, 23 Feb 2019 18:39:48 +0000 (13:39 -0500)] 
use a macro for less cut & paste

note that the macro is lowercase, for less shouting.
It also lets us more clearly distinguish between the "not done"
commands, and the commands which do something

7 years agoadd more commands. Manual merge of #2515
Alan T. DeKok [Sat, 23 Feb 2019 18:38:10 +0000 (13:38 -0500)] 
add more commands.  Manual merge of #2515

7 years agolook at first character for speed
Alan T. DeKok [Sat, 23 Feb 2019 18:37:46 +0000 (13:37 -0500)] 
look at first character for speed

7 years agoxlat_debug_attr should not produce an error if we're not at DEBUG level 2
Arran Cudbard-Bell [Sat, 23 Feb 2019 14:52:24 +0000 (22:52 +0800)] 
xlat_debug_attr should not produce an error if we're not at DEBUG level 2

I think these were previously ignored in bare xlats which is why this wasn't previously a problem

7 years agoChange more messages to DEBUG2
Arran Cudbard-Bell [Sat, 23 Feb 2019 14:39:24 +0000 (22:39 +0800)] 
Change more messages to DEBUG2

7 years agoPrint the result of policy evaluations
Arran Cudbard-Bell [Sat, 23 Feb 2019 14:30:10 +0000 (22:30 +0800)] 
Print the result of policy evaluations

7 years agoSwitch most calls to RDEBUG to REDBUG2
Arran Cudbard-Bell [Sat, 23 Feb 2019 14:01:34 +0000 (22:01 +0800)] 
Switch most calls to RDEBUG to REDBUG2

Frontend modules left using RDEBUG, module return codes changed to RDEBUG, this should hopefully produce more consistent debug output, and make radiusd -x  more useful

7 years agoUse fr_value_box_to_network in DHCPv4 encoder
Arran Cudbard-Bell [Sat, 23 Feb 2019 13:59:22 +0000 (21:59 +0800)] 
Use fr_value_box_to_network in DHCPv4 encoder

7 years agoremove the options from the top-level table.
Alan T. DeKok [Fri, 22 Feb 2019 22:40:58 +0000 (17:40 -0500)] 
remove the options from the top-level table.

The options are implicit in `option NAME VALUE`

the NAME is looked up in the DHCPv4 dictionary

7 years agoignore boolean options with "ignore"
Alan T. DeKok [Fri, 22 Feb 2019 20:23:29 +0000 (15:23 -0500)] 
ignore boolean options with "ignore"

7 years agoformatting
Alan T. DeKok [Fri, 22 Feb 2019 20:20:23 +0000 (15:20 -0500)] 
formatting

7 years agomake notes about matching `host` only if `fixed-address` matches
Alan T. DeKok [Fri, 22 Feb 2019 20:12:05 +0000 (15:12 -0500)] 
make notes about matching `host` only if `fixed-address` matches

7 years agomove to binary search for commands
Alan T. DeKok [Fri, 22 Feb 2019 20:11:43 +0000 (15:11 -0500)] 
move to binary search for commands

7 years agobetter error message
Alan T. DeKok [Fri, 22 Feb 2019 20:10:35 +0000 (15:10 -0500)] 
better error message

7 years agoMerge pull request #2512 from jpereira/v4/isc_dhcp-all-options
Alan DeKok [Fri, 22 Feb 2019 20:05:18 +0000 (15:05 -0500)] 
Merge pull request #2512 from jpereira/v4/isc_dhcp-all-options

isc_dhcp: Add all ISC supported options as stub

7 years agoisc_dhcp: Add all ISC supported options as stub 2512/head
Jorge Pereira [Fri, 22 Feb 2019 19:16:52 +0000 (16:16 -0300)] 
isc_dhcp: Add all ISC supported options as stub

7 years agomake Alex happy with a shiny spoon-feeding.
Alan T. DeKok [Fri, 22 Feb 2019 14:50:58 +0000 (09:50 -0500)] 
make Alex happy with a shiny spoon-feeding.

7 years agouse enums instead of strcmp
Alan T. DeKok [Thu, 21 Feb 2019 20:06:07 +0000 (15:06 -0500)] 
use enums instead of strcmp

7 years agoDon't assert at higher debug levels
Arran Cudbard-Bell [Fri, 22 Feb 2019 08:32:47 +0000 (16:32 +0800)] 
Don't assert at higher debug levels

7 years agoTypo
Arran Cudbard-Bell [Fri, 22 Feb 2019 06:39:57 +0000 (14:39 +0800)] 
Typo

7 years agoDoxygen
Arran Cudbard-Bell [Fri, 22 Feb 2019 05:49:01 +0000 (13:49 +0800)] 
Doxygen

7 years agoMove optional parameters out of the xlat_async_register function
Arran Cudbard-Bell [Fri, 22 Feb 2019 05:41:04 +0000 (13:41 +0800)] 
Move optional parameters out of the xlat_async_register function

It was dumb adding 7 NULLs in each registration call

7 years agoInclude basic tests for DHCPv4 encode and decode xlats
Arran Cudbard-Bell [Fri, 22 Feb 2019 03:19:58 +0000 (11:19 +0800)] 
Include basic tests for DHCPv4 encode and decode xlats

7 years agoOnly encode dhcpv4 attributes
Arran Cudbard-Bell [Fri, 22 Feb 2019 03:12:13 +0000 (11:12 +0800)] 
Only encode dhcpv4 attributes

7 years agosim test not relevant
Arran Cudbard-Bell [Fri, 22 Feb 2019 03:11:46 +0000 (11:11 +0800)] 
sim test not relevant

7 years agoSteal tmpl memory into the cursor
Arran Cudbard-Bell [Fri, 22 Feb 2019 03:11:20 +0000 (11:11 +0800)] 
Steal tmpl memory into the cursor

7 years agodoxygen
Alan T. DeKok [Thu, 21 Feb 2019 19:12:55 +0000 (14:12 -0500)] 
doxygen

7 years agotypo
Alan T. DeKok [Thu, 21 Feb 2019 17:26:25 +0000 (12:26 -0500)] 
typo

7 years agoMove DHCP xlat functions to async
Arran Cudbard-Bell [Thu, 21 Feb 2019 14:29:39 +0000 (22:29 +0800)] 
Move DHCP xlat functions to async

7 years agoAdd functions for evaluating format strings and saving the result in value boxes
Arran Cudbard-Bell [Thu, 21 Feb 2019 14:27:35 +0000 (22:27 +0800)] 
Add functions for evaluating format strings and saving the result in value boxes

7 years agoAdd convenience function for parsing format strings as attr refs
Arran Cudbard-Bell [Thu, 21 Feb 2019 14:26:57 +0000 (22:26 +0800)] 
Add convenience function for parsing format strings as attr refs

7 years agofix this, too
Alan T. DeKok [Thu, 21 Feb 2019 14:11:03 +0000 (09:11 -0500)] 
fix this, too

7 years agoRevert "parameterize ON CONFLICT"
Alan T. DeKok [Thu, 21 Feb 2019 14:07:36 +0000 (09:07 -0500)] 
Revert "parameterize ON CONFLICT"

This reverts commit 99fe5e062618057f14acb41fddd2a6539a100aec.

this isn't needed

7 years agoparameterize ON CONFLICT
Alan T. DeKok [Thu, 21 Feb 2019 12:11:35 +0000 (07:11 -0500)] 
parameterize ON CONFLICT

so that travis passes

7 years agoMerge pull request #2506 from jpereira/v4/fix-isc1
Alan DeKok [Thu, 21 Feb 2019 11:48:17 +0000 (06:48 -0500)] 
Merge pull request #2506 from jpereira/v4/fix-isc1

isc_dhcp: Add missing $moddir

7 years agoEverywhere else they're called tables...
Arran Cudbard-Bell [Thu, 21 Feb 2019 09:33:06 +0000 (17:33 +0800)] 
Everywhere else they're called tables...

7 years agoPackage isc_dhcp
Arran Cudbard-Bell [Thu, 21 Feb 2019 08:27:38 +0000 (16:27 +0800)] 
Package isc_dhcp

7 years agoFix test
Arran Cudbard-Bell [Thu, 21 Feb 2019 08:05:37 +0000 (16:05 +0800)] 
Fix test

7 years agoTypo
Arran Cudbard-Bell [Thu, 21 Feb 2019 07:26:02 +0000 (15:26 +0800)] 
Typo

7 years agoBetter guards around parsing issues in the map xlat expression
Arran Cudbard-Bell [Thu, 21 Feb 2019 07:16:59 +0000 (15:16 +0800)] 
Better guards around parsing issues in the map xlat expression

Make & optional for attribute types

7 years agoBump PG to 10 in travis
Arran Cudbard-Bell [Thu, 21 Feb 2019 00:33:29 +0000 (08:33 +0800)] 
Bump PG to 10 in travis

7 years agoMerge pull request #2505 from jpereira/v4/fix-tls
Arran Cudbard-Bell [Thu, 21 Feb 2019 00:28:08 +0000 (08:28 +0800)] 
Merge pull request #2505 from jpereira/v4/fix-tls

Fix warn related to limited range of data type

7 years agoisc_dhcp: Add missing $moddir 2506/head
Jorge Pereira [Thu, 21 Feb 2019 00:23:58 +0000 (21:23 -0300)] 
isc_dhcp: Add missing $moddir

7 years agoFix warn related to limited range of data type 2505/head
Jorge Pereira [Wed, 20 Feb 2019 22:18:27 +0000 (19:18 -0300)] 
Fix warn related to limited range of data type

7 years agoapply the most specific thing first
Alan T. DeKok [Wed, 20 Feb 2019 21:28:30 +0000 (16:28 -0500)] 
apply the most specific thing first

and actually assign an IP address

7 years agono need to multiply by USEC
Alan T. DeKok [Wed, 20 Feb 2019 20:00:27 +0000 (15:00 -0500)] 
no need to multiply by USEC

7 years agodocumentation is useful
Alan T. DeKok [Wed, 20 Feb 2019 18:29:04 +0000 (13:29 -0500)] 
documentation is useful

7 years agoapply options from the bottom up
Alan T. DeKok [Wed, 20 Feb 2019 17:54:24 +0000 (12:54 -0500)] 
apply options from the bottom up

i.e. if an option is at depth N, and the same option is at depth N+1,
then we apply the option at depth N+1, and ignore the option at
depth N.

We do this the naive way.  By adding options from the bottom up,
but ONLY if the options don't already exist in the reply.
i.e. adding options *after* we've recursed into the child
sections.

This ends up being maybe O(N^2) in the number of options.  But
the number of options is small, so oh well...

7 years agoadd client identifier hash table, too.
Alan T. DeKok [Wed, 20 Feb 2019 15:54:35 +0000 (10:54 -0500)] 
add client identifier hash table, too.

hosts are first looked up by client identifier, and only
if that doesn't mactch, they're looked up by client hardware address