summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-01-18 08:48:44 +0100
committerGünther Deschner <gd@samba.org>2008-01-18 08:50:33 +0100
commitdb40120c73f4d4cbb132f94cd3c5859fbdad0f5a (patch)
tree9d5dcec62920f3af3ed7ec7448bf429ca5b4735f
parent9dd8940e5f4d89da67b66fb1932a95cc6fda63a5 (diff)
downloadsamba-db40120c73f4d4cbb132f94cd3c5859fbdad0f5a.tar.gz
samba-db40120c73f4d4cbb132f94cd3c5859fbdad0f5a.tar.bz2
samba-db40120c73f4d4cbb132f94cd3c5859fbdad0f5a.zip
Fix the build w/o ADS.
Guenther (This used to be commit 645f2376d40fabdc787902ac7506ad7234616619)
-rw-r--r--source3/lib/netapi/joindomain.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/netapi/joindomain.c b/source3/lib/netapi/joindomain.c
index cbfc6c01e3..133aff3dd8 100644
--- a/source3/lib/netapi/joindomain.c
+++ b/source3/lib/netapi/joindomain.c
@@ -558,6 +558,7 @@ static WERROR NetGetJoinableOUsLocal(struct libnetapi_ctx *ctx,
uint32_t *ou_count,
const char ***ous)
{
+#ifdef WITH_ADS
NTSTATUS status;
ADS_STATUS ads_status;
ADS_STRUCT *ads = NULL;
@@ -608,6 +609,9 @@ static WERROR NetGetJoinableOUsLocal(struct libnetapi_ctx *ctx,
ads_destroy(&ads);
return WERR_OK;
+#else
+ return WERR_NOT_SUPPORTED;
+#endif
}
/****************************************************************