]> 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:38 +0000 (09:42 +0100)
src/modules/rlm_ldap/rlm_ldap.c

index 784aa116df24661fe240c7270355d8068d002bbd..82a03c7d70b16ce46b8bc35051d35ed7522ebf8b 100644 (file)
@@ -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);