]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Only print out user authorized message if the ldap module is actually being used...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 15 Oct 2012 08:42:22 +0000 (09:42 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 15 Oct 2012 08:42:22 +0000 (09:42 +0100)
src/modules/rlm_ldap/rlm_ldap.c

index 885d25d1ecc2552531987a1d9ee473c888b0dae7..1b7d1b53bda54a8e456ca7774924ce9e6f8b4ef2 100644 (file)
@@ -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);