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

Re: Ldapsearch: no results



Sorry, I didn't use -D option. Now It works with:
ldapsearch -P 2 -x -b 'dc=example, dc=com' -D 'cn=manager,dc=example, dc=com'
-W

Thanks a lot.
Thanks Kurt
Thanks Darryl.
Thank you very much.


Arturo Peris wrote:

> No, It doesn't work.  I can't make slapadd without slapd running and if I
> restart slapd my search still fails.
> Thanks.
>
> "Engel, Kurt" wrote:
>
> > I had a similar experience, when I used slapadd without first stopping
> > slapd (I later read that slapadd should not be run when slapd is
> > running.) I had to restart slapd before my search was successful.  Maybe
> > this is the behavior your seeing?
> >
> > Regards, Kurt
> >
> > Kurt Engel
> > mailto:kengel@hi.com
> > Hitachi Computer Products (America), Inc.               tel:  (781)
> > 768-5828
> >
> > -----Original Message-----
> > From: Arturo Peris [mailto:aperis@gap.upv.es]
> > Sent: Friday, September 28, 2001 11:56 AM
> > To: openldap-software@OpenLDAP.org
> > Subject: Re: Ldapsearch: no results
> >
> > Oh¡ my slapd.conf file:
> > -----------------------------------------------------
> > include  /usr/local/etc/openldap/schema/core.schema
> > include  /usr/local/etc/openldap/schema/cosine.schema
> > include  /usr/local/etc/openldap/schema/nis.schema
> >
> > pidfile  /usr/local/var/slapd.pid
> > argsfile /usr/local/var/slapd.args
> >
> > database ldbm
> > suffix  "dc=example,dc=com"
> >
> > rootdn  "cn=Manager,dc=example,dc=com"
> > rootpw  secret
> >
> > directory /usr/local/var/openldap-ldbm
> >
> > index objectClass eq
> >
> > access to attr=userpassword
> >  by self write
> >  by dn="cn=Manager,dc=example,dc=com" write
> >  by * write
> > ---------------------------------------------
> >
> > Arturo Peris wrote:
> >
> > > I'm trying to show results with ldapsearch but I don't get nothing
> > (nor
> > > errors).
> > > I have openldap 2.0.11-8 on a RH7.1(Seawolf).
> > > First I have done a successful ldapadd and with slapcat I show the
> > > correct values.
> > > But with ldapsearch I get nothing.
> > >
> > > What's happening ?
> > > Thanks.