freeradius.git
7 years agoadded one more attribute
Alan T. DeKok [Sun, 7 May 2017 16:56:57 +0000 (12:56 -0400)]
added one more attribute

7 years agoupdate detail reader documentation
Matthew Newton [Fri, 28 Apr 2017 11:17:08 +0000 (12:17 +0100)]
update detail reader documentation

Closes #1973

7 years agoPatch from Jeff Gehlbach
Alan T. DeKok [Fri, 21 Apr 2017 17:26:51 +0000 (13:26 -0400)]
Patch from Jeff Gehlbach

The problem is that "radiusObject" is defined with an OBJECT-IDENTITY
macro, but it needs to be done with OBJECT-TYPE (i.e. a leaf node) to be
eligible for use in the OBJECTS clause of a NOTIFICATION-TYPE macro.
I've gotten jsmiparser happy by making that change, declaring the
object's syntax to be SNMP-FRAMEWORK-MIB::SnmpAdminString and setting
its max-access to "accessible-for-notify". These changes are reflected
in the attached version of the MIB definition.

7 years agoMerge pull request #1964 from alanbuxey/v3.0.x
Arran Cudbard-Bell [Thu, 20 Apr 2017 21:44:25 +0000 (17:44 -0400)]
Merge pull request #1964 from alanbuxey/v3.0.x

stop rotation of the session database files

7 years agostop rotation of the session database files
Alan Buxey [Thu, 20 Apr 2017 21:33:33 +0000 (22:33 +0100)]
stop rotation of the session database files

you really don't want to be rotating these under the server - they are
not normal log files but are stateful session files (used by various
utilities). these were removed from the logrotate some time ago but
appear to have crept back in.

7 years agoterminate && check VP
Alan T. DeKok [Wed, 19 Apr 2017 18:42:34 +0000 (14:42 -0400)]
terminate && check VP

7 years agoaccount for trailing zero. Closes #1960
Alan T. DeKok [Wed, 19 Apr 2017 13:20:11 +0000 (09:20 -0400)]
account for trailing zero.  Closes #1960

7 years agoRevert "these messages don't need to go to the main radiusd.log"
Alan T. DeKok [Tue, 18 Apr 2017 15:31:10 +0000 (11:31 -0400)]
Revert "these messages don't need to go to the main radiusd.log"

This reverts commit 1f1a02baae35080b4037af88c709ef6c0ccdd2d7.

7 years agonote recent changes
Alan T. DeKok [Tue, 18 Apr 2017 13:42:53 +0000 (09:42 -0400)]
note recent changes

7 years agothese messages don't need to go to the main radiusd.log
Alan T. DeKok [Tue, 18 Apr 2017 13:33:50 +0000 (09:33 -0400)]
these messages don't need to go to the main radiusd.log

7 years agoMerge pull request #1961 from alanbuxey/patch-8
Alan DeKok [Thu, 13 Apr 2017 16:33:44 +0000 (12:33 -0400)]
Merge pull request #1961 from alanbuxey/patch-8

corrected some types and grammar in comments

7 years agocorrected some types and grammar in comments
Alan Buxey [Thu, 13 Apr 2017 14:11:53 +0000 (15:11 +0100)]
corrected some types and grammar in comments

7 years agoDon't crash on unexpected regex. Closes #1959
Alan T. DeKok [Fri, 7 Apr 2017 01:18:27 +0000 (21:18 -0400)]
Don't crash on unexpected regex.  Closes #1959

7 years agocheck for request->packet. Closes #1935
Alan T. DeKok [Fri, 31 Mar 2017 13:56:35 +0000 (09:56 -0400)]
check for request->packet.  Closes #1935

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

7 years agonote recent changes
Alan T. DeKok [Fri, 31 Mar 2017 01:08:53 +0000 (21:08 -0400)]
note recent changes

7 years agothese attributes are byte, not integer. Closes #1954
Alan T. DeKok [Fri, 31 Mar 2017 01:07:07 +0000 (21:07 -0400)]
these attributes are byte, not integer.  Closes #1954

7 years agostart of peapv1
Alan T. DeKok [Wed, 29 Mar 2017 15:30:48 +0000 (11:30 -0400)]
start of peapv1

7 years agoMerge pull request #1952 from spbnick/rlm_ldap_segfault_fix
Alan DeKok [Wed, 29 Mar 2017 14:56:20 +0000 (10:56 -0400)]
Merge pull request #1952 from spbnick/rlm_ldap_segfault_fix

Handle connection error in rlm_ldap_cacheable_groupobj

7 years agoAllow utc. Patch from Peter Lambrechtsen
Alan T. DeKok [Wed, 29 Mar 2017 14:54:07 +0000 (10:54 -0400)]
Allow utc.  Patch from Peter Lambrechtsen

7 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

7 years agocf_log_err(), not fr_strerror_printf()
Alan T. DeKok [Tue, 28 Mar 2017 19:43:38 +0000 (15:43 -0400)]
cf_log_err(), not fr_strerror_printf()

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

7 years agonote recent changes
Alan T. DeKok [Mon, 27 Mar 2017 19:49:34 +0000 (15:49 -0400)]
note recent changes

7 years agore-add SSL wrappers for freeing VPs and Certs.
Alan T. DeKok [Mon, 27 Mar 2017 19:48:49 +0000 (15:48 -0400)]
re-add SSL wrappers for freeing VPs and Certs.

because OpenSSL caches things at it's own pleasure...

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

7 years agoAdd Attribute 3076/85 (CVPN3000-Tunnel-Group-Lock)
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

7 years agonote recent changes
Alan T. DeKok [Mon, 20 Mar 2017 15:58:33 +0000 (11:58 -0400)]
note recent changes

7 years agoSearch from the beginning for altname. Closes #1946
Alan T. DeKok [Mon, 20 Mar 2017 15:24:11 +0000 (11:24 -0400)]
Search from the beginning for altname.  Closes #1946

7 years agoAllow no cert when psk is configured
Alan T. DeKok [Fri, 17 Mar 2017 14:14:21 +0000 (10:14 -0400)]
Allow no cert when psk is configured

7 years agoremove outdated link
Alan T. DeKok [Thu, 16 Mar 2017 14:25:47 +0000 (10:25 -0400)]
remove outdated link

7 years agoEnsure that error is always initialized
Alan T. DeKok [Tue, 14 Mar 2017 23:44:43 +0000 (19:44 -0400)]
Ensure that error is always initialized

7 years agoRemove always-false condition from cf_item_parse
Alan T. DeKok [Tue, 14 Mar 2017 23:41:13 +0000 (19:41 -0400)]
Remove always-false condition from cf_item_parse

7 years agoRemove always-false condition in rlm_eap_fast
Alan T. DeKok [Tue, 14 Mar 2017 23:40:20 +0000 (19:40 -0400)]
Remove always-false condition in rlm_eap_fast

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

7 years agoclose open FDs on error, and use error path in more situations
Alan T. DeKok [Tue, 14 Mar 2017 23:30:02 +0000 (19:30 -0400)]
close open FDs on error, and use error path in more situations

7 years agoremove unused variable
Alan T. DeKok [Tue, 14 Mar 2017 23:27:02 +0000 (19:27 -0400)]
remove unused variable

7 years agoMerge pull request #1941 from spbnick/openssl_1_1_cert_perms_fix
Alan DeKok [Tue, 14 Mar 2017 23:14:11 +0000 (19:14 -0400)]
Merge pull request #1941 from spbnick/openssl_1_1_cert_perms_fix

Relax OpenSSL permissions for default key files

7 years agoRelax OpenSSL permissions for default key files
Nikolai Kondrashov [Tue, 14 Mar 2017 12:55:57 +0000 (14:55 +0200)]
Relax OpenSSL permissions for default key files

Recent versions of OpenSSL appear to create keys with owner-only
permissions. Allow owning group to read the created default key files
in raddb/certs, so that they stay the same as with older OpenSSL, and
that the server can read its key.

7 years agoport ranges haven't been supported for years
Alan T. DeKok [Sat, 11 Mar 2017 15:50:05 +0000 (10:50 -0500)]
port ranges haven't been supported for years

7 years agorequest->packet cannot be NULL. Helps with #1935
Alan T. DeKok [Fri, 10 Mar 2017 14:14:45 +0000 (09:14 -0500)]
request->packet cannot be NULL. Helps with #1935

7 years agoAllo session resumption for RadSec connectins. Closes #1936
Alan T. DeKok [Fri, 10 Mar 2017 14:13:34 +0000 (09:13 -0500)]
Allo session resumption for RadSec connectins.  Closes #1936

7 years agoCoverity. Closes #1937
Alan T. DeKok [Fri, 10 Mar 2017 14:11:03 +0000 (09:11 -0500)]
Coverity.  Closes #1937

7 years agomore checks for client certificate expiration
Alan T. DeKok [Wed, 8 Mar 2017 22:12:24 +0000 (17:12 -0500)]
more checks for client certificate expiration

7 years agoRemove microseconds from %S. Closes #1934
Alan T. DeKok [Wed, 8 Mar 2017 14:22:47 +0000 (09:22 -0500)]
Remove microseconds from %S.  Closes #1934

7 years agonote recent changes
Alan T. DeKok [Tue, 7 Mar 2017 18:51:59 +0000 (13:51 -0500)]
note recent changes

7 years agoenforce TLS client certificate expiration on session resumption.
Alan T. DeKok [Tue, 7 Mar 2017 18:50:09 +0000 (13:50 -0500)]
enforce TLS client certificate expiration on session resumption.

7 years agoMerge pull request #1933 from spaetow/patch-1
Alan DeKok [Tue, 7 Mar 2017 18:18:11 +0000 (13:18 -0500)]
Merge pull request #1933 from spaetow/patch-1

Add enhanced checks to avoid targeted_id_salt leakage over %, {, and } in the salt

7 years agoUpdate moonshot-targeted-ids
Stefan Paetow [Tue, 7 Mar 2017 17:01:11 +0000 (17:01 +0000)]
Update moonshot-targeted-ids

7 years agoMerge pull request #1931 from sjbronner/patch-1
Alan DeKok [Tue, 7 Mar 2017 15:33:48 +0000 (10:33 -0500)]
Merge pull request #1931 from sjbronner/patch-1

Fix command for linking modules in mods-enabled.

7 years agobump for 3.0.14
Alan T. DeKok [Tue, 7 Mar 2017 14:24:23 +0000 (09:24 -0500)]
bump for 3.0.14

7 years agoradtest should use Cleartext-Password for EAP
Alan T. DeKok [Tue, 7 Mar 2017 14:22:10 +0000 (09:22 -0500)]
radtest should use Cleartext-Password for EAP

7 years agoFix command for linking modules in mods-enabled.
Sebastian J. Bronner [Tue, 7 Mar 2017 09:07:49 +0000 (10:07 +0100)]
Fix command for linking modules in mods-enabled.

Running `ln -s mods-available/foo mods-enabled/foo` will result in a dead link: `mods-enabled/foo` will point to `mods-enabled/mods-available/foo`, which doesn't exist. The link is relative from its location, not from the current directory from which it was created.

The easiest method that allows using tab completion is to link from within `mods-enabled`. The second parameter to `ln` can be left off in that case, as well. This is the change I have proposed. Another alternative would be to run `ln -s ../mods-available/foo mods-enabled/foo` from the `raddb` directory.

7 years agonote recent changes release_3_0_13
Alan T. DeKok [Mon, 6 Mar 2017 13:58:04 +0000 (08:58 -0500)]
note recent changes

7 years agoadd missing \n
Alan T. DeKok [Mon, 6 Mar 2017 12:31:08 +0000 (07:31 -0500)]
add missing \n

7 years agonote recent changes
Alan T. DeKok [Sun, 5 Mar 2017 15:51:54 +0000 (10:51 -0500)]
note recent changes

7 years agoprint summary if asked to do summary. Even without -x
Alan T. DeKok [Sun, 5 Mar 2017 13:51:27 +0000 (08:51 -0500)]
print summary if asked to do summary.  Even without -x

7 years agofr_log_fp ,ay be NULL. Closes #1926
Alan T. DeKok [Fri, 3 Mar 2017 14:32:49 +0000 (09:32 -0500)]
fr_log_fp ,ay be NULL.  Closes #1926

7 years agorely on talloc for certs, too
Alan T. DeKok [Fri, 3 Mar 2017 14:22:10 +0000 (09:22 -0500)]
rely on talloc for certs, too

7 years agoDon't double free VPs. Fixes #1927
Alan T. DeKok [Fri, 3 Mar 2017 14:20:20 +0000 (09:20 -0500)]
Don't double free VPs.  Fixes #1927

7 years agodocument IPv6 addresses
Alan T. DeKok [Tue, 28 Feb 2017 18:23:26 +0000 (13:23 -0500)]
document IPv6 addresses

7 years agoquiet compiler
Alan T. DeKok [Tue, 28 Feb 2017 18:11:31 +0000 (13:11 -0500)]
quiet compiler

7 years agoFix buffer overflow in fr_pton_port
Nikolai Kondrashov [Tue, 28 Feb 2017 17:39:45 +0000 (18:39 +0100)]
Fix buffer overflow in fr_pton_port

7 years agonote recent changes
Alan T. DeKok [Mon, 27 Feb 2017 19:23:40 +0000 (14:23 -0500)]
note recent changes

7 years agoMerge pull request #1592 from spbnick/dlopen_actual_libpython
Alan DeKok [Mon, 27 Feb 2017 18:42:04 +0000 (13:42 -0500)]
Merge pull request #1592 from spbnick/dlopen_actual_libpython

Dlopen the actual linked libpython

7 years agoDocument python_path and gotchas. Addresses #1845
Alan T. DeKok [Mon, 27 Feb 2017 18:31:31 +0000 (13:31 -0500)]
Document python_path and gotchas.  Addresses #1845

7 years agoadd modules.sql.fail trigger. Fixes #1923
Alan T. DeKok [Fri, 24 Feb 2017 16:51:40 +0000 (11:51 -0500)]
add modules.sql.fail trigger.  Fixes #1923

The connection pool knows when connections are opened / closed.
It doesn't know as much when a connection fails

7 years agomod_conn_create should not be global
Alan T. DeKok [Fri, 24 Feb 2017 16:49:41 +0000 (11:49 -0500)]
mod_conn_create should not be global

7 years agoset talloc ctx to handler
Alan T. DeKok [Fri, 24 Feb 2017 15:58:11 +0000 (10:58 -0500)]
set talloc ctx to handler

7 years agoset talloc parent to sock for thread safety
Alan T. DeKok [Fri, 24 Feb 2017 15:58:00 +0000 (10:58 -0500)]
set talloc parent to sock for thread safety

7 years agorecursive recursion is bad
Alan T. DeKok [Fri, 24 Feb 2017 15:55:20 +0000 (10:55 -0500)]
recursive recursion is bad

7 years agofmt may be NULL. Fixes #1922
Alan T. DeKok [Fri, 24 Feb 2017 13:11:07 +0000 (08:11 -0500)]
fmt may be NULL.  Fixes #1922

7 years agoadd usec resolution to %S. Fixes #1917
Alan T. DeKok [Wed, 22 Feb 2017 20:00:33 +0000 (15:00 -0500)]
add usec resolution to %S.  Fixes #1917

7 years agotypo
Alan T. DeKok [Wed, 22 Feb 2017 16:00:49 +0000 (11:00 -0500)]
typo

7 years agobetter documentation for ipaddr & friends. Fixes #1921
Alan T. DeKok [Wed, 22 Feb 2017 15:48:51 +0000 (10:48 -0500)]
better documentation for ipaddr & friends.  Fixes #1921

7 years agoMerge pull request #1920 from spbnick/auth_type_system_removal
Alan DeKok [Wed, 22 Feb 2017 14:37:33 +0000 (09:37 -0500)]
Merge pull request #1920 from spbnick/auth_type_system_removal

Remove mentions of Auth-Type = System from docs

7 years agoRemove mentions of Auth-Type = System from docs
Nikolai Kondrashov [Wed, 22 Feb 2017 12:36:05 +0000 (13:36 +0100)]
Remove mentions of Auth-Type = System from docs

Remove mentions of "Auth-Type = System" support from the manpages,
as it is removed.

7 years agoMerge pull request #1919 from spbnick/fr_pton4_hostname_fix
Arran Cudbard-Bell [Tue, 21 Feb 2017 14:50:01 +0000 (14:50 +0000)]
Merge pull request #1919 from spbnick/fr_pton4_hostname_fix

Handle hostnames in fr_pton4/6

7 years agoHandle hostnames in fr_pton4/6
Nikolai Kondrashov [Fri, 17 Feb 2017 15:16:42 +0000 (16:16 +0100)]
Handle hostnames in fr_pton4/6

Make fr_pton4/6 handle hostnames longer than the longest address +
prefix.

7 years agoMerge pull request #1916 from spbnick/v3.0.x_openssl_1.1_fix_2
Alan DeKok [Tue, 21 Feb 2017 01:52:40 +0000 (20:52 -0500)]
Merge pull request #1916 from spbnick/v3.0.x_openssl_1.1_fix_2

V3.0.x openssl 1.1 fix 2

7 years agoCheck for EVP_CIPHER_CTX_new in rlm_eap_pwd
Nikolai Kondrashov [Mon, 20 Feb 2017 13:40:52 +0000 (14:40 +0100)]
Check for EVP_CIPHER_CTX_new in rlm_eap_pwd

Switch to checking for EVP_CIPHER_CTX_new instead of EVP_cleanup to detect
presence of libcrypto in rlm_eap_pwd configure.ac, because EVP_cleanup was
removed as symbol from OpenSSL 1.1, and the check would always fail.

Previously only rlm_eap_fast configure.ac was switched.

7 years agoSwitch rlm_eap_pwd to HMAC_CTX_new/free
Nikolai Kondrashov [Mon, 20 Feb 2017 15:45:46 +0000 (16:45 +0100)]
Switch rlm_eap_pwd to HMAC_CTX_new/free

Switch rlm_eap_pwd.c to using HMAC_CTX_new and HMAC_CTX_free to
allocate/free HMAC contexts, thus making it support OpenSSL v1.1.0.

7 years agoUse openssl dhparam instead of obsolete gendh
Nikolai Kondrashov [Mon, 20 Feb 2017 13:26:57 +0000 (14:26 +0100)]
Use openssl dhparam instead of obsolete gendh

Use `openssl dhparam` command in raddb/certs/Makefile instead of the
obsolete (and removed in OpenSSL v1.1.0) `openssl gendh`.

7 years agoMerge pull request #1915 from spbnick/zero_char_pointer_compare_fix
Alan DeKok [Mon, 20 Feb 2017 13:36:00 +0000 (08:36 -0500)]
Merge pull request #1915 from spbnick/zero_char_pointer_compare_fix

Fix three cases of comparing pointer to zero char

7 years agoFix three cases of comparing pointer to zero char
Nikolai Kondrashov [Mon, 20 Feb 2017 13:04:06 +0000 (14:04 +0100)]
Fix three cases of comparing pointer to zero char

Fix three cases of comparing pointer to a zero character, where pointers
were apparently intended to be dereferenced first and then compared.
Found with the help of GCC 7 warnings.

7 years agoDictionary from cnergee.
Alan T. DeKok [Sat, 18 Feb 2017 17:11:05 +0000 (12:11 -0500)]
Dictionary from cnergee.

Which modifications so that the names don't conflict with
existing ones.

7 years agosuid down after fchown. Fixes #1914
Alan T. DeKok [Thu, 16 Feb 2017 15:59:22 +0000 (10:59 -0500)]
suid down after fchown.  Fixes #1914

7 years agoDlopen the actual linked libpython
Nikolai Kondrashov [Mon, 25 Apr 2016 15:58:53 +0000 (18:58 +0300)]
Dlopen the actual linked libpython

In rlm_python, if dl_iterate_phdr(3) is available, dlopen libpython
shared library at the actual path it was linked with on loading, instead
of with just its linker name (version-less SONAME).

This removes the need to have the linker name symlink (e.g.
"libpython2.7.so") in library directory, which is normally installed
only with the development packages. I.e. this removes the requirement of
having python-devel/libpython-dev installed, when loading rlm_python.

7 years agoAdded systemd reload. Fixes #1662
Alan T. DeKok [Wed, 15 Feb 2017 18:21:03 +0000 (13:21 -0500)]
Added systemd reload.  Fixes #1662

v3.0.x has limited support for reload.  While it limited, it
is possible.  So supporting it is useful

7 years agomake the install process a little clearer
Alan T. DeKok [Wed, 15 Feb 2017 15:57:33 +0000 (10:57 -0500)]
make the install process a little clearer

7 years agopull openssl out as a macro
Alan T. DeKok [Wed, 15 Feb 2017 15:52:40 +0000 (10:52 -0500)]
pull openssl out as a macro

7 years agoremove extra assert. Addresses #1904
Alan T. DeKok [Wed, 15 Feb 2017 15:41:08 +0000 (10:41 -0500)]
remove extra assert.  Addresses #1904

7 years agoMerge pull request #1859 from njm506/v3.0.x
Alan DeKok [Tue, 14 Feb 2017 13:26:51 +0000 (08:26 -0500)]
Merge pull request #1859 from njm506/v3.0.x

v3.0.x: cherry-pick module/site symlink packaging changes from 4.0.x

7 years agorealms don't go into "server" sections
Alan T. DeKok [Mon, 13 Feb 2017 20:53:35 +0000 (15:53 -0500)]
realms don't go into "server" sections

7 years agofix radrelay
Alexander Clouter [Mon, 13 Feb 2017 17:10:16 +0000 (17:10 +0000)]
fix radrelay

7 years agoMerge pull request #1907 from virgofx/v3.0.x
Alan DeKok [Sun, 12 Feb 2017 14:17:48 +0000 (09:17 -0500)]
Merge pull request #1907 from virgofx/v3.0.x

Nomadix attribute fix for v3.0.x

7 years agoUpdating Nomadix dictionary with missing attributes.
Mark Johnson [Thu, 9 Feb 2017 20:15:37 +0000 (12:15 -0800)]
Updating Nomadix dictionary with missing attributes.

7 years agoMerge pull request #1902 from herwinw/v30x-debian-stretch
Alan DeKok [Wed, 8 Feb 2017 14:53:33 +0000 (09:53 -0500)]
Merge pull request #1902 from herwinw/v30x-debian-stretch

Added default-libmysqlclient-dev as build-depend in Debian

7 years agoadd example for filtering Access-Challenge messages
Alan T. DeKok [Wed, 8 Feb 2017 14:52:11 +0000 (09:52 -0500)]
add example for filtering Access-Challenge messages

7 years agoAdded default-libmysqlclient-dev as build-depend in Debian
Herwin Weststrate [Wed, 8 Feb 2017 07:30:22 +0000 (08:30 +0100)]
Added default-libmysqlclient-dev as build-depend in Debian

As an alternative for libmysqlclient-dev. This is required to build the
package under Debian Stretch.