]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
8 years agoFix multi section pass2 parsing
Arran Cudbard-Bell [Tue, 13 Mar 2018 18:13:18 +0000 (18:13 +0000)] 
Fix multi section pass2 parsing

8 years agoradclient "-i" didn't work, so just remove it to save confusion
Matthew Newton [Mon, 12 Mar 2018 10:37:42 +0000 (10:37 +0000)] 
radclient "-i" didn't work, so just remove it to save confusion

8 years agoTypo
Arran Cudbard-Bell [Sat, 10 Mar 2018 15:44:20 +0000 (21:44 +0600)] 
Typo

8 years agoAdditional check for request sanity
Arran Cudbard-Bell [Fri, 9 Mar 2018 03:50:31 +0000 (09:50 +0600)] 
Additional check for request sanity

8 years agodoxygen
Alan T. DeKok [Thu, 8 Mar 2018 13:35:51 +0000 (08:35 -0500)] 
doxygen

8 years agomore cleanups
Alan T. DeKok [Wed, 7 Mar 2018 18:48:21 +0000 (13:48 -0500)] 
more cleanups

change fprintf to MPRINT for debugging, so it doesn't affect
running systems.

8 years agoadd fr_trie_t to internal functions
Alan T. DeKok [Wed, 7 Mar 2018 18:16:01 +0000 (13:16 -0500)] 
add fr_trie_t to internal functions

8 years agoRemove cached config
Arran Cudbard-Bell [Wed, 7 Mar 2018 17:48:31 +0000 (23:48 +0600)] 
Remove cached config

8 years agoReturn error code from virtual_server_namespace_register
Arran Cudbard-Bell [Wed, 7 Mar 2018 17:48:13 +0000 (23:48 +0600)] 
Return error code from virtual_server_namespace_register

8 years agoFix bad free of cf_data
Arran Cudbard-Bell [Wed, 7 Mar 2018 17:47:50 +0000 (23:47 +0600)] 
Fix bad free of cf_data

8 years agoMake extra sure not to insert the same fr_event_fd_t into the free list multiple...
Arran Cudbard-Bell [Wed, 7 Mar 2018 15:37:37 +0000 (21:37 +0600)] 
Make extra sure not to insert the same fr_event_fd_t into the free list multiple times

8 years agoCherry-pick later commit across
Arran Cudbard-Bell [Wed, 7 Mar 2018 07:13:09 +0000 (13:13 +0600)] 
Cherry-pick later commit across

8 years agoTypo
Arran Cudbard-Bell [Wed, 7 Mar 2018 06:53:39 +0000 (12:53 +0600)] 
Typo

8 years agoUnclear whether talloc counts 1 as success
Arran Cudbard-Bell [Wed, 7 Mar 2018 06:43:42 +0000 (12:43 +0600)] 
Unclear whether talloc counts 1 as success

8 years agoAdd a tmpfiles.d entry on systemd based redhat systems, to stop systemd agressively...
Paul Seward [Mon, 19 Feb 2018 11:08:39 +0000 (11:08 +0000)] 
Add a tmpfiles.d entry on systemd based redhat systems, to stop systemd agressively cleaning up /var/run/radiusd at boot time

# Conflicts:
# redhat/freeradius.spec

8 years agoadd negative cache for clients
Alan T. DeKok [Tue, 6 Mar 2018 17:30:35 +0000 (12:30 -0500)] 
add negative cache for clients

so a rejected client is blocked for 30s.  Up to 1024 clients
are blocked.

These values are not currently configurable

8 years agoadd "pending" RADCLIENT_LIST
Alan T. DeKok [Tue, 6 Mar 2018 17:21:53 +0000 (12:21 -0500)] 
add "pending" RADCLIENT_LIST

so we track state here, and not in the client

8 years agoremove "pending". It wasn't properly managed
Alan T. DeKok [Tue, 6 Mar 2018 17:09:49 +0000 (12:09 -0500)] 
remove "pending".  It wasn't properly managed

8 years agoremove "expired" client list.
Alan T. DeKok [Tue, 6 Mar 2018 15:23:57 +0000 (10:23 -0500)] 
remove "expired" client list.

Once a client expires, it's gone.  Any subsequent packets will
cause a new client to be created.  Doing this allows for shared
secrets to change for clients, and simplifies the logic.

The downside is that counters will get lost.  But the counters
have been largely moved to rlm_stats.

8 years agouse track->ft instead of inst->ft
Alan T. DeKok [Tue, 6 Mar 2018 15:19:12 +0000 (10:19 -0500)] 
use track->ft instead of inst->ft

in preparation for having multiple tracking tables

8 years agoDoxygen
Arran Cudbard-Bell [Tue, 6 Mar 2018 13:59:08 +0000 (19:59 +0600)] 
Doxygen

8 years agoset state correctly
Alan T. DeKok [Tue, 6 Mar 2018 13:34:15 +0000 (08:34 -0500)] 
set state correctly

8 years agothis has now all been implemented
Alan T. DeKok [Mon, 5 Mar 2018 20:52:35 +0000 (15:52 -0500)] 
this has now all been implemented

8 years agoConvert rlm_sigtran to async calling... maybe?
Arran Cudbard-Bell [Tue, 6 Mar 2018 10:29:48 +0000 (16:29 +0600)] 
Convert rlm_sigtran to async calling... maybe?

8 years agoPass event list through to detach callback
Arran Cudbard-Bell [Tue, 6 Mar 2018 10:16:46 +0000 (16:16 +0600)] 
Pass event list through to detach callback

8 years agoFix warning message
Arran Cudbard-Bell [Tue, 6 Mar 2018 08:39:58 +0000 (14:39 +0600)] 
Fix warning message

8 years agoSimplify deferred event freeing
Arran Cudbard-Bell [Tue, 6 Mar 2018 08:32:35 +0000 (14:32 +0600)] 
Simplify deferred event freeing

Makes super double extra sure that we don't hit SEGVs after an event has been freed, but there are still handlers to run.

This is to address a crash in rlm_rest where the request times out.

8 years agoAdd slightly more information to the REST failure message
Arran Cudbard-Bell [Tue, 6 Mar 2018 07:48:33 +0000 (13:48 +0600)] 
Add slightly more information to the REST failure message

8 years agoadd 'is_dup' to channel messages
Alan T. DeKok [Mon, 5 Mar 2018 16:59:18 +0000 (11:59 -0500)] 
add 'is_dup' to channel messages

so that the network side can signal the worker side that the
packet is a dup of a pre-existing one

8 years agoVarious casting fixes
Arran Cudbard-Bell [Mon, 5 Mar 2018 10:24:31 +0000 (16:24 +0600)] 
Various casting fixes

8 years agofile was renamed
Matthew Newton [Mon, 5 Mar 2018 10:24:18 +0000 (10:24 +0000)] 
file was renamed

8 years agocentos builds need devtoolset
Matthew Newton [Mon, 5 Mar 2018 10:21:48 +0000 (10:21 +0000)] 
centos builds need devtoolset

8 years agoConvert assert to runtime check
Arran Cudbard-Bell [Mon, 5 Mar 2018 08:59:25 +0000 (14:59 +0600)] 
Convert assert to runtime check

8 years agoFix double free of virtual namespace tree
Arran Cudbard-Bell [Mon, 5 Mar 2018 07:44:41 +0000 (13:44 +0600)] 
Fix double free of virtual namespace tree

8 years agoAdd namespace to unit test virtual server
Arran Cudbard-Bell [Fri, 2 Mar 2018 11:56:06 +0000 (17:56 +0600)] 
Add namespace to unit test virtual server

8 years agoMove util function inside the C++ header
Arran Cudbard-Bell [Fri, 2 Mar 2018 10:05:38 +0000 (16:05 +0600)] 
Move util function inside the C++ header

8 years agoAdd namespace registration
Arran Cudbard-Bell [Fri, 2 Mar 2018 10:00:52 +0000 (16:00 +0600)] 
Add namespace registration

Allows modules to register compilation callbacks

8 years agoCleanup virtual_server parsing slightly
Arran Cudbard-Bell [Fri, 2 Mar 2018 08:22:43 +0000 (14:22 +0600)] 
Cleanup virtual_server parsing slightly

8 years agoCompile AKA sections
Arran Cudbard-Bell [Fri, 2 Mar 2018 08:15:31 +0000 (14:15 +0600)] 
Compile AKA sections

8 years agoWarn about any virtual_sever sections which aren't listen sections that haven't been...
Arran Cudbard-Bell [Fri, 2 Mar 2018 07:43:30 +0000 (13:43 +0600)] 
Warn about any virtual_sever sections which aren't listen sections that haven't been compiled

8 years agoAllow no listen sections in a virtual server
Arran Cudbard-Bell [Fri, 2 Mar 2018 07:20:09 +0000 (13:20 +0600)] 
Allow no listen sections in a virtual server

The plan is to add a namespace registry with compilation callbacks, then we can error out if the namespace is invalid, and bitch about unhandled sections

8 years agoDon't require FR_TYPE_IS_SET, most of the time we can just check for a NULL pointer
Arran Cudbard-Bell [Fri, 2 Mar 2018 07:18:51 +0000 (13:18 +0600)] 
Don't require FR_TYPE_IS_SET, most of the time we can just check for a NULL pointer

8 years agoIf we're doing a debug build, set the default filename and lineno of the section...
Arran Cudbard-Bell [Fri, 2 Mar 2018 07:18:17 +0000 (13:18 +0600)] 
If we're doing a debug build, set the default filename and lineno of the section to be that of the caller to cf_section_alloc

Helps track down where exactly default sections were added

8 years agoThere's no publically available re-auth vectors, so we'll need to test against wpa_su...
Arran Cudbard-Bell [Fri, 2 Mar 2018 04:09:22 +0000 (10:09 +0600)] 
There's no publically available re-auth vectors, so we'll need to test against wpa_supplicant when the re-auth functionality is plumbed in

8 years agoAdd UMTS AKA test vector
Arran Cudbard-Bell [Fri, 2 Mar 2018 03:04:28 +0000 (09:04 +0600)] 
Add UMTS AKA test vector

8 years agoUpdate copyright notices on EAP-SIM/EAP-AKA crypto functions
Arran Cudbard-Bell [Thu, 1 Mar 2018 09:45:42 +0000 (15:45 +0600)] 
Update copyright notices on EAP-SIM/EAP-AKA crypto functions

8 years agoRename eap-sim/aka/aka['] tests to make it clear the same reauth function is used...
Arran Cudbard-Bell [Thu, 1 Mar 2018 09:29:35 +0000 (15:29 +0600)] 
Rename eap-sim/aka/aka['] tests to make it clear the same reauth function is used for both EAP-SIM and EAP-AKA

8 years agoEnumerate the different sections we need for EAP-AKA[']
Arran Cudbard-Bell [Thu, 1 Mar 2018 09:29:06 +0000 (15:29 +0600)] 
Enumerate the different sections we need for EAP-AKA[']

8 years agoDon't explicitly include mysql_version
Arran Cudbard-Bell [Thu, 1 Mar 2018 04:25:47 +0000 (10:25 +0600)] 
Don't explicitly include mysql_version

8 years agoadd thread-specific ring buffers.
Alan T. DeKok [Wed, 28 Feb 2018 17:53:05 +0000 (12:53 -0500)] 
add thread-specific ring buffers.

Which avoids a mutex lock, and all kinds of other issues
associated with that.

8 years agoset vnode_fd = -1 on close
Alan T. DeKok [Wed, 28 Feb 2018 15:11:49 +0000 (10:11 -0500)] 
set vnode_fd = -1 on close

8 years agoMore debian packaging fixes
Arran Cudbard-Bell [Wed, 28 Feb 2018 12:06:09 +0000 (18:06 +0600)] 
More debian packaging fixes

8 years agoMerge pull request #2150 from gandaro/doc0
Arran Cudbard-Bell [Wed, 28 Feb 2018 11:45:56 +0000 (17:45 +0600)] 
Merge pull request #2150 from gandaro/doc0

Format coding-methods.rst correctly

8 years agoUse the newer digest interface
Arran Cudbard-Bell [Wed, 28 Feb 2018 10:05:42 +0000 (16:05 +0600)] 
Use the newer digest interface

8 years agoALWAYS allocate OpenSSL memory with talloc
Arran Cudbard-Bell [Wed, 28 Feb 2018 09:17:31 +0000 (15:17 +0600)] 
ALWAYS allocate OpenSSL memory with talloc

8 years agoInclude libfreeradius-tls in the libfreeradius4 package
Arran Cudbard-Bell [Wed, 28 Feb 2018 09:04:46 +0000 (15:04 +0600)] 
Include libfreeradius-tls in the libfreeradius4 package

8 years agoSet structure types on OpenSSL allocated memory in rlm_cipher
Arran Cudbard-Bell [Wed, 28 Feb 2018 08:52:49 +0000 (14:52 +0600)] 
Set structure types on OpenSSL allocated memory in rlm_cipher

Makes debugging easier

8 years agoAdd tests for signature verification
Arran Cudbard-Bell [Wed, 28 Feb 2018 07:59:17 +0000 (13:59 +0600)] 
Add tests for signature verification

8 years agoMore tests
Arran Cudbard-Bell [Wed, 28 Feb 2018 07:51:51 +0000 (13:51 +0600)] 
More tests

8 years agoUse one EVP_PKEY_CTX per operation, and set the configuration only during instantiati...
Arran Cudbard-Bell [Wed, 28 Feb 2018 07:41:26 +0000 (13:41 +0600)] 
Use one EVP_PKEY_CTX per operation, and set the configuration only during instantiation (not on every request)

8 years agoFix issues with thread specific instances in rlm_cipher
Arran Cudbard-Bell [Wed, 28 Feb 2018 06:19:15 +0000 (12:19 +0600)] 
Fix issues with thread specific instances in rlm_cipher

8 years agoFix issues in cf_subsection_parse and cf_section_parse2 relating to heap allocated...
Arran Cudbard-Bell [Wed, 28 Feb 2018 06:11:09 +0000 (12:11 +0600)] 
Fix issues in cf_subsection_parse and cf_section_parse2 relating to heap allocated subsection structions

8 years agoCheck private key type
Arran Cudbard-Bell [Wed, 28 Feb 2018 04:01:48 +0000 (10:01 +0600)] 
Check private key type

8 years agoExtract public key from X509 certficiate
Arran Cudbard-Bell [Wed, 28 Feb 2018 03:57:51 +0000 (09:57 +0600)] 
Extract public key from X509 certficiate

8 years agoMinor build fixes
Arran Cudbard-Bell [Wed, 28 Feb 2018 02:06:55 +0000 (08:06 +0600)] 
Minor build fixes

8 years agoDoxygen issues
Arran Cudbard-Bell [Tue, 27 Feb 2018 16:18:33 +0000 (22:18 +0600)] 
Doxygen issues

8 years agoFix const issues with rlm_cipher
Arran Cudbard-Bell [Tue, 27 Feb 2018 16:15:51 +0000 (22:15 +0600)] 
Fix const issues with rlm_cipher

8 years agoIfdef out OAEP padding options unless using OpenSSL 1.0.2
Arran Cudbard-Bell [Tue, 27 Feb 2018 16:12:29 +0000 (22:12 +0600)] 
Ifdef out OAEP padding options unless using OpenSSL 1.0.2

8 years agoDoxygen and temporary fix…
Arran Cudbard-Bell [Tue, 27 Feb 2018 16:03:21 +0000 (22:03 +0600)] 
Doxygen and temporary fix…

We’ll need to see when these functions were added

8 years agoAdd rlm_ciper for encrypting/decrypting arbitrary data
Arran Cudbard-Bell [Tue, 27 Feb 2018 15:31:19 +0000 (21:31 +0600)] 
Add rlm_ciper for encrypting/decrypting arbitrary data

Not yet functional because OpenSSL is stupid...

8 years agoMake it slightly clearer what's going on here...
Arran Cudbard-Bell [Tue, 27 Feb 2018 07:58:07 +0000 (13:58 +0600)] 
Make it slightly clearer what's going on here...

8 years agoUse documented argument names in tls_session_password_cb
Arran Cudbard-Bell [Tue, 27 Feb 2018 07:57:53 +0000 (13:57 +0600)] 
Use documented argument names in tls_session_password_cb

8 years agofr_value_box_memsteal can never fail
Arran Cudbard-Bell [Tue, 27 Feb 2018 07:57:28 +0000 (13:57 +0600)] 
fr_value_box_memsteal can never fail

8 years agoport fix from v3.0.x branch
Alan T. DeKok [Tue, 27 Feb 2018 14:17:16 +0000 (09:17 -0500)] 
port fix from v3.0.x branch

8 years agodon't lock the file if it has been renamed
Alan T. DeKok [Mon, 26 Feb 2018 19:57:25 +0000 (14:57 -0500)] 
don't lock the file if it has been renamed

Manual port of commit abbbf09df831

8 years agoalso seems to require gnupg2
Matthew Newton [Mon, 26 Feb 2018 15:42:52 +0000 (15:42 +0000)] 
also seems to require gnupg2

8 years agoDon't bootstrap redis cluster config when pool->start is 0
Philippe Wooding [Mon, 19 Feb 2018 17:22:43 +0000 (18:22 +0100)] 
Don't bootstrap redis cluster config when pool->start is 0

8 years agoAdd getter for pool's start attribute
Philippe Wooding [Mon, 19 Feb 2018 17:22:18 +0000 (18:22 +0100)] 
Add getter for pool's start attribute

8 years agodhcpclient documentation 2183/head
Nicolas C [Sat, 24 Feb 2018 19:54:18 +0000 (20:54 +0100)] 
dhcpclient documentation

Some updates to dhcpclient man page

8 years agoTypo
Arran Cudbard-Bell [Fri, 23 Feb 2018 09:20:55 +0000 (15:20 +0600)] 
Typo

8 years agoMisc fixes
Arran Cudbard-Bell [Fri, 23 Feb 2018 07:12:21 +0000 (13:12 +0600)] 
Misc fixes

8 years agoGet vendor number by looking it up in the attribute hierarchy
Arran Cudbard-Bell [Fri, 23 Feb 2018 03:11:21 +0000 (09:11 +0600)] 
Get vendor number by looking it up in the attribute hierarchy

This is cleanup work that should have been done a while back.

Vendors are now represented in the dictionary hierarchy, so having a vendor field in attributes is superfluous.

8 years agoFormatting
Arran Cudbard-Bell [Wed, 21 Feb 2018 14:24:43 +0000 (14:24 +0000)] 
Formatting

8 years agoinclude rfc2865 header for vendor-specific
Alan T. DeKok [Thu, 22 Feb 2018 15:12:41 +0000 (10:12 -0500)] 
include rfc2865 header for vendor-specific

8 years agoone more "use absolute path"
Alan T. DeKok [Thu, 22 Feb 2018 14:54:58 +0000 (09:54 -0500)] 
one more "use absolute path"

8 years agouse absolute paths
Alan T. DeKok [Thu, 22 Feb 2018 14:25:25 +0000 (15:25 +0100)] 
use absolute paths

8 years agodecode CHADDR manually
Alan T. DeKok [Thu, 22 Feb 2018 13:51:55 +0000 (14:51 +0100)] 
decode CHADDR manually

8 years agodon't include links in the source
Alan T. DeKok [Thu, 22 Feb 2018 13:48:55 +0000 (14:48 +0100)] 
don't include links in the source

8 years agoFix mostly spurious warnings
Arran Cudbard-Bell [Mon, 19 Feb 2018 21:31:57 +0000 (21:31 +0000)] 
Fix mostly spurious warnings

8 years agoUse standard boxed value from network function when decoding the DHCPv4 packet header
Arran Cudbard-Bell [Mon, 19 Feb 2018 21:23:04 +0000 (21:23 +0000)] 
Use standard boxed value from network function when decoding the DHCPv4 packet header

Caught by Nicolas Chaigneau

8 years agoreset leftover after we've eaten it
Alan T. DeKok [Mon, 19 Feb 2018 13:40:54 +0000 (14:40 +0100)] 
reset leftover after we've eaten it

8 years agoAdd struct encoder to dhcpv6
Arran Cudbard-Bell [Sat, 17 Feb 2018 17:16:30 +0000 (17:16 +0000)] 
Add struct encoder to dhcpv6

8 years agoCheck for v4 in v6 encoding
Arran Cudbard-Bell [Sat, 17 Feb 2018 11:19:23 +0000 (11:19 +0000)] 
Check for v4 in v6 encoding

8 years agoUse new return code style in EAP-SIM encoder
Arran Cudbard-Bell [Sat, 17 Feb 2018 11:16:39 +0000 (11:16 +0000)] 
Use new return code style in EAP-SIM encoder

8 years agoMove cases to that ipv4addr, ifid, and ethernet all use the standard encoder
Arran Cudbard-Bell [Sat, 17 Feb 2018 00:46:43 +0000 (00:46 +0000)] 
Move cases to that ipv4addr, ifid, and ethernet all use the standard encoder

8 years agoBe clearer why we use numbered scopes
Arran Cudbard-Bell [Sat, 17 Feb 2018 00:41:42 +0000 (00:41 +0000)] 
Be clearer why we use numbered scopes

8 years agoen0 doesn't exist in Travis
Arran Cudbard-Bell [Sat, 17 Feb 2018 00:40:24 +0000 (00:40 +0000)] 
en0 doesn't exist in Travis

8 years agoEncode dates in DHCPv6 using 1st January 2000 as the starting point
Arran Cudbard-Bell [Sat, 17 Feb 2018 00:32:00 +0000 (00:32 +0000)] 
Encode dates in DHCPv6 using 1st January 2000 as the starting point

I have no idea why they did this, it seems really really stupid and annoying.

8 years agoMoar DHCPv6 tests
Arran Cudbard-Bell [Sat, 17 Feb 2018 00:16:18 +0000 (00:16 +0000)] 
Moar DHCPv6 tests

8 years agoInvert args to CHECK_FREESPACE in array encoder
Arran Cudbard-Bell [Fri, 16 Feb 2018 23:34:22 +0000 (23:34 +0000)] 
Invert args to CHECK_FREESPACE in array encoder