]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Arran Cudbard-Bell [Wed, 27 Feb 2019 01:06:53 +0000 (09:06 +0800)]
Merge branch 'master' into v4/xlat-async-length
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
Arran Cudbard-Bell [Wed, 27 Feb 2019 00:59:09 +0000 (08:59 +0800)]
Merge branch 'master' into v4/xlat-async-strlen
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
Jorge Pereira [Tue, 26 Feb 2019 23:56:49 +0000 (20:56 -0300)]
xlat: move '%{tag: ...}' to async
Jorge Pereira [Tue, 26 Feb 2019 23:44:02 +0000 (20:44 -0300)]
fixup! xlat: move '%{length: ...}' to async
Jorge Pereira [Tue, 26 Feb 2019 23:24:02 +0000 (20:24 -0300)]
xlat: move '%{length: ...}' to async
Alan T. DeKok [Tue, 26 Feb 2019 22:51:11 +0000 (17:51 -0500)]
add support for `next-address IPADDR`
Alan T. DeKok [Tue, 26 Feb 2019 22:22:13 +0000 (17:22 -0500)]
add parsers for `server-name STRING` and `filename STRING`
Alan T. DeKok [Tue, 26 Feb 2019 22:22:05 +0000 (17:22 -0500)]
typo
Jorge Pereira [Tue, 26 Feb 2019 18:28:44 +0000 (15:28 -0300)]
xlat: move '%{module: ...} to async
Alan T. DeKok [Tue, 26 Feb 2019 18:25:35 +0000 (13:25 -0500)]
remove extraneous printf
Alan T. DeKok [Tue, 26 Feb 2019 18:23:54 +0000 (13:23 -0500)]
make hosts global
Jorge Pereira [Tue, 26 Feb 2019 16:24:00 +0000 (13:24 -0300)]
xlat: move '%{strlen: ...} to async
Matthew Newton [Tue, 26 Feb 2019 16:05:20 +0000 (16:05 +0000)]
remove duplicate sql config
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
Arran Cudbard-Bell [Tue, 26 Feb 2019 11:48:59 +0000 (19:48 +0800)]
Doxygen?
Arran Cudbard-Bell [Tue, 26 Feb 2019 11:47:18 +0000 (19:47 +0800)]
Add length to rest_debug_log
Arran Cudbard-Bell [Tue, 26 Feb 2019 11:37:18 +0000 (19:37 +0800)]
Minor doc typos closes #2524
Arran Cudbard-Bell [Tue, 26 Feb 2019 11:00:07 +0000 (19:00 +0800)]
Add debug functions for libcurl
Arran Cudbard-Bell [Tue, 26 Feb 2019 10:59:56 +0000 (18:59 +0800)]
Integers passed to curl_set_option should be long
Arran Cudbard-Bell [Tue, 26 Feb 2019 10:59:06 +0000 (18:59 +0800)]
Should be debug level 2
Arran Cudbard-Bell [Tue, 26 Feb 2019 09:20:48 +0000 (17:20 +0800)]
Formatting
Arran Cudbard-Bell [Tue, 26 Feb 2019 09:20:38 +0000 (17:20 +0800)]
Typo
Arran Cudbard-Bell [Tue, 26 Feb 2019 09:05:47 +0000 (17:05 +0800)]
Document PostgreSQL states override
Arran Cudbard-Bell [Tue, 26 Feb 2019 09:00:22 +0000 (17:00 +0800)]
Rename 'done' rcode
Arran Cudbard-Bell [Tue, 26 Feb 2019 09:00:10 +0000 (17:00 +0800)]
Shouldn't be a title for $-INCLUDE
Arran Cudbard-Bell [Tue, 26 Feb 2019 08:23:02 +0000 (16:23 +0800)]
Build error
Arran Cudbard-Bell [Tue, 26 Feb 2019 07:07:40 +0000 (15:07 +0800)]
Allow user configurable sqlstate return codes for PostgreSQL
Arran Cudbard-Bell [Tue, 26 Feb 2019 05:47:34 +0000 (13:47 +0800)]
Formatting
Arran Cudbard-Bell [Tue, 26 Feb 2019 05:43:49 +0000 (13:43 +0800)]
Default to sending the application name in v4
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
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
Arran Cudbard-Bell [Tue, 26 Feb 2019 05:35:43 +0000 (13:35 +0800)]
Notes on setting up PostgreSQL server for macOS
Alan T. DeKok [Mon, 25 Feb 2019 20:44:23 +0000 (15:44 -0500)]
add "pedantic" flag
Alan T. DeKok [Mon, 25 Feb 2019 20:34:14 +0000 (15:34 -0500)]
add "inst" to parsing state
Alan T. DeKok [Mon, 25 Feb 2019 20:31:54 +0000 (15:31 -0500)]
check for first 3 characters, to avoid strncmp() cost
Alan T. DeKok [Mon, 25 Feb 2019 20:31:44 +0000 (15:31 -0500)]
typo
Alan T. DeKok [Mon, 25 Feb 2019 20:29:16 +0000 (15:29 -0500)]
encode "bool" types, too
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
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
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()
Jorge Pereira [Mon, 25 Feb 2019 19:47:55 +0000 (16:47 -0300)]
rlm_isc_dhcp: Add missing talloc_free()
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
Alan T. DeKok [Sun, 24 Feb 2019 18:21:29 +0000 (13:21 -0500)]
create a new VP for each array VPs
Alan T. DeKok [Sun, 24 Feb 2019 18:00:58 +0000 (13:00 -0500)]
add in the new option that the user defined
Alan T. DeKok [Sun, 24 Feb 2019 17:02:26 +0000 (12:02 -0500)]
start of adding option definitions
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
Jorge Pereira [Sat, 23 Feb 2019 23:31:52 +0000 (20:31 -0300)]
rlm_isc_dhcp: Add ISC dictionary. ref #2501
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...
Alan T. DeKok [Sat, 23 Feb 2019 19:03:49 +0000 (14:03 -0500)]
start of a parser for quoted strings, too
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
Alan T. DeKok [Sat, 23 Feb 2019 18:38:10 +0000 (13:38 -0500)]
add more commands. Manual merge of #2515
Alan T. DeKok [Sat, 23 Feb 2019 18:37:46 +0000 (13:37 -0500)]
look at first character for speed
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
Arran Cudbard-Bell [Sat, 23 Feb 2019 14:39:24 +0000 (22:39 +0800)]
Change more messages to DEBUG2
Arran Cudbard-Bell [Sat, 23 Feb 2019 14:30:10 +0000 (22:30 +0800)]
Print the result of policy evaluations
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
Arran Cudbard-Bell [Sat, 23 Feb 2019 13:59:22 +0000 (21:59 +0800)]
Use fr_value_box_to_network in DHCPv4 encoder
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
Alan T. DeKok [Fri, 22 Feb 2019 20:23:29 +0000 (15:23 -0500)]
ignore boolean options with "ignore"
Alan T. DeKok [Fri, 22 Feb 2019 20:20:23 +0000 (15:20 -0500)]
formatting
Alan T. DeKok [Fri, 22 Feb 2019 20:12:05 +0000 (15:12 -0500)]
make notes about matching `host` only if `fixed-address` matches
Alan T. DeKok [Fri, 22 Feb 2019 20:11:43 +0000 (15:11 -0500)]
move to binary search for commands
Alan T. DeKok [Fri, 22 Feb 2019 20:10:35 +0000 (15:10 -0500)]
better error message
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
Jorge Pereira [Fri, 22 Feb 2019 19:16:52 +0000 (16:16 -0300)]
isc_dhcp: Add all ISC supported options as stub
Alan T. DeKok [Fri, 22 Feb 2019 14:50:58 +0000 (09:50 -0500)]
make Alex happy with a shiny spoon-feeding.
Alan T. DeKok [Thu, 21 Feb 2019 20:06:07 +0000 (15:06 -0500)]
use enums instead of strcmp
Arran Cudbard-Bell [Fri, 22 Feb 2019 08:32:47 +0000 (16:32 +0800)]
Don't assert at higher debug levels
Arran Cudbard-Bell [Fri, 22 Feb 2019 06:39:57 +0000 (14:39 +0800)]
Typo
Arran Cudbard-Bell [Fri, 22 Feb 2019 05:49:01 +0000 (13:49 +0800)]
Doxygen
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
Arran Cudbard-Bell [Fri, 22 Feb 2019 03:19:58 +0000 (11:19 +0800)]
Include basic tests for DHCPv4 encode and decode xlats
Arran Cudbard-Bell [Fri, 22 Feb 2019 03:12:13 +0000 (11:12 +0800)]
Only encode dhcpv4 attributes
Arran Cudbard-Bell [Fri, 22 Feb 2019 03:11:46 +0000 (11:11 +0800)]
sim test not relevant
Arran Cudbard-Bell [Fri, 22 Feb 2019 03:11:20 +0000 (11:11 +0800)]
Steal tmpl memory into the cursor
Alan T. DeKok [Thu, 21 Feb 2019 19:12:55 +0000 (14:12 -0500)]
doxygen
Alan T. DeKok [Thu, 21 Feb 2019 17:26:25 +0000 (12:26 -0500)]
typo
Arran Cudbard-Bell [Thu, 21 Feb 2019 14:29:39 +0000 (22:29 +0800)]
Move DHCP xlat functions to async
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
Arran Cudbard-Bell [Thu, 21 Feb 2019 14:26:57 +0000 (22:26 +0800)]
Add convenience function for parsing format strings as attr refs
Alan T. DeKok [Thu, 21 Feb 2019 14:11:03 +0000 (09:11 -0500)]
fix this, too
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
Alan T. DeKok [Thu, 21 Feb 2019 12:11:35 +0000 (07:11 -0500)]
parameterize ON CONFLICT
so that travis passes
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
Arran Cudbard-Bell [Thu, 21 Feb 2019 09:33:06 +0000 (17:33 +0800)]
Everywhere else they're called tables...
Arran Cudbard-Bell [Thu, 21 Feb 2019 08:27:38 +0000 (16:27 +0800)]
Package isc_dhcp
Arran Cudbard-Bell [Thu, 21 Feb 2019 08:05:37 +0000 (16:05 +0800)]
Fix test
Arran Cudbard-Bell [Thu, 21 Feb 2019 07:26:02 +0000 (15:26 +0800)]
Typo
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
Arran Cudbard-Bell [Thu, 21 Feb 2019 00:33:29 +0000 (08:33 +0800)]
Bump PG to 10 in travis
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
Jorge Pereira [Thu, 21 Feb 2019 00:23:58 +0000 (21:23 -0300)]
isc_dhcp: Add missing $moddir
Jorge Pereira [Wed, 20 Feb 2019 22:18:27 +0000 (19:18 -0300)]
Fix warn related to limited range of data type
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
Alan T. DeKok [Wed, 20 Feb 2019 20:00:27 +0000 (15:00 -0500)]
no need to multiply by USEC
Alan T. DeKok [Wed, 20 Feb 2019 18:29:04 +0000 (13:29 -0500)]
documentation is useful
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...
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