]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
8 years agoShould check decr_len
Arran Cudbard-Bell [Tue, 28 Nov 2017 19:05:43 +0000 (19:05 +0000)] 
Should check decr_len

8 years agoAdd xlats to encrypt/decrypt 3gpp pseudonyms
Arran Cudbard-Bell [Tue, 28 Nov 2017 19:04:02 +0000 (19:04 +0000)] 
Add xlats to encrypt/decrypt 3gpp pseudonyms

8 years agoremove clients loaded at module instantiate time
Alan T. DeKok [Tue, 28 Nov 2017 18:47:31 +0000 (13:47 -0500)] 
remove clients loaded at module instantiate time

8 years agoudpate dynamic client example
Alan T. DeKok [Tue, 28 Nov 2017 18:11:01 +0000 (13:11 -0500)] 
udpate dynamic client example

8 years agowe don't use 3.1.x
Alan T. DeKok [Tue, 28 Nov 2017 18:01:13 +0000 (13:01 -0500)] 
we don't use 3.1.x

8 years agoallow "make deb" before running "configure"
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

8 years agodon't automatically regenerate 'configure'
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'

8 years agoSwitch to the official libkqueue repo
Arran Cudbard-Bell [Tue, 28 Nov 2017 10:53:32 +0000 (10:53 +0000)] 
Switch to the official libkqueue repo

8 years agobasic sanity checking on changing shared secrets while packets are live
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

8 years agoexpire and renew packets
Alan T. DeKok [Mon, 27 Nov 2017 20:50:26 +0000 (15:50 -0500)] 
expire and renew packets

8 years agoremember to remove it from the pending list...
Alan T. DeKok [Mon, 27 Nov 2017 20:50:01 +0000 (15:50 -0500)] 
remember to remove it from the pending list...

8 years agoallow for client IPs of non-full netmask
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

8 years agostart of expiration / renewal for dynamic clients
Alan T. DeKok [Mon, 27 Nov 2017 20:12:31 +0000 (15:12 -0500)] 
start of expiration / renewal for dynamic clients

8 years agoadd "lifetime" config option
Alan T. DeKok [Mon, 27 Nov 2017 19:42:09 +0000 (14:42 -0500)] 
add "lifetime" config option

8 years agoprint out addresses, too
Alan T. DeKok [Mon, 27 Nov 2017 19:27:26 +0000 (14:27 -0500)] 
print out addresses, too

8 years agoclean up more dynamic client headers
Alan T. DeKok [Mon, 27 Nov 2017 19:23:48 +0000 (14:23 -0500)] 
clean up more dynamic client headers

8 years agocheck that the client is within the enclosing network
Alan T. DeKok [Mon, 27 Nov 2017 19:21:59 +0000 (14:21 -0500)] 
check that the client is within the enclosing network

8 years agoupdate notes
Alan T. DeKok [Mon, 27 Nov 2017 19:13:28 +0000 (14:13 -0500)] 
update notes

8 years agodon't proxy dynamic client definition packets
Alan T. DeKok [Sun, 26 Nov 2017 15:42:19 +0000 (10:42 -0500)] 
don't proxy dynamic client definition packets

8 years agotypo
Alan T. DeKok [Sat, 25 Nov 2017 13:07:01 +0000 (08:07 -0500)] 
typo

8 years agoremove extraneous debug messages
Alan T. DeKok [Fri, 24 Nov 2017 21:15:57 +0000 (16:15 -0500)] 
remove extraneous debug messages

8 years agonote which attributes are for what
Alan T. DeKok [Fri, 24 Nov 2017 20:02:41 +0000 (15:02 -0500)] 
note which attributes are for what

8 years agodynamic clients now work.
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.

8 years agoreturn the actual client...
Alan T. DeKok [Fri, 24 Nov 2017 19:44:46 +0000 (14:44 -0500)] 
return the actual client...

8 years agoadd mod_encode() for creating dynamic clients.
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.

8 years agoclean up and fix client_afrom_request()
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...

8 years agoclose vnode_fd on detach, too
Alan T. DeKok [Fri, 24 Nov 2017 16:39:00 +0000 (11:39 -0500)] 
close vnode_fd on detach, too

8 years agoSet xlat instruction priorities correctly
Arran Cudbard-Bell [Fri, 24 Nov 2017 19:17:24 +0000 (19:17 +0000)] 
Set xlat instruction priorities correctly

8 years agoFix comment
Arran Cudbard-Bell [Fri, 24 Nov 2017 17:21:46 +0000 (17:21 +0000)] 
Fix comment

8 years agoxlat functions can't push children
Arran Cudbard-Bell [Fri, 24 Nov 2017 17:00:09 +0000 (17:00 +0000)] 
xlat functions can't push children

8 years agoAdd unlang_xlat_resume function
Arran Cudbard-Bell [Fri, 24 Nov 2017 16:49:29 +0000 (16:49 +0000)] 
Add unlang_xlat_resume function

8 years agoHave resumption functions populate an rcode pointer and return an unlang_action_t
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

8 years agoclosing the FD may be useful...
Alan T. DeKok [Fri, 24 Nov 2017 16:32:03 +0000 (11:32 -0500)] 
closing the FD may be useful...

8 years agoAdd unlang_xlat_yield
Arran Cudbard-Bell [Fri, 24 Nov 2017 15:16:23 +0000 (15:16 +0000)] 
Add unlang_xlat_yield

for yielding xlat functions...

8 years agoReorganise module resume to make it clearer what frame types are being used
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

8 years agocallback should be a void * in the resumption frame
Arran Cudbard-Bell [Fri, 24 Nov 2017 14:55:43 +0000 (14:55 +0000)] 
callback should be a void * in the resumption frame

8 years agoReorder the arguments to async functions and remove uctx
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

8 years agoPass in result as a cursor to async xlat functions
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.

8 years agoRefer to the resume ctx as rctx
Arran Cudbard-Bell [Fri, 24 Nov 2017 15:18:04 +0000 (15:18 +0000)] 
Refer to the resume ctx as rctx

8 years agoThere's no reason to store the module instance when we can get it from the previous...
Arran Cudbard-Bell [Fri, 24 Nov 2017 14:40:01 +0000 (14:40 +0000)] 
There's no reason to store the module instance when we can get it from the previous instruction

8 years agoRevert "move code to before Message-Authenticator calculation"
Alan T. DeKok [Thu, 23 Nov 2017 19:48:03 +0000 (14:48 -0500)] 
Revert "move code to before Message-Authenticator calculation"

This reverts commit 211870f2bf7773179ccba9f9d0aa79783c94796b.

8 years agomore cleanups for dynamic clients
Alan T. DeKok [Thu, 23 Nov 2017 19:37:05 +0000 (14:37 -0500)] 
more cleanups for dynamic clients

8 years agorun "deny" section
Alan T. DeKok [Thu, 23 Nov 2017 19:29:28 +0000 (14:29 -0500)] 
run "deny" section

8 years agoremove more old dynamic client fields / code
Alan T. DeKok [Thu, 23 Nov 2017 19:07:59 +0000 (14:07 -0500)] 
remove more old dynamic client fields / code

8 years agomake 'dynamic' boolean, and clean up dynamic logic.
Alan T. DeKok [Thu, 23 Nov 2017 19:04:23 +0000 (14:04 -0500)] 
make 'dynamic' boolean, and clean up dynamic logic.

clients from SQL / LDAP are no longer dynamic ones.  They're
static and can't be deleted after startup.

Once we finish the new dynamic client code, the old SQL / LDAP
"read client" functionality should be deleted.

8 years agodynamic clients must contain at least an IP and shared secret
Alan T. DeKok [Thu, 23 Nov 2017 18:57:13 +0000 (13:57 -0500)] 
dynamic clients must contain at least an IP and shared secret

8 years agosuppress errors
Alan T. DeKok [Thu, 23 Nov 2017 18:32:56 +0000 (13:32 -0500)] 
suppress errors

8 years agostupid compilers are becoming annoying
Alan T. DeKok [Thu, 23 Nov 2017 17:35:45 +0000 (12:35 -0500)] 
stupid compilers are becoming annoying

8 years agomore static analysis
Alan T. DeKok [Thu, 23 Nov 2017 17:17:46 +0000 (12:17 -0500)] 
more static analysis

8 years agotypo
Alan T. DeKok [Thu, 23 Nov 2017 16:15:36 +0000 (11:15 -0500)] 
typo

8 years agotypo
Alan T. DeKok [Thu, 23 Nov 2017 16:12:55 +0000 (11:12 -0500)] 
typo

8 years agostupid compiler static analysis
Alan T. DeKok [Thu, 23 Nov 2017 15:56:06 +0000 (10:56 -0500)] 
stupid compiler static analysis

8 years agoassert we have a packet
Alan T. DeKok [Thu, 23 Nov 2017 15:43:09 +0000 (10:43 -0500)] 
assert we have a packet

8 years agoalways save packet in case of retransmission/ Fixes #2118
Alan T. DeKok [Thu, 23 Nov 2017 15:19:17 +0000 (10:19 -0500)] 
always save packet in case of retransmission/  Fixes #2118

8 years agowhoops... length is in [1], not [2]. Helps with #2118
Alan T. DeKok [Thu, 23 Nov 2017 15:16:36 +0000 (10:16 -0500)] 
whoops... length is in [1], not [2].  Helps with #2118

8 years agotrack outstanding packets
Alan T. DeKok [Thu, 23 Nov 2017 15:14:04 +0000 (10:14 -0500)] 
track outstanding packets

8 years agomore stupid static analysis
Alan T. DeKok [Thu, 23 Nov 2017 13:58:05 +0000 (08:58 -0500)] 
more stupid static analysis

8 years agodoxygen
Alan T. DeKok [Thu, 23 Nov 2017 13:56:40 +0000 (08:56 -0500)] 
doxygen

8 years agoTrim trailing whitespace
Arran Cudbard-Bell [Thu, 23 Nov 2017 12:24:57 +0000 (12:24 +0000)] 
Trim trailing whitespace

8 years agoStupid static analysis
Arran Cudbard-Bell [Thu, 23 Nov 2017 12:16:19 +0000 (12:16 +0000)] 
Stupid static analysis

8 years agohandle conflicting packets in dynamic clients
Alan T. DeKok [Wed, 22 Nov 2017 21:43:12 +0000 (16:43 -0500)] 
handle conflicting packets in dynamic clients

8 years agotry to silence apparently random C compiler warnings?
Alan T. DeKok [Wed, 22 Nov 2017 21:35:45 +0000 (16:35 -0500)] 
try to silence apparently random C compiler warnings?

8 years agocache nr, too
Alan T. DeKok [Wed, 22 Nov 2017 21:19:25 +0000 (16:19 -0500)] 
cache nr, too

8 years agocall app_io->encode if it exists
Alan T. DeKok [Wed, 22 Nov 2017 21:19:03 +0000 (16:19 -0500)] 
call app_io->encode if it exists

in preparation for encoding RADCLIENT (sort of...)

8 years agodon't print out packet, just attributes
Alan T. DeKok [Wed, 22 Nov 2017 20:58:43 +0000 (15:58 -0500)] 
don't print out packet, just attributes

8 years agomore debug
Alan T. DeKok [Wed, 22 Nov 2017 20:56:59 +0000 (15:56 -0500)] 
more debug

8 years agotypo
Alan T. DeKok [Wed, 22 Nov 2017 20:56:49 +0000 (15:56 -0500)] 
typo

8 years agomash all encrypted attributes to empty
Alan T. DeKok [Wed, 22 Nov 2017 20:53:05 +0000 (15:53 -0500)] 
mash all encrypted attributes to empty

instead of giving garbage data to the admin

8 years agosecrets are talloc'd
Alan T. DeKok [Wed, 22 Nov 2017 20:39:58 +0000 (15:39 -0500)] 
secrets are talloc'd

8 years agocan't allocate client list parented from CONF_SECTION
Alan T. DeKok [Wed, 22 Nov 2017 20:38:45 +0000 (15:38 -0500)] 
can't allocate client list parented from CONF_SECTION

because it's frozen after parsing..

8 years agostart of fixes to mod_write() for dynamic clients
Alan T. DeKok [Wed, 22 Nov 2017 20:36:06 +0000 (15:36 -0500)] 
start of fixes to mod_write() for dynamic clients

8 years agodo prefix masking
Alan T. DeKok [Wed, 22 Nov 2017 20:35:46 +0000 (15:35 -0500)] 
do prefix masking

8 years agoinitialize dynamic client list.
Alan T. DeKok [Wed, 22 Nov 2017 19:45:22 +0000 (14:45 -0500)] 
initialize dynamic client list.

And as a nice side-effect, allow for per-server static clients
again.

8 years agoinstantiate proto_radius_dynamic_client, too
Alan T. DeKok [Wed, 22 Nov 2017 19:36:15 +0000 (14:36 -0500)] 
instantiate proto_radius_dynamic_client, too

8 years agotypo
Alan T. DeKok [Wed, 22 Nov 2017 19:36:06 +0000 (14:36 -0500)] 
typo

8 years agoput clients / packets into lists
Alan T. DeKok [Wed, 22 Nov 2017 19:27:32 +0000 (14:27 -0500)] 
put clients / packets into lists

8 years agoflesh out packet save / restore
Alan T. DeKok [Wed, 22 Nov 2017 18:46:07 +0000 (13:46 -0500)] 
flesh out packet save / restore

8 years agoresign packets only once
Alan T. DeKok [Wed, 22 Nov 2017 18:20:52 +0000 (13:20 -0500)] 
resign packets only once

8 years agocheck for num_pending_packets and flesh it out a little more
Alan T. DeKok [Wed, 22 Nov 2017 18:03:53 +0000 (13:03 -0500)] 
check for num_pending_packets and flesh it out a little more

8 years agoexpose proto_radius_dynamic_client to set_process function
Alan T. DeKok [Wed, 22 Nov 2017 18:03:24 +0000 (13:03 -0500)] 
expose proto_radius_dynamic_client to set_process function

8 years agoMerge pull request #2131 from dulin/fix-missing-id-column
Arran Cudbard-Bell [Wed, 22 Nov 2017 17:50:38 +0000 (17:50 +0000)] 
Merge pull request #2131 from dulin/fix-missing-id-column

Fix missing id column in radusergroup

8 years agomore fleshing out of dynamic client code
Alan T. DeKok [Wed, 22 Nov 2017 16:43:36 +0000 (11:43 -0500)] 
more fleshing out of dynamic client code

8 years agomove checks to bootstrap, and load proto_radius_dynamic_client
Alan T. DeKok [Wed, 22 Nov 2017 16:13:39 +0000 (11:13 -0500)] 
move checks to bootstrap, and load proto_radius_dynamic_client

8 years agouse new "OK_MISSING".
Alan T. DeKok [Wed, 22 Nov 2017 16:13:00 +0000 (11:13 -0500)] 
use new "OK_MISSING".

which means we don't always create "dynamic_clients" subsections,
even if they don't exist

8 years agoallow subsections to be missing
Alan T. DeKok [Wed, 22 Nov 2017 16:11:06 +0000 (11:11 -0500)] 
allow subsections to be missing

if so, they are not parsed or printed

8 years agostart of dynamic client code
Alan T. DeKok [Mon, 20 Nov 2017 19:11:41 +0000 (14:11 -0500)] 
start of dynamic client code

8 years agoFix missing id column in radusergroup 2131/head
Martin Dulin [Wed, 22 Nov 2017 11:57:47 +0000 (11:57 +0000)] 
Fix missing id column in radusergroup

8 years agoWire in async xlat functions
Arran Cudbard-Bell [Tue, 21 Nov 2017 21:33:36 +0000 (21:33 +0000)] 
Wire in async xlat functions

8 years agocreate and add a new client.
Alan T. DeKok [Tue, 21 Nov 2017 19:25:06 +0000 (14:25 -0500)] 
create and add a new client.

8 years agoTest the rlm_delay cancellation point works
Arran Cudbard-Bell [Tue, 21 Nov 2017 19:18:48 +0000 (19:18 +0000)] 
Test the rlm_delay cancellation point works

8 years agoAdd cancellation point for rlm_delay
Arran Cudbard-Bell [Tue, 21 Nov 2017 19:12:46 +0000 (19:12 +0000)] 
Add cancellation point for rlm_delay

8 years agoRemove unused fr_state_action_t
Arran Cudbard-Bell [Tue, 21 Nov 2017 19:12:32 +0000 (19:12 +0000)] 
Remove unused fr_state_action_t

8 years agomove assert to run-time check
Alan T. DeKok [Tue, 21 Nov 2017 19:13:34 +0000 (14:13 -0500)] 
move assert to run-time check

8 years agosignal children to be DONE when exiting a parallel section
Alan T. DeKok [Tue, 21 Nov 2017 18:55:54 +0000 (13:55 -0500)] 
signal children to be DONE when exiting a parallel section

i.e. tell the children that they're cancelled.

8 years agoAdd tests for parallel rcodes
Arran Cudbard-Bell [Tue, 21 Nov 2017 17:54:22 +0000 (17:54 +0000)] 
Add tests for parallel rcodes

8 years agomove code to before Message-Authenticator calculation
Alan T. DeKok [Tue, 21 Nov 2017 17:12:48 +0000 (12:12 -0500)] 
move code to before Message-Authenticator calculation

8 years agocache the signed vector for checking response authenticators
Alan T. DeKok [Tue, 21 Nov 2017 17:11:36 +0000 (12:11 -0500)] 
cache the signed vector for checking response authenticators

8 years agostart of dynamic_client_alloc()
Alan T. DeKok [Tue, 21 Nov 2017 16:45:09 +0000 (11:45 -0500)] 
start of dynamic_client_alloc()

8 years agostart of dynamic client code
Alan T. DeKok [Tue, 21 Nov 2017 16:27:43 +0000 (11:27 -0500)] 
start of dynamic client code

8 years ago...because you know static analysis is going to flag that at some point *sigh*
Arran Cudbard-Bell [Tue, 21 Nov 2017 16:29:17 +0000 (16:29 +0000)] 
...because you know static analysis is going to flag that at some point *sigh*