summaryrefslogtreecommitdiff
path: root/source3/include/includes.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-11-20 08:54:15 +0000
committerAndrew Tridgell <tridge@samba.org>2001-11-20 08:54:15 +0000
commit6464bb0ae5d2cb774ccd5187f65a6ff83c051ed9 (patch)
tree870841ead9af4ffb6885c0ace99cd4b7fc401836 /source3/include/includes.h
parentb1a2ba890aec9463110513ba2ce7ed1e81537cce (diff)
downloadsamba-6464bb0ae5d2cb774ccd5187f65a6ff83c051ed9.tar.gz
samba-6464bb0ae5d2cb774ccd5187f65a6ff83c051ed9.tar.bz2
samba-6464bb0ae5d2cb774ccd5187f65a6ff83c051ed9.zip
added the beginnings of ADS support in smbd
(This used to be commit c7f611691941ca92f57665e19d6e46b161599427)
Diffstat (limited to 'source3/include/includes.h')
-rw-r--r--source3/include/includes.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 17c95eb6f7..8b61bc573c 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -381,6 +381,19 @@
#include <krb5.h>
#endif
+#if HAVE_LDAP
+#include <ldap.h>
+#endif
+
+#if HAVE_SASL_H
+#include <sasl.h>
+#endif
+
+/* we support ADS if we have krb5 and ldap libs */
+#if defined(HAVE_KRB5) && defined(HAVE_LDAP) && defined(HAVE_SASL_H)
+#define HAVE_ADS
+#endif
+
/*
* Define VOLATILE if needed.
*/
@@ -650,6 +663,7 @@ extern int errno;
#include "../tdb/tdb.h"
#include "../tdb/spinlock.h"
#include "talloc.h"
+#include "ads.h"
#include "interfaces.h"
#include "hash.h"
#include "trans2.h"
@@ -871,6 +885,14 @@ int rename(const char *zfrom, const char *zto);
time_t mktime(struct tm *t);
#endif
+#ifndef HAVE_STRLCPY
+size_t strlcpy(char *d, const char *s, size_t bufsize);
+#endif
+
+#ifndef HAVE_STRLCAT
+size_t strlcat(char *d, const char *s, size_t bufsize);
+#endif
+
#ifndef HAVE_FTRUNCATE
int ftruncate(int f,long l);
#endif