ldap_exop_sync
(PHP 8 >= 8.3.0)
ldap_exop_sync — Performs an extended operation
Description
LDAP\Connection
$ldap,string
$request_oid,?string
$request_data = null,?array
$controls = null,string
&$response_data = null,string
&$response_oid = null): LDAP\Result|bool
Performs an extended operation on the specified ldap with
request_oid the OID of the operation and
request_data the data.
Parameters
ldap
An LDAP\Connection instance, returned by ldap_connect().
request_oid
The extended operation request OID.
Can be one of the
LDAP_EXOP_*
constants,
or a string with the OID of the operation.
request_data
The extended operation request data.
May be null for some operations like LDAP_EXOP_WHO_AM_I,
may also need to be BER encoded.
controls
Array of LDAP Controls to send with the request.
response_data
Will be filled with the extended operation response data if provided. If not provided ldap_parse_exop() may be used on the result object later to get this data.
response_oid
Will be filled with the response OID if provided, usually equal to the request OID.
Return Values
Returns true on success or false on error.
The operation is always performed synchronously,
so no result object is returned.
See Also
- ldap_exop() - Performs an extended operation
- ldap_exop_whoami() - WHOAMI extended operation helper
- ldap_exop_refresh() - Refresh extended operation helper
- ldap_exop_passwd() - PASSWD extended operation helper
- ldap_parse_result() - Extract information from result
- ldap_parse_exop() - Parse result object from an LDAP extended operation
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
