[Date Prev][Date Next] [Chronological] [Thread] [Top]

replicating




Basically looking for a way of repairing a de-synched database.

Here's the problem I have with existing tools:

ldapsearch -L -h localhost ... objectclass=* | ldapadd -c -h slave

will add in missing entries but not repair existing ones

ldapsearch -L -h localhost ... objectclass=* | ldapmodify -c -h slave

repairs existing entries, but not all cases.

Example:

localhost has somthing along the lines of:

dn: name=aname,dc=domain,dc=dom
name: aname
phone: 888.555.1213

slave has:
dn: name=aname,dc=domain,dc=dom
name: aname
phone: 888.555.1212
hidden: true

ldapmodify will fix the phone number, but not delete the hidden: true
attribute.

I generally have to delete the slave's dn, and add it back in.  On a slave
server with an unknown number of discreprencies, this becomes impractical.

So if someone could point me to a utility that will actually sync a local
and remote object, I'd much appreciate it.

Cheers,
John