]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
7 years agohandle cases when TLV exactly fits parent option. Helps with #2601
Alan T. DeKok [Mon, 8 Apr 2019 13:07:51 +0000 (09:07 -0400)] 
handle cases when TLV exactly fits parent option.  Helps with #2601

7 years agohandle options with no data. Helps with #2601
Alan T. DeKok [Mon, 8 Apr 2019 12:29:48 +0000 (08:29 -0400)] 
handle options with no data. Helps with #2601

and add test cases

7 years agoset the correct size of the data returned
Alan T. DeKok [Mon, 8 Apr 2019 12:21:26 +0000 (08:21 -0400)] 
set the correct size of the data returned

7 years agoRework subrequest code to allow subrequests that persist and run through multiple...
Arran Cudbard-Bell [Sun, 7 Apr 2019 21:44:47 +0000 (17:44 -0400)] 
Rework subrequest code to allow subrequests that persist and run through multiple sections

7 years agoNot actually a bool...
Arran Cudbard-Bell [Sun, 7 Apr 2019 17:06:02 +0000 (13:06 -0400)] 
Not actually a bool...

7 years agoExpand interface for doing things with virtual servers
Arran Cudbard-Bell [Sun, 7 Apr 2019 17:04:36 +0000 (13:04 -0400)] 
Expand interface for doing things with virtual servers

7 years agorlm_sigtran: Mute error message
Jorge Pereira [Thu, 4 Apr 2019 16:42:27 +0000 (13:42 -0300)] 
rlm_sigtran: Mute error message

7 years agoAdd " to Line 143
mohammed059 [Sun, 7 Apr 2019 11:21:06 +0000 (14:21 +0300)] 
Add " to Line 143

7 years agoAdd interface spawning subrequests from modules
Arran Cudbard-Bell [Sun, 7 Apr 2019 02:21:32 +0000 (22:21 -0400)] 
Add interface spawning subrequests from modules

7 years agoFormatting
Arran Cudbard-Bell [Sun, 7 Apr 2019 02:07:58 +0000 (22:07 -0400)] 
Formatting

7 years agoCleanup frame state when processing siblings
Arran Cudbard-Bell [Sat, 6 Apr 2019 23:29:07 +0000 (19:29 -0400)] 
Cleanup frame state when processing siblings

7 years agoMore documentation
Arran Cudbard-Bell [Sat, 6 Apr 2019 16:25:26 +0000 (12:25 -0400)] 
More documentation

7 years agoDoxygen
Arran Cudbard-Bell [Sat, 6 Apr 2019 15:48:42 +0000 (11:48 -0400)] 
Doxygen

7 years agoprint out where the output differs
Alan T. DeKok [Sat, 6 Apr 2019 12:57:36 +0000 (08:57 -0400)] 
print out where the output differs

which helps with long output

7 years agofix TLV encoding
Alan T. DeKok [Sat, 6 Apr 2019 12:54:08 +0000 (08:54 -0400)] 
fix TLV encoding

by adding the current TLV header, which was missing in the
previous commit.

Also clean up the code and use extend_option() where the data
is more than 255 bytes.

We try to avoid splitting data across multiple options.  The result
is that the encoder may output multiple options of the same number,
BUT where the lengths are smaller than 255.  This means that any
decoder can just decode the data in-place most of the time.

We split data across multiple options ONLY when the encoded data
is more than 255 bytes.  And even then, we try to start that
encoding on a new option.

7 years agoCheck for errors when registering aux functions
Arran Cudbard-Bell [Sat, 6 Apr 2019 00:27:39 +0000 (20:27 -0400)] 
Check for errors when registering aux functions

7 years agoMove module event handling and declarations out of the various places they were scatt...
Arran Cudbard-Bell [Sat, 6 Apr 2019 00:24:46 +0000 (20:24 -0400)] 
Move module event handling and declarations out of the various places they were scattered, and into module.h, module_priv.h, and module.c in the unlang library

7 years agoFinish breaking keywords out into separate source files
Arran Cudbard-Bell [Fri, 5 Apr 2019 23:30:45 +0000 (19:30 -0400)] 
Finish breaking keywords out into separate source files

7 years agoTypo
Arran Cudbard-Bell [Fri, 5 Apr 2019 22:02:12 +0000 (18:02 -0400)] 
Typo

7 years agoFix setting up EAP-TLS success after virtual server is called
Arran Cudbard-Bell [Fri, 5 Apr 2019 22:00:15 +0000 (18:00 -0400)] 
Fix setting up EAP-TLS success after virtual server is called

7 years agoDoxygen
Arran Cudbard-Bell [Fri, 5 Apr 2019 21:13:06 +0000 (17:13 -0400)] 
Doxygen

7 years agoBreak out some of the larger keywords into their own compilation units
Arran Cudbard-Bell [Fri, 5 Apr 2019 21:09:29 +0000 (17:09 -0400)] 
Break out some of the larger keywords into their own compilation units

7 years agoencode tlvs that are longer than 255 octets. Helps with #2601
Alan T. DeKok [Fri, 5 Apr 2019 20:37:14 +0000 (16:37 -0400)] 
encode tlvs that are longer than 255 octets.  Helps with #2601

7 years agoencode options that are longer than 255 octets. Helps with #2601
Alan T. DeKok [Fri, 5 Apr 2019 20:11:12 +0000 (16:11 -0400)] 
encode options that are longer than 255 octets.  Helps with #2601

this currently only works for RFC attributes.  A fix for TLVs
is the next step

7 years agoComment out changes that seem to cause travis to fail
Arran Cudbard-Bell [Fri, 5 Apr 2019 18:16:43 +0000 (14:16 -0400)] 
Comment out changes that seem to cause travis to fail

7 years agoPass received signals on to xlat functions
Arran Cudbard-Bell [Fri, 5 Apr 2019 17:32:51 +0000 (13:32 -0400)] 
Pass received signals on to xlat functions

fff

7 years agostop encoding if we encode 0 bytes. Helps with #2601
Alan T. DeKok [Fri, 5 Apr 2019 17:00:58 +0000 (13:00 -0400)] 
stop encoding if we encode 0 bytes. Helps with #2601

"0" is a valid return value from encode_option, which means
that it couldn't do anything

7 years agoCan only update...
Arran Cudbard-Bell [Fri, 5 Apr 2019 01:05:20 +0000 (21:05 -0400)] 
Can only update...

7 years agoand hand back correct expiry time
Arran Cudbard-Bell [Thu, 4 Apr 2019 22:16:23 +0000 (18:16 -0400)] 
and hand back correct expiry time

7 years agoExtend lease if it's less than expires_in and we're re-using the one currently assign...
Arran Cudbard-Bell [Thu, 4 Apr 2019 22:05:47 +0000 (18:05 -0400)] 
Extend lease if it's less than expires_in and we're re-using the one currently assigned to the device

7 years agoComplete plumbing in virtual server compilation for EAP-AKA
Arran Cudbard-Bell [Thu, 4 Apr 2019 22:04:50 +0000 (18:04 -0400)] 
Complete plumbing in virtual server compilation for EAP-AKA

This at least lets us access the sections, so we can run them

7 years agoUpdate elasticsearch/logstash examples
Matthew Newton [Thu, 4 Apr 2019 17:24:51 +0000 (18:24 +0100)] 
Update elasticsearch/logstash examples

Tested with elk stack 6.7.0

7 years agouse "fake" instead of "detach"
Alan T. DeKok [Thu, 4 Apr 2019 15:36:19 +0000 (11:36 -0400)] 
use "fake" instead of "detach"

and update the worker to better allow fake requests

7 years agothe formatter now adds a common header
Alan T. DeKok [Thu, 4 Apr 2019 13:36:29 +0000 (09:36 -0400)] 
the formatter now adds a common header

which updates the copyright year, and includes license text

It also removes any pre-existing header, before adding the new one.

7 years agotests for vendor-specific encrypted options
Alan T. DeKok [Wed, 3 Apr 2019 13:45:29 +0000 (09:45 -0400)] 
tests for vendor-specific encrypted options

This is a partial port of the tests from #2600 to v4

7 years agoupdate for v4
Alan T. DeKok [Wed, 3 Apr 2019 13:38:35 +0000 (09:38 -0400)] 
update for v4

7 years agoadd ERX dictionary from v3
Alan T. DeKok [Wed, 3 Apr 2019 13:22:00 +0000 (09:22 -0400)] 
add ERX dictionary from v3

7 years agoOnly initialise the various OpenSSL contexts in rlm_cipher if we have the various...
Arran Cudbard-Bell [Wed, 3 Apr 2019 22:38:36 +0000 (18:38 -0400)] 
Only initialise the various OpenSSL contexts in rlm_cipher if we have the various certificates configured

7 years agoDon't leave spurious errors hanging around on non-failure conditions
Arran Cudbard-Bell [Wed, 3 Apr 2019 19:09:42 +0000 (15:09 -0400)] 
Don't leave spurious errors hanging around on non-failure conditions

7 years agoAdd capability to 'make rpm' check the dependencies
Jorge Pereira [Tue, 2 Apr 2019 22:47:07 +0000 (19:47 -0300)] 
Add capability to 'make rpm' check the dependencies

7 years agoMerge pull request #2588 from mattrose/make-rpm
Alan DeKok [Tue, 2 Apr 2019 18:35:35 +0000 (14:35 -0400)] 
Merge pull request #2588 from mattrose/make-rpm

add rpm target to Makefile

7 years agodocument "poll_interval = 0" and Linux.
Alan T. DeKok [Tue, 2 Apr 2019 18:29:49 +0000 (14:29 -0400)] 
document "poll_interval = 0" and Linux.

And open dev/null for "watching the directory" when poll_interval
is larger than zero

7 years agouse the correct instance variable
Alan T. DeKok [Tue, 2 Apr 2019 18:25:44 +0000 (14:25 -0400)] 
use the correct instance variable

7 years agoremove OS-specific code.
Alan T. DeKok [Tue, 2 Apr 2019 17:52:22 +0000 (13:52 -0400)] 
remove OS-specific code.

and turn it into a configuration item

7 years agoset process_instance so that we can find attr_packet_type
Alan T. DeKok [Tue, 2 Apr 2019 17:41:21 +0000 (13:41 -0400)] 
set process_instance so that we can find attr_packet_type

7 years agoprint out "detail" and not "proto_detail"
Alan T. DeKok [Tue, 2 Apr 2019 17:41:01 +0000 (13:41 -0400)] 
print out "detail" and not "proto_detail"

7 years agoconvert everything to integer
Alan T. DeKok [Tue, 2 Apr 2019 17:40:04 +0000 (13:40 -0400)] 
convert everything to integer

and handle cases when attributes don't exist

7 years agocopy the correct (low) bytes. Fixes #2596
Alan T. DeKok [Tue, 2 Apr 2019 14:56:36 +0000 (10:56 -0400)] 
copy the correct (low) bytes.  Fixes #2596

7 years agodon't use `confdir`
Alan T. DeKok [Tue, 2 Apr 2019 14:47:15 +0000 (10:47 -0400)] 
don't use `confdir`

7 years agofix names so that we don't have protocol prefixes everywhere
Alan T. DeKok [Tue, 2 Apr 2019 14:30:02 +0000 (10:30 -0400)] 
fix names so that we don't have protocol prefixes everywhere

7 years agoPacket-Type is "integer"
Alan T. DeKok [Tue, 2 Apr 2019 13:55:32 +0000 (09:55 -0400)] 
Packet-Type is "integer"

7 years agodon't set a default type, and make `type` mandatory
Alan T. DeKok [Tue, 2 Apr 2019 13:39:23 +0000 (09:39 -0400)] 
don't set a default type, and make `type` mandatory

7 years agoFix fastpath check (where we're just encoding the subtype) for EAP-SIM, EAP-AKA,...
Arran Cudbard-Bell [Mon, 1 Apr 2019 18:55:52 +0000 (14:55 -0400)] 
Fix fastpath check (where we're just encoding the subtype) for EAP-SIM, EAP-AKA, EAP-AKA'

7 years agomake provisions for non-radius packet tracking
Alan T. DeKok [Mon, 1 Apr 2019 15:34:32 +0000 (11:34 -0400)] 
make provisions for non-radius packet tracking

7 years agocheck for min packet size here, too
Alan T. DeKok [Mon, 1 Apr 2019 15:00:33 +0000 (11:00 -0400)] 
check for min packet size here, too

7 years agouse MIN_PACKET_SIZE...
Alan T. DeKok [Mon, 1 Apr 2019 14:56:24 +0000 (10:56 -0400)] 
use MIN_PACKET_SIZE...

7 years agocatch stupid callers
Alan T. DeKok [Mon, 1 Apr 2019 14:42:42 +0000 (10:42 -0400)] 
catch stupid callers

7 years agoset compilation section for radius / dhcp
Alan T. DeKok [Mon, 1 Apr 2019 11:34:13 +0000 (07:34 -0400)] 
set compilation section for radius / dhcp

7 years agoglue "dict" into proto_detail_process
Alan T. DeKok [Mon, 1 Apr 2019 11:24:31 +0000 (07:24 -0400)] 
glue "dict" into proto_detail_process

7 years agoRevert "change assignment to assert"
Alan T. DeKok [Mon, 1 Apr 2019 11:17:03 +0000 (07:17 -0400)] 
Revert "change assignment to assert"

This reverts commit 5403c6bcd73368cd20b206c219cd2b6cbd2bd21a.

until we figure out what's up

7 years agouse "dictionary" definition
Alan T. DeKok [Mon, 1 Apr 2019 01:19:02 +0000 (21:19 -0400)] 
use "dictionary" definition

so that the parser is protocol agnostic

7 years agotypos
Alan T. DeKok [Mon, 1 Apr 2019 01:17:58 +0000 (21:17 -0400)] 
typos

7 years agoadded "Packet-Type" for DHCPv4
Alan T. DeKok [Mon, 1 Apr 2019 01:17:07 +0000 (21:17 -0400)] 
added "Packet-Type" for DHCPv4

7 years agoadd "dictionary" entry
Alan T. DeKok [Mon, 1 Apr 2019 01:08:26 +0000 (21:08 -0400)] 
add "dictionary" entry

7 years agoadd "code"
Alan T. DeKok [Mon, 1 Apr 2019 00:53:10 +0000 (20:53 -0400)] 
add "code"

so that it can be set manually

7 years agoremove radius-specific priorities
Alan T. DeKok [Mon, 1 Apr 2019 00:46:44 +0000 (20:46 -0400)] 
remove radius-specific priorities

7 years agomove Acct-Delay-Time mangling to unlang
Alan T. DeKok [Sun, 31 Mar 2019 22:53:41 +0000 (18:53 -0400)] 
move Acct-Delay-Time mangling to unlang

7 years agochange assignment to assert
Alan T. DeKok [Sat, 30 Mar 2019 19:58:53 +0000 (15:58 -0400)] 
change assignment to assert

it should already have been set

7 years agoDM is also UDP 3799, UDP 1700 is Cisco only
Arran Cudbard-Bell [Sat, 30 Mar 2019 02:46:34 +0000 (22:46 -0400)] 
DM is also UDP 3799, UDP 1700 is Cisco only

7 years agocreate a "default client" for DHCPv4
Alan T. DeKok [Fri, 29 Mar 2019 13:58:02 +0000 (09:58 -0400)] 
create a "default client" for DHCPv4

7 years agofree clients before freeing the trie
Alan T. DeKok [Fri, 29 Mar 2019 13:21:02 +0000 (09:21 -0400)] 
free clients before freeing the trie

7 years agoadd rpm target to Makefile 2588/head
Matt Rose [Wed, 27 Mar 2019 19:05:00 +0000 (19:05 +0000)] 
add rpm target to Makefile

7 years agoadd IPPROTO support for parsing clients
Alan T. DeKok [Fri, 29 Mar 2019 13:11:48 +0000 (09:11 -0400)] 
add IPPROTO support for parsing clients

7 years agoremove unnecessary config
Alan T. DeKok [Fri, 29 Mar 2019 12:53:14 +0000 (08:53 -0400)] 
remove unnecessary config

7 years agorename "radiusd.kill" to "test.radiusd.kill"
Alan T. DeKok [Thu, 28 Mar 2019 14:07:40 +0000 (10:07 -0400)] 
rename "radiusd.kill" to "test.radiusd.kill"

so that the test scripts are loaded on recursive make

7 years agotests for subrequest
Alan T. DeKok [Thu, 28 Mar 2019 12:21:06 +0000 (08:21 -0400)] 
tests for subrequest

7 years agoadd support for parent in success / test_fail
Alan T. DeKok [Thu, 28 Mar 2019 12:18:00 +0000 (08:18 -0400)] 
add support for parent in success / test_fail

so that we can test failures.

Unfortunately, we seem to get <underflow> when using
%{interpreter:....line} inside of the "if" statement.  It's not
clear why.

7 years agos/unlang_process_continue/unlang_process_interpret/
Alan T. DeKok [Thu, 28 Mar 2019 11:51:33 +0000 (07:51 -0400)] 
s/unlang_process_continue/unlang_process_interpret/

7 years agorunning the tests depends on the binary we're trying to run
Alan T. DeKok [Thu, 28 Mar 2019 11:39:05 +0000 (07:39 -0400)] 
running the tests depends on the binary we're trying to run

7 years agoFix various bits of auth logic in rlm_rest
Arran Cudbard-Bell [Thu, 28 Mar 2019 07:50:56 +0000 (15:50 +0800)] 
Fix various bits of auth logic in rlm_rest

7 years agoSimplify setting auth options and remove restrictions on username and password length
Arran Cudbard-Bell [Thu, 28 Mar 2019 07:02:05 +0000 (15:02 +0800)] 
Simplify setting auth options and remove restrictions on username and password length

7 years agoAdd prefix to macros to make it clear which came from libcurl and which are ours
Arran Cudbard-Bell [Thu, 28 Mar 2019 06:39:17 +0000 (14:39 +0800)] 
Add prefix to macros to make it clear which came from libcurl and which are ours

7 years agoLess fragile well of enumerating curl auth methods
Arran Cudbard-Bell [Thu, 28 Mar 2019 06:33:24 +0000 (14:33 +0800)] 
Less fragile well of enumerating curl auth methods

7 years agoRemove some boilerplate config parsing
Arran Cudbard-Bell [Thu, 28 Mar 2019 06:21:14 +0000 (14:21 +0800)] 
Remove some boilerplate config parsing

7 years agoadd cf_table_parse_int for working with enums
Arran Cudbard-Bell [Thu, 28 Mar 2019 06:13:55 +0000 (14:13 +0800)] 
add cf_table_parse_int for working with enums

7 years agofixes to crossbuild makefile
Matthew Newton [Thu, 28 Mar 2019 00:06:22 +0000 (00:06 +0000)] 
fixes to crossbuild makefile

7 years agomore comments
Alan T. DeKok [Wed, 27 Mar 2019 19:20:19 +0000 (15:20 -0400)] 
more comments

7 years agobuild the tests only when running test targets
Alan T. DeKok [Wed, 27 Mar 2019 19:16:00 +0000 (15:16 -0400)] 
build the tests only when running test targets

7 years agomove crossbuild rules to crossbuild make file
Alan T. DeKok [Wed, 27 Mar 2019 19:12:13 +0000 (15:12 -0400)] 
move crossbuild rules to crossbuild make file

and then include it only if we're making crossbuild.*

7 years agorename definitions
Alan T. DeKok [Wed, 27 Mar 2019 17:09:42 +0000 (13:09 -0400)] 
rename definitions

so that we have UNLANG_ACTION_EXECUTE_NEXT instead of CONTINUE
and other similar changes.

We may want to add a "continue" keyword, so it's best to keep
CONTINUE reserved for that.

7 years agos/unlang_interpret_continue/unlang_interpret_resume/
Alan T. DeKok [Wed, 27 Mar 2019 17:01:17 +0000 (13:01 -0400)] 
s/unlang_interpret_continue/unlang_interpret_resume/

7 years agoskip running shell scripts if we're not going to install files
Alan T. DeKok [Wed, 27 Mar 2019 16:45:21 +0000 (12:45 -0400)] 
skip running shell scripts if we're not going to install files

7 years agoskip building documentation if we're not going to build it
Alan T. DeKok [Wed, 27 Mar 2019 16:41:34 +0000 (12:41 -0400)] 
skip building documentation if we're not going to build it

Running "shell" is expensive on OSX.  Building the documentation
requires running a bunch of shell commands, because we're too lazy
to fix that.  So, only run those shell scripts if we're going to
build the documentation.

7 years agoDefault to Basic-Auth if a username or password is provided
Arran Cudbard-Bell [Wed, 27 Mar 2019 14:50:28 +0000 (22:50 +0800)] 
Default to Basic-Auth if a username or password is provided

7 years agouse eap/sim and eap/aka
Alan T. DeKok [Wed, 27 Mar 2019 12:56:17 +0000 (08:56 -0400)] 
use eap/sim and eap/aka

7 years agoremove $(shell ...) and replace with $(wildcard ...)
Alan T. DeKok [Wed, 27 Mar 2019 12:47:52 +0000 (08:47 -0400)] 
remove $(shell ...) and replace with $(wildcard ...)

which is faster.  We should really avoid the use of $(shell),
and maybe replace it with a build/defs.mk file which is run
only once.

7 years agoformat dictionaries
Alan T. DeKok [Wed, 27 Mar 2019 11:34:35 +0000 (07:34 -0400)] 
format dictionaries

7 years agoadd "format dictionary" target
Alan T. DeKok [Wed, 27 Mar 2019 11:34:22 +0000 (07:34 -0400)] 
add "format dictionary" target

7 years agodon't print out attribute comments
Alan T. DeKok [Wed, 27 Mar 2019 11:33:07 +0000 (07:33 -0400)] 
don't print out attribute comments

print out the comments from the line we just read

7 years agoMerge pull request #2583 from eeverett6/meraki-dictionary
Alan DeKok [Wed, 27 Mar 2019 11:05:55 +0000 (07:05 -0400)] 
Merge pull request #2583 from eeverett6/meraki-dictionary

Add additional attributes for Meraki dictionary