From 3fd8f2d6e8c50e62a5e4cd095abcb3da8063e708 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 21 Mar 2002 04:48:24 +0000 Subject: make net ads info work with -S (This used to be commit 57645fd85b7789d7807a5ffb5b2572c6d5f9e3de) --- source3/utils/net_ads.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'source3/utils') diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c index 54d8eccbd7..7981bedb7e 100644 --- a/source3/utils/net_ads.c +++ b/source3/utils/net_ads.c @@ -54,8 +54,9 @@ int net_ads_usage(int argc, const char **argv) static int net_ads_info(int argc, const char **argv) { ADS_STRUCT *ads; + extern char *opt_host; - ads = ads_init(NULL, NULL, NULL, NULL); + ads = ads_init(NULL, opt_host, NULL, NULL); ads_connect(ads); if (!ads) { @@ -81,10 +82,10 @@ static ADS_STRUCT *ads_startup(void) BOOL second_time = False; extern char *opt_password; extern char *opt_user_name; + extern char *opt_host; extern BOOL opt_user_specified; - - - ads = ads_init(NULL, NULL, NULL, NULL); + + ads = ads_init(NULL, opt_host, NULL, NULL); if (!opt_user_name) { opt_user_name = "administrator"; -- cgit