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

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