From 4775f9ab345072e63d671e83ae2c054fd2f80c3b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 23 Jan 2013 15:45:33 +0100 Subject: provision: setup names.name_map['DnsAdmins'] Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source4/scripting/python/samba/provision/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/scripting') 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 -- cgit