mirror of
https://github.com/samba-team/samba.git
synced 2025-07-23 20:59:10 +03:00
s4-join supply the NTDS GUID to the provision
Unlike other join operations, the creation of a subdomain makes local changes to the DB, so we need to pass in the NTDS GUID to ensure the one set on the object created in the parent domain is the one that is used. Andrew Bartlett
This commit is contained in:
@ -440,7 +440,7 @@ class dc_join(object):
|
||||
serverdn=ctx.server_dn, domain=ctx.domain_name,
|
||||
hostname=ctx.myname, domainsid=ctx.domsid,
|
||||
machinepass=ctx.acct_pass, serverrole="domain controller",
|
||||
sitename=ctx.site, lp=ctx.lp)
|
||||
sitename=ctx.site, lp=ctx.lp, ntdsguid=ctx.ntds_guid)
|
||||
print "Provision OK for domain DN %s" % presult.domaindn
|
||||
ctx.local_samdb = presult.samdb
|
||||
ctx.lp = presult.lp
|
||||
|
Reference in New Issue
Block a user