]> granicus.if.org Git - apache/commitdiff
Log a warning when the LDAP authn provider is configured but an AuthLDAPURL
authorEric Covener <covener@apache.org>
Tue, 17 Dec 2013 16:38:36 +0000 (16:38 +0000)
committerEric Covener <covener@apache.org>
Tue, 17 Dec 2013 16:38:36 +0000 (16:38 +0000)
isn't -- IOW, avoid silently skipping a misconfigured [or buggy?] LDAP provider.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1551611 13f79535-47bb-0310-9956-ffa450edef68

docs/log-message-tags/next-number
modules/aaa/mod_authnz_ldap.c

index 45f69301fbc0312bc7ba834f26c4669e304092ab..12fda76f5d0c5d4781a3e87b1aa4cf5df4479ce1 100644 (file)
@@ -1 +1 @@
-2557
+2559
index 3cd0ddc8b8012a44c6538b63b805aa56add058b0..4d3d48e008f685bd4074877506b3a400ed771b05 100644 (file)
@@ -490,6 +490,9 @@ static authn_status authn_ldap_check_password(request_rec *r, const char *user,
      * Basic sanity checks before any LDAP operations even happen.
      */
     if (!sec->have_ldap_url) {
+        ap_log_rerror(APLOG_MARK, APLOG_WARNING, 0, r, APLOGNO(02558) 
+                      "no AuthLDAPURL");
+
         return AUTH_GENERAL_ERROR;
     }