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

I'm new to LDAP and I'm trying to add the mmc.ldif and mail.ldif files that come with Mandriva Directory Server to my LDAP configuration, using the command :

ldapadd -x -W -D "cn=admin,dc=biganon,dc=com" -f schema/mmc.ldif

I then give the admin password I've set during slapd installation but get this error :

ldap_bind: Invalid credentials (49)

I have no slapd.conf file.

I'm on Debian 6.0.1, OpenLDAP 2.4.23

Thank you

share|improve this question
ldap_bind: Invalid credentials (49)

"Invalid credentials" always means you're using incorrect bind dn or password. Please check them first.

share|improve this answer

Without seeing your configuration this is a hard question to answer. If you shut down slapd, you can use slapcat to view the current contents of your directory tree and you can use slapadd to update the directory.

You can create a slapd.conf if you want to use the old-style configuration. Unless you're making lots of runtime changes to your backend configuration I'm not sure there's a huge advantage to the cn=config mechanism.

This document contains instructions for converting FROM slapd.conf TO cn=config; it also has instructions for going in the other direction.

share|improve this answer

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.