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.
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.
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.
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.
Syed Khader wrote:
dn: ou=people, dc=test, dc=com objectClass: organizationalUnit ou=people
^^^^^^^^ ou: people
Ing. Luca Scamoni Responsabile Ricerca e Sviluppo
SysNet s.n.c. Via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it ------------------------------------- Office: +39.0382.573859 (137) Mobile: +39.347.1014425 Email: luca.scamoni@sys-net.it -------------------------------------
openldap-software@openldap.org