Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-24-2008, 07:36 AM   #1
LQ Newbie
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
Question Help regarding High Availability slpad (openLDAP) with Heartbeat and IPAddr


I am new to Heartbeat. How can we configure openLDAP with Heartbeat for High-availability of Authentication.

I need to have slapd running on both the machine because of ldap replication.
And when slapd is stopped on master, IPAddr resource (Virtual IP) should be transferred to stand-by machine, where slapd was already running.

I am using Heartbeat version 2.1.4 (heartbeat-2.1.4-2.1.i386.rpm), Linux machines of RHEL4. And I am using openLDAP of version 2.4.11. and Cluster size is of 2 machine.

I have configured a IPAddr Resource (virtual IP addrsss) successfully using CRM (Heartbeat Version 2). When I make a machine down, Heartbeat transfer IPAddr resource to another node and when it is up, it again gets back the IPAddr..

I have following questions.

1.What entries should I add to the cib.xml, so that slapd resource should be running on both the nodes?

2.When slapd is stopped on the master node (having IPAddr Resource). That node should detect slapd service as stopped and should release IPAddr resource.

3.And, stand-by node should get the control of IPAddr resource, when slapd gets stopped on master node.

4.Starting of slapd service should be controlled by Heartbeat or manually?

5.My slapd is also not conformed to the LSB Spec. If anybody is having slpad with LSB spec, please share with me.

If anybody have these kind of Cluster controlling slapd. Please share cib.xml with me.

Old 11-25-2008, 04:05 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
Can I ask why you need HA for this? In general you should be able to just run a multi master model and use either, with any application worth its salt allowing multiple ldap servers to be defined for authenticating. It's not something that we can say you *must* do of course, but it's by far the most common way I have seen of doing this. If you do need a single ip for some reason I'd probably look at something much much simpler. You don't need to cluster the services from what I see due to having a multi master model. both servers deserve to exist in their own right, so it's just an ip shift. There's a great little tutorial you can google for called "cheap ip takeover" or "simple ip takeover" something like that, which just pulls an IP back and forth based on an external command, and for you i'd just make the slave box do an ldapsearch of the master and take the vip if that fails.


crm, heartbeat, openldap, slapd

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Heartbeat(High Availability) mahabooba Linux - Networking 2 05-25-2010 01:23 PM
LXer: Setting Up A High-Availability Load Balancer With HAProxy/Heartbeat On Fedora 8 LXer Syndicated Linux News 1 03-10-2008 07:29 AM
High availability Samba cluster DRBD + Heartbeat djalex Linux - Networking 3 09-05-2006 01:14 PM
High availability itziar2 Linux - General 5 12-02-2005 07:40 AM
High Availability Services!!!????help briant97 Linux - General 2 12-15-2000 09:04 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration