summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-07-31 01:44:37 +0000
committerAndrew Tridgell <tridge@samba.org>2002-07-31 01:44:37 +0000
commita5b6fbdf6086d0cf7772a2abde80a66739f26d11 (patch)
tree8dcfa9c7627547d4557aef1ca201db692b9f4a6d /source3
parent533839e75ef37e91adc3d3554825720caacc5117 (diff)
downloadsamba-a5b6fbdf6086d0cf7772a2abde80a66739f26d11.tar.gz
samba-a5b6fbdf6086d0cf7772a2abde80a66739f26d11.tar.bz2
samba-a5b6fbdf6086d0cf7772a2abde80a66739f26d11.zip
make sure that 'net ads info' gives info on the server we specify, not
our smb.conf setup. (This used to be commit cffa881092e48db10a712575a8671f695e8ef813)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_ads.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index a449395641..ef4de3d76f 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -59,6 +59,10 @@ static int net_ads_info(int argc, const char **argv)
ADS_STRUCT *ads;
ads = ads_init(NULL, NULL, opt_host, NULL, NULL);
+
+ /* we want this servers realm, not our realm */
+ SAFE_FREE(ads->realm);
+
ads_connect(ads);
if (!ads) {