accept missing binddn group

replicas installed from older versions do not have a binddn group
just accept the errror

Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
Ludwig Krispenz 2015-06-02 13:49:28 +02:00 committed by Petr Vobornik
parent a92328452d
commit 8457edc14d

View File

@ -780,12 +780,12 @@ class ReplicationManager(object):
try:
mod = [(ldap.MOD_ADD, "member", b_dn)]
a.modify_s(group_dn, mod)
except ldap.TYPE_OR_VALUE_EXISTS:
except (ldap.TYPE_OR_VALUE_EXISTS, ldap.NO_SUCH_OBJECT):
pass
try:
mod = [(ldap.MOD_ADD, "member", a_dn)]
b.modify_s(group_dn, mod)
except ldap.TYPE_OR_VALUE_EXISTS:
except (ldap.TYPE_OR_VALUE_EXISTS, ldap.NO_SUCH_OBJECT):
pass