summaryrefslogtreecommitdiff
path: root/libgpo
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2012-06-13 19:28:06 +0200
committerBjoern Jacke <bj@sernet.de>2012-06-13 21:20:15 +0200
commit43c56dc4255a7a6cbd176e6ae66a7652c6d72d2c (patch)
tree14e67a27e1829260bc4e64bf49dc86b6cde8690f /libgpo
parente2747fc62c2acbab143c4971469e0a4fc36d8789 (diff)
downloadsamba-43c56dc4255a7a6cbd176e6ae66a7652c6d72d2c.tar.gz
samba-43c56dc4255a7a6cbd176e6ae66a7652c6d72d2c.tar.bz2
samba-43c56dc4255a7a6cbd176e6ae66a7652c6d72d2c.zip
s3: fix build without ads support
when we have no ads support we don't have the ads_get_sid_token symbol used in this unused code :-) Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Wed Jun 13 21:20:15 CEST 2012 on sn-devel-104
Diffstat (limited to 'libgpo')
-rw-r--r--libgpo/gpo_util.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libgpo/gpo_util.c b/libgpo/gpo_util.c
index ca529f8af6..cfb4512aef 100644
--- a/libgpo/gpo_util.c
+++ b/libgpo/gpo_util.c
@@ -838,13 +838,11 @@ ADS_STATUS gp_get_machine_token(ADS_STRUCT *ads,
const char *dn,
struct security_token **token)
{
+#ifdef HAVE_ADS
struct security_token *ad_token = NULL;
ADS_STATUS status;
NTSTATUS ntstatus;
-#ifndef HAVE_ADS
- return ADS_ERROR_NT(NT_STATUS_NOT_SUPPORTED);
-#endif
status = ads_get_sid_token(ads, mem_ctx, dn, &ad_token);
if (!ADS_ERR_OK(status)) {
return status;
@@ -855,4 +853,7 @@ ADS_STATUS gp_get_machine_token(ADS_STRUCT *ads,
return ADS_ERROR_NT(ntstatus);
}
return ADS_SUCCESS;
+#else
+ return ADS_ERROR_NT(NT_STATUS_NOT_SUPPORTED);
+#endif
}