]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
8 years agofix wildcard includes
Alan T. DeKok [Fri, 22 Jun 2018 13:40:45 +0000 (09:40 -0400)] 
fix wildcard includes

so that you can now do:

    $INCLUDE mods-enabled/sql
    $INCLUDE mods-enabled/

This will cause the "sql" module to be read first.  Then, when the
directory is read, the "sql" module will be ignored.

This solves ordering issues where "sqlippool" needs "sql", but
"sqlippool" is listed in the *directory* on disk after "sql".

Manual port of commit bb842ece0102

8 years agomove handling of EWOUILDBLOCK to conduit code
Alan T. DeKok [Thu, 21 Jun 2018 19:24:48 +0000 (15:24 -0400)] 
move handling of EWOUILDBLOCK to conduit code

8 years agohandle commands
Alan T. DeKok [Thu, 21 Jun 2018 19:20:54 +0000 (15:20 -0400)] 
handle commands

through the simple expedient of echoing back a blank line...

8 years agoreset leftover once we've read a full packet
Alan T. DeKok [Thu, 21 Jun 2018 19:20:41 +0000 (15:20 -0400)] 
reset leftover once we've read a full packet

8 years agohandle EWOULDBLOCK
Alan T. DeKok [Thu, 21 Jun 2018 19:20:23 +0000 (15:20 -0400)] 
handle EWOULDBLOCK

8 years agoMove server_id into proto_radius_auth
Arran Cudbard-Bell [Fri, 22 Jun 2018 00:13:43 +0000 (20:13 -0400)] 
Move server_id into proto_radius_auth

This is a super secret config option that is pretty RADIUS specific

8 years agomove to v4 configuration
Alan T. DeKok [Thu, 21 Jun 2018 16:12:31 +0000 (12:12 -0400)] 
move to v4 configuration

8 years agohandle initial version checks
Alan T. DeKok [Thu, 21 Jun 2018 16:12:13 +0000 (12:12 -0400)] 
handle initial version checks

8 years agouse magic number from header file
Alan T. DeKok [Thu, 21 Jun 2018 16:07:20 +0000 (12:07 -0400)] 
use magic number from header file

8 years agouse strncmp on strings
Alan T. DeKok [Thu, 21 Jun 2018 16:06:52 +0000 (12:06 -0400)] 
use strncmp on strings

8 years agomake unix/tcp more similar
Alan T. DeKok [Thu, 21 Jun 2018 15:43:18 +0000 (11:43 -0400)] 
make unix/tcp more similar

8 years agodon't need to do a lookup to access request->control
Alan T. DeKok [Tue, 19 Jun 2018 14:27:14 +0000 (10:27 -0400)] 
don't need to do a lookup to access request->control

8 years agoMerge pull request #2251 from mattrose/master
Alan DeKok [Tue, 19 Jun 2018 17:25:38 +0000 (13:25 -0400)] 
Merge pull request #2251 from mattrose/master

add libfreeradius-eap-sim.so and libfreeradius-soh.so to libfreeradiu…

8 years agoadd libfreeradius-eap-sim.so and libfreeradius-soh.so to libfreeradius4 dpkg 2251/head
Matt Rose [Tue, 19 Jun 2018 16:42:13 +0000 (12:42 -0400)] 
add libfreeradius-eap-sim.so and libfreeradius-soh.so to libfreeradius4 dpkg

8 years agoinstall module, not "sql_" stuff??
Alan T. DeKok [Tue, 19 Jun 2018 13:37:03 +0000 (09:37 -0400)] 
install module, not "sql_" stuff??

8 years agoMerge pull request #2249 from mattrose/master
Alan DeKok [Tue, 19 Jun 2018 13:34:24 +0000 (09:34 -0400)] 
Merge pull request #2249 from mattrose/master

remove proto_dhcp* from main package and move proto_ldap_sync to free…

8 years agoadd parse_rules to more modules
Alan T. DeKok [Mon, 18 Jun 2018 17:51:26 +0000 (13:51 -0400)] 
add parse_rules to more modules

we still need to refer to any attribute, tho.
e.g. dynamic clients need *both* the internal FR attributes
which define dynamic clients, *and* the protocol attributes
which are in the incoming packet.

8 years agoset default dictionaries for radius
Alan T. DeKok [Mon, 18 Jun 2018 17:33:39 +0000 (13:33 -0400)] 
set default dictionaries for radius

8 years agoupdate rules, too, for new unlang_ctx
Alan T. DeKok [Mon, 18 Jun 2018 17:09:19 +0000 (13:09 -0400)] 
update rules, too, for new unlang_ctx

8 years agocheck for variable state length. finishes previous commit
Alan T. DeKok [Mon, 18 Jun 2018 16:11:56 +0000 (12:11 -0400)] 
check for variable state length.  finishes previous commit

Manual port of commit 65e1790bb

8 years agomissed this
Alan T. DeKok [Mon, 18 Jun 2018 16:10:03 +0000 (12:10 -0400)] 
missed this

8 years agoadd parse rules, mostly.
Alan T. DeKok [Mon, 18 Jun 2018 15:39:36 +0000 (11:39 -0400)] 
add parse rules, mostly.

The conditional tokenizer is still called from cf_file, which
doesn't (yet) know about dictionaries, etc.  We will probably
need to update the conf file reader to know about that.

8 years agoset empty rules if they're not passed in
Alan T. DeKok [Mon, 18 Jun 2018 15:35:59 +0000 (11:35 -0400)] 
set empty rules if they're not passed in

and ensure that all compilations use them

8 years agomake unlang_compile_subsection() take rules, too
Alan T. DeKok [Mon, 18 Jun 2018 15:07:51 +0000 (11:07 -0400)] 
make unlang_compile_subsection() take rules, too

8 years agoadd "rules" to unlang_compile()
Alan T. DeKok [Mon, 18 Jun 2018 15:03:39 +0000 (11:03 -0400)] 
add "rules" to unlang_compile()

does nothing for now, but in preparation for protocol-specific
dictionaries

8 years agonotes
Alan T. DeKok [Mon, 18 Jun 2018 15:01:59 +0000 (11:01 -0400)] 
notes

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.