[Date Prev][Date Next] [Chronological] [Thread] [Top]

Insufficient access or Invalid credentials



I am trying to add an ldif file to LDAP by the following command 

ldapadd -h localhost -p 9009 -f ../stooges.ldif -D
"cn=stoogeAdmin,o=stooges" -w secret

I always get invalid credentials or insufficient access. I do not have root
privileges. So, I am running slapd under my user name. Following is part of
my slapd.conf file.

What might be wrong?

#######################################################################
# ldbm database definitions
#######################################################################

database        ldbm
suffix          "o=stooges"
suffix          "dc=ldap,dc=stooges,dc=org"
#suffix         "o=stooges,c=US"
rootdn          "cn=stoogeAdmin,dc=stooges"
#rootdn         "cn=Manager,o=stooges,c=US"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw          secret
defaultaccess read
schemacheck   on
lastmod       on
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd/tools. Mode 700 recommended.
directory       /export/home/siva/openLDAP/var/openldap-ldbm/stooges
# Indices to maintain
#index  objectClass     eq
index   cn,sn,st        pres,sub,eq

Siva Nookala