]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
8 years agomake map_afrom_vp() take vp_tmpl_rules_t for consistency
Alan T. DeKok [Mon, 18 Jun 2018 14:46:46 +0000 (10:46 -0400)] 
make map_afrom_vp() take vp_tmpl_rules_t for consistency

8 years agoHandle variable length State attributes
Alan T. DeKok [Mon, 18 Jun 2018 14:37:46 +0000 (10:37 -0400)] 
Handle variable length State attributes

Manual port of commit 65e1790bb

8 years agocatch GROUP
Alan T. DeKok [Sun, 17 Jun 2018 15:43:35 +0000 (11:43 -0400)] 
catch GROUP

8 years agodisallow '{' after WORD OPERATOR
Alan T. DeKok [Sun, 17 Jun 2018 14:56:23 +0000 (10:56 -0400)] 
disallow '{' after WORD OPERATOR

which we might allow later for groups, but at least we now
have a better error, and the knowledge of where to put the
extra syntax for groups

8 years agodefine and parse "group" attribute
Alan T. DeKok [Sun, 17 Jun 2018 12:38:39 +0000 (08:38 -0400)] 
define and parse "group" attribute

so that we can do arbitrary grouping

8 years agoremove proto_dhcp* from main package and move proto_ldap_sync to freeradius-ldap... 2249/head
Matt Rose [Fri, 15 Jun 2018 18:25:22 +0000 (14:25 -0400)] 
remove proto_dhcp* from main package and move proto_ldap_sync to freeradius-ldap package

8 years agofix links to master
Alan T. DeKok [Tue, 12 Jun 2018 15:17:07 +0000 (11:17 -0400)] 
fix links to master

8 years agoUse newer macro
Arran Cudbard-Bell [Mon, 11 Jun 2018 13:58:32 +0000 (09:58 -0400)] 
Use newer macro

8 years agoMove link_layer functions into pcap.c as they need libpcap to work
Arran Cudbard-Bell [Mon, 11 Jun 2018 13:18:07 +0000 (09:18 -0400)] 
Move link_layer functions into pcap.c as they need libpcap to work

8 years agoFix libpcap detection
Arran Cudbard-Bell [Mon, 11 Jun 2018 13:15:03 +0000 (09:15 -0400)] 
Fix libpcap detection

8 years agostart of asciidoc conversion
Alan T. DeKok [Sun, 10 Jun 2018 16:52:23 +0000 (12:52 -0400)] 
start of asciidoc conversion

8 years agolet lists be formatted correctly
Alan T. DeKok [Sun, 10 Jun 2018 16:51:54 +0000 (12:51 -0400)] 
let lists be formatted correctly

8 years agoload all conf into asciidoc
Alan T. DeKok [Sun, 10 Jun 2018 16:49:49 +0000 (12:49 -0400)] 
load all conf into asciidoc

8 years agoadd "asciidoc" target
Alan T. DeKok [Sat, 9 Jun 2018 15:22:12 +0000 (11:22 -0400)] 
add "asciidoc" target

which means pretty, pretty, documentation

8 years agostart of "convert conf files to humanly readable"
Alan T. DeKok [Sat, 9 Jun 2018 15:09:55 +0000 (11:09 -0400)] 
start of "convert conf files to humanly readable"

8 years agoReorganise the TACACS+ library code
Arran Cudbard-Bell [Thu, 7 Jun 2018 16:49:39 +0000 (22:49 +0600)] 
Reorganise the TACACS+ library code

8 years agocontrol sock unix now accepts connections
Alan T. DeKok [Thu, 7 Jun 2018 20:17:48 +0000 (16:17 -0400)] 
control sock unix now accepts connections

next step, implement the various state machines necessary
for authentication, etc.

8 years agowe don't need this
Alan T. DeKok [Thu, 7 Jun 2018 20:17:09 +0000 (16:17 -0400)] 
we don't need this

8 years agofd_set may fail
Alan T. DeKok [Thu, 7 Jun 2018 20:08:03 +0000 (16:08 -0400)] 
fd_set may fail

8 years agowe can now connect to control sockets
Alan T. DeKok [Thu, 7 Jun 2018 20:01:53 +0000 (16:01 -0400)] 
we can now connect to control sockets

not much else happens, but oh well

8 years agostart of handling Unix sockets, too
Alan T. DeKok [Thu, 7 Jun 2018 20:01:38 +0000 (16:01 -0400)] 
start of handling Unix sockets, too

8 years agoport more code over from v3.
Alan T. DeKok [Thu, 7 Jun 2018 16:51:06 +0000 (12:51 -0400)] 
port more code over from v3.

not tested, but it compiles.

8 years agoFix clang scan complaints
Arran Cudbard-Bell [Wed, 6 Jun 2018 09:18:34 +0000 (15:18 +0600)] 
Fix clang scan complaints

8 years agoCorrect fix for fr_pair_list_afrom_file
Arran Cudbard-Bell [Wed, 6 Jun 2018 08:57:03 +0000 (14:57 +0600)] 
Correct fix for fr_pair_list_afrom_file

8 years agoMerge pull request #2241 from pwdng/xlat_urlquote
Arran Cudbard-Bell [Wed, 6 Jun 2018 08:25:00 +0000 (14:25 +0600)] 
Merge pull request #2241 from pwdng/xlat_urlquote

Convert urlquote and urlenquote xlat

8 years agoDoxygen
Arran Cudbard-Bell [Wed, 6 Jun 2018 02:37:19 +0000 (08:37 +0600)] 
Doxygen

8 years agowind the cursor to the tail of the list
Alan T. DeKok [Tue, 5 Jun 2018 17:32:22 +0000 (13:32 -0400)] 
wind the cursor to the tail of the list

8 years agoFix various binary safety issues in LDAP
Arran Cudbard-Bell [Tue, 5 Jun 2018 10:25:05 +0000 (16:25 +0600)] 
Fix various binary safety issues in LDAP

8 years agoappend all VPs, not just the first one.
Alan T. DeKok [Tue, 5 Jun 2018 16:55:22 +0000 (12:55 -0400)] 
append all VPs, not just the first one.

it's rather surprising to see fr_cursor_append() set vp->next=NULL
which causes all kinds of issues with callers expecting something
else.

8 years agoinitialize the radius dictionaries
Alan T. DeKok [Tue, 5 Jun 2018 14:12:22 +0000 (10:12 -0400)] 
initialize the radius dictionaries

8 years agoallow for partial writes
Alan T. DeKok [Mon, 4 Jun 2018 18:36:52 +0000 (14:36 -0400)] 
allow for partial writes

8 years agoTypo
Arran Cudbard-Bell [Tue, 5 Jun 2018 07:47:02 +0000 (13:47 +0600)] 
Typo

8 years agoPass through a rules structure containing the rules for the tmpl parser
Arran Cudbard-Bell [Tue, 5 Jun 2018 07:33:52 +0000 (13:33 +0600)] 
Pass through a rules structure containing the rules for the tmpl parser

8 years agoDon't need to use talloc_zero_size here
Arran Cudbard-Bell [Tue, 5 Jun 2018 03:30:12 +0000 (09:30 +0600)] 
Don't need to use talloc_zero_size here

8 years agocleanups and simplifications
Alan T. DeKok [Mon, 4 Jun 2018 18:20:23 +0000 (14:20 -0400)] 
cleanups and simplifications

8 years agos->waiting is already localized
Alan T. DeKok [Mon, 4 Jun 2018 14:43:33 +0000 (10:43 -0400)] 
s->waiting is already localized

8 years agonotes on localizing messages
Alan T. DeKok [Mon, 4 Jun 2018 13:23:52 +0000 (09:23 -0400)] 
notes on localizing messages

8 years agosupport partial writes to TCP sockets
Alan T. DeKok [Mon, 4 Jun 2018 13:22:11 +0000 (09:22 -0400)] 
support partial writes to TCP sockets

8 years agoConvert urlunquote xlat to new API 2241/head
Philippe Wooding [Fri, 1 Jun 2018 12:48:27 +0000 (12:48 +0000)] 
Convert urlunquote xlat to new API

8 years agoConvert urlquote xlat to new API
Philippe Wooding [Fri, 1 Jun 2018 12:48:07 +0000 (12:48 +0000)] 
Convert urlquote xlat to new API

8 years agoQuiet clang scan
Arran Cudbard-Bell [Mon, 4 Jun 2018 03:52:11 +0000 (09:52 +0600)] 
Quiet clang scan

8 years agoUse correct talloc type for string buffers
Arran Cudbard-Bell [Mon, 4 Jun 2018 03:26:48 +0000 (09:26 +0600)] 
Use correct talloc type for string buffers

8 years agoMove pairmove into its own file
Arran Cudbard-Bell [Mon, 4 Jun 2018 03:17:27 +0000 (09:17 +0600)] 
Move pairmove into its own file

It should eventually be removed

8 years agoallow for partial writes to sockets.
Alan T. DeKok [Mon, 4 Jun 2018 01:21:50 +0000 (21:21 -0400)] 
allow for partial writes to sockets.

When that happens, save how much we've written, and remember
to keep doing the writes later.

8 years agotry to quiet compiler complaints
Alan T. DeKok [Mon, 4 Jun 2018 00:58:17 +0000 (20:58 -0400)] 
try to quiet compiler complaints

8 years agoinitialize parent_inst
Alan T. DeKok [Mon, 4 Jun 2018 00:56:29 +0000 (20:56 -0400)] 
initialize parent_inst

8 years agobuild fixes
Alan T. DeKok [Sun, 3 Jun 2018 23:47:31 +0000 (19:47 -0400)] 
build fixes

8 years agodoxygen
Alan T. DeKok [Sun, 3 Jun 2018 17:33:02 +0000 (13:33 -0400)] 
doxygen

8 years agoremove unused variable
Alan T. DeKok [Sun, 3 Jun 2018 17:32:39 +0000 (13:32 -0400)] 
remove unused variable

8 years agoadd "written" argument to app_io->write
Alan T. DeKok [Sun, 3 Jun 2018 17:30:31 +0000 (13:30 -0400)] 
add "written" argument to app_io->write

so that we can do partial writes in the network code, instead of
relying on every application to re-implement it

8 years agomore cleanups
Alan T. DeKok [Fri, 1 Jun 2018 17:38:39 +0000 (13:38 -0400)] 
more cleanups

8 years agowrite() must write ALL of the data
Alan T. DeKok [Fri, 1 Jun 2018 17:37:43 +0000 (13:37 -0400)] 
write() must write ALL of the data

it's the responsibility of the underlying IO routine to cache
any partial writes

8 years agouse "leftover" as per lib/io/master.c
Alan T. DeKok [Fri, 1 Jun 2018 17:05:38 +0000 (13:05 -0400)] 
use "leftover" as per lib/io/master.c

and return 0 for "not yet read a whole packet"
and return the whole packet for fr_conduit_read_async()

8 years agostart of proto_control
Alan T. DeKok [Fri, 1 Jun 2018 16:44:08 +0000 (12:44 -0400)] 
start of proto_control

and move radmin to proto_control directory.  It's no longer
part of the server core.

8 years agoDoxygen
Arran Cudbard-Bell [Fri, 1 Jun 2018 16:13:21 +0000 (22:13 +0600)] 
Doxygen

8 years agoAugment the correct dictionary
Arran Cudbard-Bell [Fri, 1 Jun 2018 16:13:07 +0000 (22:13 +0600)] 
Augment the correct dictionary

8 years agoDon't leak memory on invalid character class
Arran Cudbard-Bell [Fri, 1 Jun 2018 13:11:51 +0000 (19:11 +0600)] 
Don't leak memory on invalid character class

8 years agoPrint extra information from about the digest tests
Arran Cudbard-Bell [Fri, 1 Jun 2018 12:43:30 +0000 (18:43 +0600)] 
Print extra information from about the digest tests

8 years agoRemove redundant checks, and print more debug info in rlm_digest
Arran Cudbard-Bell [Fri, 1 Jun 2018 12:33:13 +0000 (18:33 +0600)] 
Remove redundant checks, and print more debug info in rlm_digest

8 years agoFix fr_cursor_head when used with an iterator
Arran Cudbard-Bell [Fri, 1 Jun 2018 12:32:53 +0000 (18:32 +0600)] 
Fix fr_cursor_head when used with an iterator

8 years agoMerge pull request #2240 from pwdng/xlat_randstr
Arran Cudbard-Bell [Fri, 1 Jun 2018 09:36:31 +0000 (15:36 +0600)] 
Merge pull request #2240 from pwdng/xlat_randstr

Convert randstr xlat to new API

8 years agoConvert randstr xlat to new API 2240/head
Philippe Wooding [Fri, 1 Jun 2018 09:07:33 +0000 (09:07 +0000)] 
Convert randstr xlat to new API

8 years agoAdd function to extract qualified attribute names from substrings
Arran Cudbard-Bell [Fri, 1 Jun 2018 07:36:35 +0000 (13:36 +0600)] 
Add function to extract qualified attribute names from substrings

8 years agoFormatting
Arran Cudbard-Bell [Fri, 1 Jun 2018 03:48:58 +0000 (09:48 +0600)] 
Formatting

8 years agoMerge pull request #2239 from pwdng/xlat_rand
Arran Cudbard-Bell [Fri, 1 Jun 2018 07:16:29 +0000 (13:16 +0600)] 
Merge pull request #2239 from pwdng/xlat_rand

Convert rand xlat to new API

8 years agouse the correct name taken from the dictionaries
Alan T. DeKok [Thu, 31 May 2018 19:56:47 +0000 (15:56 -0400)] 
use the correct name taken from the dictionaries

8 years agoas found on the net
Alan T. DeKok [Thu, 31 May 2018 19:45:01 +0000 (15:45 -0400)] 
as found on the net

8 years agoFix other casts for array indexes fr_dict_attr_allowed_chars
Arran Cudbard-Bell [Thu, 31 May 2018 18:46:30 +0000 (00:46 +0600)] 
Fix other casts for array indexes fr_dict_attr_allowed_chars

8 years agoClear out strerror buffer to avoid spurious error messages
Arran Cudbard-Bell [Thu, 31 May 2018 18:43:50 +0000 (00:43 +0600)] 
Clear out strerror buffer to avoid spurious error messages

8 years agoDon't cast to int‽
Arran Cudbard-Bell [Thu, 31 May 2018 18:34:16 +0000 (00:34 +0600)] 
Don't cast to int‽

No idea what this was there

8 years agoFixup test
Arran Cudbard-Bell [Thu, 31 May 2018 18:22:47 +0000 (00:22 +0600)] 
Fixup test

8 years agoPrint the full attribute name on error
Arran Cudbard-Bell [Thu, 31 May 2018 18:21:44 +0000 (00:21 +0600)] 
Print the full attribute name on error

8 years agovp has to be left pointing to the head of the list returned by fr_pair_list_afrom_str...
Arran Cudbard-Bell [Thu, 31 May 2018 17:09:45 +0000 (23:09 +0600)] 
vp has to be left pointing to the head of the list returned by fr_pair_list_afrom_str, else the block termination check doesn't work

8 years agofilter files can't be empty.
Alan T. DeKok [Thu, 31 May 2018 15:34:34 +0000 (11:34 -0400)] 
filter files can't be empty.

8 years agoAdd log directory archival script
Arran Cudbard-Bell [Thu, 31 May 2018 12:46:53 +0000 (18:46 +0600)] 
Add log directory archival script

8 years agodon't use track after freeing it
Alan T. DeKok [Thu, 31 May 2018 11:06:39 +0000 (07:06 -0400)] 
don't use track after freeing it

8 years agoCopy errbuf contents to fr error buffer
Arran Cudbard-Bell [Thu, 31 May 2018 09:29:59 +0000 (15:29 +0600)] 
Copy errbuf contents to fr error buffer

8 years agoConvert rand xlat to new API 2239/head
Philippe Wooding [Tue, 29 May 2018 21:17:33 +0000 (21:17 +0000)] 
Convert rand xlat to new API

8 years agoExample .clang-format config which gets us somewhere close to the formatting style...
Arran Cudbard-Bell [Thu, 31 May 2018 07:29:19 +0000 (13:29 +0600)] 
Example .clang-format config which gets us somewhere close to the formatting style we use today

8 years agoUse autoloaded attr_request_lifetime
Arran Cudbard-Bell [Thu, 31 May 2018 06:33:38 +0000 (12:33 +0600)] 
Use autoloaded attr_request_lifetime

8 years agoRemove delete_by_num
Arran Cudbard-Bell [Thu, 31 May 2018 06:32:09 +0000 (12:32 +0600)] 
Remove delete_by_num

8 years agoMissed autoload definition
Arran Cudbard-Bell [Thu, 31 May 2018 05:34:47 +0000 (11:34 +0600)] 
Missed autoload definition

8 years agoRemove extra format specifier
Arran Cudbard-Bell [Thu, 31 May 2018 05:00:00 +0000 (11:00 +0600)] 
Remove extra format specifier

8 years agoDon't need to dereference name
Arran Cudbard-Bell [Thu, 31 May 2018 04:58:34 +0000 (10:58 +0600)] 
Don't need to dereference name

8 years agoremove unused assignments
Alan T. DeKok [Thu, 31 May 2018 00:58:54 +0000 (20:58 -0400)] 
remove unused assignments

8 years agouse error string
Alan T. DeKok [Thu, 31 May 2018 00:04:42 +0000 (20:04 -0400)] 
use error string

8 years agofree pending packets before freeing the table that references them
Alan T. DeKok [Wed, 30 May 2018 19:59:31 +0000 (15:59 -0400)] 
free pending packets before freeing the table that references them

8 years agoDoxygen
Arran Cudbard-Bell [Wed, 30 May 2018 16:56:07 +0000 (22:56 +0600)] 
Doxygen

8 years agoReturn 0 not NULL in substr functions
Arran Cudbard-Bell [Wed, 30 May 2018 16:53:59 +0000 (22:53 +0600)] 
Return 0 not NULL in substr functions

8 years agomissed label
Arran Cudbard-Bell [Wed, 30 May 2018 16:31:56 +0000 (22:31 +0600)] 
missed label

8 years agoAdd an extremely bare bones pair deserializer for things like the detail reader and...
Arran Cudbard-Bell [Wed, 30 May 2018 16:31:36 +0000 (22:31 +0600)] 
Add an extremely bare bones pair deserializer for things like the detail reader and other string based protocols

8 years agoFix more instances of manual escaping
Arran Cudbard-Bell [Wed, 30 May 2018 15:17:24 +0000 (21:17 +0600)] 
Fix more instances of manual escaping

8 years agoThe correct macro is isspace
Arran Cudbard-Bell [Wed, 30 May 2018 15:13:36 +0000 (21:13 +0600)] 
The correct macro is isspace

8 years agoAdd protocol attribute in internal dictionary, we'll automatically populate it with...
Arran Cudbard-Bell [Wed, 30 May 2018 15:12:19 +0000 (21:12 +0600)] 
Add protocol attribute in internal dictionary, we'll automatically populate it with all the protocols later

8 years agoFree anything we alloc in mod_decode if decoding the detail entry fails
Arran Cudbard-Bell [Wed, 30 May 2018 15:11:37 +0000 (21:11 +0600)] 
Free anything we alloc in mod_decode if decoding the detail entry fails

Not strictly necessary but usually a good thing to do

8 years agoAdditional autoload boilerplate in proto_detail
Arran Cudbard-Bell [Wed, 30 May 2018 15:10:41 +0000 (21:10 +0600)] 
Additional autoload boilerplate in proto_detail

8 years agoPass quote and taint through to fr_pair_value_from_str
Arran Cudbard-Bell [Wed, 30 May 2018 11:41:33 +0000 (17:41 +0600)] 
Pass quote and taint through to fr_pair_value_from_str

8 years agoConvert dict substr functions so they return number of bytes parsed
Arran Cudbard-Bell [Wed, 30 May 2018 06:13:54 +0000 (12:13 +0600)] 
Convert dict substr functions so they return number of bytes parsed

8 years agoFixup tmpl_define_undefined_attr to take a default dictionary
Arran Cudbard-Bell [Wed, 30 May 2018 06:10:31 +0000 (12:10 +0600)] 
Fixup tmpl_define_undefined_attr to take a default dictionary

8 years agoAdd dictionary pointer to request, and use it to qualify name based dictionary lookups
Arran Cudbard-Bell [Wed, 30 May 2018 05:46:43 +0000 (11:46 +0600)] 
Add dictionary pointer to request, and use it to qualify name based dictionary lookups