]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
8 years agomove client src_ipaddr mangling to proto_radius
Alan T. DeKok [Mon, 25 Sep 2017 15:13:33 +0000 (11:13 -0400)] 
move client src_ipaddr mangling to proto_radius

so that the process functions are entirely protocol agnostic
almost... they still print src/dst IP information for debugging

8 years agostart of new detail file listener
Alan T. DeKok [Mon, 25 Sep 2017 15:10:39 +0000 (11:10 -0400)] 
start of new detail file listener

8 years agomoved old files out of the way
Alan T. DeKok [Mon, 25 Sep 2017 15:10:20 +0000 (11:10 -0400)] 
moved old files out of the way

8 years agominor cleanups and typos
Alan T. DeKok [Mon, 25 Sep 2017 15:01:55 +0000 (11:01 -0400)] 
minor cleanups and typos

8 years agomove detail.h to proto_detail
Alan T. DeKok [Mon, 25 Sep 2017 14:39:45 +0000 (10:39 -0400)] 
move detail.h to proto_detail

No one else needs it, or should use it.

8 years agoalways write to the detail file
Alan T. DeKok [Mon, 25 Sep 2017 14:38:17 +0000 (10:38 -0400)] 
always write to the detail file

even if we read it from the detail file.

This change is necessary to encapsulate the new proto_detail code.
We can later add an attribute which passes the filename to
rlm_detail, so it can suppress infinite loops

8 years agonow that the code is smarter, we need less documentation
Alan T. DeKok [Sun, 24 Sep 2017 20:15:52 +0000 (16:15 -0400)] 
now that the code is smarter, we need less documentation

8 years agouse '=' instead of '==' for portability
Alan T. DeKok [Sun, 24 Sep 2017 20:15:37 +0000 (16:15 -0400)] 
use '=' instead of '==' for portability

8 years agoremove deprecated disable_tls* configuration
Alan T. DeKok [Sun, 24 Sep 2017 20:14:00 +0000 (16:14 -0400)] 
remove deprecated disable_tls* configuration

8 years agouse '=' instead of '==' for portability
Alan T. DeKok [Sun, 24 Sep 2017 18:35:19 +0000 (14:35 -0400)] 
use '=' instead of '==' for portability

8 years agoMore ifdefs
Arran Cudbard-Bell [Sun, 24 Sep 2017 15:09:39 +0000 (23:09 +0800)] 
More ifdefs

8 years agoNOTE_REVOKE and NOTE_FUNLOCK not implemented by libkqueue
Arran Cudbard-Bell [Sun, 24 Sep 2017 14:56:24 +0000 (22:56 +0800)] 
NOTE_REVOKE and NOTE_FUNLOCK not implemented by libkqueue

8 years agoSupport all vnode note types
Arran Cudbard-Bell [Sun, 24 Sep 2017 14:25:41 +0000 (22:25 +0800)] 
Support all vnode note types

Extends the event API to allow callbacks to be registered for all vnode NOTE_* events.

8 years agomanually disable TLSv1.2
Alan T. DeKok [Sun, 24 Sep 2017 13:09:00 +0000 (09:09 -0400)] 
manually disable TLSv1.2

8 years agoin v4 the 'type = fast' enables the module
Alan T. DeKok [Sun, 24 Sep 2017 13:00:28 +0000 (09:00 -0400)] 
in v4 the 'type = fast' enables the module

not the config subsection.  So we can always uncomment the
modules

8 years agoallow FAST to over-ride cipher_list
Alan T. DeKok [Sun, 24 Sep 2017 13:00:00 +0000 (09:00 -0400)] 
allow FAST to over-ride cipher_list

8 years agoroot unknown from parent, not from dict root
Alan T. DeKok [Sun, 24 Sep 2017 12:33:39 +0000 (08:33 -0400)] 
root unknown from parent, not from dict root

8 years agodon't leak vp
Alan T. DeKok [Sat, 23 Sep 2017 17:03:07 +0000 (13:03 -0400)] 
don't leak vp

8 years agoEAP-FAST-Crypto-Binding is 'octets'
Alan T. DeKok [Sat, 23 Sep 2017 13:20:57 +0000 (09:20 -0400)] 
EAP-FAST-Crypto-Binding is 'octets'

until such time as eap_fast_decode_pair() decodes STRUCT types

8 years agoit helps to add the VPs to the cursor
Alan T. DeKok [Sat, 23 Sep 2017 13:18:19 +0000 (09:18 -0400)] 
it helps to add the VPs to the cursor

8 years agouse decoded len, not len from all of the packet
Alan T. DeKok [Sat, 23 Sep 2017 13:01:40 +0000 (09:01 -0400)] 
use decoded len, not len from all of the packet

8 years agosuppress bad error for EAP-FAST
Alan T. DeKok [Sat, 23 Sep 2017 12:46:47 +0000 (08:46 -0400)] 
suppress bad error for EAP-FAST

instead of printing a message saying to ignore it

8 years agotls_max_version cannot be less than 1.0
Alan T. DeKok [Sat, 23 Sep 2017 12:25:38 +0000 (08:25 -0400)] 
tls_max_version cannot be less than 1.0

8 years agotls: some more casting to float
Isaac Boukris [Sat, 23 Sep 2017 11:01:10 +0000 (14:01 +0300)] 
tls: some more casting to float

Signed-off-by: Isaac Boukris <iboukris@gmail.com>
8 years agouse v4 API
Alan T. DeKok [Sat, 23 Sep 2017 01:54:57 +0000 (21:54 -0400)] 
use v4 API

8 years agoEAP-FAST: Fix EAP-FAST-MSCHAPv2 in anonymous tunnel (v3.0.x)
Isaac Boukris [Sat, 23 Sep 2017 00:01:32 +0000 (03:01 +0300)] 
EAP-FAST: Fix EAP-FAST-MSCHAPv2 in anonymous tunnel (v3.0.x)

According to RFC 5422, in anonymous FAST tunnel the mschapv2
challenge is generated differently, from the phase1 exchange.
While the eap-fast module takes care to save internally the
peer-challenge to use, no one cares to read it before doing
the mschap check, causing it to fail.
Fix this by checking for PW_MS_CHAP_PEER_CHALLENGE and using it.

Signed-off-by: Isaac Boukris <iboukris@gmail.com>
8 years agorecurse on decode TLVs, instead of !TLV
Alan T. DeKok [Sat, 23 Sep 2017 01:46:49 +0000 (21:46 -0400)] 
recurse on decode TLVs, instead of !TLV

and decode the contents of the TLV, instead of TLV itself

8 years agocast to float
Alan T. DeKok [Sat, 23 Sep 2017 01:46:41 +0000 (21:46 -0400)] 
cast to float

8 years agonote on todo
Alan T. DeKok [Fri, 22 Sep 2017 14:59:42 +0000 (10:59 -0400)] 
note on todo

8 years agotrack deleted sockets
Alan T. DeKok [Fri, 22 Sep 2017 13:32:14 +0000 (09:32 -0400)] 
track deleted sockets

and delay deleting them until all of the replies have been handled

8 years agoensure we listen only on directories for vnodes
Alan T. DeKok [Thu, 21 Sep 2017 20:01:26 +0000 (16:01 -0400)] 
ensure we listen only on directories for vnodes

8 years agoadd vnode to app_io, and notify it when things change
Alan T. DeKok [Thu, 21 Sep 2017 19:56:59 +0000 (15:56 -0400)] 
add vnode to app_io, and notify it when things change

8 years agodoxygen
Alan T. DeKok [Thu, 21 Sep 2017 18:28:41 +0000 (14:28 -0400)] 
doxygen

8 years agoallow adding "watch directory" to the network side
Alan T. DeKok [Thu, 21 Sep 2017 18:08:22 +0000 (14:08 -0400)] 
allow adding "watch directory" to the network side

the function called from the event loop is empty and does
nothing for now.  Later, it has to call a new function in
the app_io, and tell it "something changed in the directory".

That function then needs to open the new detail file, and
(somehow?) get those packets back to the fr_network_t, for
forwarding to a worker.

8 years agoadd support for EVFILT_VNODE
Alan T. DeKok [Thu, 21 Sep 2017 17:59:52 +0000 (13:59 -0400)] 
add support for EVFILT_VNODE

for now, hard-coded to NOTE_EXTEND.

i.e. for directories, and for proto_detail

8 years agosort packets by original request time, too
Alan T. DeKok [Thu, 21 Sep 2017 17:07:33 +0000 (13:07 -0400)] 
sort packets by original request time, too

8 years agokeep the first request pending
Alan T. DeKok [Thu, 21 Sep 2017 17:04:10 +0000 (13:04 -0400)] 
keep the first request pending

so that if it's partially written, we won't over-write it with
a higher priority packet.

After that, replies are sent out ordered by priority, and
original recv time

8 years agomove waiting queue to heap
Alan T. DeKok [Thu, 21 Sep 2017 16:58:01 +0000 (12:58 -0400)] 
move waiting queue to heap

8 years agonote that we either write ALL of the data, or NONE of it
Alan T. DeKok [Thu, 21 Sep 2017 15:57:48 +0000 (11:57 -0400)] 
note that we either write ALL of the data, or NONE of it

8 years agoif we get EWOULDBLOCK on the write, add packet to outbound queue
Alan T. DeKok [Thu, 21 Sep 2017 15:51:00 +0000 (11:51 -0400)] 
if we get EWOULDBLOCK on the write, add packet to outbound queue

and enable write callback for the FD

8 years agobrackets are useful
Alan T. DeKok [Thu, 21 Sep 2017 15:30:14 +0000 (11:30 -0400)] 
brackets are useful

8 years agoadd a write queue to network sockets
Alan T. DeKok [Thu, 21 Sep 2017 15:26:58 +0000 (11:26 -0400)] 
add a write queue to network sockets

8 years agoudp_send() may return an error
Alan T. DeKok [Thu, 21 Sep 2017 15:12:42 +0000 (11:12 -0400)] 
udp_send() may return an error

8 years agoremove unused enum
Alan T. DeKok [Tue, 19 Sep 2017 15:53:56 +0000 (11:53 -0400)] 
remove unused enum

8 years agoremove unused variable
Alan T. DeKok [Tue, 19 Sep 2017 13:38:56 +0000 (09:38 -0400)] 
remove unused variable

8 years agoupdate comments, and hoist check_config to earlier
Alan T. DeKok [Tue, 19 Sep 2017 13:37:16 +0000 (09:37 -0400)] 
update comments, and hoist check_config to earlier

so that we don't do work which is later ignored...

8 years agoDon't create empty stripped-user-domain attributes
Arran Cudbard-Bell [Wed, 20 Sep 2017 03:07:47 +0000 (10:07 +0700)] 
Don't create empty stripped-user-domain attributes

8 years agoMerge pull request #2075 from herwinw/rlm_perl_cleanup
Arran Cudbard-Bell [Tue, 19 Sep 2017 11:06:24 +0000 (18:06 +0700)] 
Merge pull request #2075 from herwinw/rlm_perl_cleanup

Small cleanup in rlm_perl

8 years agoSmall cleanup in rlm_perl 2075/head
Herwin Weststrate [Tue, 19 Sep 2017 11:04:02 +0000 (13:04 +0200)] 
Small cleanup in rlm_perl

8 years agoAdd ubuntu16, fix libnl install calls
Arran Cudbard-Bell [Tue, 19 Sep 2017 05:51:41 +0000 (12:51 +0700)] 
Add ubuntu16, fix libnl install calls

8 years agoopen local sockets before initializing modules. Fixes #1691
Alan T. DeKok [Mon, 18 Sep 2017 20:45:02 +0000 (16:45 -0400)] 
open local sockets before initializing modules.  Fixes #1691

8 years agoMore graceful handling in rlm_perl on die in called method
Herwin Weststrate [Mon, 18 Sep 2017 06:52:42 +0000 (08:52 +0200)] 
More graceful handling in rlm_perl on die in called method

This should fix #2067

8 years agoremove "stack" as a separate argument
Alan T. DeKok [Sun, 17 Sep 2017 12:45:14 +0000 (08:45 -0400)] 
remove "stack" as a separate argument

it's always request->stack.

The original idea was to allow different interpreters for the
same request.  But practice shows that it's much better to just
have different requests instead.

8 years agonotes on todo's
Alan T. DeKok [Sun, 17 Sep 2017 12:37:27 +0000 (08:37 -0400)] 
notes on todo's

8 years agoMerge pull request #2071 from jimdigriz/v4.0.x-rhspec
Alan DeKok [Fri, 15 Sep 2017 19:31:19 +0000 (15:31 -0400)] 
Merge pull request #2071 from jimdigriz/v4.0.x-rhspec

V4.0.x rhspec

8 years agoenforce max request lifetime on the child request
Alan T. DeKok [Fri, 15 Sep 2017 17:32:55 +0000 (13:32 -0400)] 
enforce max request lifetime on the child request

8 years agocorrect number ranges in comments
Alan T. DeKok [Fri, 15 Sep 2017 17:31:50 +0000 (13:31 -0400)] 
correct number ranges in comments

8 years agoupdate rhspec 2071/head
Alexander Clouter [Fri, 15 Sep 2017 14:11:57 +0000 (15:11 +0100)] 
update rhspec

8 years agocentos6 docker build fix
Alexander Clouter [Fri, 15 Sep 2017 14:11:35 +0000 (15:11 +0100)] 
centos6 docker build fix

8 years agoshrink unlang_group_t slightly
Alan T. DeKok [Fri, 15 Sep 2017 13:32:50 +0000 (09:32 -0400)] 
shrink unlang_group_t slightly

with anonymous struct anonymous union

8 years agopeople try to use client certificates, and it generally doesn't work
Matthew Newton [Fri, 15 Sep 2017 13:01:12 +0000 (14:01 +0100)] 
people try to use client certificates, and it generally doesn't work

8 years agoAdd iterator for iterating by DA
Arran Cudbard-Bell [Fri, 15 Sep 2017 08:22:41 +0000 (15:22 +0700)] 
Add iterator for iterating by DA

8 years agoRemove the VP from the cursor before freeing
Arran Cudbard-Bell [Fri, 15 Sep 2017 07:25:41 +0000 (14:25 +0700)] 
Remove the VP from the cursor before freeing

That way the cursor doesn't contain references to already freed memory.

8 years agoSwap out more calls to use the new cursor api
Arran Cudbard-Bell [Fri, 15 Sep 2017 06:05:04 +0000 (13:05 +0700)] 
Swap out more calls to use the new cursor api

8 years agoUse correct signed integer field in rlm_lua
Arran Cudbard-Bell [Fri, 15 Sep 2017 01:36:27 +0000 (08:36 +0700)] 
Use correct signed integer field in rlm_lua

8 years agoReplace more vp_cursor_t calls with fr_cursor_t calls
Arran Cudbard-Bell [Fri, 15 Sep 2017 01:34:28 +0000 (08:34 +0700)] 
Replace more vp_cursor_t calls with fr_cursor_t calls

8 years agono unused variable for you
Alan T. DeKok [Thu, 14 Sep 2017 23:55:11 +0000 (19:55 -0400)] 
no unused variable for you

8 years agohack together "call"
Alan T. DeKok [Thu, 14 Sep 2017 23:29:58 +0000 (19:29 -0400)] 
hack together "call"

it doesn't do yeild, and it overloads things it shouldn't overload
but it works.  It can be cleaned up later

8 years agodon't print out TLS tunnel stuff... it's not relevant
Alan T. DeKok [Thu, 14 Sep 2017 23:26:42 +0000 (19:26 -0400)] 
don't print out TLS tunnel stuff... it's not relevant

We need to find a better way to do this.  Perhaps print out
the parent / child virtual server?

8 years agouse correct process ptr
Alan T. DeKok [Thu, 14 Sep 2017 23:09:18 +0000 (19:09 -0400)] 
use correct process ptr

8 years agodetach the child before freeing it
Alan T. DeKok [Thu, 14 Sep 2017 17:49:05 +0000 (13:49 -0400)] 
detach the child before freeing it

8 years ago"call" can only be used in a "subrequest" section.
Alan T. DeKok [Thu, 14 Sep 2017 17:47:00 +0000 (13:47 -0400)] 
"call" can only be used in a "subrequest" section.

For now, until we get more code written

8 years agoverify that server.PACKET-Type exists
Alan T. DeKok [Thu, 14 Sep 2017 17:22:51 +0000 (13:22 -0400)] 
verify that server.PACKET-Type exists

8 years agomoved "cache process ptr" to mod_bootstrap
Alan T. DeKok [Thu, 14 Sep 2017 17:21:49 +0000 (13:21 -0400)] 
moved "cache process ptr" to mod_bootstrap

so it's available for later checks

8 years agoadd UNLANG_TYPE_CALL to the parser
Alan T. DeKok [Thu, 14 Sep 2017 16:53:23 +0000 (12:53 -0400)] 
add UNLANG_TYPE_CALL to the parser

and bare-bones interpreter

8 years agoit's compile_subrequest(), not compile_create()
Alan T. DeKok [Thu, 14 Sep 2017 15:55:07 +0000 (11:55 -0400)] 
it's compile_subrequest(), not compile_create()

8 years agoCache process function by packet name
Alan T. DeKok [Thu, 14 Sep 2017 15:53:44 +0000 (11:53 -0400)] 
Cache process function by packet name

8 years agodon't log Cleartext-Password
Alan T. DeKok [Thu, 14 Sep 2017 14:48:46 +0000 (10:48 -0400)] 
don't log Cleartext-Password

8 years agodocument subrequest and detach
Alan T. DeKok [Thu, 14 Sep 2017 14:48:01 +0000 (10:48 -0400)] 
document subrequest and detach

8 years agoHappily not needed
Arran Cudbard-Bell [Thu, 14 Sep 2017 16:33:05 +0000 (23:33 +0700)] 
Happily not needed

...as the new cursor API was designed somewhat more than the original, and doesn't require dumb hacks.

8 years agoSprinkle more verify calls
Arran Cudbard-Bell [Thu, 14 Sep 2017 14:33:16 +0000 (21:33 +0700)] 
Sprinkle more verify calls

8 years agoFormatting
Arran Cudbard-Bell [Thu, 14 Sep 2017 14:31:18 +0000 (21:31 +0700)] 
Formatting

8 years agoSwitch to the new cursor API for tmpl_cursors
Arran Cudbard-Bell [Thu, 14 Sep 2017 12:42:00 +0000 (19:42 +0700)] 
Switch to the new cursor API for tmpl_cursors

This means we can remove tmpl_cursor_next, and pass around cursors which represents subsets of attribute lists (without copying VALUE_PAIRs), which is nice...

8 years agoTypo in cursor_replace
Arran Cudbard-Bell [Thu, 14 Sep 2017 12:22:40 +0000 (19:22 +0700)] 
Typo in cursor_replace

8 years agoPick up brewed ssl for eapol_test
Arran Cudbard-Bell [Thu, 14 Sep 2017 08:49:08 +0000 (15:49 +0700)] 
Pick up brewed ssl for eapol_test

8 years agoMerge pull request #2065 from pwdng/v4.0.x
Arran Cudbard-Bell [Thu, 14 Sep 2017 11:26:59 +0000 (18:26 +0700)] 
Merge pull request #2065 from pwdng/v4.0.x

Fix RPM spec file

8 years agoFix RPM spec file 2065/head
Philippe Wooding [Thu, 14 Sep 2017 11:06:01 +0000 (13:06 +0200)] 
Fix RPM spec file

8 years agohack for NUM_ALL
Alan T. DeKok [Wed, 13 Sep 2017 19:46:13 +0000 (15:46 -0400)] 
hack for NUM_ALL

Not sure why the xlat-list test *ever* passed...

8 years agomore test_fail
Alan T. DeKok [Wed, 13 Sep 2017 19:25:25 +0000 (15:25 -0400)] 
more test_fail

8 years agouse "success" instead of manual thing
Alan T. DeKok [Wed, 13 Sep 2017 18:52:45 +0000 (14:52 -0400)] 
use "success" instead of manual thing

8 years agomove to using test_fail macro
Alan T. DeKok [Wed, 13 Sep 2017 18:49:54 +0000 (14:49 -0400)] 
move to using test_fail macro

Multi-line perl replace is your friend...

8 years agoadd test_fail
Alan T. DeKok [Wed, 13 Sep 2017 18:33:58 +0000 (14:33 -0400)] 
add test_fail

which shows the line number of the block which called the
test_fail policy

8 years agoadded %{interpreter:...} xlat
Alan T. DeKok [Wed, 13 Sep 2017 18:31:02 +0000 (14:31 -0400)] 
added %{interpreter:...} xlat

for introspection of the interpreter state

8 years agoNo...
Arran Cudbard-Bell [Wed, 13 Sep 2017 18:32:20 +0000 (01:32 +0700)] 
No...

This reverts commit 740bf8e68d8508f8ec32096e15918212934b3508.

8 years agoSee if stages work any better now
Arran Cudbard-Bell [Wed, 13 Sep 2017 18:15:43 +0000 (01:15 +0700)] 
See if stages work any better now

8 years agoclean up compile_action_pair
Alan T. DeKok [Wed, 13 Sep 2017 18:12:11 +0000 (14:12 -0400)] 
clean up compile_action_pair

and require action over-rides to be an "actions" section

8 years ago'actions' must be the LAST thing in a group
Alan T. DeKok [Wed, 13 Sep 2017 17:47:01 +0000 (13:47 -0400)] 
'actions' must be the LAST thing in a group

8 years ago'actions' may be in a "group"
Alan T. DeKok [Wed, 13 Sep 2017 17:46:44 +0000 (13:46 -0400)] 
'actions' may be in a "group"

8 years agodisallow action over-rides in random places
Alan T. DeKok [Wed, 13 Sep 2017 16:59:55 +0000 (12:59 -0400)] 
disallow action over-rides in random places

8 years agodon't install rlm_test or rlm_example
Alan T. DeKok [Wed, 13 Sep 2017 16:38:00 +0000 (12:38 -0400)] 
don't install rlm_test or rlm_example