コマンドラインでldapsearchコマンドを実行すると、大量の結果が返されますが、PHPを介した同等の(またはそう思う)クエリでは何も返されません。
ldapsearch コマンド:
ldapsearch -Zx -H ldap://directory.host.ca -D [CREDENTIALS] -w [PASSWORD] -z 0 -l 0 - LLL -b "ou=people,dc=business,dc=ca" "(&(facultyCode=AU)(term="1380")" uid
PHP 検索:
//binding has already happened with the same credentials as used in the CLI command
$filter = '(&(facultyCode=AU)(term="1380"))';
$list = ldap_search($conn,'ou=people,dc=business,dc=ca',$filter,array('uid'),0,0,0);
私は何が欠けていますか?