Hey Thanks a lot,

The mistake was the syntax i gave for ou=people

dn: ou=people, dc=test, dc=com
objectClass: organizationalUnit
ou:people

but it should be


dn: ou=people,dc=test,dc=com
ou:people
objectClass: organizationalUnit

Abdul.

On 10/13/06, François Beretti <francois.beretti@gmail.com> wrote:
Hi

To add an object, use ldapadd. If you want to use ldapmodify, you must add some keywords in your ldif file to specify you want to add each object. I don't remember the syntax.

François

2006/10/13, Syed Khader <syedk@google.com>:
Hi,

I a newbie and i'm trying to implement openldap.
i'm trying to add a new ou=people under dc=test,dc=com using the following

  ldapmodify -x -D "cn=Manager,dc=test,dc=com" -W -f /root/Desktop/example.ldif

it says

modifying entry "dc=test,dc=com"

modifying entry "cn=Manager,dc=test,dc=com"

modifying entry "ou=people, dc=test,dc=com"
ldap_modify: No such object (32)
        matched DN: dc=test,dc=com


My example.ldif file is as follows

dn: dc=test,dc=com
objectclass: dcObject
objectclass: organization
o: google
dc: test

dn: cn=Manager,dc=test,dc=com
objectclass: organizationalRole
cn: Manager

dn: ou=people, dc=test, dc=com
objectClass: organizationalUnit
ou=people

My Slapd.conf file is like this( just pasting what is required)

include         /usr/local/etc/openldap/schema
/core.schema
include         /usr/local/etc/openldap/schema/cosine.schema
include         /usr/local/etc/openldap/schema/inetorgperson.schema
include         /usr/local/etc/openldap/schema/nis.schema

database        bdb
suffix          "dc=test,dc=com"
rootdn          "cn=manager,dc=test,dc=com"

Am i missing any schema or anything wrong in my ldif file.

Plz Help :)

Thanks in advance.
Abdul.