ldap_sasl_bind
(PHP 5, PHP 7, PHP 8)
ldap_sasl_bind — Bind to LDAP directory using SASL
說明
ldap_sasl_bind(
LDAP\Connection
?string
?string
?string
?string
?string
?string
?string
): bool
LDAP\Connection
$ldap,?string
$dn = null,?string
$password = null,?string
$mech = null,?string
$realm = null,?string
$authc_id = null,?string
$authz_id = null,?string
$props = null): bool
警告
本函式還未編寫文件,僅有參數列表。
返回值
成功時返回 true, 或者在失敗時返回 false。
更新日誌
| 版本 | 說明 |
|---|---|
| 8.1.0 |
現在 ldap 參數接受 LDAP\Connection
實例,之前接受 資源(resource)。
|
| 8.0.0 |
dn, password, mech,
realm, authc_id, authz_id
and props are nullable now.
|
註釋
注意: Requirement
ldap_sasl_bind() requires SASL support (sasl.h). Be sure--with-ldap-saslis used when configuring PHP otherwise this function will be undefined.