LDAP_SEARCH filter syntax help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am just starting to familiarize myself with LDAP and I am having problems with a simple search when using a filter with multiple criteria. I'm trying to return distinguishedname attribute when a match exists for both samaccountname AND telephonenumber.  The syntax I am using is:

ldapsearch <connect string> (&(samaccountname=johndoe)(telephonenumber=555-555-5555)) distinguishedname

I keep getting this error:
(telephonenumber was unexpected at this time.

Thanks in advance,

Jason

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux