ldapphp //根节点$base_dn = "dc=envisioncn,dc=com"; //执行查询$result = ldap_search($ldap_conn, $base_dn,"(objectClass=user)"); var_dump($result);