summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-07-27 03:42:10 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-07-27 03:42:10 +0000
commit5ab880d684a3df5d8dee6066d31faad524de9c7f (patch)
treec163e2443dbc9fe73c063949acabe0f32e7f43d9
parent5b84b13a1e2f47fbd5ca710721cdb9b3f10727e1 (diff)
downloadsamba-5ab880d684a3df5d8dee6066d31faad524de9c7f.tar.gz
samba-5ab880d684a3df5d8dee6066d31faad524de9c7f.tar.bz2
samba-5ab880d684a3df5d8dee6066d31faad524de9c7f.zip
Use the specified workgroup in 'net ads'. (Defaults to lp_workgroup()).
Andrew Bartlett (This used to be commit e6cc5ca780f24f19dda65a499fda95bd2d99ea93)
-rw-r--r--source3/utils/net_ads.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index 69d282420d..edf5ec37c2 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -68,7 +68,7 @@ static int net_ads_lookup(int argc, const char **argv)
{
ADS_STRUCT *ads;
- ads = ads_init(NULL, NULL, opt_host);
+ ads = ads_init(NULL, opt_target_workgroup, opt_host);
if (ads) {
ads->auth.flags |= ADS_AUTH_NO_BIND;
}
@@ -89,7 +89,7 @@ static int net_ads_info(int argc, const char **argv)
{
ADS_STRUCT *ads;
- ads = ads_init(NULL, NULL, opt_host);
+ ads = ads_init(NULL, opt_target_workgroup, opt_host);
if (ads) {
ads->auth.flags |= ADS_AUTH_NO_BIND;
@@ -129,7 +129,7 @@ static ADS_STRUCT *ads_startup(void)
BOOL second_time = False;
char *cp;
- ads = ads_init(NULL, NULL, opt_host);
+ ads = ads_init(NULL, opt_target_workgroup, opt_host);
if (!opt_user_name) {
opt_user_name = "administrator";