]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
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

7 years agosplit address assignment from option assignment
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.

7 years agoAvoid spurious error messages on acctuniqueid conflicts using PG's 'upsert' functionality
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

7 years agodisallow nested statements
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...

7 years agoparse and create subnets.
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.

7 years agoallow "%.*s" for strings
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.

7 years agoallow multiple arguments for options
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.

7 years agochild options over-ride parent options
Alan T. DeKok [Tue, 19 Feb 2019 17:40:38 +0000 (12:40 -0500)] 
child options over-ride parent options

7 years agoadded some option parsing, and cleanups.
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.

7 years agofix compiler warning
Alan T. DeKok [Tue, 19 Feb 2019 01:17:26 +0000 (20:17 -0500)] 
fix compiler warning

7 years agouse DHCP-Client-Hardware-Address for MAC lookups
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.

7 years agosimplify error messages, and make better ones
Alan T. DeKok [Mon, 18 Feb 2019 21:28:01 +0000 (16:28 -0500)] 
simplify error messages, and make better ones

7 years agocomment things out until the function is done
Alan T. DeKok [Mon, 18 Feb 2019 20:43:07 +0000 (15:43 -0500)] 
comment things out until the function is done

7 years agoadded skeleton for parse_option
Alan T. DeKok [Mon, 18 Feb 2019 16:53:22 +0000 (11:53 -0500)] 
added skeleton for parse_option

7 years agominor updates
Alan T. DeKok [Mon, 18 Feb 2019 13:33:31 +0000 (08:33 -0500)] 
minor updates

7 years agomove to correct place
Alan T. DeKok [Mon, 18 Feb 2019 12:57:21 +0000 (07:57 -0500)] 
move to correct place

7 years agoallow "IPADDR," which will parse multiple IP addresses
Alan T. DeKok [Mon, 18 Feb 2019 01:29:05 +0000 (20:29 -0500)] 
allow "IPADDR," which will parse multiple IP addresses

7 years agothis is of type 'iapddr array', not 'octets'
Alan T. DeKok [Mon, 18 Feb 2019 01:03:54 +0000 (20:03 -0500)] 
this is of type 'iapddr array', not 'octets'

7 years agoremove unused assignment
Alan T. DeKok [Mon, 18 Feb 2019 00:25:23 +0000 (19:25 -0500)] 
remove unused assignment

7 years agomore comments
Alan T. DeKok [Sun, 17 Feb 2019 21:27:09 +0000 (16:27 -0500)] 
more comments

7 years agonow that we can apply things, allow the module to be used
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

7 years agofix a few minor issues, and add "apply" function
Alan T. DeKok [Sun, 17 Feb 2019 21:22:36 +0000 (16:22 -0500)] 
fix a few minor issues, and add "apply" function

7 years agocleanups, comments, and move "include filename" to be a normal 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

7 years agoparse ethernet addresses into hash tables for "host"
Alan T. DeKok [Sun, 17 Feb 2019 13:44:56 +0000 (08:44 -0500)] 
parse ethernet addresses into hash tables for "host"

7 years agoargv to value box
Alan T. DeKok [Sun, 17 Feb 2019 13:31:35 +0000 (08:31 -0500)] 
argv to value box

7 years agoremove duplicate code.
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`

7 years agorearrange and clean up
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

7 years agouse parent which holds 'last', instead of passing 'last' around
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()

7 years agoremove unused entries
Alan T. DeKok [Sun, 17 Feb 2019 01:53:40 +0000 (20:53 -0500)] 
remove unused entries

7 years agoallow filenames without '/'
Alan T. DeKok [Sun, 17 Feb 2019 01:25:15 +0000 (20:25 -0500)] 
allow filenames without '/'

7 years agocheck data types, and call the parse function if it exists
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

7 years agoparse and remember arguments and children
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...

7 years agoadded controllable debug, which is politer
Alan T. DeKok [Sat, 16 Feb 2019 16:47:20 +0000 (11:47 -0500)] 
added controllable debug, which is politer

7 years agoadded preliminary parser for ISC DHCP configuration files
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.

7 years agoadd subjectaltname. Fixes #2491
Alan T. DeKok [Fri, 15 Feb 2019 20:26:43 +0000 (15:26 -0500)] 
add subjectaltname.  Fixes #2491

7 years agoremove unnecessary doc
Alan T. DeKok [Fri, 15 Feb 2019 00:20:58 +0000 (19:20 -0500)] 
remove unnecessary doc

7 years agoMerge pull request #2488 from jpereira/fix/docker-warnings
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

7 years agodocker: Fix debconf warnings upon build 2488/head
Jorge Pereira [Thu, 14 Feb 2019 21:50:35 +0000 (19:50 -0200)] 
docker: Fix debconf warnings upon build

7 years agoword smithing
Alan T. DeKok [Thu, 14 Feb 2019 02:39:26 +0000 (21:39 -0500)] 
word smithing

7 years agoremove and document redundant names
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

7 years agoradwtmp option is not mandatory
Matthew Newton [Wed, 13 Feb 2019 23:08:33 +0000 (23:08 +0000)] 
radwtmp option is not mandatory

(see 81a75890219)

7 years agorefresh debian name patch
Matthew Newton [Wed, 13 Feb 2019 12:31:51 +0000 (12:31 +0000)] 
refresh debian name patch

7 years agoupstream libkqueue has been fixed to build correctly named Debian packages
Matthew Newton [Wed, 13 Feb 2019 11:53:07 +0000 (11:53 +0000)] 
upstream libkqueue has been fixed to build correctly named Debian packages

7 years agoThese SSL options don't seem to have made it into MariaDB
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

7 years agotwo spaces after '#'. No spaces at the end of a line.
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/*

7 years agominor wordsmithing
Alan T. DeKok [Fri, 8 Feb 2019 22:26:15 +0000 (17:26 -0500)] 
minor wordsmithing

7 years agoNULL is a C keyword, not a "NULL" string.
Alan T. DeKok [Fri, 8 Feb 2019 22:22:28 +0000 (17:22 -0500)] 
NULL is a C keyword, not a "NULL" string.

7 years agoupdate RPM spec file
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

7 years agofix zero-length printf format string
Matthew Newton [Tue, 12 Feb 2019 16:21:54 +0000 (16:21 +0000)] 
fix zero-length printf format string

7 years agoMerge pull request #2482 from 2128506/master
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

7 years agoMerge branch 'master' into master 2482/head
Arran Cudbard-Bell [Tue, 12 Feb 2019 14:35:46 +0000 (20:05 +0530)] 
Merge branch 'master' into master

7 years agoManual merge of MySQL TLS support fixes. Closes #2482
Arran Cudbard-Bell [Tue, 12 Feb 2019 13:46:47 +0000 (19:16 +0530)] 
Manual merge of MySQL TLS support fixes.  Closes #2482

7 years agofixed errors in MySQL TSL support
Victor Kirhenshtein [Tue, 12 Feb 2019 12:17:03 +0000 (14:17 +0200)] 
fixed errors in MySQL TSL support

7 years agoMerge pull request #2479 from jpereira/doc/update10
Alan DeKok [Tue, 12 Feb 2019 02:45:59 +0000 (21:45 -0500)] 
Merge pull request #2479 from jpereira/doc/update10

Some updates

7 years agoAdd missed ':toc:' call 2479/head
Jorge Pereira [Mon, 11 Feb 2019 22:38:36 +0000 (20:38 -0200)] 
Add missed ':toc:' call

7 years agoUpdate raddb/mods-available/yubikey
Jorge Pereira [Mon, 11 Feb 2019 22:31:08 +0000 (20:31 -0200)] 
Update raddb/mods-available/yubikey

7 years agoUpdate raddb/mods-available/winbind
Jorge Pereira [Mon, 11 Feb 2019 22:31:08 +0000 (20:31 -0200)] 
Update raddb/mods-available/winbind

7 years agoUpdate raddb/mods-available/wimax
Jorge Pereira [Mon, 11 Feb 2019 22:31:08 +0000 (20:31 -0200)] 
Update raddb/mods-available/wimax

7 years agoUpdate raddb/mods-available/unpack
Jorge Pereira [Mon, 11 Feb 2019 22:31:07 +0000 (20:31 -0200)] 
Update raddb/mods-available/unpack

7 years agoUpdate raddb/mods-available/unbound
Jorge Pereira [Mon, 11 Feb 2019 22:31:07 +0000 (20:31 -0200)] 
Update raddb/mods-available/unbound

7 years agoUpdate raddb/mods-available/sradutmp
Jorge Pereira [Mon, 11 Feb 2019 22:31:06 +0000 (20:31 -0200)] 
Update raddb/mods-available/sradutmp

7 years agoUpdate raddb/mods-available/sql
Jorge Pereira [Mon, 11 Feb 2019 22:31:06 +0000 (20:31 -0200)] 
Update raddb/mods-available/sql

7 years agoUpdate raddb/mods-available/soh
Jorge Pereira [Mon, 11 Feb 2019 22:31:06 +0000 (20:31 -0200)] 
Update raddb/mods-available/soh

7 years agoUpdate raddb/mods-available/sqlcounter
Jorge Pereira [Mon, 11 Feb 2019 22:30:47 +0000 (20:30 -0200)] 
Update raddb/mods-available/sqlcounter

7 years agoMerge pull request #2477 from jpereira/fix/conf2adoc2
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

7 years agoconf2adoc: Fix - Match anything between backtick 2477/head
Jorge Pereira [Mon, 11 Feb 2019 19:40:35 +0000 (17:40 -0200)] 
conf2adoc: Fix - Match anything between backtick

7 years agoMerge pull request #2476 from jpereira/fix/conf2adoc
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

7 years agoconf2adoc: Fix - treat everything as literal 2476/head
Jorge Pereira [Mon, 11 Feb 2019 17:25:45 +0000 (15:25 -0200)] 
conf2adoc: Fix - treat everything as literal

7 years agobegin some asciidoc
Matthew Newton [Mon, 11 Feb 2019 15:51:21 +0000 (15:51 +0000)] 
begin some asciidoc

7 years agoExpose more TLS options in MySQL driver
Arran Cudbard-Bell [Mon, 11 Feb 2019 04:26:52 +0000 (09:56 +0530)] 
Expose more TLS options in MySQL driver

7 years agoMerge pull request #2473 from jpereira/fix/rlm_rediswho1
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

7 years agorlm_rediswho: Add 'stub' sections for missing fields. ref #2469 2473/head
Jorge Pereira [Fri, 8 Feb 2019 23:13:00 +0000 (21:13 -0200)] 
rlm_rediswho: Add 'stub' sections for missing fields. ref #2469

7 years agoMerge pull request #2472 from jpereira/doc/update9
Alan DeKok [Fri, 8 Feb 2019 22:19:57 +0000 (17:19 -0500)] 
Merge pull request #2472 from jpereira/doc/update9

Some updates

7 years agoMerge pull request #2469 from jpereira/fix/rediswho-missing-some-acct-fields
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

7 years agoUpdate raddb/mods-available/stats 2472/head
Jorge Pereira [Thu, 7 Feb 2019 20:54:27 +0000 (18:54 -0200)] 
Update raddb/mods-available/stats

7 years agoUpdate raddb/mods-available/unix
Jorge Pereira [Thu, 7 Feb 2019 20:54:26 +0000 (18:54 -0200)] 
Update raddb/mods-available/unix

7 years agoUpdate raddb/mods-available/utf8
Jorge Pereira [Thu, 7 Feb 2019 20:54:26 +0000 (18:54 -0200)] 
Update raddb/mods-available/utf8

7 years agoUpdate raddb/mods-available/sometimes
Jorge Pereira [Thu, 7 Feb 2019 20:45:51 +0000 (18:45 -0200)] 
Update raddb/mods-available/sometimes

7 years agoUpdate raddb/mods-available/soh
Jorge Pereira [Thu, 7 Feb 2019 20:45:51 +0000 (18:45 -0200)] 
Update raddb/mods-available/soh

7 years agoUpdate raddb/mods-available/smbpasswd
Jorge Pereira [Thu, 7 Feb 2019 20:45:50 +0000 (18:45 -0200)] 
Update raddb/mods-available/smbpasswd

7 years agoUpdate raddb/mods-available/rest
Jorge Pereira [Thu, 7 Feb 2019 20:45:50 +0000 (18:45 -0200)] 
Update raddb/mods-available/rest

7 years agoUpdate raddb/mods-available/redis
Jorge Pereira [Thu, 7 Feb 2019 20:45:49 +0000 (18:45 -0200)] 
Update raddb/mods-available/redis

7 years agoMinor fix in raddb/mods-available/linelog
Jorge Pereira [Thu, 7 Feb 2019 18:21:57 +0000 (16:21 -0200)] 
Minor fix in raddb/mods-available/linelog

7 years agothe source for rlm_ippool was deleted a while ago
Alan T. DeKok [Thu, 7 Feb 2019 18:20:29 +0000 (13:20 -0500)] 
the source for rlm_ippool was deleted a while ago

7 years agoMerge pull request #2471 from jpereira/doc/minor4
Alan DeKok [Thu, 7 Feb 2019 18:19:58 +0000 (13:19 -0500)] 
Merge pull request #2471 from jpereira/doc/minor4

Some fixes

7 years agoMinor fixes 2471/head
Jorge Pereira [Thu, 7 Feb 2019 18:15:32 +0000 (16:15 -0200)] 
Minor fixes

7 years agoAdd link/table in raddb/mods-available/couchbase
Jorge Pereira [Thu, 7 Feb 2019 18:13:12 +0000 (16:13 -0200)] 
Add link/table in raddb/mods-available/couchbase

7 years agoFix the section levels in raddb/mods-available/client
Jorge Pereira [Thu, 7 Feb 2019 18:12:44 +0000 (16:12 -0200)] 
Fix the section levels in raddb/mods-available/client

7 years agoAdd 'syntax' section in raddb/mods-available/attr_filter
Jorge Pereira [Thu, 7 Feb 2019 18:11:49 +0000 (16:11 -0200)] 
Add 'syntax' section in raddb/mods-available/attr_filter

7 years agoFix the order in raddb/mods-available/always
Jorge Pereira [Thu, 7 Feb 2019 18:11:20 +0000 (16:11 -0200)] 
Fix the order in raddb/mods-available/always

7 years agoword smithing
Alan T. DeKok [Thu, 7 Feb 2019 17:24:50 +0000 (12:24 -0500)] 
word smithing

7 years agocounter module no longer exists
Alan T. DeKok [Thu, 7 Feb 2019 00:28:00 +0000 (19:28 -0500)] 
counter module no longer exists

7 years agowe don't need a file saying "run configure"
Alan T. DeKok [Thu, 7 Feb 2019 00:27:01 +0000 (19:27 -0500)] 
we don't need a file saying "run configure"

7 years agono one has used these in a long time
Alan T. DeKok [Thu, 7 Feb 2019 00:26:35 +0000 (19:26 -0500)] 
no one has used these in a long time

7 years agoMerge pull request #2470 from jpereira/doc/update8
Alan DeKok [Thu, 7 Feb 2019 01:47:49 +0000 (20:47 -0500)] 
Merge pull request #2470 from jpereira/doc/update8

Some updates

7 years agoUpdate raddb/mods-available/rediswho 2470/head
Jorge Pereira [Wed, 6 Feb 2019 23:56:03 +0000 (21:56 -0200)] 
Update raddb/mods-available/rediswho

7 years agoUpdate raddb/mods-available/redis_ippool
Jorge Pereira [Wed, 6 Feb 2019 23:56:03 +0000 (21:56 -0200)] 
Update raddb/mods-available/redis_ippool

7 years agoUpdate raddb/mods-available/redis
Jorge Pereira [Wed, 6 Feb 2019 23:56:03 +0000 (21:56 -0200)] 
Update raddb/mods-available/redis

7 years agoUpdate raddb/mods-available/radutmp
Jorge Pereira [Wed, 6 Feb 2019 23:56:02 +0000 (21:56 -0200)] 
Update raddb/mods-available/radutmp