diff options
author | Andrew Bartlett <abartlet@samba.org> | 2014-08-22 14:16:30 +1200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-09-02 14:15:54 +0200 |
commit | b55a91e9d297c74602d6bd5ef6d2676cf1bfbc75 (patch) | |
tree | ba10ebd63d1e6dd6abe348783dd04a2abef2890a /python/samba/descriptor.py | |
parent | eee14f775e6f2075729d68fa9598dd99f9b9b05d (diff) | |
download | samba-b55a91e9d297c74602d6bd5ef6d2676cf1bfbc75.tar.gz samba-b55a91e9d297c74602d6bd5ef6d2676cf1bfbc75.tar.xz samba-b55a91e9d297c74602d6bd5ef6d2676cf1bfbc75.zip |
join.py: Set NT ACL on crossRef object for new partition
Change-Id: Icb1b00697cc5641481370ded26f2f0551a5b2a97
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Sep 2 14:15:54 CEST 2014 on sn-devel-104
Diffstat (limited to 'python/samba/descriptor.py')
-rw-r--r-- | python/samba/descriptor.py | 8 |
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 |