summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNadezhda Ivanova <nadezhda.ivanova@postpath.com>2009-09-18 17:48:26 -0700
committerNadezhda Ivanova <nadezhda.ivanova@postpath.com>2009-09-20 10:12:04 -0700
commit05653fce788d239433a93e68b71c1d280f02161a (patch)
tree3c99478d26b062a30aca0005db655b3e58c421a1
parent52650f109dd12545db78fb4345d70dc83273b10b (diff)
downloadsamba-05653fce788d239433a93e68b71c1d280f02161a.tar.gz
samba-05653fce788d239433a93e68b71c1d280f02161a.tar.bz2
samba-05653fce788d239433a93e68b71c1d280f02161a.zip
Fixed a difference in domain sid type when SID is provided by user.
-rw-r--r--source4/scripting/python/samba/provision.py5
1 files changed, 4 insertions, 1 deletions
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: