summaryrefslogtreecommitdiff
path: root/source4/scripting/python/samba/join.py
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-08-24 13:52:09 +1000
committerAndrew Tridgell <tridge@samba.org>2011-08-25 07:39:39 +1000
commit32c5e3b2040ddb10c45ab8e3a326f0d3d7a4c75c (patch)
tree56dc215dbfe856303e6cf6ce7652a0974d04193b /source4/scripting/python/samba/join.py
parentdea4f3941b9c4006cc16b949ef5b6657eb009e14 (diff)
downloadsamba-32c5e3b2040ddb10c45ab8e3a326f0d3d7a4c75c.tar.gz
samba-32c5e3b2040ddb10c45ab8e3a326f0d3d7a4c75c.tar.bz2
samba-32c5e3b2040ddb10c45ab8e3a326f0d3d7a4c75c.zip
s4-join: fixed DNS hostname
we need the local hostname, not the remote name
Diffstat (limited to 'source4/scripting/python/samba/join.py')
-rw-r--r--source4/scripting/python/samba/join.py2
1 files changed, 1 insertions, 1 deletions
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)