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

Re: help with replication



On Mon, Feb 13, 2012 at 8:17 AM, Aditya Kalabarigi
<kalabarigi.aditya@gmail.com> wrote:
> Hello Everyone,
>
> I am trying to migrate our existing LDAP setup running on rhel4 to virtual
> hosts.
> I am able to setup the ldap server on the virtual host but cannot get the
> replication working.
> I cannot find the slapd.replog on the server.
> Please let me know how can I get this running.
>
> Server A - virtual host running rhel 5 (master server)
>
> slapd.conf is as follows
>
> replogfile /var/lib/ldap/slapd.replog
> replica host=abc.ex.com:389
>         suffix="o=xxx,dc=xx,dc=xx,dc=xx"
>         binddn="cn=Replica,o=xxx,dc=xx,dc=xx,dc=xx"
>         credentials="slavepasswd"
>         bindmethod=simple
>         tls=yes
>
> Server B - virtual host running rhel5 (slave server)
>
> slapd.conf is as follows
>
> updatedn "cn=Replica,o=xxx,dc=xx,dc=xx,dc=xx"
> updateref ldap://xyz.ex.com
>
>
> I have added the ldap database on the exisitng on to the new virtual master
> and slave servers using an ldif file , slapcat and slapadd.
> Everything is working fine as it should, except the replication is not
> working.
>
> I have checked the configuration of the running setup and the only
> difference i could find is in the /var/lib/ldap/ directory.
> I couldnt find slurpd.replog file in it on the master server.
>
> Any help on this is greatly appreciated.
>
      If you just want to move your ldap server from one machine to
the other, slapcat might be what you want to do. Spit database(s) out,
take them to the new server, feed them in, and off you go.

If you are going to do replication, check out the examples in
http://www.openldap.org/doc/admin24/replication.html, like in
18.3.1.3. It seems you are missing a few entries.

> Thank you.
>
> Regards,
> Aditya
>
>