From da484be31b5464a2afbbe2ac48c27c87435f7820 Mon Sep 17 00:00:00 2001 From: Bradley Nicholes Date: Tue, 6 Apr 2004 15:12:27 +0000 Subject: [PATCH] Make sure that if auth_ldap is loaded, mod_ldap is also loaded git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103281 13f79535-47bb-0310-9956-ffa450edef68 --- modules/experimental/mod_auth_ldap.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/experimental/mod_auth_ldap.c b/modules/experimental/mod_auth_ldap.c index e11b524889..cf8e14e75e 100644 --- a/modules/experimental/mod_auth_ldap.c +++ b/modules/experimental/mod_auth_ldap.c @@ -953,6 +953,15 @@ static int auth_ldap_post_config(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *pt } */ + /* make sure that mod_ldap (util_ldap) is loaded */ + if (ap_find_linked_module("util_ldap.c") == NULL) { + ap_log_error(APLOG_MARK, APLOG_ERR|APLOG_NOERRNO, 0, s, + "Module mod_ldap missing. Mod_ldap (aka. util_ldap) " + "must be loaded in order for mod_auth_ldap to function properly"); + return HTTP_INTERNAL_SERVER_ERROR; + + } + if (!charset_confname) { return OK; } -- 2.50.1