]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
8 years agoadd dictionary directory to fr_dict_autoload()
Alan T. DeKok [Mon, 7 May 2018 15:34:00 +0000 (11:34 -0400)] 
add dictionary directory to fr_dict_autoload()

8 years agomore work towards ON_LOAD autoload of dictionaries
Alan T. DeKok [Mon, 7 May 2018 15:16:17 +0000 (11:16 -0400)] 
more work towards ON_LOAD autoload of dictionaries

fr_dict_autoload_t likely needs to have base_dir removed,
and instead passed in as a function parameter.  That should
then work.

8 years agorun ON_READ rules when CONF_SECTION is allocated
Alan T. DeKok [Mon, 7 May 2018 15:08:22 +0000 (11:08 -0400)] 
run ON_READ rules when CONF_SECTION is allocated

8 years agoover-write replacement in place
Alan T. DeKok [Mon, 7 May 2018 15:04:55 +0000 (11:04 -0400)] 
over-write replacement in place

8 years agoit's a pointer, not a pointer to a pointer
Alan T. DeKok [Mon, 7 May 2018 15:02:37 +0000 (11:02 -0400)] 
it's a pointer, not a pointer to a pointer

8 years agocf_section_alloc() now adds itself to the parent automatically
Alan T. DeKok [Mon, 7 May 2018 12:25:08 +0000 (08:25 -0400)] 
cf_section_alloc() now adds itself to the parent automatically

this is more in line with the rest of the APIs.  And, with the
way that cf_section_alloc() was being called.

8 years agoneed dl_init() here, too
Alan T. DeKok [Mon, 7 May 2018 12:23:58 +0000 (08:23 -0400)] 
need dl_init() here, too

8 years agoadded ON_READ for parsing callback functions when reading files
Alan T. DeKok [Mon, 7 May 2018 12:17:54 +0000 (08:17 -0400)] 
added ON_READ for parsing callback functions when reading files

8 years agoremove unhelpful warning
Alan T. DeKok [Sun, 6 May 2018 21:36:10 +0000 (17:36 -0400)] 
remove unhelpful warning

8 years agoexplicitly call dl_init()
Alan T. DeKok [Sun, 6 May 2018 21:32:42 +0000 (17:32 -0400)] 
explicitly call dl_init()

8 years agolet's just use VMPS
Alan T. DeKok [Sun, 6 May 2018 21:28:00 +0000 (17:28 -0400)] 
let's just use VMPS

8 years agonotes on autoloading proto_FOO dictionaries
Alan T. DeKok [Sun, 6 May 2018 12:17:00 +0000 (08:17 -0400)] 
notes on autoloading proto_FOO dictionaries

8 years agoadd boilerplate for autoload
Alan T. DeKok [Sun, 6 May 2018 12:14:13 +0000 (08:14 -0400)] 
add boilerplate for autoload

8 years agodecode VMPS packets using new method
Alan T. DeKok [Sat, 5 May 2018 12:03:14 +0000 (08:03 -0400)] 
decode VMPS packets using new method

it doesn't do unknown / raw attrs, but that can be fixed later.

8 years agohack to load dictionary.vqp outselves
Alan T. DeKok [Sat, 5 May 2018 11:52:04 +0000 (07:52 -0400)] 
hack to load dictionary.vqp outselves

8 years agotry to autoload VMPS / VQP dict.
Alan T. DeKok [Sat, 5 May 2018 11:48:07 +0000 (07:48 -0400)] 
try to autoload VMPS / VQP dict.

doesn't seem to work, because autoloads are only registered
for rlm_*, and not proto_*?

8 years agouse correct names here, too
Alan T. DeKok [Sat, 5 May 2018 11:41:07 +0000 (07:41 -0400)] 
use correct names here, too

8 years agothis isn't needed any more
Alan T. DeKok [Sat, 5 May 2018 11:36:52 +0000 (07:36 -0400)] 
this isn't needed any more

8 years agonotes that VMPS doesn't have clients, and we likely want
Alan T. DeKok [Fri, 4 May 2018 18:25:46 +0000 (14:25 -0400)] 
notes that VMPS doesn't have clients, and we likely want
to fix this...

8 years agopreliminary updates for VMPS
Alan T. DeKok [Fri, 4 May 2018 18:23:57 +0000 (14:23 -0400)] 
preliminary updates for VMPS

8 years agoremove unused variable
Alan T. DeKok [Fri, 4 May 2018 17:13:16 +0000 (13:13 -0400)] 
remove unused variable

8 years agouse vqp_decode as-is
Alan T. DeKok [Fri, 4 May 2018 16:59:43 +0000 (12:59 -0400)] 
use vqp_decode as-is

8 years agoadded fr_vmps_encode()
Alan T. DeKok [Fri, 4 May 2018 16:54:56 +0000 (12:54 -0400)] 
added fr_vmps_encode()

8 years agomove to new method of handling listeners
Alan T. DeKok [Fri, 4 May 2018 16:24:51 +0000 (12:24 -0400)] 
move to new method of handling listeners

still have to re-do raw encode/decode functions, but it's a
good start

8 years agomove to new methods
Alan T. DeKok [Fri, 4 May 2018 15:40:52 +0000 (11:40 -0400)] 
move to new methods

8 years agoadd fr_vmps_print_hex()
Alan T. DeKok [Fri, 4 May 2018 15:36:41 +0000 (11:36 -0400)] 
add fr_vmps_print_hex()

8 years ago8 hexits, not 4
Alan T. DeKok [Fri, 4 May 2018 15:31:42 +0000 (11:31 -0400)] 
8 hexits, not 4

8 years agodon't need secrets for some protocols
Alan T. DeKok [Fri, 4 May 2018 15:19:17 +0000 (11:19 -0400)] 
don't need secrets for some protocols

8 years agoVMPS packets are small.
Alan T. DeKok [Fri, 4 May 2018 15:18:23 +0000 (11:18 -0400)] 
VMPS packets are small.

8 years agoneed this, too...
Alan T. DeKok [Fri, 4 May 2018 15:18:09 +0000 (11:18 -0400)] 
need this, too...

8 years agoadded fr_vmps_codes
Alan T. DeKok [Fri, 4 May 2018 15:17:05 +0000 (11:17 -0400)] 
added fr_vmps_codes

8 years agoadded dynamic client handler
Alan T. DeKok [Fri, 4 May 2018 14:52:09 +0000 (10:52 -0400)] 
added dynamic client handler

this should really be protocol-agnostic, but...

8 years agosmash it all into new format
Alan T. DeKok [Fri, 4 May 2018 13:56:21 +0000 (09:56 -0400)] 
smash it all into new format

copy proto_radius stuff over, hack it so that it works for VMPS,
and commit it.

We still need to fix up proto_vmps, and the base encode/decode
functions.  But this part compiles, so it's committed

8 years agoMerge pull request #2224 from nchaigne/4.0.x-201805-dhcpv4-empty-value
Alan DeKok [Fri, 4 May 2018 16:28:38 +0000 (12:28 -0400)] 
Merge pull request #2224 from nchaigne/4.0.x-201805-dhcpv4-empty-value

Encoding of empty DHCP options

8 years agoEncoding of empty DHCP options 2224/head
nchaigne [Fri, 4 May 2018 15:36:11 +0000 (17:36 +0200)] 
Encoding of empty DHCP options

DHCP options can be empty.
See https://tools.ietf.org/html/rfc4039: "Rapid Commit" always has a len of 0.

The encoding doesn't support this currently.
(I think it worked before, but was broken by https://github.com/FreeRADIUS/freeradius-server/pull/2209 - my bad).

So here's another fix, to support encoding of empty DHCP options.

I also updated (and passed) the dhcp4 unit tests.

8 years agoRemove fr_pair_list_copy_by_num, it's not actually used anywhere
Arran Cudbard-Bell [Fri, 4 May 2018 10:04:21 +0000 (16:04 +0600)] 
Remove fr_pair_list_copy_by_num, it's not actually used anywhere

8 years agotypos
Alan T. DeKok [Thu, 3 May 2018 22:36:23 +0000 (18:36 -0400)] 
typos

8 years agolisten on "*" for TCP
Alan T. DeKok [Thu, 3 May 2018 22:34:37 +0000 (18:34 -0400)] 
listen on "*" for TCP

8 years agodoxygen
Alan T. DeKok [Thu, 3 May 2018 21:45:46 +0000 (17:45 -0400)] 
doxygen

8 years agodon't enable dynamic clients in the default config
Alan T. DeKok [Thu, 3 May 2018 21:44:40 +0000 (17:44 -0400)] 
don't enable dynamic clients in the default config

8 years agoshut up stupid compiler
Alan T. DeKok [Thu, 3 May 2018 21:43:03 +0000 (17:43 -0400)] 
shut up stupid compiler

8 years agodoxygen
Alan T. DeKok [Thu, 3 May 2018 17:41:47 +0000 (13:41 -0400)] 
doxygen

8 years agohandle leftover
Alan T. DeKok [Thu, 3 May 2018 17:40:43 +0000 (13:40 -0400)] 
handle leftover

8 years agolet's default to UDP
Alan T. DeKok [Thu, 3 May 2018 17:20:02 +0000 (13:20 -0400)] 
let's default to UDP

8 years agopause reading only after reading one packet
Alan T. DeKok [Thu, 3 May 2018 17:17:43 +0000 (13:17 -0400)] 
pause reading only after reading one packet

8 years agodocument TCP transport
Alan T. DeKok [Thu, 3 May 2018 17:10:57 +0000 (13:10 -0400)] 
document TCP transport

8 years agotypo.
Alan T. DeKok [Thu, 3 May 2018 17:05:57 +0000 (13:05 -0400)] 
typo.

8 years agoalways call fr_network_error() on socket error
Alan T. DeKok [Thu, 3 May 2018 17:05:26 +0000 (13:05 -0400)] 
always call fr_network_error() on socket error

and call app_io->error only if it's set

8 years agotypo
Alan T. DeKok [Thu, 3 May 2018 16:30:51 +0000 (12:30 -0400)] 
typo

8 years agostart of TCP
Alan T. DeKok [Thu, 3 May 2018 16:29:37 +0000 (12:29 -0400)] 
start of TCP

it works for sending basic packets, but crashes on exit

8 years agoprint actual error before assertion
Alan T. DeKok [Thu, 3 May 2018 16:25:47 +0000 (12:25 -0400)] 
print actual error before assertion

8 years agodefine and call fd_set() for TCP sockets
Alan T. DeKok [Thu, 3 May 2018 16:10:45 +0000 (12:10 -0400)] 
define and call fd_set() for TCP sockets

8 years agoplace-holders for TCP sockets
Alan T. DeKok [Thu, 3 May 2018 15:55:46 +0000 (11:55 -0400)] 
place-holders for TCP sockets

8 years agohandle leftover bytes properly for TCP
Alan T. DeKok [Thu, 3 May 2018 15:37:34 +0000 (11:37 -0400)] 
handle leftover bytes properly for TCP

8 years agoadd place-holder FD to connection_alloc
Alan T. DeKok [Thu, 3 May 2018 15:34:41 +0000 (11:34 -0400)] 
add place-holder FD to connection_alloc

8 years agomove enforcment / counting to connection_alloc
Alan T. DeKok [Thu, 3 May 2018 15:31:52 +0000 (11:31 -0400)] 
move enforcment / counting to connection_alloc

8 years agouse correct name
Alan T. DeKok [Thu, 3 May 2018 14:56:22 +0000 (10:56 -0400)] 
use correct name

8 years agoFix sign issue
Arran Cudbard-Bell [Wed, 2 May 2018 03:55:02 +0000 (07:55 +0400)] 
Fix sign issue

8 years agoAutoload rlm_eap_fast attrs
Arran Cudbard-Bell [Wed, 2 May 2018 00:39:52 +0000 (04:39 +0400)] 
Autoload rlm_eap_fast attrs

8 years agoChange autoload functions to iterate over an array of autoload structures
Arran Cudbard-Bell [Wed, 2 May 2018 00:34:19 +0000 (04:34 +0400)] 
Change autoload functions to iterate over an array of autoload structures

8 years agoAdd init functions to the eap base library
Arran Cudbard-Bell [Wed, 2 May 2018 00:33:46 +0000 (04:33 +0400)] 
Add init functions to the eap base library

8 years agoFix autoload definitions in rlm_wimax
Arran Cudbard-Bell [Wed, 2 May 2018 00:32:00 +0000 (04:32 +0400)] 
Fix autoload definitions in rlm_wimax

This was done before we started using the autoload scripts

8 years agoFormatting
Arran Cudbard-Bell [Wed, 2 May 2018 00:31:19 +0000 (04:31 +0400)] 
Formatting

8 years agoFix minor formatting issue
Arran Cudbard-Bell [Mon, 30 Apr 2018 10:26:35 +0000 (22:26 +1200)] 
Fix minor formatting issue

8 years agodon't point to 17 year-old documentation
Alan T. DeKok [Tue, 1 May 2018 14:29:52 +0000 (10:29 -0400)] 
don't point to 17 year-old documentation

8 years agojust use "filename"
Alan T. DeKok [Sun, 29 Apr 2018 00:35:22 +0000 (20:35 -0400)] 
just use "filename"

8 years agoLook for attributes in more function calls
Arran Cudbard-Bell [Mon, 30 Apr 2018 10:17:00 +0000 (22:17 +1200)] 
Look for attributes in more function calls

8 years agoAutoload rlm_eap_sim attr
Arran Cudbard-Bell [Mon, 30 Apr 2018 09:46:45 +0000 (21:46 +1200)] 
Autoload rlm_eap_sim attr

8 years agoFix typo in rlm_eap_aka autoload symbol
Arran Cudbard-Bell [Mon, 30 Apr 2018 09:24:07 +0000 (21:24 +1200)] 
Fix typo in rlm_eap_aka autoload symbol

8 years agoShow which symbols we're checking for on autoload
Arran Cudbard-Bell [Mon, 30 Apr 2018 09:23:53 +0000 (21:23 +1200)] 
Show which symbols we're checking for on autoload

8 years agoRoot is looked up for us too
Arran Cudbard-Bell [Sun, 29 Apr 2018 23:49:40 +0000 (11:49 +1200)] 
Root is looked up for us too

8 years agoAutoload rlm_eap_aka attrs
Arran Cudbard-Bell [Sun, 29 Apr 2018 23:46:40 +0000 (11:46 +1200)] 
Autoload rlm_eap_aka attrs

8 years agoFix minor leak in proto_radius.c
Arran Cudbard-Bell [Sun, 29 Apr 2018 23:16:57 +0000 (11:16 +1200)] 
Fix minor leak in proto_radius.c

8 years agoAutoload rlm_radius_udp attributes
Arran Cudbard-Bell [Sun, 29 Apr 2018 12:22:48 +0000 (00:22 +1200)] 
Autoload rlm_radius_udp attributes

8 years agoAutoload rlm_radius attrs
Arran Cudbard-Bell [Sun, 29 Apr 2018 12:08:34 +0000 (00:08 +1200)] 
Autoload rlm_radius attrs

8 years agoBetter ordering
Arran Cudbard-Bell [Sun, 29 Apr 2018 12:01:39 +0000 (00:01 +1200)] 
Better ordering

8 years agoAdd script for generating autoloader definitions in case someone else wants to help
Arran Cudbard-Bell [Sun, 29 Apr 2018 11:44:11 +0000 (23:44 +1200)] 
Add script for generating autoloader definitions in case someone else wants to help

8 years agoMove the dict autoload defs under their variables
Arran Cudbard-Bell [Sun, 29 Apr 2018 11:42:33 +0000 (23:42 +1200)] 
Move the dict autoload defs under their variables

8 years agoFix radict to work with current dictionary structure, and print flags
Arran Cudbard-Bell [Sun, 29 Apr 2018 10:22:45 +0000 (22:22 +1200)] 
Fix radict to work with current dictionary structure, and print flags

8 years agoExpose dict flag printing function
Arran Cudbard-Bell [Sun, 29 Apr 2018 10:22:29 +0000 (22:22 +1200)] 
Expose dict flag printing function

8 years agofix typos in example
Alan T. DeKok [Sat, 28 Apr 2018 14:29:19 +0000 (10:29 -0400)] 
fix typos in example

8 years agoAutoload proto_detail attributes
Arran Cudbard-Bell [Sat, 28 Apr 2018 00:16:15 +0000 (12:16 +1200)] 
Autoload proto_detail attributes

8 years agoUse macro for RDEBUG
Arran Cudbard-Bell [Fri, 27 Apr 2018 12:43:10 +0000 (00:43 +1200)] 
Use macro for RDEBUG

8 years agoUse lower case 'authenticate' section names in the default config. Fixes #2220
Arran Cudbard-Bell [Fri, 27 Apr 2018 07:08:14 +0000 (19:08 +1200)] 
Use lower case 'authenticate' section names in the default config.  Fixes #2220

8 years agoCloses #2221 ${.:instance} automatically uses name1 if there's no name2 so ${.:name...
Arran Cudbard-Bell [Fri, 27 Apr 2018 06:54:19 +0000 (18:54 +1200)] 
Closes #2221 ${.:instance} automatically uses name1 if there's no name2 so ${.:name} is not needed

8 years agoremove unused global configurations
Alan T. DeKok [Thu, 26 Apr 2018 18:12:37 +0000 (14:12 -0400)] 
remove unused global configurations

8 years agomove instantiation to proper function
Alan T. DeKok [Thu, 26 Apr 2018 13:05:49 +0000 (09:05 -0400)] 
move instantiation to proper function

8 years agoadd UNUSED
Alan T. DeKok [Thu, 26 Apr 2018 12:15:36 +0000 (08:15 -0400)] 
add UNUSED

8 years agoLog messages are not doxygen blocks
Arran Cudbard-Bell [Thu, 26 Apr 2018 09:23:28 +0000 (21:23 +1200)] 
Log messages are not doxygen blocks

8 years agoa better fix for the last commit
Alan T. DeKok [Thu, 26 Apr 2018 02:40:38 +0000 (22:40 -0400)] 
a better fix for the last commit

8 years agodon't over-write server_cs
Alan T. DeKok [Thu, 26 Apr 2018 02:33:35 +0000 (22:33 -0400)] 
don't over-write server_cs

8 years agoassertions are better than opaque errors
Alan T. DeKok [Thu, 26 Apr 2018 02:20:01 +0000 (22:20 -0400)] 
assertions are better than opaque errors

8 years agoinitialize trie, even if we don't have dynamic clients
Alan T. DeKok [Thu, 26 Apr 2018 02:11:18 +0000 (22:11 -0400)] 
initialize trie, even if we don't have dynamic clients

8 years agotmpl_expand returns signed value
Arran Cudbard-Bell [Thu, 26 Apr 2018 01:23:23 +0000 (13:23 +1200)] 
tmpl_expand returns signed value

8 years agoadd "client find" function
Alan T. DeKok [Wed, 25 Apr 2018 23:12:51 +0000 (19:12 -0400)] 
add "client find" function

which should be in the app_io anyways...

8 years agoclient_clone is only needed by master.c, so put it there
Alan T. DeKok [Wed, 25 Apr 2018 23:10:10 +0000 (19:10 -0400)] 
client_clone is only needed by master.c, so put it there

8 years agoRun on lines are hard to read
Arran Cudbard-Bell [Wed, 25 Apr 2018 23:11:49 +0000 (11:11 +1200)] 
Run on lines are hard to read

8 years agoprintf fixes
Alan T. DeKok [Wed, 25 Apr 2018 18:13:55 +0000 (14:13 -0400)] 
printf fixes

8 years agowe need this too, apparently.
Alan T. DeKok [Wed, 25 Apr 2018 17:25:42 +0000 (13:25 -0400)] 
we need this too, apparently.

8 years agoremove last vestiges of proto_radius
Alan T. DeKok [Wed, 25 Apr 2018 16:53:31 +0000 (12:53 -0400)] 
remove last vestiges of proto_radius