[Date Prev][Date Next]
Re: ldapsearch need help
Joaquin Henriquez (TL/EEM) wrote:
I have this two subscribers,
How can I filter for attribute values????? if I do/
ldapserach -b "ou=subscribers,o=company" `(objectclass=*)` allowmt
Both of the values will appear, and if I put allownt=true both of them appear as well.
Can somebody help on this please need it urgently.
the condition you speak about has to be put in the filter :
replace "(objectclass=*)" with "(&(objectclass=*)(allownt=true))"
see RFC 2254 "The string representation of LDAP search filters"
the arguments you give after the filter are the attributes returned by
the search, use it if you only need one attribute for example
Hope I have helped you