Hi,
I am a new openldap user and I am trying to
store some user information into openldap database. I have setup a mail user
objectclass in file slapd.oc.conf as
objectclass mailUser
requires
objectClass,
uid,
userpassword,
mail,
alias
allows
quota
and I have temporary file(newentry) with user information
dn: cn=<Full Name>, dc=<domain>,
dc=<tld>
cn: <Full Name>
sn: <Last Name>
objectclass: top
objectclass: person
objectclass: mailUser
mail: <email address>
alias: <email address>
uid: <user name>
userpassword: <user password>
When I try to add this file into the ldap database
using
ldapadd -f /tmp/newentry -D "cn=admin, o=<domain>, c=com" -W
I am geting a responce as
"adding new entry cn=<Full Name>, dc=<domain>,
dc=<tld>
ldap_add: No such object "
and an error
"slapd[1599]: ldbm_db_errcall(): ==> /var/ldap/dn2id.dbb: No such file
or directory"
I am using RH6.2 openldap-1.2.9-5 and I installed it as an rpm.
Thanks for any help.
Abjin
|