1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-14 12:59:07 +03:00

s4-join: fixed DNS hostname

we need the local hostname, not the remote name
This commit is contained in:
Andrew Tridgell
2011-08-24 13:52:09 +10:00
parent dea4f3941b
commit 32c5e3b204

View File

@ -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)