mirror of
https://github.com/samba-team/samba.git
synced 2025-07-16 20:59:12 +03:00
s4-join: fixed DNS hostname
we need the local hostname, not the remote name
This commit is contained in:
@ -102,7 +102,7 @@ class dc_join(object):
|
|||||||
|
|
||||||
ctx.dnsdomain = ctx.samdb.domain_dns_name()
|
ctx.dnsdomain = ctx.samdb.domain_dns_name()
|
||||||
ctx.dnsforest = ctx.samdb.forest_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
|
ctx.realm = ctx.dnsdomain
|
||||||
lp.set("realm", ctx.realm)
|
lp.set("realm", ctx.realm)
|
||||||
|
Reference in New Issue
Block a user