If slurpd based slave openldap server become inconsistent. Following steps can be followed for immediate recovery
- Put the master slapd server in read only mode
- Completely stop slapd on slave
- Clear the content of data directory, (/var/lib/ldap)
- Copy fresh dump from master and paste it into slave server
- Use slapadd to rebuild the directory on slave.
- Start the slave slapd server in normal mode
- Switch master slapd server in previous (read/write) mode.