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

Re: Multiple search attributes



Thank you Koen, I am now getting results on searches with 
multiple attributes

> That should be
> 
> ldapsearch -L -b "dc=pokuscca,dc=cz" "(&(cn=1214)(sn=nov*))"
> 
> For more then two its   (&(xxx)(xxx)(xxx)(...))
> the | symbol is for "or" operations
> 
> 
> Koen Bosmans
> 
> 
> 
> Antonin Novak wrote:
> 
> > Can anyone tell me how to do a search, with more than 1 attribute.
> > it must be possible because I can do it via Netscape Communicator.
> >
> > I have tried the following ldapsearch
> >
> > ldapsearch -L -b "dc=pokuscca,dc=cz" "cn=1214,sn=nov*"
> >
> > and I get nothing back. If I seach on cn=1214 or sn=nov I get back
> > the details I was looking for.
> >
> > Thanks in advance for any help.
> >
> > Tony
> >
> > ----------------------------------------------------------------
> >
> >   Antonin Ch. Novak                    mailto:Antonin.Novak@cca.cz
> >   Systemovy administrator Systemova a technicka podpora CCA spol. s
> >   r.o.                    Web: http://www.cca.cz Kratka 8, 301 17
> >   Plzen Czech Republic
> >
> >   Tel: +42 019 7221253
> >   Fax: +42 019 7222931



----------------------------------------------------------------
 
  Antonin Ch. Novak                    mailto:Antonin.Novak@cca.cz
  Systemovy administrator
  Systemova a technicka podpora
  CCA spol. s r.o.                    Web: http://www.cca.cz
  Kratka 8,  
  301 17 Plzen
  Czech Republic
  
  Tel: +42 019 7221253   
  Fax: +42 019 7222931