diff options
author | Nadezhda Ivanova <nadezhda.ivanova@postpath.com> | 2009-09-18 17:48:26 -0700 |
---|---|---|
committer | Nadezhda Ivanova <nadezhda.ivanova@postpath.com> | 2009-09-20 10:12:04 -0700 |
commit | 05653fce788d239433a93e68b71c1d280f02161a (patch) | |
tree | 3c99478d26b062a30aca0005db655b3e58c421a1 /source4/scripting | |
parent | 52650f109dd12545db78fb4345d70dc83273b10b (diff) | |
download | samba-05653fce788d239433a93e68b71c1d280f02161a.tar.gz samba-05653fce788d239433a93e68b71c1d280f02161a.tar.bz2 samba-05653fce788d239433a93e68b71c1d280f02161a.zip |
Fixed a difference in domain sid type when SID is provided by user.
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/samba/provision.py | 5 |
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: |