diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-01-23 15:45:33 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2013-01-27 20:14:21 +1100 |
commit | 4775f9ab345072e63d671e83ae2c054fd2f80c3b (patch) | |
tree | 4aaddd1f8efd13669d71a312f25f499ef62016ab /source4/scripting | |
parent | e0712a70f5a437eb60df3cebedbbe1c6c08bd6ae (diff) | |
download | samba-4775f9ab345072e63d671e83ae2c054fd2f80c3b.tar.gz samba-4775f9ab345072e63d671e83ae2c054fd2f80c3b.tar.bz2 samba-4775f9ab345072e63d671e83ae2c054fd2f80c3b.zip |
provision: setup names.name_map['DnsAdmins']
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/samba/provision/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/provision/__init__.py b/source4/scripting/python/samba/provision/__init__.py index d3b0744a4c..4aff6f68a0 100644 --- a/source4/scripting/python/samba/provision/__init__.py +++ b/source4/scripting/python/samba/provision/__init__.py @@ -103,6 +103,7 @@ from samba.provision.common import ( setup_modify_ldif, ) from samba.provision.sambadns import ( + get_dnsadmins_sid, setup_ad_dns, create_dns_update_list ) @@ -289,6 +290,10 @@ def find_provision_key_parameters(samdb, secretsdb, idmapdb, paths, smbconf, names.root_gid = res9[0]["xidNumber"][0] else: names.root_gid = pwd.getpwuid(int(res9[0]["xidNumber"][0])).pw_gid + + dns_admins_sid = get_dnsadmins_sid(samdb, names.domaindn) + names.name_map['DnsAdmins'] = str(dns_admins_sid) + return names |