i installed postgresql 9.1 and openldap 8.2.41.

its installed succesfully.

i want to add the data into my ldap but its showing credentials error.

here are full details:

slapd.conf

pidfile /usr/local/var/slapd.pid
argsfile /usr/local/var/slapd.args

#######################################################################
# sql database definitions
#######################################################################

database sql
suffix "dc=cool06,dc=in"
rootdn "cn=Manager,dc=cool06,dc=in"
rootpw cool06
directory /usr/local/ldap_users

dbname ldap_users
dbuser ldap
dbpasswd ldap
insentry_stmt "insert into ldap_entries (id,dn,oc_map_id,parent,keyval) values ((select max(id)+1 from ldap_entries),?,?,?,?)"
upper_func "upper"
strcast_func "text"
concat_pattern "?||?"
has_ldapinfo_dn_ru no

_____________________

mine.ldif

dn: cn=Manager,dc=cool06,dc=in
objectClass: inetOrgPerson
cn: Manager
sn: Entry
givenName: Test


dn: cn=Manager,dc=cool06,dc=in
objectClass: dcObject
objectClass: organization
o: My Company
dc: mycompany

--------------------

when running the command its showing:

root@boss[openldap-2.4.21]#ldapadd -x -D "cn=Manager,dc=cool06,dc=in" -W -f /opt/openldap_postgresql/openldap-2.4.21/mine.ldif
Enter LDAP Password:
ldap_bind: Invalid credentials (49)


regards,
cooldharma06.