]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
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
Alan T. DeKok [Wed, 20 Feb 2019 14:27:05 +0000 (09:27 -0500)]
split address assignment from option assignment
"recv Access-Request" assigns fixed IPs, and only that.
"send Access-Accept" applies the rest of the options
and added some notes on how it *should* behave. Right now,
the behavior is different from ISC, and that should be fixed
as much as possible.
Arran Cudbard-Bell [Wed, 20 Feb 2019 12:24:49 +0000 (20:24 +0800)]
Avoid spurious error messages on acctuniqueid conflicts using PG's 'upsert' functionality
Alan T. DeKok [Wed, 20 Feb 2019 02:00:35 +0000 (21:00 -0500)]
disallow nested statements
i.e. "host" inside of "host"
except for "group", which is fine...
Alan T. DeKok [Tue, 19 Feb 2019 23:11:12 +0000 (18:11 -0500)]
parse and create subnets.
We're still not *quite* sure what to do with them, though.
Alan T. DeKok [Tue, 19 Feb 2019 23:06:08 +0000 (18:06 -0500)]
allow "%.*s" for strings
so we don't crash when using them.
Alan T. DeKok [Tue, 19 Feb 2019 17:55:35 +0000 (12:55 -0500)]
allow multiple arguments for options
but only if the attribute has the "array" flag set.
We still don't parse any of the more complex option codes,
like the ones defining new attributes. That should be fine
for most people.
Alan T. DeKok [Tue, 19 Feb 2019 17:40:38 +0000 (12:40 -0500)]
child options over-ride parent options
Alan T. DeKok [Tue, 19 Feb 2019 17:30:38 +0000 (12:30 -0500)]
added some option parsing, and cleanups.
The debug output showing what it parsed prints things out in
reverse order for sections. That's because the sub-section
is parsed before the `parse_foo()` function is called.
Which is likely OK in the larger scheme of things.
Alan T. DeKok [Tue, 19 Feb 2019 01:17:26 +0000 (20:17 -0500)]
fix compiler warning
Alan T. DeKok [Mon, 18 Feb 2019 21:50:14 +0000 (16:50 -0500)]
use DHCP-Client-Hardware-Address for MAC lookups
The module is DHCP only, so we might as well use that.
Alan T. DeKok [Mon, 18 Feb 2019 21:28:01 +0000 (16:28 -0500)]
simplify error messages, and make better ones
Alan T. DeKok [Mon, 18 Feb 2019 20:43:07 +0000 (15:43 -0500)]
comment things out until the function is done
Alan T. DeKok [Mon, 18 Feb 2019 16:53:22 +0000 (11:53 -0500)]
added skeleton for parse_option
Alan T. DeKok [Mon, 18 Feb 2019 13:33:31 +0000 (08:33 -0500)]
minor updates
Alan T. DeKok [Mon, 18 Feb 2019 12:57:21 +0000 (07:57 -0500)]
move to correct place
Alan T. DeKok [Mon, 18 Feb 2019 01:29:05 +0000 (20:29 -0500)]
allow "IPADDR," which will parse multiple IP addresses
Alan T. DeKok [Mon, 18 Feb 2019 01:03:54 +0000 (20:03 -0500)]
this is of type 'iapddr array', not 'octets'
Alan T. DeKok [Mon, 18 Feb 2019 00:25:23 +0000 (19:25 -0500)]
remove unused assignment
Alan T. DeKok [Sun, 17 Feb 2019 21:27:09 +0000 (16:27 -0500)]
more comments
Alan T. DeKok [Sun, 17 Feb 2019 21:25:09 +0000 (16:25 -0500)]
now that we can apply things, allow the module to be used
Alan T. DeKok [Sun, 17 Feb 2019 21:22:36 +0000 (16:22 -0500)]
fix a few minor issues, and add "apply" function
Alan T. DeKok [Sun, 17 Feb 2019 19:34:46 +0000 (14:34 -0500)]
cleanups, comments, and move "include filename" to be a normal function
Alan T. DeKok [Sun, 17 Feb 2019 13:44:56 +0000 (08:44 -0500)]
parse ethernet addresses into hash tables for "host"
Alan T. DeKok [Sun, 17 Feb 2019 13:31:35 +0000 (08:31 -0500)]
argv to value box
Alan T. DeKok [Sun, 17 Feb 2019 02:40:51 +0000 (21:40 -0500)]
remove duplicate code.
We now allow anything inside of anything. It doesn't quite
make sense, e.g. `host` inside of `host`, but it also allows
for `group` inside of `group`, and `host` inside of `subnet`
Alan T. DeKok [Sun, 17 Feb 2019 02:17:24 +0000 (21:17 -0500)]
rearrange and clean up
we just pass "parent" around, which is better
Alan T. DeKok [Sun, 17 Feb 2019 02:09:58 +0000 (21:09 -0500)]
use parent which holds 'last', instead of passing 'last' around
and fix a few bugs in match_subword()
Alan T. DeKok [Sun, 17 Feb 2019 01:53:40 +0000 (20:53 -0500)]
remove unused entries
Alan T. DeKok [Sun, 17 Feb 2019 01:25:15 +0000 (20:25 -0500)]
allow filenames without '/'
Alan T. DeKok [Sat, 16 Feb 2019 20:43:28 +0000 (15:43 -0500)]
check data types, and call the parse function if it exists
Alan T. DeKok [Sat, 16 Feb 2019 20:34:22 +0000 (15:34 -0500)]
parse and remember arguments and children
we now have a data structure which tracks everything...
Alan T. DeKok [Sat, 16 Feb 2019 16:47:20 +0000 (11:47 -0500)]
added controllable debug, which is politer
Alan T. DeKok [Sat, 16 Feb 2019 16:16:32 +0000 (11:16 -0500)]
added preliminary parser for ISC DHCP configuration files
It's mostly a skeleton right now, and doesn't actually do anything,
or include all of the config file options. But it's a reasonable
start.
Alan T. DeKok [Fri, 15 Feb 2019 20:26:43 +0000 (15:26 -0500)]
add subjectaltname. Fixes #2491
Alan T. DeKok [Fri, 15 Feb 2019 00:20:58 +0000 (19:20 -0500)]
remove unnecessary doc
Matthew Newton [Thu, 14 Feb 2019 21:53:02 +0000 (21:53 +0000)]
Merge pull request #2488 from jpereira/fix/docker-warnings
docker: Fix debconf warnings upon build
Jorge Pereira [Thu, 14 Feb 2019 21:50:35 +0000 (19:50 -0200)]
docker: Fix debconf warnings upon build
Alan T. DeKok [Thu, 14 Feb 2019 02:39:26 +0000 (21:39 -0500)]
word smithing
Alan T. DeKok [Thu, 14 Feb 2019 02:38:43 +0000 (21:38 -0500)]
remove and document redundant names
just use "name" instead of "winbind_name" in the winbind module
Matthew Newton [Wed, 13 Feb 2019 23:08:33 +0000 (23:08 +0000)]
radwtmp option is not mandatory
(see
81a75890219 )
Matthew Newton [Wed, 13 Feb 2019 12:31:51 +0000 (12:31 +0000)]
refresh debian name patch
Matthew Newton [Wed, 13 Feb 2019 11:53:07 +0000 (11:53 +0000)]
upstream libkqueue has been fixed to build correctly named Debian packages
Matthew Newton [Wed, 13 Feb 2019 11:22:01 +0000 (11:22 +0000)]
These SSL options don't seem to have made it into MariaDB
Alan T. DeKok [Tue, 12 Feb 2019 22:24:35 +0000 (17:24 -0500)]
two spaces after '#'. No spaces at the end of a line.
via:
perl -p -i -e 's/^# ([^ \t])/# $1/;s/^([ \t]+)# ([^ \t])/$1# $2/;s/[ \t]+$//' raddb/mods-available/*
Alan T. DeKok [Fri, 8 Feb 2019 22:26:15 +0000 (17:26 -0500)]
minor wordsmithing
Alan T. DeKok [Fri, 8 Feb 2019 22:22:28 +0000 (17:22 -0500)]
NULL is a C keyword, not a "NULL" string.
Matthew Newton [Tue, 12 Feb 2019 16:47:49 +0000 (16:47 +0000)]
update RPM spec file
- raddb/mods-config/README.md no longer exists
- don't set attrs of users symlink
Matthew Newton [Tue, 12 Feb 2019 16:21:54 +0000 (16:21 +0000)]
fix zero-length printf format string
Arran Cudbard-Bell [Tue, 12 Feb 2019 14:37:39 +0000 (20:07 +0530)]
Merge pull request #2482 from
2128506 /master
Fixed errors in MySQL TSL support
Arran Cudbard-Bell [Tue, 12 Feb 2019 14:35:46 +0000 (20:05 +0530)]
Merge branch 'master' into master
Arran Cudbard-Bell [Tue, 12 Feb 2019 13:46:47 +0000 (19:16 +0530)]
Manual merge of MySQL TLS support fixes. Closes #2482
Victor Kirhenshtein [Tue, 12 Feb 2019 12:17:03 +0000 (14:17 +0200)]
fixed errors in MySQL TSL support
Alan DeKok [Tue, 12 Feb 2019 02:45:59 +0000 (21:45 -0500)]
Merge pull request #2479 from jpereira/doc/update10
Some updates
Jorge Pereira [Mon, 11 Feb 2019 22:38:36 +0000 (20:38 -0200)]
Add missed ':toc:' call
Jorge Pereira [Mon, 11 Feb 2019 22:31:08 +0000 (20:31 -0200)]
Update raddb/mods-available/yubikey
Jorge Pereira [Mon, 11 Feb 2019 22:31:08 +0000 (20:31 -0200)]
Update raddb/mods-available/winbind
Jorge Pereira [Mon, 11 Feb 2019 22:31:08 +0000 (20:31 -0200)]
Update raddb/mods-available/wimax
Jorge Pereira [Mon, 11 Feb 2019 22:31:07 +0000 (20:31 -0200)]
Update raddb/mods-available/unpack
Jorge Pereira [Mon, 11 Feb 2019 22:31:07 +0000 (20:31 -0200)]
Update raddb/mods-available/unbound
Jorge Pereira [Mon, 11 Feb 2019 22:31:06 +0000 (20:31 -0200)]
Update raddb/mods-available/sradutmp
Jorge Pereira [Mon, 11 Feb 2019 22:31:06 +0000 (20:31 -0200)]
Update raddb/mods-available/sql
Jorge Pereira [Mon, 11 Feb 2019 22:31:06 +0000 (20:31 -0200)]
Update raddb/mods-available/soh
Jorge Pereira [Mon, 11 Feb 2019 22:30:47 +0000 (20:30 -0200)]
Update raddb/mods-available/sqlcounter
Alan DeKok [Mon, 11 Feb 2019 20:14:45 +0000 (15:14 -0500)]
Merge pull request #2477 from jpereira/fix/conf2adoc2
conf2adoc: Fix - Match anything between backtick
Jorge Pereira [Mon, 11 Feb 2019 19:40:35 +0000 (17:40 -0200)]
conf2adoc: Fix - Match anything between backtick
Alan DeKok [Mon, 11 Feb 2019 18:00:54 +0000 (13:00 -0500)]
Merge pull request #2476 from jpereira/fix/conf2adoc
conf2adoc: Fix - treat everything as literal
Jorge Pereira [Mon, 11 Feb 2019 17:25:45 +0000 (15:25 -0200)]
conf2adoc: Fix - treat everything as literal
Matthew Newton [Mon, 11 Feb 2019 15:51:21 +0000 (15:51 +0000)]
begin some asciidoc
Arran Cudbard-Bell [Mon, 11 Feb 2019 04:26:52 +0000 (09:56 +0530)]
Expose more TLS options in MySQL driver
Arran Cudbard-Bell [Sun, 10 Feb 2019 06:28:52 +0000 (11:58 +0530)]
Merge pull request #2473 from jpereira/fix/rlm_rediswho1
rlm_rediswho: Add 'stub' sections for missing fields. ref #2469
Jorge Pereira [Fri, 8 Feb 2019 23:13:00 +0000 (21:13 -0200)]
rlm_rediswho: Add 'stub' sections for missing fields. ref #2469
Alan DeKok [Fri, 8 Feb 2019 22:19:57 +0000 (17:19 -0500)]
Merge pull request #2472 from jpereira/doc/update9
Some updates
Arran Cudbard-Bell [Fri, 8 Feb 2019 08:56:31 +0000 (14:26 +0530)]
Merge pull request #2469 from jpereira/fix/rediswho-missing-some-acct-fields
rlm_rediswho: Fix some missing Acct-Status-Type fields
Jorge Pereira [Thu, 7 Feb 2019 20:54:27 +0000 (18:54 -0200)]
Update raddb/mods-available/stats
Jorge Pereira [Thu, 7 Feb 2019 20:54:26 +0000 (18:54 -0200)]
Update raddb/mods-available/unix
Jorge Pereira [Thu, 7 Feb 2019 20:54:26 +0000 (18:54 -0200)]
Update raddb/mods-available/utf8
Jorge Pereira [Thu, 7 Feb 2019 20:45:51 +0000 (18:45 -0200)]
Update raddb/mods-available/sometimes
Jorge Pereira [Thu, 7 Feb 2019 20:45:51 +0000 (18:45 -0200)]
Update raddb/mods-available/soh
Jorge Pereira [Thu, 7 Feb 2019 20:45:50 +0000 (18:45 -0200)]
Update raddb/mods-available/smbpasswd
Jorge Pereira [Thu, 7 Feb 2019 20:45:50 +0000 (18:45 -0200)]
Update raddb/mods-available/rest
Jorge Pereira [Thu, 7 Feb 2019 20:45:49 +0000 (18:45 -0200)]
Update raddb/mods-available/redis
Jorge Pereira [Thu, 7 Feb 2019 18:21:57 +0000 (16:21 -0200)]
Minor fix in raddb/mods-available/linelog
Alan T. DeKok [Thu, 7 Feb 2019 18:20:29 +0000 (13:20 -0500)]
the source for rlm_ippool was deleted a while ago
Alan DeKok [Thu, 7 Feb 2019 18:19:58 +0000 (13:19 -0500)]
Merge pull request #2471 from jpereira/doc/minor4
Some fixes
Jorge Pereira [Thu, 7 Feb 2019 18:15:32 +0000 (16:15 -0200)]
Minor fixes
Jorge Pereira [Thu, 7 Feb 2019 18:13:12 +0000 (16:13 -0200)]
Add link/table in raddb/mods-available/couchbase
Jorge Pereira [Thu, 7 Feb 2019 18:12:44 +0000 (16:12 -0200)]
Fix the section levels in raddb/mods-available/client
Jorge Pereira [Thu, 7 Feb 2019 18:11:49 +0000 (16:11 -0200)]
Add 'syntax' section in raddb/mods-available/attr_filter
Jorge Pereira [Thu, 7 Feb 2019 18:11:20 +0000 (16:11 -0200)]
Fix the order in raddb/mods-available/always
Alan T. DeKok [Thu, 7 Feb 2019 17:24:50 +0000 (12:24 -0500)]
word smithing
Alan T. DeKok [Thu, 7 Feb 2019 00:28:00 +0000 (19:28 -0500)]
counter module no longer exists
Alan T. DeKok [Thu, 7 Feb 2019 00:27:01 +0000 (19:27 -0500)]
we don't need a file saying "run configure"
Alan T. DeKok [Thu, 7 Feb 2019 00:26:35 +0000 (19:26 -0500)]
no one has used these in a long time
Alan DeKok [Thu, 7 Feb 2019 01:47:49 +0000 (20:47 -0500)]
Merge pull request #2470 from jpereira/doc/update8
Some updates
Jorge Pereira [Wed, 6 Feb 2019 23:56:03 +0000 (21:56 -0200)]
Update raddb/mods-available/rediswho
Jorge Pereira [Wed, 6 Feb 2019 23:56:03 +0000 (21:56 -0200)]
Update raddb/mods-available/redis_ippool
Jorge Pereira [Wed, 6 Feb 2019 23:56:03 +0000 (21:56 -0200)]
Update raddb/mods-available/redis
Jorge Pereira [Wed, 6 Feb 2019 23:56:02 +0000 (21:56 -0200)]
Update raddb/mods-available/radutmp