join.py: Ensure we set the SID of the parent domain on the trust record
authorAndrew Bartlett <abartlet@samba.org>
Sun, 10 Aug 2014 23:46:51 +0000 (11:46 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 31 Aug 2014 22:36:42 +0000 (00:36 +0200)
Change-Id: Ifaf3f2d1240d983a48ee1874fdc9c266354f6754
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-By: Jelmer Vernooij <jelmer@samba.org>
python/samba/join.py

index 59e4d5c1a5ab74d18abe3d8739dfa060d8ecf86c..4b9fed066e6872752842538327d4af4ade3f617c 100644 (file)
@@ -1037,7 +1037,8 @@ class dc_join(object):
             "flatname" : ctx.forest_domain_name,
             "trustPartner" : ctx.dnsforest,
             "trustAuthIncoming" : ndr_pack(outgoing),
-            "trustAuthOutgoing" : ndr_pack(outgoing)
+            "trustAuthOutgoing" : ndr_pack(outgoing),
+            "securityIdentifier" : ndr_pack(ctx.forestsid)
             }
         ctx.local_samdb.add(rec)