除非我没有正确使用它,但我正在使用ldap查询子句member-of来查找组成员,这里的代码如下:
ldap_set_option($conn,LDAP_OPT_PROTOCOL_VERSION,3);
$searchText= "ou=Aston University,dc=blackboard,dc=com";
$regdn = "memberof=$searchText";
$regfilter = "cn=$searchText*";
$nodes = array("cn","street","mail","uidNumber");
$searchRead = ldap_search($conn,$regdn,$regfilter,$nodes);
$en = ldap_get_entries($conn,$searchRead);
当我们有很多条目时,我似乎得到零条目。我做错了什么?