summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/config.h.in3
-rw-r--r--source3/include/includes.h9
2 files changed, 11 insertions, 1 deletions
diff --git a/source3/include/config.h.in b/source3/include/config.h.in
index 6280c793eb..92b726c45c 100644
--- a/source3/include/config.h.in
+++ b/source3/include/config.h.in
@@ -820,6 +820,9 @@
/* Define if you have the <history.h> header file. */
#undef HAVE_HISTORY_H
+/* Define if you have the <krb5.h> header file. */
+#undef HAVE_KRB5_H
+
/* Define if you have the <lastlog.h> header file. */
#undef HAVE_LASTLOG_H
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 0a3fd1f4c0..0ebc09b450 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -379,18 +379,25 @@
#if HAVE_KRB5_H
#include <krb5.h>
+#else
+#undef HAVE_KRB5
#endif
#if HAVE_LDAP_H
#include <ldap.h>
+#else
+#undef HAVE_LDAP
#endif
#if HAVE_SASL_H
#include <sasl.h>
+#else
+/* we must have sasl to use ldap */
+#undef HAVE_LDAP
#endif
/* we support ADS if we have krb5 and ldap libs */
-#if defined(HAVE_KRB5) && defined(HAVE_KRB5_H) && defined(HAVE_LDAP) && defined(HAVE_LDAP_H) && defined(HAVE_SASL_H)
+#if defined(HAVE_KRB5) && defined(HAVE_LDAP)
#define HAVE_ADS
#endif