]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
7 years agodefine and allow for TMPL_TYPE_MAP
Alan T. DeKok [Mon, 22 Jul 2019 15:53:05 +0000 (11:53 -0400)] 
define and allow for TMPL_TYPE_MAP

in preparation for allowing grouped attributes.

7 years agoallow "foo = { ...}" in parser
Alan T. DeKok [Mon, 22 Jul 2019 13:01:41 +0000 (09:01 -0400)] 
allow "foo = { ...}" in parser

in preparation for allowing grouped attributes

7 years agoremove support for LM-Password. Fixes #2799
Alan T. DeKok [Sun, 21 Jul 2019 11:59:15 +0000 (07:59 -0400)] 
remove support for LM-Password.  Fixes #2799

No one has used this in years, and it isn't secure.

7 years agoinclude more adoc files
Alan T. DeKok [Sat, 20 Jul 2019 11:53:47 +0000 (07:53 -0400)] 
include more adoc files

7 years agocleanups and add toc
Alan T. DeKok [Sat, 20 Jul 2019 11:44:40 +0000 (07:44 -0400)] 
cleanups and add toc

7 years agominor cleanups
Alan T. DeKok [Sat, 20 Jul 2019 11:09:42 +0000 (07:09 -0400)] 
minor cleanups

* the footer doesn't need a "home" link.
* move the ToC to the left sidebar, which makes the real content
  more prominent
* move the "home" link to the top right of the page, where it
  is less visible, but is still useful

7 years agocomment out post-proxy
Alan T. DeKok [Fri, 19 Jul 2019 16:50:07 +0000 (12:50 -0400)] 
comment out post-proxy

it's not used in v4.  But we still may want the code for reference

7 years agoremove bounds checks for small integers
Alan T. DeKok [Fri, 19 Jul 2019 16:47:40 +0000 (12:47 -0400)] 
remove bounds checks for small integers

we can always represent 8 / 16 / 32-bit integers in a Lua integer

7 years agocheck for dv. CID #1445245
Alan T. DeKok [Fri, 19 Jul 2019 16:45:13 +0000 (12:45 -0400)] 
check for dv.  CID #1445245

7 years agoMerge pull request #2798 from jpereira/v4/doc1
Alan DeKok [Sat, 20 Jul 2019 10:56:23 +0000 (06:56 -0400)] 
Merge pull request #2798 from jpereira/v4/doc1

Some doc updates

7 years agoman: Remove deprecated %{base64tohex:} 2798/head
Jorge Pereira [Sat, 20 Jul 2019 00:25:51 +0000 (21:25 -0300)] 
man: Remove deprecated %{base64tohex:}

7 years agodoc: Update doc/unlang/xlat_predefined
Jorge Pereira [Sat, 20 Jul 2019 00:25:09 +0000 (21:25 -0300)] 
doc: Update doc/unlang/xlat_predefined

7 years agodoc: Add :toc:
Jorge Pereira [Sat, 20 Jul 2019 00:24:36 +0000 (21:24 -0300)] 
doc: Add :toc:

7 years agodoc: Unlang - Some fixes, added header to home
Jorge Pereira [Sat, 13 Jul 2019 01:21:04 +0000 (22:21 -0300)] 
doc: Unlang - Some fixes, added header to home

7 years agodoc: Add .gitignore
Jorge Pereira [Sat, 13 Jul 2019 01:20:23 +0000 (22:20 -0300)] 
doc: Add .gitignore

7 years agodoc: Add 'index' for howto folder
Jorge Pereira [Sat, 13 Jul 2019 01:19:58 +0000 (22:19 -0300)] 
doc: Add 'index' for howto folder

7 years agodoc: Add 'header' include
Jorge Pereira [Sat, 13 Jul 2019 01:19:30 +0000 (22:19 -0300)] 
doc: Add 'header' include

7 years agodoc: Add link for the CC license
Jorge Pereira [Sat, 13 Jul 2019 01:17:32 +0000 (22:17 -0300)] 
doc: Add link for the CC license

7 years agoFix the %{explode:&ref <delim>} xlat function 2795/head
Jorge Pereira [Fri, 19 Jul 2019 02:17:05 +0000 (23:17 -0300)] 
Fix the %{explode:&ref <delim>} xlat function

As the documentation says %{explode:&ref <delim>}, let's inform
the user that the delim should be a single char

7 years agoBetter way of passing in arguments to CHECK_ZEROED
Jorge Pereira [Sat, 20 Jul 2019 01:35:23 +0000 (22:35 -0300)] 
Better way of passing in arguments to CHECK_ZEROED

7 years agoPass in _vpt
Arran Cudbard-Bell [Fri, 19 Jul 2019 23:53:06 +0000 (08:53 +0900)] 
Pass in _vpt

7 years agoMerge pull request #2796 from jpereira/v4/leak2
Alan DeKok [Fri, 19 Jul 2019 18:08:57 +0000 (14:08 -0400)] 
Merge pull request #2796 from jpereira/v4/leak2

xlat: Fix minor leak in %{explode:}

7 years agosrc/lib/server/cf_util.c: Check if 'CONF_ITEM' is valid 2789/head
Jorge Pereira [Thu, 18 Jul 2019 14:23:47 +0000 (11:23 -0300)] 
src/lib/server/cf_util.c: Check if 'CONF_ITEM' is valid

7 years agoxlat: Fix minor leak in %{explode:} 2796/head
Jorge Pereira [Fri, 19 Jul 2019 17:29:17 +0000 (14:29 -0300)] 
xlat: Fix minor leak in %{explode:}

7 years agocheck return code. CID #1445239
Alan T. DeKok [Fri, 19 Jul 2019 14:03:23 +0000 (10:03 -0400)] 
check return code.  CID #1445239

7 years agoremove dead code. CID #1445235
Alan T. DeKok [Fri, 19 Jul 2019 14:02:34 +0000 (10:02 -0400)] 
remove dead code.  CID #1445235

7 years agocheck return code. CID #1445247
Alan T. DeKok [Fri, 19 Jul 2019 13:59:30 +0000 (09:59 -0400)] 
check return code.  CID #1445247

7 years agodisable setting of -soname on Linux
Alan T. DeKok [Fri, 19 Jul 2019 13:58:10 +0000 (09:58 -0400)] 
disable setting of -soname on Linux

it appears to break the build.

7 years agorequest is always non-NULL. CID #1445231
Alan T. DeKok [Fri, 19 Jul 2019 13:53:26 +0000 (09:53 -0400)] 
request is always non-NULL.  CID #1445231

7 years agoignore the return code. We can't do anything about it. CID #1445218
Alan T. DeKok [Fri, 19 Jul 2019 13:51:41 +0000 (09:51 -0400)] 
ignore the return code.  We can't do anything about it.  CID #1445218

7 years agolock on more error paths. CID #1445200
Alan T. DeKok [Fri, 19 Jul 2019 13:49:57 +0000 (09:49 -0400)] 
lock on more error paths.  CID #1445200

7 years agocheck return code. CID #1445234
Alan T. DeKok [Fri, 19 Jul 2019 13:41:25 +0000 (09:41 -0400)] 
check return code.  CID #1445234

7 years agowe don't care about the return value here. CID #1445232
Alan T. DeKok [Fri, 19 Jul 2019 13:40:21 +0000 (09:40 -0400)] 
we don't care about the return value here.  CID #1445232

7 years agouse the install path, too
Alan T. DeKok [Fri, 19 Jul 2019 13:29:53 +0000 (09:29 -0400)] 
use the install path, too

7 years agodisable soname on Linux until we do more testing
Alan T. DeKok [Fri, 19 Jul 2019 13:12:31 +0000 (09:12 -0400)] 
disable soname on Linux until we do more testing

7 years agoadd version information to shared libraries. Helps with #1774
Alan T. DeKok [Fri, 19 Jul 2019 12:01:30 +0000 (08:01 -0400)] 
add version information to shared libraries. Helps with #1774

7 years agoadd -soname on non-apple systems. Helps with #1774
Alan T. DeKok [Fri, 19 Jul 2019 11:50:48 +0000 (07:50 -0400)] 
add -soname on non-apple systems.  Helps with #1774

7 years agoquiet compiler for now
Alan T. DeKok [Fri, 19 Jul 2019 10:58:11 +0000 (06:58 -0400)] 
quiet compiler for now

We don't care much about leaking dl handles on exit.

7 years agocheck for oom. CID #1445646
Alan T. DeKok [Fri, 19 Jul 2019 01:14:06 +0000 (21:14 -0400)] 
check for oom.  CID #1445646

7 years agoremember the libraries we dlopen'd. CID #1445213
Alan T. DeKok [Fri, 19 Jul 2019 01:10:48 +0000 (21:10 -0400)] 
remember the libraries we dlopen'd.  CID #1445213

7 years agouse vpt->data as the start. CID #1448186
Alan T. DeKok [Fri, 19 Jul 2019 01:06:09 +0000 (21:06 -0400)] 
use vpt->data as the start.  CID #1448186

because we're using sizeof(vpt->data) elsewhere

7 years agocheck return code. CID #1445244
Alan T. DeKok [Fri, 19 Jul 2019 01:02:53 +0000 (21:02 -0400)] 
check return code.  CID #1445244

7 years agocopy trailing zero. CID #1448184
Alan T. DeKok [Fri, 19 Jul 2019 01:01:04 +0000 (21:01 -0400)] 
copy trailing zero.  CID #1448184

7 years agocheck for memory allocation. CID #1448180
Alan T. DeKok [Fri, 19 Jul 2019 00:59:17 +0000 (20:59 -0400)] 
check for memory allocation.  CID #1448180

7 years agoreturn on first found library. CID #1445213
Alan T. DeKok [Thu, 18 Jul 2019 18:19:30 +0000 (14:19 -0400)] 
return on first found library.  CID #1445213

7 years agojust box a normal string, not a tainted one.
Alan T. DeKok [Thu, 18 Jul 2019 16:47:31 +0000 (12:47 -0400)] 
just box a normal string, not a tainted one.

the previous commit fixes the printing routine to always escape
strings when they're being printed.

When tokenizing xlat strings, we presume (for now) that the input
is always safe.  i.e. we don't allow %{%{User-Name}}.

If we do need to allow xlat parsing from tainted sources, then the
entire xlat API needs to be updated to mark the input with a
tainted flag

7 years agoRevert "Respect the taint value of boxes being fed to logging functions"
Alan T. DeKok [Thu, 18 Jul 2019 16:42:22 +0000 (12:42 -0400)] 
Revert "Respect the taint value of boxes being fed to logging functions"

This reverts commit 012865619f8001b0903fa129ac44cff22e91fadd.

tainting and escaping are independent things.  A tainted string
should still be escapted for \n and \t.

And for printing, we don't really care much about the taint flag.

* Code printing things to strings still needs \n and \r to be
  escaped.
* Code copying value_boxes should use the value box copy functions,
  which respects the taintng flag

7 years agoremove unnecessary "if"
Alan T. DeKok [Thu, 18 Jul 2019 16:31:08 +0000 (12:31 -0400)] 
remove unnecessary "if"

7 years agoMerge pull request #2793 from jpereira/v4/fix-rlmcsv2
Alan DeKok [Thu, 18 Jul 2019 14:20:28 +0000 (10:20 -0400)] 
Merge pull request #2793 from jpereira/v4/fix-rlmcsv2

rlm_csv: Fix 'map csv {}' test

7 years agoMerge pull request #2790 from jpereira/v4/fix-vbox
Alan DeKok [Thu, 18 Jul 2019 14:19:57 +0000 (10:19 -0400)] 
Merge pull request #2790 from jpereira/v4/fix-vbox

Add fr_box_tainted()/fr_box_tainted_len() to respect taint values

7 years agoAdd fr_box_tainted()/fr_box_tainted_len() to respect taint values 2790/head
Jorge Pereira [Wed, 17 Jul 2019 17:56:40 +0000 (14:56 -0300)] 
Add fr_box_tainted()/fr_box_tainted_len() to respect taint values

The new both macros have an extra field to set the "taint" state.

7 years agorlm_csv: Fix 'map csv {}' test 2793/head
Jorge Pereira [Wed, 17 Jul 2019 20:39:19 +0000 (17:39 -0300)] 
rlm_csv: Fix 'map csv {}' test

As described in the csv_map_verify() in rlm_csv.c

"Left hand side of map must be an attribute or list"

7 years agowarnings aren't errors
Alan T. DeKok [Wed, 17 Jul 2019 22:09:09 +0000 (18:09 -0400)] 
warnings aren't errors

7 years agoMerge pull request #2792 from jpereira/v4/cf1
Alan DeKok [Wed, 17 Jul 2019 21:54:07 +0000 (23:54 +0200)] 
Merge pull request #2792 from jpereira/v4/cf1

cf_pair_parse_value() Print the 'tmpl' in debug mode

7 years agocf_pair_parse_value() Print the 'tmpl' in debug mode 2792/head
Jorge Pereira [Wed, 17 Jul 2019 21:51:12 +0000 (18:51 -0300)] 
cf_pair_parse_value() Print the 'tmpl' in debug mode

7 years ago_cf_item_next(): Check if 'CONF_ITEM' is valid
Jorge Pereira [Tue, 16 Jul 2019 01:12:23 +0000 (22:12 -0300)] 
_cf_item_next(): Check if 'CONF_ITEM' is valid

7 years agorlm_csv: Fix comparison of unsigned expression
Jorge Pereira [Mon, 15 Jul 2019 22:00:20 +0000 (19:00 -0300)] 
rlm_csv: Fix comparison of unsigned expression

7 years agowe're not LDAP
Alan T. DeKok [Mon, 15 Jul 2019 07:11:26 +0000 (09:11 +0200)] 
we're not LDAP

7 years agoUse log lvl macros in more places and remove fr_log_fp in more places
Arran Cudbard-Bell [Sun, 14 Jul 2019 23:48:53 +0000 (19:48 -0400)] 
Use log lvl macros in more places and remove fr_log_fp in more places

7 years agoRespect the taint value of boxes being fed to logging functions
Arran Cudbard-Bell [Sun, 14 Jul 2019 23:47:59 +0000 (19:47 -0400)] 
Respect the taint value of boxes being fed to logging functions

i.e. not-tainted boxes don't get escaped

7 years agoallow filter operators, too
Alan T. DeKok [Sun, 14 Jul 2019 19:41:37 +0000 (21:41 +0200)] 
allow filter operators, too

7 years agoallow prefix, too
Alan T. DeKok [Sun, 14 Jul 2019 18:47:31 +0000 (20:47 +0200)] 
allow prefix, too

7 years agouse concat only for octets / string
Alan T. DeKok [Sun, 14 Jul 2019 18:20:54 +0000 (20:20 +0200)] 
use concat only for octets / string

7 years agouse MEM instead of explicit checks
Alan T. DeKok [Sun, 14 Jul 2019 18:18:39 +0000 (20:18 +0200)] 
use MEM instead of explicit checks

7 years agouse ADDR not PREFIX
Alan T. DeKok [Sun, 14 Jul 2019 18:17:02 +0000 (20:17 +0200)] 
use ADDR not PREFIX

because PREFIX is really only for RADIUS packets.

7 years agoupdate functionality, docs, and tests
Alan T. DeKok [Sat, 13 Jul 2019 15:52:00 +0000 (17:52 +0200)] 
update functionality, docs, and tests

the `csv` module can now be used in-line.

Next step, adding support for "extra" fields, as with /etc/group
When that's done, we can get rid of rlm_passwd.  Finally.

7 years agouse input names for lookups
Alan T. DeKok [Sat, 13 Jul 2019 15:36:51 +0000 (17:36 +0200)] 
use input names for lookups

7 years agogoto exit on success, not error
Alan T. DeKok [Sat, 13 Jul 2019 14:53:25 +0000 (16:53 +0200)] 
goto exit on success, not error

7 years agodoxygen
Alan T. DeKok [Sat, 13 Jul 2019 10:10:42 +0000 (12:10 +0200)] 
doxygen

7 years agoprint packets as decoded hex, not as one large hex blob
Alan T. DeKok [Sat, 13 Jul 2019 07:43:42 +0000 (09:43 +0200)] 
print packets as decoded hex, not as one large hex blob

7 years agofix debug output
Alan T. DeKok [Sat, 13 Jul 2019 07:19:49 +0000 (09:19 +0200)] 
fix debug output

7 years agominor cleanups
Alan T. DeKok [Sat, 13 Jul 2019 07:04:07 +0000 (09:04 +0200)] 
minor cleanups

7 years agoSet type of vector buffers
Arran Cudbard-Bell [Fri, 12 Jul 2019 21:12:32 +0000 (17:12 -0400)] 
Set type of vector buffers

7 years agoFix format specifier
Arran Cudbard-Bell [Fri, 12 Jul 2019 20:12:41 +0000 (16:12 -0400)] 
Fix format specifier

7 years agoUse correct format specifier
Arran Cudbard-Bell [Fri, 12 Jul 2019 17:28:04 +0000 (13:28 -0400)] 
Use correct format specifier

7 years agoMacro not used
Arran Cudbard-Bell [Fri, 12 Jul 2019 17:03:28 +0000 (13:03 -0400)] 
Macro not used

7 years agoRemove some uses of fr_log_fp
Arran Cudbard-Bell [Fri, 12 Jul 2019 16:52:20 +0000 (12:52 -0400)] 
Remove some uses of fr_log_fp

Should use the standard logging functions where available

7 years agoRemove fr_printf_log
Arran Cudbard-Bell [Fri, 12 Jul 2019 15:58:20 +0000 (11:58 -0400)] 
Remove fr_printf_log

7 years agoset debug level for requests, too
Alan T. DeKok [Fri, 12 Jul 2019 15:50:05 +0000 (17:50 +0200)] 
set debug level for requests, too

it may be better to have these as flags

7 years agonever hurts to close the socket FD, too
Alan T. DeKok [Fri, 12 Jul 2019 15:25:57 +0000 (17:25 +0200)] 
never hurts to close the socket FD, too

7 years agowe don't require a secret unless the server requires one
Alan T. DeKok [Fri, 12 Jul 2019 15:16:41 +0000 (17:16 +0200)] 
we don't require a secret unless the server requires one

7 years agoWe won't always have JIT support in libpcre2
Arran Cudbard-Bell [Fri, 12 Jul 2019 14:48:18 +0000 (10:48 -0400)] 
We won't always have JIT support in libpcre2

7 years agotrack alive clients by IP, not by pending packets
Alan T. DeKok [Wed, 10 Jul 2019 19:30:17 +0000 (21:30 +0200)] 
track alive clients by IP, not by pending packets

7 years agoscripts/asciidoc/pandoc-filter: Add checks for JSON.pm
Jorge Pereira [Tue, 9 Jul 2019 01:28:59 +0000 (22:28 -0300)] 
scripts/asciidoc/pandoc-filter: Add checks for JSON.pm

7 years agoVerify first if we could disable -Wdocumentation
Jorge Pereira [Tue, 9 Jul 2019 18:38:08 +0000 (15:38 -0300)] 
Verify first if we could disable -Wdocumentation

7 years agoconfigure.ac: Fix typo
Jorge Pereira [Tue, 9 Jul 2019 17:48:22 +0000 (14:48 -0300)] 
configure.ac: Fix typo

7 years agodon't clean adoc files tracked by git
Alan T. DeKok [Tue, 9 Jul 2019 13:29:01 +0000 (15:29 +0200)] 
don't clean adoc files tracked by git

7 years agoerror out on "build doc" targets when no tools are available
Alan T. DeKok [Tue, 9 Jul 2019 13:24:31 +0000 (15:24 +0200)] 
error out on "build doc" targets when no tools are available

7 years agodon't build docs on "make install"
Alan T. DeKok [Tue, 9 Jul 2019 13:13:47 +0000 (15:13 +0200)] 
don't build docs on "make install"

require "make install.doc", which makes sense for new CC-by-NC 4.0
license

7 years agoclang: Don't use '-Werror,-Wdocumentation' for some third headers.
Jorge Pereira [Tue, 9 Jul 2019 00:47:02 +0000 (21:47 -0300)] 
clang: Don't use '-Werror,-Wdocumentation' for some third headers.

7 years agoEmit virtual server name on validation errors
Arran Cudbard-Bell [Mon, 8 Jul 2019 18:28:25 +0000 (14:28 -0400)] 
Emit virtual server name on validation errors

7 years agoMinor cleanups in unlang compile
Arran Cudbard-Bell [Sun, 7 Jul 2019 01:07:20 +0000 (21:07 -0400)] 
Minor cleanups in unlang compile

Dup section name when building unlang group

7 years agorlm_ldap: Add 'allow_dangling_group_ref' option.
Jorge Pereira [Thu, 4 Jul 2019 18:30:33 +0000 (15:30 -0300)] 
rlm_ldap: Add 'allow_dangling_group_ref' option.

7 years agorlm_ldap: separare "noop" from "invalid".
Jorge Pereira [Thu, 4 Jul 2019 18:29:39 +0000 (15:29 -0300)] 
rlm_ldap: separare "noop" from "invalid".

7 years agorlm_postgresql: Honour query_timeout during connect
Terry Burton [Sun, 30 Jun 2019 00:33:50 +0000 (01:33 +0100)] 
rlm_postgresql: Honour query_timeout during connect

7 years agorlm-postgresql: Fail connection when receiving a signal other than EINTR.
Terry Burton [Fri, 28 Jun 2019 15:07:45 +0000 (16:07 +0100)] 
rlm-postgresql: Fail connection when receiving a signal other than EINTR.

7 years agoImplement query_timeout on socket read for rlm_postgresql
Terry Burton [Sun, 23 Jun 2019 23:56:25 +0000 (00:56 +0100)] 
Implement query_timeout on socket read for rlm_postgresql

7 years agoAdded Tripplite header to dictionary
Jeff Kawa [Thu, 27 Jun 2019 15:58:43 +0000 (10:58 -0500)] 
Added Tripplite header to dictionary

7 years agoAdd tripplite dictionary and update dictionary file to include tripplite dicitonary
Jeff Kawa [Thu, 27 Jun 2019 15:51:48 +0000 (10:51 -0500)] 
Add tripplite dictionary and update dictionary file to include tripplite dicitonary

7 years agoMerge pull request #2758 from elipsion/patch-1
Alan DeKok [Thu, 27 Jun 2019 14:05:13 +0000 (10:05 -0400)] 
Merge pull request #2758 from elipsion/patch-1

Update dictionary.rfc8045