summaryrefslogtreecommitdiffstats
path: root/python/samba/descriptor.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/samba/descriptor.py')
-rw-r--r--python/samba/descriptor.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/python/samba/descriptor.py b/python/samba/descriptor.py
index 164b0bf254..86ea869b0e 100644
--- a/python/samba/descriptor.py
+++ b/python/samba/descriptor.py
@@ -361,6 +361,13 @@ def get_dns_domain_microsoft_dns_descriptor(domain_sid, name_map={}):
"(A;CI;RPWPCRCCDCLCRCWOWDSDDTSW;;;ED)"
return sddl2binary(sddl, domain_sid, name_map)
+def get_paritions_crossref_subdomain_descriptor(domain_sid, name_map={}):
+ sddl = "O:SubdomainAdminsG:SubdomainAdminsD:AI" \
+ "(A;;RPWPCRCCLCLORCWOWDSW;;;SubdomainAdmins)"
+ "(A;;RPLCLORC;;;AU)"
+ "(A;;RPWPCRCCDCLCLORCWOWDSDDTSW;;;SY)"
+ return sddl2binary(sddl, domain_sid, name_map)
+
def get_wellknown_sds(samdb):
# Then subcontainers
@@ -427,7 +434,6 @@ def get_wellknown_sds(samdb):
return subcontainers
-
def chunck_acl(acl):
"""Return separate ACE of an ACL