From c91936353865ecb03b06e2a558c370e6a50fa0dc Mon Sep 17 00:00:00 2001 From: Petr Spacek Date: Mon, 27 Jan 2014 14:47:10 +0100 Subject: Remove working directory for bind-dyndb-ldap plugin. The working directory will be provided directly by bind-dyndb-ldap package. This partially reverts commit 689382dc833e687d30349b10a8fd7dc740d54d08. https://fedorahosted.org/freeipa/ticket/3967 --- ipaserver/install/bindinstance.py | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'ipaserver/install/bindinstance.py') diff --git a/ipaserver/install/bindinstance.py b/ipaserver/install/bindinstance.py index beeb39de..7c0085c6 100644 --- a/ipaserver/install/bindinstance.py +++ b/ipaserver/install/bindinstance.py @@ -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) -- cgit