summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libads/kerberos_keytab.c4
-rw-r--r--source3/utils/net_ads.c2
-rwxr-xr-xsource3/wscript_build3
3 files changed, 6 insertions, 3 deletions
diff --git a/source3/libads/kerberos_keytab.c b/source3/libads/kerberos_keytab.c
index 721a8c6f53..6e1b7c08fe 100644
--- a/source3/libads/kerberos_keytab.c
+++ b/source3/libads/kerberos_keytab.c
@@ -250,6 +250,8 @@ out:
return (int)ret;
}
+#ifdef HAVE_ADS
+
/**********************************************************************
Adds a single service principal, i.e. 'host' to the system keytab
***********************************************************************/
@@ -724,6 +726,8 @@ done:
return ret;
}
+#endif /* HAVE_ADS */
+
/**********************************************************************
List system keytab.
***********************************************************************/
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index ca5c1bffd7..4b4b0a8031 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -2862,4 +2862,4 @@ int net_ads(struct net_context *c, int argc, const char **argv)
return net_ads_noads();
}
-#endif /* WITH_ADS */
+#endif /* HAVE_ADS */
diff --git a/source3/wscript_build b/source3/wscript_build
index 0b924cad4d..b40939405a 100755
--- a/source3/wscript_build
+++ b/source3/wscript_build
@@ -829,8 +829,7 @@ bld.SAMBA3_LIBRARY('ads',
source=LIBADS_SRC,
deps='cli-ldap-common krb5 gssapi gssapi_krb5 ldap lber',
private_library=True,
- vars=locals(),
- enabled=bld.env.HAVE_ADS)
+ vars=locals())
bld.SAMBA3_SUBSYSTEM('LIBADS_SERVER',
source=LIBADS_SERVER_SRC,