Home >Backend Development >PHP Tutorial >php-ldap_search总是返回flase ,ldap_search运用是否正确?

php-ldap_search总是返回flase ,ldap_search运用是否正确?

WBOY
WBOYOriginal
2016-06-02 11:33:411387browse

ldapphp

//根节点
$base_dn = "dc=envisioncn,dc=com";

//执行查询
$result = ldap_search($ldap_conn, $base_dn,"(objectClass=user)");

var_dump($result);

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn