mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-17 03:41:55 -06:00
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:
parent
a92328452d
commit
8457edc14d
@ -780,12 +780,12 @@ class ReplicationManager(object):
|
|||||||
try:
|
try:
|
||||||
mod = [(ldap.MOD_ADD, "member", b_dn)]
|
mod = [(ldap.MOD_ADD, "member", b_dn)]
|
||||||
a.modify_s(group_dn, mod)
|
a.modify_s(group_dn, mod)
|
||||||
except ldap.TYPE_OR_VALUE_EXISTS:
|
except (ldap.TYPE_OR_VALUE_EXISTS, ldap.NO_SUCH_OBJECT):
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
mod = [(ldap.MOD_ADD, "member", a_dn)]
|
mod = [(ldap.MOD_ADD, "member", a_dn)]
|
||||||
b.modify_s(group_dn, mod)
|
b.modify_s(group_dn, mod)
|
||||||
except ldap.TYPE_OR_VALUE_EXISTS:
|
except (ldap.TYPE_OR_VALUE_EXISTS, ldap.NO_SUCH_OBJECT):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user