join.py: Ensure we set the SID of the parent domain on the trust record
[obnox/samba/samba-obnox.git] / 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)