From 32c5e3b2040ddb10c45ab8e3a326f0d3d7a4c75c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 24 Aug 2011 13:52:09 +1000 Subject: s4-join: fixed DNS hostname we need the local hostname, not the remote name --- source4/scripting/python/samba/join.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/scripting/python/samba/join.py') diff --git a/source4/scripting/python/samba/join.py b/source4/scripting/python/samba/join.py index b423678448..3d81a296f7 100644 --- a/source4/scripting/python/samba/join.py +++ b/source4/scripting/python/samba/join.py @@ -102,7 +102,7 @@ class dc_join(object): ctx.dnsdomain = ctx.samdb.domain_dns_name() ctx.dnsforest = ctx.samdb.forest_dns_name() - ctx.dnshostname = ctx.samdb.host_dns_name() + ctx.dnshostname = "%s.%s" % (ctx.myname, ctx.dnsdomain) ctx.realm = ctx.dnsdomain lp.set("realm", ctx.realm) -- cgit