From: Arran Cudbard-Bell Date: Mon, 15 Oct 2012 08:42:22 +0000 (+0100) Subject: Only print out user authorized message if the ldap module is actually being used... X-Git-Tag: release_3_0_0_beta1~1660^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a95de4c77d882c867522d5c913e713ebf312d65;p=thirdparty%2Ffreeradius-server.git Only print out user authorized message if the ldap module is actually being used for user authorization --- diff --git a/src/modules/rlm_ldap/rlm_ldap.c b/src/modules/rlm_ldap/rlm_ldap.c index 784aa116df2..82a03c7d70b 100644 --- a/src/modules/rlm_ldap/rlm_ldap.c +++ b/src/modules/rlm_ldap/rlm_ldap.c @@ -1776,8 +1776,9 @@ static int ldap_authorize(void *instance, REQUEST * request) RDEBUG("Setting Auth-Type = %s", inst->auth_type); } - RDEBUG("user %s authorized to use remote access", - request->username->vp_strvalue); + if (inst->access_attr) + RDEBUG("user %s authorized to use remote access", + request->username->vp_strvalue); ldap_msgfree(result); ldap_release_conn(conn_id,inst);