Datamation content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.
LDAP allows you to have a master+slave server setup, with automatic failover in case of problems or just to spread
the load. This has obvious advantages, but it can hide problems with the
master server.
If your master server is down but the slaves are OK, ldapsearch
and other lookups will work fine. But if you try to modify the database (e.g.,
with ldapadd), you’ll get this kind of error message:
ldap_add: Referral (10)
referrals:
ldaps://masterldap.example.com/uid=test,ou=People,
dc=example,dc=com
|
Slave servers can’t modify the database, so it tries to redirect to the
master, and fails. If you now use ldapsearch to look for your new
entry, you will not find it.
You can confirm the diagnosis by trying:
ldapsearch -H ldaps://masterldap.example.com to force a bind to
the master server.
The next stage is to find out what’s causing the problem. Set the loglevel
in /etc/ldap/slapd.conf to 1, then restart slapd and check
the logs.
Two common problems:
- An old slapd process that hasn’t been killed off
properly. Check with ps and kill it if
necessary.
- An alock problem, which looks like this in the log:
slapd[27069]: bdb_db_open: alock package is unstable
slapd[27069]: backend_startup_one: bi_db_open failed! (-1)
|
To resolve, remove the /var/lib/ldap/alock file (or check your
slapd.conf for your local data directory). Run
db_recover to fix the database, or just restart
slapd and it should recover itself. You
may need to give it a little time or restart it again.
Remember to return the loglevel to normal afterward, or the server will be
very slow. Also, consider using monitoring software to catch these silent
problems!
This article was first published on ServerWatch.com.
RELATED NEWS AND ANALYSIS
-
Ethics and Artificial Intelligence: Driving Greater Equality
FEATURE | By James Maguire,
December 16, 2020
-
AI vs. Machine Learning vs. Deep Learning
FEATURE | By Cynthia Harvey,
December 11, 2020
-
Huawei’s AI Update: Things Are Moving Faster Than We Think
FEATURE | By Rob Enderle,
December 04, 2020
-
Keeping Machine Learning Algorithms Honest in the ‘Ethics-First’ Era
ARTIFICIAL INTELLIGENCE | By Guest Author,
November 18, 2020
-
Key Trends in Chatbots and RPA
FEATURE | By Guest Author,
November 10, 2020
-
Top 10 AIOps Companies
FEATURE | By Samuel Greengard,
November 05, 2020
-
What is Text Analysis?
ARTIFICIAL INTELLIGENCE | By Guest Author,
November 02, 2020
-
How Intel’s Work With Autonomous Cars Could Redefine General Purpose AI
ARTIFICIAL INTELLIGENCE | By Rob Enderle,
October 29, 2020
-
Dell Technologies World: Weaving Together Human And Machine Interaction For AI And Robotics
ARTIFICIAL INTELLIGENCE | By Rob Enderle,
October 23, 2020
-
The Super Moderator, or How IBM Project Debater Could Save Social Media
FEATURE | By Rob Enderle,
October 16, 2020
-
Top 10 Chatbot Platforms
FEATURE | By Cynthia Harvey,
October 07, 2020
-
Finding a Career Path in AI
ARTIFICIAL INTELLIGENCE | By Guest Author,
October 05, 2020
-
CIOs Discuss the Promise of AI and Data Science
FEATURE | By Guest Author,
September 25, 2020
-
Microsoft Is Building An AI Product That Could Predict The Future
FEATURE | By Rob Enderle,
September 25, 2020
-
Top 10 Machine Learning Companies 2021
FEATURE | By Cynthia Harvey,
September 22, 2020
-
NVIDIA and ARM: Massively Changing The AI Landscape
ARTIFICIAL INTELLIGENCE | By Rob Enderle,
September 18, 2020
-
Continuous Intelligence: Expert Discussion [Video and Podcast]
ARTIFICIAL INTELLIGENCE | By James Maguire,
September 14, 2020
-
Artificial Intelligence: Governance and Ethics [Video]
ARTIFICIAL INTELLIGENCE | By James Maguire,
September 13, 2020
-
IBM Watson At The US Open: Showcasing The Power Of A Mature Enterprise-Class AI
FEATURE | By Rob Enderle,
September 11, 2020
-
Artificial Intelligence: Perception vs. Reality
FEATURE | By James Maguire,
September 09, 2020