From 05653fce788d239433a93e68b71c1d280f02161a Mon Sep 17 00:00:00 2001 From: Nadezhda Ivanova Date: Fri, 18 Sep 2009 17:48:26 -0700 Subject: Fixed a difference in domain sid type when SID is provided by user. --- source4/scripting/python/samba/provision.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4/scripting/python') diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py index 50858b928b..fe11b94d67 100644 --- a/source4/scripting/python/samba/provision.py +++ b/source4/scripting/python/samba/provision.py @@ -1052,7 +1052,10 @@ def provision(setup_dir, message, session_info, return os.path.join(setup_dir, file) if domainsid is None: - domainsid = security.random_sid() + domainsid = security.random_sid() + else: + domainsid = security.dom_sid(domainsid) + # create/adapt the group policy GUIDs if policyguid is None: -- cgit