[K12OSN] Using replication

Brian Chivers brian at portsmouth-college.ac.uk
Thu Sep 22 08:29:20 UTC 2005


Mark Sarria wrote:
> My Replication server is working I have a Master-Slave LDAP server, But it
> is still not a failover. I shutdown my Master server, and attempted to login
> to a windows XP client, and it did not work. 
> I know replication is working because I modified a users name and then did
> an ldapsearch on the slave server ,and the changes where there.
> 
For true fallover you'd have to setup all the LDAP servers CNAME'd to the same name using round 
robin DNS. Have a look at the High Availability webpage at

  http://k12linux.mesd.k12.or.us/ldap/high_availability.html

This page talks about it, quite briefly but it's a start.

> My pointer in to making a slave server, flow link to the directions posted
> by Brian, make sure when you do:
> Bindmethod=simple -- do not leave spaces. 
> You can either copy your lidif file into the new server or copy the entire
> directory /var/lib/ldap to the slave server then make sure to change
> ownership
> Chown -R ldap:ldap /var/lib/ldap
> 
> On the Master server you can kill the ps for the  ldap server, then restart
> the service. You can run slurpd -f /etc/openldap/slapd.conf, to check for
> any replication errors.
> 
Easy way is a service ldap restart of RH/FC machines

> These are things just to lookout for.
> 
> --mark
> 
> -----Original Message-----
> From: k12osn-bounces at redhat.com [mailto:k12osn-bounces at redhat.com] On Behalf
> Of Mark Sarria
> Sent: Wednesday, September 21, 2005 4:41 PM
> To: 'Support list for opensource software in schools.'
> Subject: RE: [K12OSN] Using replication
> 
> When I start my ldap service on the slave server, the slapdis the only one
> the start, on my master server the slapd and slurpd start, Is this correct,
> should the slurpd start on the slave as well?
> 
> --mark 
> 
> -----Original Message-----
> From: k12osn-bounces at redhat.com [mailto:k12osn-bounces at redhat.com] On Behalf
> Of Brian Chivers
> Sent: Monday, September 19, 2005 2:52 PM
> To: Support list for opensource software in schools.
> Subject: [K12OSN] Using replication
> 
> I've followed the instructions on 
> http://k12linux.mesd.k12.or.us/ldap/high_availability.html to setup a 
> master & slave ldap servers for replication but I'm having a problem 
> with the readonly option.
> 
> If I set this option to on, in the slave config the replication doesn't 
> work and I get an error in the log on the master.
> 
> Is it possible to run the slave in readonly mode but still have 
> replication working, I'm using the rootdn to bind with so I thought this 
> would override the readonly option.
> 
> Has anyone setup ldap replication ?
> 
> Brian Chivers
> Portsmouth College
> 
> ---------------------------------------------------------------
>     The views expressed here are my own and not necessarily 
>                 the views of Portsmouth College             
> 
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
> 
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
> 
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
> 


---------------------------------------------------------------
    The views expressed here are my own and not necessarily 
                the views of Portsmouth College             




More information about the K12OSN mailing list