]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
9 years agoBreakout libldap functions into a utility library
Arran Cudbard-Bell [Thu, 6 Apr 2017 21:40:44 +0000 (17:40 -0400)] 
Breakout libldap functions into a utility library

9 years agoChange Hdb to Mdb in LDAP test scripts
Arran Cudbard-Bell [Thu, 6 Apr 2017 21:21:00 +0000 (17:21 -0400)] 
Change Hdb to Mdb in LDAP test scripts

9 years agoRework fr_strerror and friends to allow multiple messages to be logged
Arran Cudbard-Bell [Thu, 6 Apr 2017 17:10:22 +0000 (13:10 -0400)] 
Rework fr_strerror and friends to allow multiple messages to be logged

9 years agoAdding missing RCSID macros
Arran Cudbard-Bell [Thu, 6 Apr 2017 17:09:12 +0000 (13:09 -0400)] 
Adding missing RCSID macros

9 years agoFixup doxygen headers in log.c
Arran Cudbard-Bell [Wed, 5 Apr 2017 20:38:59 +0000 (16:38 -0400)] 
Fixup doxygen headers in log.c

9 years agoupdate worker processing time
Alan T. DeKok [Wed, 5 Apr 2017 20:03:05 +0000 (16:03 -0400)] 
update worker processing time

9 years agoupdate processing time for NAK
Alan T. DeKok [Wed, 5 Apr 2017 20:02:56 +0000 (16:02 -0400)] 
update processing time for NAK

9 years agoupdate todo's
Alan T. DeKok [Wed, 5 Apr 2017 19:51:45 +0000 (15:51 -0400)] 
update todo's

9 years agobuild issues
Alan T. DeKok [Wed, 5 Apr 2017 19:29:28 +0000 (15:29 -0400)] 
build issues

9 years agocompiler warnings
Alan T. DeKok [Wed, 5 Apr 2017 18:58:12 +0000 (14:58 -0400)] 
compiler warnings

9 years agoadd fr_strerror handling
Alan T. DeKok [Wed, 5 Apr 2017 18:30:09 +0000 (14:30 -0400)] 
add fr_strerror handling

9 years agoadd fr_strerror handling
Alan T. DeKok [Wed, 5 Apr 2017 17:56:58 +0000 (13:56 -0400)] 
add fr_strerror handling

9 years agoadd fr_strerror handling
Alan T. DeKok [Wed, 5 Apr 2017 17:52:09 +0000 (13:52 -0400)] 
add fr_strerror handling

9 years agoadd fr_strerror handling
Alan T. DeKok [Wed, 5 Apr 2017 17:39:43 +0000 (13:39 -0400)] 
add fr_strerror handling

9 years agoadd fr_strerror handling
Alan T. DeKok [Wed, 5 Apr 2017 17:33:22 +0000 (13:33 -0400)] 
add fr_strerror handling

9 years agoadd fr_strerror handling
Alan T. DeKok [Wed, 5 Apr 2017 17:25:43 +0000 (13:25 -0400)] 
add fr_strerror handling

9 years agoadd error printing
Alan T. DeKok [Wed, 5 Apr 2017 17:10:54 +0000 (13:10 -0400)] 
add error printing

9 years agodoxygen
Alan T. DeKok [Tue, 4 Apr 2017 22:23:27 +0000 (18:23 -0400)] 
doxygen

9 years agoremove unused variable
Alan T. DeKok [Tue, 4 Apr 2017 22:22:51 +0000 (18:22 -0400)] 
remove unused variable

9 years agoadd fr_log_t to worker, and use it for messages
Alan T. DeKok [Tue, 4 Apr 2017 21:11:29 +0000 (17:11 -0400)] 
add fr_log_t to worker, and use it for messages

9 years agoadd fr_log_t to receiver, and use it for messages
Alan T. DeKok [Tue, 4 Apr 2017 20:50:11 +0000 (16:50 -0400)] 
add fr_log_t to receiver, and use it for messages

9 years agoget receiver working.
Alan T. DeKok [Tue, 4 Apr 2017 20:16:37 +0000 (16:16 -0400)] 
get receiver working.

the idea is to get the receiver state machine working, and then
gradually glue in the transport layers.

We now have transport read/write mostly working.  They will
likely get changed to use IO contexts later

9 years agocompiler warning
Alan T. DeKok [Tue, 4 Apr 2017 16:14:51 +0000 (12:14 -0400)] 
compiler warning

9 years agoCatch 32-bit overflows
Alan T. DeKok [Tue, 4 Apr 2017 16:12:18 +0000 (12:12 -0400)] 
Catch 32-bit overflows

9 years agostart of receiver read functionality
Alan T. DeKok [Tue, 4 Apr 2017 15:36:43 +0000 (11:36 -0400)] 
start of receiver read functionality

it now gets channel messages, and sends them to the worker

9 years agomore messages
Alan T. DeKok [Tue, 4 Apr 2017 15:35:22 +0000 (11:35 -0400)] 
more messages

9 years agosignal the worker when a channel is created
Alan T. DeKok [Tue, 4 Apr 2017 15:34:59 +0000 (11:34 -0400)] 
signal the worker when a channel is created

which is less surprising than asking the caller to do it

9 years agoset up the fault handlers.
Alan T. DeKok [Tue, 4 Apr 2017 14:52:18 +0000 (10:52 -0400)] 
set up the fault handlers.

Now that the fault handlers are no longer retarded

9 years agoSET DEBUG STATE WHEN TOLD TO SET THE DEBUG STATE
Alan T. DeKok [Tue, 4 Apr 2017 14:49:44 +0000 (10:49 -0400)] 
SET DEBUG STATE WHEN TOLD TO SET THE DEBUG STATE

Honestly, this one bug has cost me days of time.  Why the HELL
does setting the debug state NOT WORK.  EVER.  The MAGIC CODE to
figure out whether or not we're in a debugger DOES NOT WORK FOR ME.
The environment variable which FORCES the code to believe that
the debugger attached sets a variable LOCAL TO THE FUNCTION,
and FAILS TO SET THE GLOBAL VARIABLE WHICH SETS THE DEBUG STATE.

<sigh>

9 years agocreate network thread(s) before workers
Alan T. DeKok [Tue, 4 Apr 2017 14:19:58 +0000 (10:19 -0400)] 
create network thread(s) before workers

9 years agomore / better debugging
Alan T. DeKok [Mon, 3 Apr 2017 19:41:11 +0000 (15:41 -0400)] 
more / better debugging

9 years agoadd default message size to the transport layer
Alan T. DeKok [Mon, 3 Apr 2017 17:02:51 +0000 (13:02 -0400)] 
add default message size to the transport layer

9 years agoMore minor debug output tweaks
Arran Cudbard-Bell [Fri, 31 Mar 2017 20:29:43 +0000 (16:29 -0400)] 
More minor debug output tweaks

9 years agoUse a colon to match the value fmt
Arran Cudbard-Bell [Fri, 31 Mar 2017 19:55:16 +0000 (15:55 -0400)] 
Use a colon to match the value fmt

9 years agoSay what the random pointers are
Arran Cudbard-Bell [Fri, 31 Mar 2017 19:31:09 +0000 (15:31 -0400)] 
Say what the random pointers are

9 years agoMerge pull request #1956 from mattrose/v4.0.x
Arran Cudbard-Bell [Fri, 31 Mar 2017 19:26:51 +0000 (15:26 -0400)] 
Merge pull request #1956 from mattrose/v4.0.x

fix .deb patch script so that it applies to 4.0.x

9 years agofix .deb patch script so that it applies to 4.0.x 1956/head
Matt Rose [Fri, 31 Mar 2017 18:55:15 +0000 (11:55 -0700)] 
fix .deb patch script so that it applies to 4.0.x

9 years agohese attributes are byte, not integer. Closes #1954
Alan T. DeKok [Fri, 31 Mar 2017 13:39:24 +0000 (09:39 -0400)] 
hese attributes are byte, not integer.  Closes #1954

9 years agoFix typo. Closes #1955
Alan T. DeKok [Fri, 31 Mar 2017 13:37:04 +0000 (09:37 -0400)] 
Fix typo.  Closes #1955

9 years agoMerge pull request #1953 from leitao/PR
Alan DeKok [Thu, 30 Mar 2017 14:06:30 +0000 (10:06 -0400)] 
Merge pull request #1953 from leitao/PR

FreeRADIUS fails to build on systems with LibreSSL.

9 years agoFreeradius fails to build on systems with LibreSSL. 1953/head
Breno Leitao [Thu, 30 Mar 2017 13:36:43 +0000 (10:36 -0300)] 
Freeradius fails to build on systems with LibreSSL.

FreeRadius try to link against function X509_get0_extensions() that does
not exist on LibreSSl, so the following "if" clausure does not work
correct for LibreSSL, since OpenSSL has a defined macro
OPENSSL_VERSION_NUMBER for LibreSSL bigger than
0x10100000, and does not have X509_get0_extensions():

 #if OPENSSL_VERSION_NUMBER >= 0x10100000L
                ext_list = X509_get0_extensions(client_cert);

This patch guarantee that this check is not valid for LibreSSL, thus,
using the fall back.

9 years agoHandle connection error in rlm_ldap_cacheable_groupobj
Nikolai Kondrashov [Wed, 29 Mar 2017 07:43:14 +0000 (10:43 +0300)] 
Handle connection error in rlm_ldap_cacheable_groupobj

Closes #1951

9 years agodouble-check OID tests
Alan T. DeKok [Tue, 28 Mar 2017 20:09:33 +0000 (16:09 -0400)] 
double-check OID tests

9 years agoprint parent name, too
Alan T. DeKok [Tue, 28 Mar 2017 20:09:28 +0000 (16:09 -0400)] 
print parent name, too

9 years agoremove "auto_converted" flag from templates.
Alan T. DeKok [Tue, 28 Mar 2017 20:01:06 +0000 (16:01 -0400)] 
remove "auto_converted" flag from templates.

Only the compiler should auto-convert things, and then only
if the LHS / RHS match in data type, and in parsing of that
data type

9 years agomap_cast_from_hex() does not produce error messages
Alan T. DeKok [Tue, 28 Mar 2017 15:17:24 +0000 (11:17 -0400)] 
map_cast_from_hex() does not produce error messages

9 years agomore cisco VPN attributes
Alan T. DeKok [Mon, 27 Mar 2017 18:07:32 +0000 (14:07 -0400)] 
more cisco VPN attributes

9 years agoMerge pull request #1950 from prtrx/v4.0.x
Alan DeKok [Mon, 27 Mar 2017 15:38:23 +0000 (11:38 -0400)] 
Merge pull request #1950 from prtrx/v4.0.x

Add Attribute 3076/85 (CVPN3000-Tunnel-Group-Lock)

9 years agodisable LEAP by default. It's insecure, and no one should use it.
Alan T. DeKok [Mon, 27 Mar 2017 15:16:06 +0000 (11:16 -0400)] 
disable LEAP by default.  It's insecure, and no one should use it.

9 years agoremove inner-tunnel from EAP-PWD
Alan T. DeKok [Mon, 27 Mar 2017 15:15:51 +0000 (11:15 -0400)] 
remove inner-tunnel from EAP-PWD

9 years agoAdd Attribute 3076/85 (CVPN3000-Tunnel-Group-Lock) 1950/head
Florian Bauhaus [Mon, 27 Mar 2017 07:47:13 +0000 (09:47 +0200)] 
Add Attribute 3076/85 (CVPN3000-Tunnel-Group-Lock)

http://www.cisco.com/c/en/us/support/docs/security/ios-easy-vpn/117634-configure-asa-00.html

9 years agoAdd IP address to failure messages in redis IPpool
Arran Cudbard-Bell [Tue, 21 Mar 2017 16:09:19 +0000 (12:09 -0400)] 
Add IP address to failure messages in redis IPpool

9 years agoremove cistron compatibility mode
Alan T. DeKok [Mon, 20 Mar 2017 21:18:00 +0000 (17:18 -0400)] 
remove cistron compatibility mode

9 years agoremove unused map function
Alan T. DeKok [Mon, 20 Mar 2017 20:15:02 +0000 (16:15 -0400)] 
remove unused map function

9 years agoPackage rlm_dict.so
Arran Cudbard-Bell [Mon, 20 Mar 2017 00:36:40 +0000 (20:36 -0400)] 
Package rlm_dict.so

9 years agoWe use num instead of number elsewhere
Arran Cudbard-Bell [Mon, 20 Mar 2017 00:22:29 +0000 (20:22 -0400)] 
We use num instead of number elsewhere

9 years agoAdd attr_by_number to convert attribute numbers to names
Arran Cudbard-Bell [Mon, 20 Mar 2017 00:18:19 +0000 (20:18 -0400)] 
Add attr_by_number to convert attribute numbers to names

9 years agoWe don't return any attributes
Arran Cudbard-Bell [Sun, 19 Mar 2017 21:23:13 +0000 (17:23 -0400)] 
We don't return any attributes

9 years agoMap return codes don't work currently
Arran Cudbard-Bell [Sun, 19 Mar 2017 19:28:55 +0000 (15:28 -0400)] 
Map return codes don't work currently

9 years agoTypo
Arran Cudbard-Bell [Sun, 19 Mar 2017 17:44:36 +0000 (13:44 -0400)] 
Typo

9 years agoAdd some basic LDAP map tests
Arran Cudbard-Bell [Sun, 19 Mar 2017 17:34:00 +0000 (13:34 -0400)] 
Add some basic LDAP map tests

9 years agoMerge pull request #1944 from bb-froggy/patch-1
Arran Cudbard-Bell [Thu, 16 Mar 2017 12:52:15 +0000 (08:52 -0400)] 
Merge pull request #1944 from bb-froggy/patch-1

typo in comment

9 years agotypo in comment 1944/head
bb-froggy [Thu, 16 Mar 2017 12:49:10 +0000 (13:49 +0100)] 
typo in comment

9 years agoRemoved outdated intro
Arran Cudbard-Bell [Wed, 15 Mar 2017 18:12:30 +0000 (14:12 -0400)] 
Removed outdated intro

9 years agoNotes on LDAP features
Arran Cudbard-Bell [Wed, 15 Mar 2017 14:00:27 +0000 (10:00 -0400)] 
Notes on LDAP features

9 years agofr_event_timer_insert returns -1 on error
Arran Cudbard-Bell [Wed, 15 Mar 2017 02:48:03 +0000 (22:48 -0400)] 
fr_event_timer_insert returns -1 on error

9 years agoTypo
Arran Cudbard-Bell [Wed, 15 Mar 2017 02:43:29 +0000 (22:43 -0400)] 
Typo

9 years agoUse the time graciously provided to us by the event loop in sd_watchdog_event
Arran Cudbard-Bell [Wed, 15 Mar 2017 02:38:05 +0000 (22:38 -0400)] 
Use the time graciously provided to us by the event loop in sd_watchdog_event

9 years agoPass in a real fr_event_t * to fr_insert_event in the sd_watchdog_event timer function
Arran Cudbard-Bell [Wed, 15 Mar 2017 02:31:36 +0000 (22:31 -0400)] 
Pass in a real fr_event_t * to fr_insert_event in the sd_watchdog_event timer function

I guess no one actually bothered testing the code before submitting it?

9 years agoNeed it in the debian packages too
Arran Cudbard-Bell [Wed, 15 Mar 2017 02:08:01 +0000 (22:08 -0400)] 
Need it in the debian packages too

9 years agos/libsystemd-devel/systemd-devel/
Arran Cudbard-Bell [Wed, 15 Mar 2017 02:04:14 +0000 (22:04 -0400)] 
s/libsystemd-devel/systemd-devel/

9 years agoSpec files needs libsystemd-devel, so it can build with systemd support
Arran Cudbard-Bell [Wed, 15 Mar 2017 02:02:12 +0000 (22:02 -0400)] 
Spec files needs libsystemd-devel, so it can build with systemd support

Which is now used by the radiusd.service file.

9 years agoreturn RLM_MODULE_FAIL for default switch statement
Alan T. DeKok [Tue, 14 Mar 2017 23:38:25 +0000 (19:38 -0400)] 
return RLM_MODULE_FAIL for default switch statement

9 years agoRemove rlm_otp from freeradius.spec
Arran Cudbard-Bell [Tue, 14 Mar 2017 17:59:30 +0000 (13:59 -0400)] 
Remove rlm_otp from freeradius.spec

9 years agoStart the tedious work of splitting evaluation of config structures from parsing...
Arran Cudbard-Bell [Mon, 13 Mar 2017 20:12:36 +0000 (16:12 -0400)] 
Start the tedious work of splitting evaluation of config structures from parsing them

This should allow multiple front ends for getting config info.  There could be one which converts LDAP objects to CONF_SECTIONs and CONF_PAIRs for example.

The real reason for this however is to start teasing out evaluation of conditions and maps from parsing of the config files.  It needs to happen separately in a different phase to parsing, once we've discovered what protocol the virtual server is using.

Before the evaluation stage the server only needs to understand the basic grammar of sections (with and without arguments), and conf pairs.  Even a conditional statement is just a section with two arguments (one of which happens to be quoted with parenthesies).

9 years agoExtensions array may ne NULL
Arran Cudbard-Bell [Thu, 9 Mar 2017 04:08:03 +0000 (23:08 -0500)] 
Extensions array may ne NULL

9 years agoFix shadowed variable in tls/session.c
Arran Cudbard-Bell [Thu, 9 Mar 2017 03:27:35 +0000 (22:27 -0500)] 
Fix shadowed variable in tls/session.c

9 years agoRename and move some TLS functions
Arran Cudbard-Bell [Thu, 9 Mar 2017 03:27:21 +0000 (22:27 -0500)] 
Rename and move some TLS functions

9 years agoAdd support for the sever side sort extension to LDAP maps and xlats
Arran Cudbard-Bell [Thu, 9 Mar 2017 02:07:07 +0000 (21:07 -0500)] 
Add support for the sever side sort extension to LDAP maps and xlats

9 years agoadd and cache TLS-Client-Cert-Expiration-Time
Alan T. DeKok [Wed, 8 Mar 2017 22:28:24 +0000 (17:28 -0500)] 
add and cache TLS-Client-Cert-Expiration-Time

as an attribute of type 'date'.  Because duh... people don't
like parsing ASN1 dates

9 years agouse argument in print statement
Alan T. DeKok [Wed, 8 Mar 2017 22:27:35 +0000 (17:27 -0500)] 
use argument in print statement

9 years agorename and export tls_asn1time_to_epoch()
Alan T. DeKok [Wed, 8 Mar 2017 22:20:16 +0000 (17:20 -0500)] 
rename and export tls_asn1time_to_epoch()

9 years agoadd microsecond resolution to %T
Alan T. DeKok [Wed, 8 Mar 2017 21:41:15 +0000 (16:41 -0500)] 
add microsecond resolution to %T

9 years agoAdd fr_dict_by_da
Arran Cudbard-Bell [Wed, 8 Mar 2017 18:51:08 +0000 (13:51 -0500)] 
Add fr_dict_by_da

9 years agoLookups should take a const'd dictionary pointer
Arran Cudbard-Bell [Sun, 5 Mar 2017 15:21:37 +0000 (10:21 -0500)] 
Lookups should take a const'd dictionary pointer

9 years agoMake fr_dict_attr_by_type use a fr_dict_attr_t as the base attribute
Arran Cudbard-Bell [Tue, 7 Feb 2017 14:59:04 +0000 (14:59 +0000)] 
Make fr_dict_attr_by_type use a fr_dict_attr_t as the base attribute

9 years agoRevert "Add log_prefix back to messages. Closes #1930"
Arran Cudbard-Bell [Tue, 7 Mar 2017 22:29:52 +0000 (17:29 -0500)] 
Revert "Add log_prefix back to messages.  Closes #1930"

This reverts commit db52e47be7c151592459b2ebb1fb3fa4cf1f1636.

9 years agoFix use of mktime in ocsp code
Arran Cudbard-Bell [Tue, 7 Mar 2017 22:29:35 +0000 (17:29 -0500)] 
Fix use of mktime in ocsp code

mktime may have subtracted the offset of the local timezone from the ASN1_TIME value.

9 years agoAdd log_prefix back to messages. Closes #1930
Alan T. DeKok [Tue, 7 Mar 2017 20:25:36 +0000 (15:25 -0500)] 
Add log_prefix back to messages.  Closes #1930

No idea why it was disappeared in the first place...

9 years agoremove smsotp
Alan T. DeKok [Mon, 6 Mar 2017 18:04:29 +0000 (13:04 -0500)] 
remove smsotp

I don't think anyone uses it, and a more standard API should
be used instead

9 years agodelete the config, too
Alan T. DeKok [Mon, 6 Mar 2017 18:00:54 +0000 (13:00 -0500)] 
delete the config, too

9 years agoI don't think anyone uses this any more
Alan T. DeKok [Mon, 6 Mar 2017 17:59:03 +0000 (12:59 -0500)] 
I don't think anyone uses this any more

9 years agomessage idle->alive state
Alan T. DeKok [Sat, 4 Mar 2017 03:10:53 +0000 (22:10 -0500)] 
message idle->alive state

9 years agoSwitch to linked lists for dl callbacks
Arran Cudbard-Bell [Sat, 4 Mar 2017 14:17:06 +0000 (09:17 -0500)] 
Switch to linked lists for dl callbacks

Annoyingly we do need to retain registration order

9 years agotypo
Arran Cudbard-Bell [Thu, 2 Mar 2017 20:25:40 +0000 (15:25 -0500)] 
typo

9 years agoQuiet clang scan
Arran Cudbard-Bell [Thu, 2 Mar 2017 20:24:43 +0000 (15:24 -0500)] 
Quiet clang scan

9 years agoReturn 0 from fr_radius_encode_pair if there are no attributes to encode
Arran Cudbard-Bell [Sun, 12 Feb 2017 18:22:34 +0000 (18:22 +0000)] 
Return 0 from fr_radius_encode_pair if there are no attributes to encode

9 years agoBetter error message for non-structural type
Arran Cudbard-Bell [Sat, 11 Feb 2017 12:39:04 +0000 (12:39 +0000)] 
Better error message for non-structural type

9 years agoTypo in comparator
Arran Cudbard-Bell [Thu, 2 Mar 2017 20:00:26 +0000 (15:00 -0500)] 
Typo in comparator

9 years agoAdd load/unload callbacks when symbols are found in shared objects
Arran Cudbard-Bell [Thu, 2 Mar 2017 19:23:01 +0000 (14:23 -0500)] 
Add load/unload callbacks when symbols are found in shared objects