Active Directory Lookup via PHP

前端 未结 4 1428
走了就别回头了
走了就别回头了 2021-02-04 22:55

How can you do an Active Directory lookup via PHP? Without needing to recompile PHP. PHP version is 5.3

I want to find a persons display name from their user name. Web s

4条回答
  •  不思量自难忘°
    2021-02-04 23:19

    The fisrt parameter of ldap_get_entries function is incorrect:

    $info = ldap_get_entries($ldapconn, $sr);
    

    Tested in this way and your code works now.

提交回复
热议问题