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

Re: error with ldapadd ?



you need first to add "c=IN"
then add "o=magnaquest,c=IN",
then add "cn=majeed,o=maganquest,c=IN"

best regards,
Lise Didillon

At 12:48 16/01/02 +0530, Md Majeedullah Khan wrote:
HI all,
I am using Openldap 2.0.11 on linux,this is my slapd.conf file,
/**************slapd.conf**************************/
include         /usr/local/etc/openldap/schema/core.schema
include         /usr/local/etc/openldap/schema/cosine.schema
schemacheck     off
pidfile               /usr/local/var/slapd.pid
argsfile              /usr/local/var/slapd.args

database        ldbm
suffix          "o=magnaquest,c=IN"
rootdn          "cn=Manager,o=magnaquest,c=IN"
rootpw          secret
directory       /usr/local/var/openldap-ldbm
#index   cn, sn    pres,eq
/**************slapd.conf**************************/
While I am trying to add the following data..

dn: cn=majeed,o=magnaquest,c=IN
cn: majeedullah
sn: khan
objectclass: person

and issue the following command ...
$  ldapadd -f /usr/sbin/testadd -D "cn=Manager,o=magnaquest,c=IN" -w secret

I get the followin output...
/***************/
adding new entry "cn=majeed,o=magnaquest,c=IN"
ldap_add: No such object

ldif_record() = 32
/*****************/

can anyone help me as this is urgent...........
thanks a lot in advance....

thnks and regards

majeed & misra.