Take the 2-minute tour ×

I have an openldap ldif backup file daily that I want to replicate in other server. I add the data with slapadd -v -l file.ldif but can I update the changes that have occurred in my other ldap server with next ldif backup file?

I try with ldapmodify, ldapadd but i does not work properly.

share|improve this question

migrated from stackoverflow.com Oct 14 '12 at 2:13

This question came from our site for professional and enthusiast programmers.

add comment

2 Answers

If for some reason all masters are no longer able to synchronize, the mmldif tool can be used to generate the master database manually.

share|improve this answer
add comment

You can probably check perl ldap tools. They include utilities as ldapsort and ldapdiff. Which will give you the difference between both the LDAP data.

First sort the data with ldapsort using dn: & then create a diff. It will provide you a ldapmodify ready data, which will replace, add & delete attributes.

Reference: http://search.cpan.org/~gbarr/perl-ldap-0.3202/

share|improve this answer
add comment

Your Answer

