python:samba: Remove code to change group
authorAndreas Schneider <asn@samba.org>
Fri, 11 Aug 2017 10:45:14 +0000 (12:45 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 5 Sep 2017 21:58:20 +0000 (23:58 +0200)
This is the wrong place, it will just prepare the ldif. The file is not
created here.

The code is corrently changing the group in:
    python/samba/provision/__init__.py

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlet <abartlet@samba.org>
python/samba/provision/sambadns.py

index 961f37e16a69ad15618930da54ae27dd3dea3889..dcb19c7053ce5366d103b49cefcf20cf6fbf2e70 100644 (file)
@@ -1199,16 +1199,6 @@ def setup_bind9_dns(samdb, secretsdb, names, paths, lp, logger,
                         dns_keytab_path=paths.dns_keytab, dnspass=dnspass,
                         key_version_number=key_version_number)
 
-    dns_keytab_path = os.path.join(paths.private_dir, paths.dns_keytab)
-    if os.path.isfile(dns_keytab_path) and paths.bind_gid is not None:
-        try:
-            os.chmod(dns_keytab_path, 0640)
-            os.chown(dns_keytab_path, -1, paths.bind_gid)
-        except OSError:
-            if not os.environ.has_key('SAMBA_SELFTEST'):
-                logger.info("Failed to chown %s to bind gid %u",
-                            dns_keytab_path, paths.bind_gid)
-
     create_dns_dir(logger, paths)
 
     if dns_backend == "BIND9_FLATFILE":