Commit 0e4897e8 authored by Cliff Woolley's avatar Cliff Woolley
Browse files

Fail in a more sensible way when APR-util is missing its LDAP support


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95165 13f79535-47bb-0310-9956-ffa450edef68
parent 9a56b173
Loading
Loading
Loading
Loading
+4 −0
Changes for modules/experimental/mod_auth_ldap.c: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -78,6 +78,10 @@
#include "http_request.h"
#include "util_ldap.h"

#ifndef APU_HAS_LDAP
#error mod_auth_ldap requires APR-util to have LDAP support built in
#endif

/* per directory configuration */
typedef struct {
    apr_pool_t *pool;			/* Pool that this config is allocated from */
+4 −5
Changes for modules/experimental/util_ldap.c: 4 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -61,9 +61,6 @@
 */

#include <apr_ldap.h>

#ifdef APU_HAS_LDAP

#include <apr_strings.h>

#include "ap_config.h"
@@ -80,6 +77,10 @@
#include <unistd.h>
#endif

#ifndef APU_HAS_LDAP
#error mod_ldap requires APR-util to have LDAP support built in
#endif

module AP_MODULE_DECLARE_DATA ldap_module;

int util_ldap_handler(request_rec *r);
@@ -906,8 +907,6 @@ start_over:
    return LDAP_SUCCESS;
}

#endif /* APU_HAS_LDAP */



/* ---------------------------------------- */