]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
8 years agouse reply size here, too
Alan T. DeKok [Wed, 27 Sep 2017 15:35:26 +0000 (11:35 -0400)] 
use reply size here, too

8 years agomash LF to NUL, so that we can parse lines individually
Alan T. DeKok [Wed, 27 Sep 2017 15:29:08 +0000 (11:29 -0400)] 
mash LF to NUL, so that we can parse lines individually

8 years agoentries must have a leading tab, and contain " = "
Alan T. DeKok [Wed, 27 Sep 2017 14:54:41 +0000 (10:54 -0400)] 
entries must have a leading tab, and contain " = "

i.e. do basic sanity checks on the data, before sending it over
to the worker.

8 years agocache the last search position for "end of record"
Alan T. DeKok [Wed, 27 Sep 2017 14:51:45 +0000 (10:51 -0400)] 
cache the last search position for "end of record"

8 years agoupdate docs
Alan T. DeKok [Tue, 26 Sep 2017 21:12:42 +0000 (17:12 -0400)] 
update docs

8 years agotypo
Alan T. DeKok [Tue, 26 Sep 2017 21:07:46 +0000 (17:07 -0400)] 
typo

8 years agoremove "seek to just before end of file" hack
Alan T. DeKok [Tue, 26 Sep 2017 20:57:09 +0000 (16:57 -0400)] 
remove "seek to just before end of file" hack

8 years agofinalize logic for alloc / reserve
Alan T. DeKok [Tue, 26 Sep 2017 20:49:52 +0000 (16:49 -0400)] 
finalize logic for alloc / reserve

8 years agocorrect logic in alloc_reserve function
Alan T. DeKok [Tue, 26 Sep 2017 20:49:40 +0000 (16:49 -0400)] 
correct logic in alloc_reserve function

8 years agosecond message has no data, but has reserved space
Alan T. DeKok [Tue, 26 Sep 2017 20:25:41 +0000 (16:25 -0400)] 
second message has no data, but has reserved space

and revert cf9ea999cb

8 years agoclean up logic and note "todo"
Alan T. DeKok [Tue, 26 Sep 2017 19:57:20 +0000 (15:57 -0400)] 
clean up logic and note "todo"

8 years agobetter logic around reading multiple packets
Alan T. DeKok [Tue, 26 Sep 2017 19:51:42 +0000 (15:51 -0400)] 
better logic around reading multiple packets

8 years agomore printing
Alan T. DeKok [Tue, 26 Sep 2017 19:21:14 +0000 (15:21 -0400)] 
more printing

8 years agoadd default_reply_size
Alan T. DeKok [Tue, 26 Sep 2017 19:15:57 +0000 (15:15 -0400)] 
add default_reply_size

for things like the detail file reader, which don't really
send replies

8 years agoalloc only if there's no data already in the buffer
Alan T. DeKok [Tue, 26 Sep 2017 19:11:29 +0000 (15:11 -0400)] 
alloc only if there's no data already in the buffer

Otherwise, reserve data

8 years agocache CS and use it for error printing
Alan T. DeKok [Tue, 26 Sep 2017 19:00:28 +0000 (15:00 -0400)] 
cache CS and use it for error printing

8 years agoa bit better messages
Alan T. DeKok [Tue, 26 Sep 2017 19:00:14 +0000 (15:00 -0400)] 
a bit better messages

8 years agotypo
Alan T. DeKok [Tue, 26 Sep 2017 18:43:51 +0000 (14:43 -0400)] 
typo

8 years agocan only have one "type"
Alan T. DeKok [Tue, 26 Sep 2017 18:43:45 +0000 (14:43 -0400)] 
can only have one "type"

8 years agoallow priorities to be configurable
Alan T. DeKok [Tue, 26 Sep 2017 16:08:35 +0000 (12:08 -0400)] 
allow priorities to be configurable

8 years agonote 'group'
Alan T. DeKok [Tue, 26 Sep 2017 11:55:36 +0000 (07:55 -0400)] 
note 'group'

8 years agomore cleanups for reading from files
Alan T. DeKok [Mon, 25 Sep 2017 20:38:58 +0000 (16:38 -0400)] 
more cleanups for reading from files

8 years agostart of detail file reader again
Alan T. DeKok [Mon, 25 Sep 2017 20:15:28 +0000 (16:15 -0400)] 
start of detail file reader again

8 years agothere's no reason for 'instance' to be const in the reader
Alan T. DeKok [Mon, 25 Sep 2017 20:10:17 +0000 (16:10 -0400)] 
there's no reason for 'instance' to be const in the reader

8 years agodetail files require a 'transport'
Alan T. DeKok [Mon, 25 Sep 2017 18:38:16 +0000 (14:38 -0400)] 
detail files require a 'transport'

and they don't have methods which can be called by other
virtual servers.  At least not yet.

8 years agoadd "process" callback
Alan T. DeKok [Mon, 25 Sep 2017 17:47:48 +0000 (13:47 -0400)] 
add "process" callback

which just runs 'recv' and 'send' sections, with no
second name

8 years agoSpecify arch where subpackage requires main package
Arran Cudbard-Bell [Wed, 27 Sep 2017 14:53:03 +0000 (22:53 +0800)] 
Specify arch where subpackage requires main package

freeradius-config shouldn't obsolete old versions of FreeRADIUS

8 years agoThe accounting module is called radius_acct not radius_coa
Arran Cudbard-Bell [Tue, 26 Sep 2017 11:05:44 +0000 (19:05 +0800)] 
The accounting module is called radius_acct not radius_coa

8 years agoUse cached enum value so we don't SEGV if type is "auth", "acct" etc..
Arran Cudbard-Bell [Tue, 26 Sep 2017 10:49:53 +0000 (18:49 +0800)] 
Use cached enum value so we don't SEGV if type is "auth", "acct" etc..

8 years agoTypo
Arran Cudbard-Bell [Tue, 26 Sep 2017 10:49:29 +0000 (18:49 +0800)] 
Typo

8 years agoRequire ldap_install_tls be exported from libldap
Arran Cudbard-Bell [Tue, 26 Sep 2017 10:02:31 +0000 (18:02 +0800)] 
Require ldap_install_tls be exported from libldap

8 years agoFix builds without LDAP_SASL_INTERACTIVE_BIND
Arran Cudbard-Bell [Tue, 26 Sep 2017 10:02:13 +0000 (18:02 +0800)] 
Fix builds without LDAP_SASL_INTERACTIVE_BIND

8 years agoIgnore symlinked ethernet headers for now
Arran Cudbard-Bell [Tue, 26 Sep 2017 06:42:00 +0000 (14:42 +0800)] 
Ignore symlinked ethernet headers for now

8 years agoRegenerate config scripts
Arran Cudbard-Bell [Tue, 26 Sep 2017 06:41:16 +0000 (14:41 +0800)] 
Regenerate config scripts

8 years agoPartially revert "use '=' instead of '==' for portability"
Arran Cudbard-Bell [Tue, 26 Sep 2017 06:27:37 +0000 (14:27 +0800)] 
Partially revert "use '=' instead of '==' for portability"

In C '=' is assignment...

8 years agoPartially revert "use '=' instead of '==' for portability"
Arran Cudbard-Bell [Tue, 26 Sep 2017 06:29:47 +0000 (14:29 +0800)] 
Partially revert "use '=' instead of '==' for portability"

Don't change operator in awk expression

8 years agoneed this, too
Alan T. DeKok [Mon, 25 Sep 2017 16:54:50 +0000 (12:54 -0400)] 
need this, too

8 years agodoxygen
Alan T. DeKok [Mon, 25 Sep 2017 16:54:25 +0000 (12:54 -0400)] 
doxygen

8 years agouse filter from table, not hard-coded EVFILT_READ
Alan T. DeKok [Mon, 25 Sep 2017 16:01:34 +0000 (12:01 -0400)] 
use filter from table, not hard-coded EVFILT_READ

8 years agore-arrange code
Alan T. DeKok [Mon, 25 Sep 2017 15:50:49 +0000 (11:50 -0400)] 
re-arrange code

8 years agorename for consistency
Alan T. DeKok [Mon, 25 Sep 2017 15:35:11 +0000 (11:35 -0400)] 
rename for consistency

8 years agoset & cache allowed packet code
Alan T. DeKok [Mon, 25 Sep 2017 15:31:02 +0000 (11:31 -0400)] 
set & cache allowed packet code

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