summaryrefslogtreecommitdiffstats
path: root/ipaserver/install
diff options
context:
space:
mode:
Diffstat (limited to 'ipaserver/install')
-rw-r--r--ipaserver/install/replication.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/ipaserver/install/replication.py b/ipaserver/install/replication.py
index ed1badc1e..cdff50e7f 100644
--- a/ipaserver/install/replication.py
+++ b/ipaserver/install/replication.py
@@ -19,6 +19,7 @@
import time, logging
+import os
import ldap
from ipaserver import ipaldap
from ldap import modlist
@@ -39,6 +40,19 @@ WINSYNC = 2
SASL_AUTH = ldap.sasl.sasl({}, 'GSSAPI')
+def check_replication_plugin():
+ """
+ Confirm that the 389-ds replication is installed.
+
+ Emit a message and return True/False
+ """
+ if not os.path.exists('/usr/lib/dirsrv/plugins/libreplication-plugin.so') and \
+ not os.path.exists('/usr/lib64/dirsrv/plugins/libreplication-plugin.so'):
+ print "The 389-ds replication plug-in was not found on this system"
+ return False
+
+ return True
+
class ReplicationManager:
"""Manage replication agreements between DS servers, and sync
agreements with Windows servers"""