From 7916d64bbdbe0d7bc972611dc6d897ddbd746823 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Thu, 1 Mar 2012 16:29:15 -0800 Subject: [PATCH] s3: print a nice warning when HAVE_ADS is not enabled but you still try to do net rpc keytab vampire --- source3/utils/net_rpc_samsync.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source3/utils/net_rpc_samsync.c b/source3/utils/net_rpc_samsync.c index d6c0542bd64..772651f8b28 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 } } -- 2.34.1