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

My first time trying to marry LDAP as a backend to Samba. I'm following the instructions at: this site and I'm stumbling when I get to the part 5 with the following error: "ldap_bind: Invalid credentials (49)" Googling has pointed me towards the slapd.conf file but I don't have one in the /etc/ldap directory or anywhere on disk despite having installed ldap twice and running a dpkg-reconfigure twice. Has the configuration file for slapd been changed recently?

share|improve this question
up vote 1 down vote accepted

LDAP 49 is basically failed to connect for credential reasons. Could be a bad DN. Could be a bad password. Could be a locked account, and so on.

share|improve this answer
This isn't an issue with what you are trying to do per se, but an issue of having the correct user & password. Also note that OpenLDAP supports the config being part of the database now, so having a slapd.conf is optional Layout – uSlackr Apr 28 '11 at 13:13

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.