summaryrefslogtreecommitdiff
path: root/source4/scripting/python/samba/ntacls.py
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-11-05 20:44:14 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-11-06 00:12:43 +0100
commitab30a8bf0fb9bd4ee3c907183132f3b9abb67c7a (patch)
treea207980788d14864f62b9f4805495912f857af19 /source4/scripting/python/samba/ntacls.py
parent033451587db21d6e4b829e89a64f894a32682131 (diff)
downloadsamba-ab30a8bf0fb9bd4ee3c907183132f3b9abb67c7a.tar.gz
samba-ab30a8bf0fb9bd4ee3c907183132f3b9abb67c7a.tar.bz2
samba-ab30a8bf0fb9bd4ee3c907183132f3b9abb67c7a.zip
provision: Make dsacl2fsacl() take a security.dom_sid, not str
Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Nov 6 00:12:43 CET 2012 on sn-devel-104
Diffstat (limited to 'source4/scripting/python/samba/ntacls.py')
-rw-r--r--source4/scripting/python/samba/ntacls.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/ntacls.py b/source4/scripting/python/samba/ntacls.py
index f3040472df..89d450a1f1 100644
--- a/source4/scripting/python/samba/ntacls.py
+++ b/source4/scripting/python/samba/ntacls.py
@@ -198,14 +198,13 @@ def ldapmask2filemask(ldm):
return filemask
-def dsacl2fsacl(dssddl, domsid):
+def dsacl2fsacl(dssddl, sid):
"""
This function takes an the SDDL representation of a DS
ACL and return the SDDL representation of this ACL adapted
for files. It's used for Policy object provision
"""
- sid = security.dom_sid(domsid)
ref = security.descriptor.from_sddl(dssddl, sid)
fdescr = security.descriptor()
fdescr.owner_sid = ref.owner_sid