diff options
Diffstat (limited to 'ipaserver/install/replication.py')
-rw-r--r-- | ipaserver/install/replication.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ipaserver/install/replication.py b/ipaserver/install/replication.py index ed1badc1..cdff50e7 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""" |