Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

during LDAP installation in ubuntu the following error has been occured.

"ldap_bind: Invalid credentials (49)"

can any one help me to figure it out ???

share|improve this question

migrated from Mar 8 '11 at 13:15

This question came from our site for professional and enthusiast programmers.

Did you fall prey to this problem? – sarnold Mar 8 '11 at 6:26
wht do u mean by it ??? – akb.zak Mar 8 '11 at 6:32
ldapsearch -xLLL -b cn=config -D cn=admin,cn=config -W olcDatabase=hdb olcAccess Enter LDAP Password: ldap_bind: Invalid credentials (49) – akb.zak Mar 8 '11 at 6:40

Remove the LDAP database, re-configure slapd and restart it. Then add the ldiffs again. It worked in my case when I tried it on 9.04.

rm -rf /var/backups/*.ldapdb
dpkg-reconfigure slapd
/etc/init.d/slapd restart

and then add your ldif file again to DB.

ldapadd -x -W -D "cn=admin,dc=example,dc=com" -f ~/people.ldif
share|improve this answer
thnks Eshan i got an answer from… – akb.zak Mar 8 '11 at 9:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.