[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: Adding initial data to LDAP
You need to create the "o=vt" object. You can't add a child without a
parent.
Mike
-----Original Message-----
From: owner-openldap-software@OpenLDAP.org
[mailto:owner-openldap-software@OpenLDAP.org] On Behalf Of Marius Cabas
Sent: Friday, November 08, 2002 8:06 AM
To: openldap-software@OpenLDAP.org
Subject: Adding initial data to LDAP
I'm runnung an OpenLDAP server using the following slapd.conf data:
include /usr/local/etc/openldap/core.schema
pidfile /usr/local/var/slapd.pid
argsfile /usr/local/var/slapd.args
database ldbm
suffix "o=vt"
rootdn "cn=manager,o=vt"
rootpw start
directory /usr/local/etc/openldap/openldap-ldbm
index objectClass eq
Now, i want to add some records to the LDAP database and for this i'm
using
the following command:
ldapadd -f add.ldif -cxv -D "cn=manager,o=vt" -w start
The add.ldif file looks as follows:
dn: cn=myname,o=vt
cn: myname
sn: mysurname
objectclass: top
objectclass: person
userPassword: secret
After executing ldapadd, the output is like below:
ldap_initialize( <DEFAULT> )
add cn:
myname
add sn:
mysurname
add objectclass:
top
person
add userPassword:
secret
adding new entry "cn=myname,o=vt"
ldap_add: No such object
additional info: parent does not exist
ldif_record() = 32
What is the problem? What am I doing wrong?