]> granicus.if.org Git - apache/commitdiff
block setting debug level if AP_LDAP_OPT_DEBUG is not defined.
authorGuenter Knauf <fuankg@apache.org>
Sun, 29 Nov 2009 22:23:26 +0000 (22:23 +0000)
committerGuenter Knauf <fuankg@apache.org>
Sun, 29 Nov 2009 22:23:26 +0000 (22:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@885281 13f79535-47bb-0310-9956-ffa450edef68

modules/ldap/util_ldap.c

index e7d8a802f13c406582dae961e8cf63d8574f9996..ad16ed46dbd86848d0424fecdf4b156aedc86b89 100644 (file)
@@ -2656,6 +2656,7 @@ static int util_ldap_post_config(apr_pool_t *p, apr_pool_t *plog,
     /* Initialize the rebind callback's cross reference list. */
     apr_ldap_rebind_init (p);
 
+#ifdef AP_LDAP_OPT_DEBUG
     if (st->debug_level > 0) { 
         result = ldap_set_option(NULL, AP_LDAP_OPT_DEBUG, &st->debug_level);
         if (result != LDAP_SUCCESS) {
@@ -2664,6 +2665,7 @@ static int util_ldap_post_config(apr_pool_t *p, apr_pool_t *plog,
                     st->debug_level, result, ldap_err2string(result));
         }
     }
+#endif
 
     return(OK);
 }