From: Matthieu Patou Date: Fri, 2 Mar 2012 00:29:15 +0000 (-0800) Subject: s3: print a nice warning when HAVE_ADS is not enabled but you still try to do net... X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=commitdiff_plain;h=7916d64bbdbe0d7bc972611dc6d897ddbd746823 s3: print a nice warning when HAVE_ADS is not enabled but you still try to do net rpc keytab vampire --- 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 } }