when we have no ads support we don't have the ads_get_sid_token symbol used in
this unused code :-)
this is the backport of
43c56dc4255a7a6cbd176e6ae66a7652c6d72d2c
Fix bug #8996 - build without ads support (e.g. plain solaris 8) broken.
const char *dn,
NT_USER_TOKEN **token)
{
+#ifdef HAVE_ADS
NT_USER_TOKEN *ad_token = NULL;
ADS_STATUS status;
#if _SAMBA_BUILD_ == 4
NTSTATUS ntstatus;
#endif
-#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;
}
#endif
return ADS_SUCCESS;
+#else
+ return ADS_ERROR_NT(NT_STATUS_NOT_SUPPORTED);
+#endif
}