This macro is needed for other ldap-related code.
])
], $LDAP_LIBS)
- AC_DEFINE(USERDB_LDAP,, [Build with LDAP support])
- AC_DEFINE(PASSDB_LDAP,, [Build with LDAP support])
+ AC_DEFINE(HAVE_LDAP,, [Build with LDAP support])
AC_CHECK_HEADERS(sasl.h sasl/sasl.h)
], [
not_passdb="$not_passdb ldap"
#include "auth-common.h"
#include "passdb.h"
-#if defined(PASSDB_LDAP) && (defined(BUILTIN_LDAP) || defined(PLUGIN_BUILD))
+#if defined(HAVE_LDAP) && (defined(BUILTIN_LDAP) || defined(PLUGIN_BUILD))
#include "ioloop.h"
#include "array.h"
#include "auth-common.h"
#include "userdb.h"
-#if defined(USERDB_LDAP) && (defined(BUILTIN_LDAP) || defined(PLUGIN_BUILD))
+#if defined(HAVE_LDAP) && (defined(BUILTIN_LDAP) || defined(PLUGIN_BUILD))
#include "ioloop.h"
#include "array.h"
#ifdef PASSDB_BSDAUTH
" bsdauth"
#endif
-#ifdef PASSDB_LDAP
+#ifdef HAVE_LDAP
" ldap"
#endif
#ifdef PASSDB_PAM
" sql"
#endif
"\nUserdb:"
-#ifdef USERDB_LDAP
+#ifdef HAVE_LDAP
" ldap"
#ifndef BUILTIN_LDAP
"(plugin)"