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

Re: result: 32 No such object



I think you need to create ou Object before adding the data,  the following data works for me
 
dn: dc=percipia,dc=com
objectClass: top
objectClass: organization
o: Percipia
description: This is our organizations base dn. Everything is stored beneath this

dn: ou=people,dc=percipia,dc=com
objectClass: top
objectClass: organizationalunit
ou: people
description: This is the tree were user accounts are stored

dn: ou=groups,dc=percipia,dc=com
objectClass: top
objectClass: organizationalunit
ou: groups
description: This is the tree were Group  accounts are stored
dn: cn=mail,ou=groups,dc=percipia,dc=com
objectClass: posixgroup
objectClass: top
cn: mail
userPassword: {crypt}x
gidNumber: 7
memberUid: daemon
memberUid: sundaram
-SR
 
----- Original Message -----
Sent: Monday, December 09, 2002 3:01 PM
Subject: result: 32 No such object

OS: Red Hat Linux 8.0

 

/etc/openldap/ldap.conf

HOST 127.0.0.1

BASE dc=reph, dc=org

 

/etc/openldap/slapd.conf

database ldbm

suffix ?dc=reph,.dc=org?

rootdn ?cn=root,dc=reph,dc=org?

rootpw secretwordA

directory /usr6/ldap

index objectClass,uid,uidNumber,gidNumber,memberUid eq

index cn,mail,surname,givenname eq,subinitial

 

ldif file:

dn: dc=reph,dc=org

objectclass: top

objectclass: dcObject

objectclass: organization

dc: reph

o: Reph

description: The Great Moocows

 

dn: cn=root,dc=reph,dc=org

cn: root

sn: root

objectclass: top

objectclass: person

 

dn: cn=ted,dc=reph,dc=org

cn: Theodore R. Reph

sn: Theodore

objectclass: top

objectclass: person

 

dn: cn=dave,dc=reph,dc=org

cn: David Huber

sn: Dave

objectclass: top

objectclass: person

 

 

I added the ldif file to the ldap directory using slapadd ?l ldif.

When I run ldapsearch ?x

                 ldapsearch ?x ?(objectclass=*)?

                 ldapsearch ?x ?sn=Dave?

 

I get:

search: 2

result: 32 No such object

 

What am I doing wrong?

 

 

 

Theodore Reph

treph@att.net