>Stale Lock in openldap

By | October 19, 2010


Yesterday i got a problem in our samba+ldap setup, Client machines are unable to access samba shares. After investigation i found that samba is not running. Since my setup is RHEL 5 based so i used following command to start my samba services.
root# service smb start
It didn’t give any error but using netstat command showed that port no 445 is not up
root# netstat -tn|grep 445
My investigation lead to conclusion that my ldap server is not working and since samba is dependent on ldap for users authentication in our setup, so its gettig problem. I tried to start ldap service using following command
root#service ldap start
I concentrated on ldap error and i got that ldap showed error ‘stale lock present ...’
Immediately i issued slapd_db_recover command in following ways and my problem solved.
root# slapd_db_recover -v -h /var/lib/ldap
Share itShare on FacebookEmail this to someoneTweet about this on TwitterShare on Google+Share on LinkedInPrint this page

One thought on “>Stale Lock in openldap

  1. Pingback: LDAP | KBTECHWORLD

Leave a Reply

Your email address will not be published. Required fields are marked *

Current month ye@r day *