]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Alan T. DeKok [Wed, 27 Sep 2017 15:35:26 +0000 (11:35 -0400)]
use reply size here, too
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
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.
Alan T. DeKok [Wed, 27 Sep 2017 14:51:45 +0000 (10:51 -0400)]
cache the last search position for "end of record"
Alan T. DeKok [Tue, 26 Sep 2017 21:12:42 +0000 (17:12 -0400)]
update docs
Alan T. DeKok [Tue, 26 Sep 2017 21:07:46 +0000 (17:07 -0400)]
typo
Alan T. DeKok [Tue, 26 Sep 2017 20:57:09 +0000 (16:57 -0400)]
remove "seek to just before end of file" hack
Alan T. DeKok [Tue, 26 Sep 2017 20:49:52 +0000 (16:49 -0400)]
finalize logic for alloc / reserve
Alan T. DeKok [Tue, 26 Sep 2017 20:49:40 +0000 (16:49 -0400)]
correct logic in alloc_reserve function
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
Alan T. DeKok [Tue, 26 Sep 2017 19:57:20 +0000 (15:57 -0400)]
clean up logic and note "todo"
Alan T. DeKok [Tue, 26 Sep 2017 19:51:42 +0000 (15:51 -0400)]
better logic around reading multiple packets
Alan T. DeKok [Tue, 26 Sep 2017 19:21:14 +0000 (15:21 -0400)]
more printing
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
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
Alan T. DeKok [Tue, 26 Sep 2017 19:00:28 +0000 (15:00 -0400)]
cache CS and use it for error printing
Alan T. DeKok [Tue, 26 Sep 2017 19:00:14 +0000 (15:00 -0400)]
a bit better messages
Alan T. DeKok [Tue, 26 Sep 2017 18:43:51 +0000 (14:43 -0400)]
typo
Alan T. DeKok [Tue, 26 Sep 2017 18:43:45 +0000 (14:43 -0400)]
can only have one "type"
Alan T. DeKok [Tue, 26 Sep 2017 16:08:35 +0000 (12:08 -0400)]
allow priorities to be configurable
Alan T. DeKok [Tue, 26 Sep 2017 11:55:36 +0000 (07:55 -0400)]
note 'group'
Alan T. DeKok [Mon, 25 Sep 2017 20:38:58 +0000 (16:38 -0400)]
more cleanups for reading from files
Alan T. DeKok [Mon, 25 Sep 2017 20:15:28 +0000 (16:15 -0400)]
start of detail file reader again
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
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.
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
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
Arran Cudbard-Bell [Tue, 26 Sep 2017 11:05:44 +0000 (19:05 +0800)]
The accounting module is called radius_acct not radius_coa
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..
Arran Cudbard-Bell [Tue, 26 Sep 2017 10:49:29 +0000 (18:49 +0800)]
Typo
Arran Cudbard-Bell [Tue, 26 Sep 2017 10:02:31 +0000 (18:02 +0800)]
Require ldap_install_tls be exported from libldap
Arran Cudbard-Bell [Tue, 26 Sep 2017 10:02:13 +0000 (18:02 +0800)]
Fix builds without LDAP_SASL_INTERACTIVE_BIND
Arran Cudbard-Bell [Tue, 26 Sep 2017 06:42:00 +0000 (14:42 +0800)]
Ignore symlinked ethernet headers for now
Arran Cudbard-Bell [Tue, 26 Sep 2017 06:41:16 +0000 (14:41 +0800)]
Regenerate config scripts
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...
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
Alan T. DeKok [Mon, 25 Sep 2017 16:54:50 +0000 (12:54 -0400)]
need this, too
Alan T. DeKok [Mon, 25 Sep 2017 16:54:25 +0000 (12:54 -0400)]
doxygen
Alan T. DeKok [Mon, 25 Sep 2017 16:01:34 +0000 (12:01 -0400)]
use filter from table, not hard-coded EVFILT_READ
Alan T. DeKok [Mon, 25 Sep 2017 15:50:49 +0000 (11:50 -0400)]
re-arrange code
Alan T. DeKok [Mon, 25 Sep 2017 15:35:11 +0000 (11:35 -0400)]
rename for consistency
Alan T. DeKok [Mon, 25 Sep 2017 15:31:02 +0000 (11:31 -0400)]
set & cache allowed packet code
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
Alan T. DeKok [Mon, 25 Sep 2017 15:10:39 +0000 (11:10 -0400)]
start of new detail file listener
Alan T. DeKok [Mon, 25 Sep 2017 15:10:20 +0000 (11:10 -0400)]
moved old files out of the way
Alan T. DeKok [Mon, 25 Sep 2017 15:01:55 +0000 (11:01 -0400)]
minor cleanups and typos
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.
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
Alan T. DeKok [Sun, 24 Sep 2017 20:15:52 +0000 (16:15 -0400)]
now that the code is smarter, we need less documentation
Alan T. DeKok [Sun, 24 Sep 2017 20:15:37 +0000 (16:15 -0400)]
use '=' instead of '==' for portability
Alan T. DeKok [Sun, 24 Sep 2017 20:14:00 +0000 (16:14 -0400)]
remove deprecated disable_tls* configuration
Alan T. DeKok [Sun, 24 Sep 2017 18:35:19 +0000 (14:35 -0400)]
use '=' instead of '==' for portability
Arran Cudbard-Bell [Sun, 24 Sep 2017 15:09:39 +0000 (23:09 +0800)]
More ifdefs
Arran Cudbard-Bell [Sun, 24 Sep 2017 14:56:24 +0000 (22:56 +0800)]
NOTE_REVOKE and NOTE_FUNLOCK not implemented by libkqueue
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.
Alan T. DeKok [Sun, 24 Sep 2017 13:09:00 +0000 (09:09 -0400)]
manually disable TLSv1.2
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
Alan T. DeKok [Sun, 24 Sep 2017 13:00:00 +0000 (09:00 -0400)]
allow FAST to over-ride cipher_list
Alan T. DeKok [Sun, 24 Sep 2017 12:33:39 +0000 (08:33 -0400)]
root unknown from parent, not from dict root
Alan T. DeKok [Sat, 23 Sep 2017 17:03:07 +0000 (13:03 -0400)]
don't leak vp
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
Alan T. DeKok [Sat, 23 Sep 2017 13:18:19 +0000 (09:18 -0400)]
it helps to add the VPs to the cursor
Alan T. DeKok [Sat, 23 Sep 2017 13:01:40 +0000 (09:01 -0400)]
use decoded len, not len from all of the packet
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
Alan T. DeKok [Sat, 23 Sep 2017 12:25:38 +0000 (08:25 -0400)]
tls_max_version cannot be less than 1.0
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>
Alan T. DeKok [Sat, 23 Sep 2017 01:54:57 +0000 (21:54 -0400)]
use v4 API
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>
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
Alan T. DeKok [Sat, 23 Sep 2017 01:46:41 +0000 (21:46 -0400)]
cast to float
Alan T. DeKok [Fri, 22 Sep 2017 14:59:42 +0000 (10:59 -0400)]
note on todo
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
Alan T. DeKok [Thu, 21 Sep 2017 20:01:26 +0000 (16:01 -0400)]
ensure we listen only on directories for vnodes
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
Alan T. DeKok [Thu, 21 Sep 2017 18:28:41 +0000 (14:28 -0400)]
doxygen
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.
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
Alan T. DeKok [Thu, 21 Sep 2017 17:07:33 +0000 (13:07 -0400)]
sort packets by original request time, too
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
Alan T. DeKok [Thu, 21 Sep 2017 16:58:01 +0000 (12:58 -0400)]
move waiting queue to heap
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
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
Alan T. DeKok [Thu, 21 Sep 2017 15:30:14 +0000 (11:30 -0400)]
brackets are useful
Alan T. DeKok [Thu, 21 Sep 2017 15:26:58 +0000 (11:26 -0400)]
add a write queue to network sockets
Alan T. DeKok [Thu, 21 Sep 2017 15:12:42 +0000 (11:12 -0400)]
udp_send() may return an error
Alan T. DeKok [Tue, 19 Sep 2017 15:53:56 +0000 (11:53 -0400)]
remove unused enum
Alan T. DeKok [Tue, 19 Sep 2017 13:38:56 +0000 (09:38 -0400)]
remove unused variable
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...
Arran Cudbard-Bell [Wed, 20 Sep 2017 03:07:47 +0000 (10:07 +0700)]
Don't create empty stripped-user-domain attributes
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
Herwin Weststrate [Tue, 19 Sep 2017 11:04:02 +0000 (13:04 +0200)]
Small cleanup in rlm_perl
Arran Cudbard-Bell [Tue, 19 Sep 2017 05:51:41 +0000 (12:51 +0700)]
Add ubuntu16, fix libnl install calls
Alan T. DeKok [Mon, 18 Sep 2017 20:45:02 +0000 (16:45 -0400)]
open local sockets before initializing modules. Fixes #1691
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
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.
Alan T. DeKok [Sun, 17 Sep 2017 12:37:27 +0000 (08:37 -0400)]
notes on todo's
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
Alan T. DeKok [Fri, 15 Sep 2017 17:32:55 +0000 (13:32 -0400)]
enforce max request lifetime on the child request
Alan T. DeKok [Fri, 15 Sep 2017 17:31:50 +0000 (13:31 -0400)]
correct number ranges in comments
Alexander Clouter [Fri, 15 Sep 2017 14:11:57 +0000 (15:11 +0100)]
update rhspec