diff options
author | Petr Spacek <pspacek@redhat.com> | 2014-01-27 14:47:10 +0100 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-01-27 16:04:33 +0100 |
commit | c91936353865ecb03b06e2a558c370e6a50fa0dc (patch) | |
tree | ce106834a91aacf24ca343473eaf823a538ae898 /ipaserver | |
parent | 04627b72d6d6cbf3a9dadc614a532505e31957f5 (diff) | |
download | freeipa-c91936353865ecb03b06e2a558c370e6a50fa0dc.tar.gz freeipa-c91936353865ecb03b06e2a558c370e6a50fa0dc.tar.xz freeipa-c91936353865ecb03b06e2a558c370e6a50fa0dc.zip |
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
Diffstat (limited to 'ipaserver')
-rw-r--r-- | ipaserver/install/bindinstance.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/ipaserver/install/bindinstance.py b/ipaserver/install/bindinstance.py index beeb39de6..7c0085c6b 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) |