era.ser wrote:

Hi,

i would like to search for more than 1 attribute.
my code is:

$filter="(&&(userCertificate=*)(mail=*))";
[EMAIL PROTECTED]($ds, "$FB", $filter);
Is this Net::LDAP or PerLDAP code or PHP? I'm not familiar with the PHP interface. Is $ds the ldap connection? Does $FB hold the search base? Does the ldap_search function default to subtree scope? Do you need the "@" in front of the function name?

The filter has too many & - it should look like this:
"(&(userCertificate=*)(mail=*))"

This means "match all entries that have both a userCertificate attribute and a mail attribute".

where is the bug?

Thanks


_______________________________________________
mozilla-directory mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-directory

Reply via email to