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_2_2_1~255 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f45bf937231d5a91db8b43a2e104af56ae3c7be9;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 885d25d1ecc..1b7d1b53bda 100644 --- a/src/modules/rlm_ldap/rlm_ldap.c +++ b/src/modules/rlm_ldap/rlm_ldap.c @@ -1811,8 +1811,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);