Ldap Issue energoindia
ENERGOINDIA IMAP AUTHENTICATION ISSUE
ISSUES WITH LDAP WITH QMAIL:-
1-LDAP service does not start/hangs on restarting or after reboot.
2-Getting error “Connection Dropped by IMAP Server” when login throw web mail.
3-Getting error “unauthentication error: Input/Output Error” in maillaog.
4-On the restarting of ldap will get below error:-
error:-
“Checking configuration files for slapd: bdb_db_open: unclean shutdown detected; attempting recovery. bdb_db_open: Recovery skipped in read-only mode. Run manual recovery if errors are encountered. “
SOULUTION:- Tested on energoindia.com
1- Kill the db_recover.
#pgrep -x db_recover
2- If the ldap agent is currently running, kill it.
#pkill -9 -f agent_check_mcs_services.sh
3- Stop ldap if it has started running.
#/etc/init.d/ldap stop
4- Move the index files of ldap.
#mv /var/lib/ldap/__db.00* /backup
5- Move the lock file of ldap
#mv /var/lib/ldap/alock /backup
6- Start ldap
#/etc/init.d/ldap start
Now you will not get any error.
Test using :-
#/var/qmail/bin/qmail-ldaplookup -m postmaster@energoindia.com
Thanks..