diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-01-23 15:39:07 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2013-01-27 20:14:21 +1100 |
commit | d00fb6aff2f54b470304d3d77a53328bcbb16851 (patch) | |
tree | 043d7ea89614afc51d8ea040f2633fa653ec52a9 | |
parent | 1207cbd123375f0ff1bfc51403af5d611a621091 (diff) | |
download | samba-d00fb6aff2f54b470304d3d77a53328bcbb16851.tar.gz samba-d00fb6aff2f54b470304d3d77a53328bcbb16851.tar.bz2 samba-d00fb6aff2f54b470304d3d77a53328bcbb16851.zip |
provision: add get_config_ntds_quotas_descriptor()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r-- | source4/scripting/python/samba/provision/__init__.py | 1 | ||||
-rw-r--r-- | source4/scripting/python/samba/provision/descriptor.py | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/provision/__init__.py b/source4/scripting/python/samba/provision/__init__.py index 100b841b0d..221b580c46 100644 --- a/source4/scripting/python/samba/provision/__init__.py +++ b/source4/scripting/python/samba/provision/__init__.py @@ -81,6 +81,7 @@ from samba.provision.descriptor import ( get_config_descriptor, get_config_partitions_descriptor, get_config_sites_descriptor, + get_config_ntds_quotas_descriptor, get_config_delete_protected1_descriptor, get_config_delete_protected1wd_descriptor, get_config_delete_protected2_descriptor, diff --git a/source4/scripting/python/samba/provision/descriptor.py b/source4/scripting/python/samba/provision/descriptor.py index 6b03d21ad2..dfb2a721e6 100644 --- a/source4/scripting/python/samba/provision/descriptor.py +++ b/source4/scripting/python/samba/provision/descriptor.py @@ -95,6 +95,13 @@ def get_config_sites_descriptor(domain_sid, name_map={}): "(OU;CIIOSA;WP;3e10944c-c354-11d0-aff8-0000f80367c1;b7b13124-b82e-11d0-afee-0000f80367c1;WD)" return sddl2binary(sddl, domain_sid, name_map) +def get_config_ntds_quotas_descriptor(domain_sid, name_map={}): + sddl = "D:" \ + "(A;;RPWPCRCCDCLCLORCWOWDSDDTSW;;;EA)" \ + "(A;;RPLCLORC;;;BA)" \ + "(OA;;CR;4ecc03fe-ffc0-4947-b630-eb672a8a9dbc;;WD)" + return sddl2binary(sddl, domain_sid, name_map) + def get_config_delete_protected1_descriptor(domain_sid, name_map={}): sddl = "D:AI" \ "(A;;RPLCLORC;;;AU)" \ |