Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 am trying to follow this guide to configure kerberos on my Ubuntu server. I got up the part where they want to add the new schema to my server user ldapadd I follow the instructions as they say.

I run ldapadd -x -D "cn=admin,cn=config" -W -f /tmp/cn=kerberos.ldif

then I enter my password and it returns

ldap_add: Invalid credentials (49)

so I tried using the admin login that I use for my phpldapadmin webgui (which I thought was the same)

I run ldapadd -x -D "cn=admin,dc=solignis,dc=local" -W -f /tmp/cn=kerberos.ldif

then I enter my password and it returns this time

ldap_add: Insufficient access (50)

I am not really sure where to go from here I am still learning the ropes a bit. I have checked, double checked and triple checked I am entering the password that I set at install.

What am I not doing correct?

share|improve this question
up vote 2 down vote accepted

You need to specify your config database. Without it, its trying to add it to your normal database.

ldapadd -H 'ldaps://localhost/cn=config' -x -D "cn=admin,cn=config" -W -f /tmp/cn=kerberos.ldif
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.