Remove working directory for bind-dyndb-ldap plugin.

The working directory will be provided directly
by bind-dyndb-ldap package.

This partially reverts commit 689382dc83.

https://fedorahosted.org/freeipa/ticket/3967
This commit is contained in:
Petr Spacek authored and Petr Viktorin committed 2014-01-27 16:04:33 +01:00
1 parent 04627b72d6
commit c919363538
3 files changed
+1 -18

No files matched your search

-13
View File
@@ -22,7 +22,6 @@ import os
import pwd
import netaddr
import re
import errno
import ldap
@@ -510,16 +509,6 @@ class BindInstance(service.Service):
os.close(bind_fd)
print "Sample zone file for bind has been created in "+bind_name
def create_dir(self, path, mode):
try:
os.makedirs(path, mode)
except OSError as e:
if e.errno != errno.EEXIST:
raise e
pent = pwd.getpwnam(self.named_user or 'named')
os.chown(path, pent.pw_uid, pent.pw_gid)
def create_instance(self):
try:
@@ -530,8 +519,6 @@ class BindInstance(service.Service):
# get a connection to the DS
self.ldap_connect()
self.create_dir('/var/named/ipa', 0700)
if installutils.record_in_hosts(self.ip_address, self.fqdn) is None:
installutils.add_record_to_hosts(self.ip_address, self.fqdn)