[Date Prev][Date Next]
slapadd/cat works, ldapadd/search doesn't?
please bear with me -- I'm very new to LDAP, and it uses an approach
different enough to anything I've seen before that I'm only very slowly
getting the hang of it.
To learn how it works, I've configured a very small slapd on a Linux
machine, and am playing with it a bit. And I must say I'm very
confused. I can access slapd's database with slapadd and slapcat, but
ldapadd and ldapsearch don't work, saying "parent not found" or "object
not found", respectively.
Here's my slapd.conf:
index objectClass eq
I initialized the database and put a user in using slapadd; slapcat
says (trimmed for readability):
dn: cn=Bjoern Giesler,dc=my-domain,dc=com
cn: Bjoern Giesler
So looks like the database is filled OK, right? However, ldapsearch
huckepack:~> ldapsearch -x
# extended LDIF
# base <> with scope sub
# filter: (objectclass=*)
# requesting: ALL
# search result
result: 32 No such object
# numResponses: 1
I've tried ldapadd also (using cn=Manager,dn=my-domain,dn=com as a bind
DN and the correct password; if I don't, it complains about incorrect
authentication, so I know it's talking to the right server and at least
doing *something* with it). When I try to add "cn=Joe
User,dc=my-domain,dc=com", it complains about "parent not found"...
which is consistent with ldapsearch not finding anything.
Can anybody help me out here? I'm very very confused.
Thanks a million in advance!