summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2012-03-01 16:29:15 -0800
committerMatthieu Patou <mat@samba.org>2012-03-04 07:55:46 +0100
commit7916d64bbdbe0d7bc972611dc6d897ddbd746823 (patch)
tree49a6b3b6a34adaff06b3446d0c392d58b7a51a3a /source3
parent4a8d55cd7d27fcce6f4bedb6af48a7698a3be86e (diff)
downloadsamba-7916d64bbdbe0d7bc972611dc6d897ddbd746823.tar.gz
samba-7916d64bbdbe0d7bc972611dc6d897ddbd746823.tar.bz2
samba-7916d64bbdbe0d7bc972611dc6d897ddbd746823.zip
s3: print a nice warning when HAVE_ADS is not enabled but you still try to do net rpc keytab vampire
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_rpc_samsync.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/utils/net_rpc_samsync.c b/source3/utils/net_rpc_samsync.c
index d6c0542bd6..772651f8b2 100644
--- a/source3/utils/net_rpc_samsync.c
+++ b/source3/utils/net_rpc_samsync.c
@@ -614,6 +614,11 @@ int rpc_vampire_keytab(struct net_context *c, int argc, const char **argv)
ret = run_rpc_command(c, cli, &ndr_table_netlogon,
0,
rpc_vampire_keytab_internals, argc, argv);
+ } else {
+#ifndef HAVE_ADS
+ printf(_("Vampire requested against AD DC but ADS"
+ " support not built in: HAVE_ADS is not defined\n"));
+#endif
}
}