On Mon, Feb 13, 2012 at 9:51 AM, Aditya Kalabarigi kalabarigi.aditya@gmail.com wrote:
Hi Mauricio,
Thanks a lot for your response.
I have no problem in moving the ldap database as such to the new environment. The existing ldap replication is setup via slurpd, where the slurpd looks for a log file called slurpd.replog for any new changes in the database and if there are any the slurpd reads the log file and push the changes to the client.
This is working in the existing setup but it is not working in the new environment I build to migrate the master and slave ldap servers from rhel4 to rhel5 and also the idea is to move them on to vmware hosts and get rid of the physical hosts.
I will have a look at the link you mentioned, but am pretty sure we are not using syncrepl for replication.
AFAIK, slurpd was deprecated and replaced with syncrepl. I personally have never used slurpd so unfortunately I will not be able to help you much. That said, I would expect the log files to tell you something useful (or at least something you can post here). To give you some ideas, with syncrepl you see a lot of ldapsearches. So, you then look for the error (err=something) entries in the log file, find what what that error means, and then see if that and the arguments for this last ldapsearch provides any clues.
Another thing to check is security settings like selinux. That usually always bite me.
Thank you once again for looking into this.
Regards, Aditya
On Mon, Feb 13, 2012 at 2:07 PM, Mauricio Tavares raubvogel@gmail.com wrote:
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