summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {