| |
@@ -725,6 +725,10 @@
|
| |
missing = False
|
| |
for dn in master_dns:
|
| |
mresult = ldif_search(MLDIF, dn)
|
| |
+ if mresult['entry'] is None and mresult['conflict'] is None and not mresult['tombstone']:
|
| |
+ # Try from the beginning
|
| |
+ MLDIF.seek(0)
|
| |
+ mresult = ldif_search(MLDIF, dn)
|
| |
rresult = ldif_search(RLDIF, dn)
|
| |
|
| |
if dn in replica_dns:
|
| |
Bug Description:
When processing all the DN's found in the Master LDIF it is possible that the LDIF is not in the expected order and ldifsearch fails (crashing the tool).
Fix Description:
If ldifsearch does not find an entry, start from the beginning of the LDIF and try again.
relates: https://pagure.io/389-ds-base/issue/51233