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

Re: ldap_modify No such object(32) matched DN



You can't modify something that doesn't exist. Try ldapadd instead of ldapmodify?

On Fri, 13 Oct 2006, Syed Khader wrote:

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.