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

RE: ldap_add no such object

I'm not sure if this helps, but I was getting errors adding an entry, so I
checked the ldif file and I had a space at the end of each line. I deleted
the spaces at the end of each line and it worked like a champ.

-----Original Message-----
From: Helke Schröder [mailto:toepper@zentaur.de]
Sent: Friday, November 17, 2000 1:21 PM
To: openldap-software@OpenLDAP.org
Subject: ldap_add no such object

 I'm new at openldap and probably you can't read such simple question any
 but ..
 still I have this problem (went through adminguide and faq ... several
 i have just created a database
 the slapd.conf looks like this:
     include         /etc/openldap/schema/core.schema
     include         /etc/openldap/schema/cosine.schema
     include         /etc/openldap/schema/inetorgperson.schema
     pidfile         /usr/local/var/slapd.pid
     argsfile        /usr/local/var/slapd.args
     database        ldbm
     suffix          "dc=ldx,dc=com"
     rootdn          "cn=Manager,dc=ldx,dc=com"
     rootpw          secret
     directory       /usr/local/var/openldap-ldbm1
     index   objectClass     eq
 and then I tried to add the initial entries with the following ldif
     dn: dc=ldx, dc=com
     dc: ldx
     o: ldxo
     objectclass: organization
     objectclass: dcObject
     description: testldx
     dn: cn=Manager, dc=ldx, dc=com
     cn: Manager
     objectclass: organizationalRole
     description: testmanager
 now the command and the error
 /usr/local/bin/ldapadd -f /home/hilke/1711.ldif -x -D
 "cn=Manager,dc=ldx,dc=com" -w secret
 "dding new entry "dc=ldx, dc=com
 ldap_add: No such object
 thanks a lot