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:
parent
7a3e4d04c7
commit
118db4ca11
@ -77,6 +77,7 @@ from samba.provision.backend import (
|
||||
OpenLDAPBackend,
|
||||
)
|
||||
from samba.provision.descriptor import (
|
||||
get_empty_descriptor,
|
||||
get_config_descriptor,
|
||||
get_domain_descriptor
|
||||
)
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user