ldap_exop_whoami

(PHP 7 >= 7.2.0, PHP 8)

ldap_exop_whoamiWHOAMI extended operation helper

說明

ldap_exop_whoami(LDAP\Connection $ldap): string|false

Performs a WHOAMI extended operation and returns the data.

參數(shù)

ldap

通過 ldap_connect() 返回的 LDAP\Connection 實例。

返回值

The data returned by the server, or false on error.

更新日志

版本 說明
8.1.0 現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。

參見