[Date Prev][Date Next]
RE: ldap_search: No such object
> -----Original Message-----
> From: openldap-technical-bounces@OpenLDAP.org [mailto:openldap-technical-
> bounces@OpenLDAP.org] On Behalf Of Dieter KlÃnter
> Sent: 07 November 2011 08:42
> To: firstname.lastname@example.org
> Subject: Re: ldap_search: No such object
> Am Thu, 3 Nov 2011 13:05:05 +0000
> schrieb Aaron Roberts <email@example.com>:
> > Hi all,
> > I am trying to get openldap working with a mysql backend.
> > Unfortunately, I always get "ldap_search: No such object" when I try
> > to query. I am not familiar with LDAP and I am trying to get a
> > simple phone directory up and running from a very small existing DB.
> > I can see from my mysql query log that slapd is working with the
> > first entry from the ldap_entries table and then never requesting any
> > subsequent rows. I'm not sure what information will be needed for
> > debugging this, I have start with debug output from slapd taken when
> > running a search.
> > Many thanks for any assistance,
> > Aaron
> > [root@test ~]# /usr/lib/mozldap/ldapsearch -x -b 'o=sql,c=RU' '(cn=*)'
> > ldap_search: No such object
> in particular the part on propper filter design.
Thanks for your response. I eventually discovered that I needed a parent object for my phonebook entries. We had the exact same configuration and data setup working on a much older version of openldap. Version 2.3.43 gave "No such object" until I created a parent container object!
I discovered this by moving the dataset into the ldbm backend, which gave me the same "No such object" error, with an additional message complaining that there was no parent. I added the parent container and it started working.