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

Fwd: Re: NEWBIE - no data back from query

I had a case where I got the same error ("ldap_search: No such object").

It turned out to be spaces at the end of some lines in my ldif file (also check spaces before a new line).

I removed the spaces and all worked fine.

But Kurt is right (after all he does make the software), a search base should be specified

At 04:16 PM 7/12/99 +1000, Mark Harvey wrote:
>Sorry if this is not the correct list (please advise correct list) for
>my problem.

This is the right list.

>I've built the openldap succesfully on Linux (RedHat v6) and make tests
>pass OK.
>Following the "A Quick-Start Guide to running slapd" I get a response
>from the ldapsearch program of "ldap_search: No such object".

This is commonly caused by not specifying a search base (-b)
on your ldapsearch command.   See our FAQ for hints.

>The ldif2ldmb seemed to build the database correctly and I do have
>several files in /var/tmp.

That's a good sign.  However, I recommend using ldapadd() to import
entries into your directory.  ldif2ldbm doesn't do any ldif or
schema checks (it's designed to work in conjunction with ldbmcat).

>A "strings" of the files in /var/tmp does have the data in them.

Probably a case of bad ldif.  Use ldapadd.


-------------------------------------------------------------------------- Joe Novielli x.7703 Email: jnoviell@matrox.com MIS Department Matrox Electronic Systems Inc. http://www.matrox.com 1055 St-Régis Tel: (514) 822-6000 x. 7703 Dorval, Québec Fax: (514) 822-6262 Canada, H9P 2T4 --------------------------------------------------------------------------