From b6eb50b0190d552982d24c766136fa1c0e400757 Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Tue, 17 Dec 2013 16:38:36 +0000 Subject: [PATCH] Log a warning when the LDAP authn provider is configured but an AuthLDAPURL 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 | 2 +- modules/aaa/mod_authnz_ldap.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/log-message-tags/next-number b/docs/log-message-tags/next-number index 45f69301fbc..12fda76f5d0 100644 --- a/docs/log-message-tags/next-number +++ b/docs/log-message-tags/next-number @@ -1 +1 @@ -2557 +2559 diff --git a/modules/aaa/mod_authnz_ldap.c b/modules/aaa/mod_authnz_ldap.c index 3cd0ddc8b80..4d3d48e008f 100644 --- a/modules/aaa/mod_authnz_ldap.c +++ b/modules/aaa/mod_authnz_ldap.c @@ -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; } -- 2.47.3