ldap_sasl_bind

(PHP 5, PHP 7, PHP 8)

ldap_sasl_bindSASL を使用して LDAP ディレクトリにバインドする

説明

ldap_sasl_bind(
    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 クラスのインスタンスを期待するようになりました。 これより前のバージョンでは、有効な ldap linkリソース を期待していました。
8.0.0dn, password, mech, realm, authc_id, authz_id, props は、nullable になりました。

注意

注意: 前提条件
ldap_sasl_bind()SASL のサポート(sasl.h)が必要です。PHP の configure 時に --with-ldap-sasl が指定されている ことを確認してください。さもないとこの関数は未定義となります。

To Top