From 0edc1476b7c492cfda877bc2ac36df9d13e0abad Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 11 Aug 2014 11:46:51 +1200 Subject: [PATCH] join.py: Ensure we set the SID of the parent domain on the trust record Change-Id: Ifaf3f2d1240d983a48ee1874fdc9c266354f6754 Signed-off-by: Andrew Bartlett Reviewed-by: Stefan Metzmacher Reviewed-By: Jelmer Vernooij --- python/samba/join.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/samba/join.py b/python/samba/join.py index 59e4d5c1a5a..4b9fed066e6 100644 --- a/python/samba/join.py +++ b/python/samba/join.py @@ -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)