1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

s4:provision: add get_empty_descriptor()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Stefan Metzmacher 2012-11-22 14:09:34 +01:00 committed by Michael Adam
parent 7a3e4d04c7
commit 118db4ca11
2 changed files with 6 additions and 0 deletions

View File

@ -77,6 +77,7 @@ from samba.provision.backend import (
OpenLDAPBackend,
)
from samba.provision.descriptor import (
get_empty_descriptor,
get_config_descriptor,
get_domain_descriptor
)

View File

@ -31,6 +31,11 @@ from samba.ndr import ndr_pack
# Descriptors of naming contexts and other important objects
def get_empty_descriptor(domain_sid):
sddl= ""
sec = security.descriptor.from_sddl(sddl, domain_sid)
return ndr_pack(sec)
# "get_schema_descriptor" is located in "schema.py"
def get_config_descriptor(domain_sid):