Enable Retro Changelog and Content Synchronization DS plugins

Enable Retro Changelog and Content Synchronization DS plugins which are required
for SyncRepl support.

Create a working directory /var/named/ipa required by bind-dyndb-ldap v4+.

https://fedorahosted.org/freeipa/ticket/3967
This commit is contained in:
Ana Krivokapic authored and Petr Viktorin committed 2014-01-14 16:37:56 +01:00
1 parent 3e1386a57e
commit 689382dc83
5 files changed
+28 -1

No files matched your search

+13
View File
@@ -22,6 +22,7 @@ import os
import pwd
import netaddr
import re
import errno
import ldap
@@ -509,6 +510,16 @@ 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:
@@ -519,6 +530,8 @@ 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)