summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-03-21 04:48:24 +0000
committerAndrew Tridgell <tridge@samba.org>2002-03-21 04:48:24 +0000
commit3fd8f2d6e8c50e62a5e4cd095abcb3da8063e708 (patch)
tree170a648529ef40e1d00c3373f54534b14e8d9b62 /source3
parentd3cc77901080dab5c33c0b45d8e0a9e2b4fc98a3 (diff)
downloadsamba-3fd8f2d6e8c50e62a5e4cd095abcb3da8063e708.tar.gz
samba-3fd8f2d6e8c50e62a5e4cd095abcb3da8063e708.tar.bz2
samba-3fd8f2d6e8c50e62a5e4cd095abcb3da8063e708.zip
make net ads info work with -S
(This used to be commit 57645fd85b7789d7807a5ffb5b2572c6d5f9e3de)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_ads.c9
1 files changed, 5 insertions, 4 deletions
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";