1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

CVE-2018-14628: python:descriptor: add get_deletedobjects_descriptor()

samba-tool drs clone-dc-database was quite useful to find
the true value of nTSecurityDescriptor of the CN=Delete Objects
containers.

Only the auto inherited SACL is available via a ldap search.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13595

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Stefan Metzmacher 2016-01-29 23:30:59 +01:00
parent 6e862bd369
commit 3be190dcf7

View File

@ -55,6 +55,16 @@ def get_empty_descriptor(domain_sid, name_map=None):
# "get_schema_descriptor" is located in "schema.py"
def get_deletedobjects_descriptor(domain_sid, name_map=None):
if name_map is None:
name_map = {}
sddl = "O:SYG:SYD:PAI" \
"(A;;RPWPCCDCLCRCWOWDSDSW;;;SY)" \
"(A;;RPLC;;;BA)"
return sddl2binary(sddl, domain_sid, name_map)
def get_config_descriptor(domain_sid, name_map=None):
if name_map is None:
name_map = {}