]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Arran Cudbard-Bell [Sun, 3 Dec 2017 13:50:00 +0000 (13:50 +0000)]
Brint length values in bits
Arran Cudbard-Bell [Sun, 3 Dec 2017 13:49:47 +0000 (13:49 +0000)]
Add check for min-max of AT_RES
Arran Cudbard-Bell [Sun, 3 Dec 2017 13:43:00 +0000 (13:43 +0000)]
Don't run off the end of the input buffer, or get stuck in an infinite loop if IV is missing
Arran Cudbard-Bell [Sun, 3 Dec 2017 11:46:28 +0000 (11:46 +0000)]
Formatting
Arran Cudbard-Bell [Sun, 3 Dec 2017 11:46:19 +0000 (11:46 +0000)]
Trim back AKA dictionary more, add AKA' attributes
Arran Cudbard-Bell [Sun, 3 Dec 2017 01:12:43 +0000 (01:12 +0000)]
Formatting
Arran Cudbard-Bell [Sun, 3 Dec 2017 01:12:36 +0000 (01:12 +0000)]
Add all example packets from RFC4186 to tests
Add special cases for AT_AUTS and AT_RES
Add more length restrictions for some fields
Remove attributes not included in SIM/AKA
Fix array decoding support
Add tests for SIM error cases
Add support for decoding fixed length octet type attributes
Arran Cudbard-Bell [Sun, 3 Dec 2017 01:08:41 +0000 (01:08 +0000)]
Remove some dictionary restrictions
These really need to be moved into the proto modules
Arran Cudbard-Bell [Sun, 3 Dec 2017 01:08:01 +0000 (01:08 +0000)]
Allow errors to be tested for encoding functions
Copy the complete error stack to the output buffer
Arran Cudbard-Bell [Sun, 3 Dec 2017 01:07:29 +0000 (01:07 +0000)]
Peek at strerror without poping it
Arran Cudbard-Bell [Sat, 2 Dec 2017 16:05:42 +0000 (16:05 +0000)]
Add test points to the DHCP encode/decoder
Use unique test point names to avoid symbol conflicts
Arran Cudbard-Bell [Sat, 2 Dec 2017 16:04:51 +0000 (16:04 +0000)]
Don't link in radius/dhcp to unit_test_attribute
Arran Cudbard-Bell [Sat, 2 Dec 2017 16:04:28 +0000 (16:04 +0000)]
Don't require test ctx functions
Arran Cudbard-Bell [Sat, 2 Dec 2017 16:04:07 +0000 (16:04 +0000)]
Prefix RADIUS tests with radius
Arran Cudbard-Bell [Fri, 1 Dec 2017 22:04:35 +0000 (22:04 +0000)]
Doxygen
Arran Cudbard-Bell [Fri, 1 Dec 2017 22:02:38 +0000 (22:02 +0000)]
Typo
Arran Cudbard-Bell [Fri, 1 Dec 2017 20:42:53 +0000 (20:42 +0000)]
Remove explicit RADIUS support from unit_test_attribute
Arran Cudbard-Bell [Fri, 1 Dec 2017 20:38:13 +0000 (20:38 +0000)]
Add testpoints to the radius encoder/decoder
Arran Cudbard-Bell [Fri, 1 Dec 2017 20:37:23 +0000 (20:37 +0000)]
empty decode is ok
Arran Cudbard-Bell [Fri, 1 Dec 2017 18:44:00 +0000 (18:44 +0000)]
Add "need-feature" command so we can skip tests if we're missing something
Arran Cudbard-Bell [Fri, 1 Dec 2017 17:36:16 +0000 (17:36 +0000)]
Fix linking issues with libfreeradius-eap-sim
Arran Cudbard-Bell [Fri, 1 Dec 2017 17:35:07 +0000 (17:35 +0000)]
If we have a fixed length for an attribute, convert it to a raw attribute if the length doesn't match
Arran Cudbard-Bell [Fri, 1 Dec 2017 17:34:30 +0000 (17:34 +0000)]
Fix ctx leak in unit_test_attribute
Arran Cudbard-Bell [Fri, 1 Dec 2017 15:30:26 +0000 (15:30 +0000)]
Doxygen
Arran Cudbard-Bell [Fri, 1 Dec 2017 15:20:38 +0000 (15:20 +0000)]
Add support for encoding version lists
Arran Cudbard-Bell [Fri, 1 Dec 2017 12:41:29 +0000 (12:41 +0000)]
Move encoding the reserved bytes of the TLV into the TLV value function
Alan T. DeKok [Fri, 1 Dec 2017 14:46:40 +0000 (09:46 -0500)]
add NAS-Type
Arran Cudbard-Bell [Fri, 1 Dec 2017 00:52:40 +0000 (00:52 +0000)]
Quiet clang scan
Arran Cudbard-Bell [Fri, 1 Dec 2017 00:47:41 +0000 (00:47 +0000)]
Many fixes in the SIM encoder/decoder
Arran Cudbard-Bell [Fri, 1 Dec 2017 00:44:53 +0000 (00:44 +0000)]
Consistent variable names
Arran Cudbard-Bell [Fri, 1 Dec 2017 00:43:59 +0000 (00:43 +0000)]
Pass in raw packet instead of reconstructing original packet from EAP-Messages
Arran Cudbard-Bell [Fri, 1 Dec 2017 00:42:06 +0000 (00:42 +0000)]
Add support for arbitrary test points in unit_test_attribute
Arran Cudbard-Bell [Fri, 1 Dec 2017 00:39:06 +0000 (00:39 +0000)]
Print bool values (need for EAP-SIM/AKA/AKA')
Alan T. DeKok [Thu, 30 Nov 2017 15:31:49 +0000 (10:31 -0500)]
document range of lifetime.
Alan T. DeKok [Thu, 30 Nov 2017 15:31:27 +0000 (10:31 -0500)]
lifetime=0 means "it lives forever"
Alan T. DeKok [Wed, 29 Nov 2017 21:35:43 +0000 (16:35 -0500)]
more doxygen
Alan T. DeKok [Wed, 29 Nov 2017 21:04:00 +0000 (16:04 -0500)]
doxygen
Alan T. DeKok [Wed, 29 Nov 2017 20:29:14 +0000 (15:29 -0500)]
remove "read client" functionality.
It can now be better done via dynamic clients
Arran Cudbard-Bell [Wed, 29 Nov 2017 19:09:55 +0000 (19:09 +0000)]
Formatting
Arran Cudbard-Bell [Wed, 29 Nov 2017 19:09:48 +0000 (19:09 +0000)]
First attempt at making the SIM/AKA encoder produce encrypted attributes
Arran Cudbard-Bell [Wed, 29 Nov 2017 15:16:55 +0000 (15:16 +0000)]
128 bits is 16 bytes
...and I knew this a few weeks ago because the original tests used 16 byte keys *sigh*
Alan T. DeKok [Wed, 29 Nov 2017 16:16:01 +0000 (11:16 -0500)]
remove unused variable
Alan T. DeKok [Wed, 29 Nov 2017 16:01:28 +0000 (11:01 -0500)]
use worker->max_request_time
it should be configurable, but that can come later
Alan T. DeKok [Wed, 29 Nov 2017 15:55:57 +0000 (10:55 -0500)]
packets can be in the localized list for seconds
Alan T. DeKok [Wed, 29 Nov 2017 15:55:29 +0000 (10:55 -0500)]
don't check times, just rely on the timer event
Alan T. DeKok [Wed, 29 Nov 2017 15:05:46 +0000 (10:05 -0500)]
stupid doxygen
Alan T. DeKok [Wed, 29 Nov 2017 14:22:19 +0000 (09:22 -0500)]
ignore "do_not_respond", and treat it as "success"
Alan T. DeKok [Wed, 29 Nov 2017 14:05:10 +0000 (09:05 -0500)]
move checks to after "we have work to do"
Alan T. DeKok [Wed, 29 Nov 2017 14:00:27 +0000 (09:00 -0500)]
more debug3 messages
Alan T. DeKok [Wed, 29 Nov 2017 13:59:08 +0000 (08:59 -0500)]
don't delete cleanup timer immediately.
We may receive another packet within the same second
Alan T. DeKok [Wed, 29 Nov 2017 13:35:24 +0000 (08:35 -0500)]
move reset timer check so it isn't done multiple times
Arran Cudbard-Bell [Tue, 28 Nov 2017 22:20:34 +0000 (22:20 +0000)]
Printing the whole ID is misleading
Arran Cudbard-Bell [Tue, 28 Nov 2017 22:20:19 +0000 (22:20 +0000)]
Fix length check
Arran Cudbard-Bell [Tue, 28 Nov 2017 22:16:16 +0000 (22:16 +0000)]
Wind cursor to head before popping
Arran Cudbard-Bell [Tue, 28 Nov 2017 22:16:00 +0000 (22:16 +0000)]
Enable custom format specifiers in radlog_request_perror
Arran Cudbard-Bell [Tue, 28 Nov 2017 20:07:46 +0000 (20:07 +0000)]
Update doc
Arran Cudbard-Bell [Tue, 28 Nov 2017 20:07:36 +0000 (20:07 +0000)]
Formatting
Arran Cudbard-Bell [Tue, 28 Nov 2017 20:06:00 +0000 (20:06 +0000)]
Formatting
Matthew Newton [Tue, 28 Nov 2017 20:21:32 +0000 (20:21 +0000)]
wordsmithing and whitespace
Arran Cudbard-Bell [Tue, 28 Nov 2017 20:00:39 +0000 (20:00 +0000)]
shhh...
Alan T. DeKok [Tue, 28 Nov 2017 19:09:10 +0000 (14:09 -0500)]
remove ldap client tests
Arran Cudbard-Bell [Tue, 28 Nov 2017 19:43:45 +0000 (19:43 +0000)]
Travis fixes
Arran Cudbard-Bell [Tue, 28 Nov 2017 19:05:43 +0000 (19:05 +0000)]
Should check decr_len
Arran Cudbard-Bell [Tue, 28 Nov 2017 19:04:02 +0000 (19:04 +0000)]
Add xlats to encrypt/decrypt 3gpp pseudonyms
Alan T. DeKok [Tue, 28 Nov 2017 18:47:31 +0000 (13:47 -0500)]
remove clients loaded at module instantiate time
Alan T. DeKok [Tue, 28 Nov 2017 18:11:01 +0000 (13:11 -0500)]
udpate dynamic client example
Alan T. DeKok [Tue, 28 Nov 2017 18:01:13 +0000 (13:01 -0500)]
we don't use 3.1.x
Alan T. DeKok [Tue, 28 Nov 2017 16:39:42 +0000 (11:39 -0500)]
allow "make deb" before running "configure"
as "make deb" runs "configure" itself in a fake root
Alan T. DeKok [Tue, 28 Nov 2017 16:07:29 +0000 (11:07 -0500)]
don't automatically regenerate 'configure'
instead, warn about it. And tell the developer to run
'make reconfig'
Arran Cudbard-Bell [Tue, 28 Nov 2017 10:53:32 +0000 (10:53 +0000)]
Switch to the official libkqueue repo
Alan T. DeKok [Mon, 27 Nov 2017 20:58:24 +0000 (15:58 -0500)]
basic sanity checking on changing shared secrets while packets are live
Alan T. DeKok [Mon, 27 Nov 2017 20:50:26 +0000 (15:50 -0500)]
expire and renew packets
Alan T. DeKok [Mon, 27 Nov 2017 20:50:01 +0000 (15:50 -0500)]
remember to remove it from the pending list...
Alan T. DeKok [Mon, 27 Nov 2017 20:15:56 +0000 (15:15 -0500)]
allow for client IPs of non-full netmask
so we can find client of 192.168/16
Alan T. DeKok [Mon, 27 Nov 2017 20:12:31 +0000 (15:12 -0500)]
start of expiration / renewal for dynamic clients
Alan T. DeKok [Mon, 27 Nov 2017 19:42:09 +0000 (14:42 -0500)]
add "lifetime" config option
Alan T. DeKok [Mon, 27 Nov 2017 19:27:26 +0000 (14:27 -0500)]
print out addresses, too
Alan T. DeKok [Mon, 27 Nov 2017 19:23:48 +0000 (14:23 -0500)]
clean up more dynamic client headers
Alan T. DeKok [Mon, 27 Nov 2017 19:21:59 +0000 (14:21 -0500)]
check that the client is within the enclosing network
Alan T. DeKok [Mon, 27 Nov 2017 19:13:28 +0000 (14:13 -0500)]
update notes
Alan T. DeKok [Sun, 26 Nov 2017 15:42:19 +0000 (10:42 -0500)]
don't proxy dynamic client definition packets
Alan T. DeKok [Sat, 25 Nov 2017 13:07:01 +0000 (08:07 -0500)]
typo
Alan T. DeKok [Fri, 24 Nov 2017 21:15:57 +0000 (16:15 -0500)]
remove extraneous debug messages
Alan T. DeKok [Fri, 24 Nov 2017 20:02:41 +0000 (15:02 -0500)]
note which attributes are for what
Alan T. DeKok [Fri, 24 Nov 2017 19:59:44 +0000 (14:59 -0500)]
dynamic clients now work.
Mostly... no timers to remove them, and many more fields
need to be read / parsed, including
* request message authenticator
* src_ipaddr
* and do something with originating network, such as
check it against the address that comes back from the
virtual server
* nas_type, response_window
* virtual_server
* and allow it to be something OTHER than this virtual server!
And still:
* no negative cache entries (for DoS attacks)
* no lifetime limits (once defined, they exist until the server stops)
* no renewal
But.. the basics are now there.
Alan T. DeKok [Fri, 24 Nov 2017 19:44:46 +0000 (14:44 -0500)]
return the actual client...
Alan T. DeKok [Fri, 24 Nov 2017 19:22:19 +0000 (14:22 -0500)]
add mod_encode() for creating dynamic clients.
The dynamic clients are created, but aren't sent anywhere. Yet.
Alan T. DeKok [Fri, 24 Nov 2017 19:21:46 +0000 (14:21 -0500)]
clean up and fix client_afrom_request()
it's not a lot simpler.
It might just be easier to have a "vp -> conf_section" converter...
Alan T. DeKok [Fri, 24 Nov 2017 16:39:00 +0000 (11:39 -0500)]
close vnode_fd on detach, too
Arran Cudbard-Bell [Fri, 24 Nov 2017 19:17:24 +0000 (19:17 +0000)]
Set xlat instruction priorities correctly
Arran Cudbard-Bell [Fri, 24 Nov 2017 17:21:46 +0000 (17:21 +0000)]
Fix comment
Arran Cudbard-Bell [Fri, 24 Nov 2017 17:00:09 +0000 (17:00 +0000)]
xlat functions can't push children
Arran Cudbard-Bell [Fri, 24 Nov 2017 16:49:29 +0000 (16:49 +0000)]
Add unlang_xlat_resume function
Arran Cudbard-Bell [Fri, 24 Nov 2017 16:32:14 +0000 (16:32 +0000)]
Have resumption functions populate an rcode pointer and return an unlang_action_t
Alan T. DeKok [Fri, 24 Nov 2017 16:32:03 +0000 (11:32 -0500)]
closing the FD may be useful...
Arran Cudbard-Bell [Fri, 24 Nov 2017 15:16:23 +0000 (15:16 +0000)]
Add unlang_xlat_yield
for yielding xlat functions...
Arran Cudbard-Bell [Fri, 24 Nov 2017 14:56:29 +0000 (14:56 +0000)]
Reorganise module resume to make it clearer what frame types are being used
Arran Cudbard-Bell [Fri, 24 Nov 2017 14:55:43 +0000 (14:55 +0000)]
callback should be a void * in the resumption frame
Arran Cudbard-Bell [Fri, 24 Nov 2017 14:54:56 +0000 (14:54 +0000)]
Reorder the arguments to async functions and remove uctx
If it's really needed then that xlat function can store it in its own instance
Arran Cudbard-Bell [Fri, 24 Nov 2017 14:43:32 +0000 (14:43 +0000)]
Pass in result as a cursor to async xlat functions
This helps if the function is processing arguments and yielding between each argument.