diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-08-24 13:52:09 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-08-25 07:39:39 +1000 |
commit | 32c5e3b2040ddb10c45ab8e3a326f0d3d7a4c75c (patch) | |
tree | 56dc215dbfe856303e6cf6ce7652a0974d04193b /source4 | |
parent | dea4f3941b9c4006cc16b949ef5b6657eb009e14 (diff) | |
download | samba-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')
-rw-r--r-- | source4/scripting/python/samba/join.py | 2 |
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) |