From 6464bb0ae5d2cb774ccd5187f65a6ff83c051ed9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 20 Nov 2001 08:54:15 +0000 Subject: added the beginnings of ADS support in smbd (This used to be commit c7f611691941ca92f57665e19d6e46b161599427) --- source3/include/includes.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'source3/include/includes.h') 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 #endif +#if HAVE_LDAP +#include +#endif + +#if HAVE_SASL_H +#include +#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 -- cgit