LDAP_SEARCH filter syntax help

From: Date: Mon, 27 Dec 2004 19:44:50 +0000
Subject: LDAP_SEARCH filter syntax help
Groups: php.general 
Request: Send a blank email to php-general+get-205216@lists.php.net to get a copy of this message
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

« previous php.general (#205216) next »