Bind to LDAP with a specific DN and password. Simple wrapper around
ldap_bind() with some additional logging.
public bind ( string $dn, string $password, array $sasl_args = null ) : boolean | ||
$dn | string | The DN used. |
$password | string | The password used. |
$sasl_args | array | Array of SASL options for SASL bind |
리턴 | boolean | Returns TRUE if successful, FALSE if LDAP_INVALID_CREDENTIALS, LDAP_X_PROXY_AUTHZ_FAILURE, LDAP_INAPPROPRIATE_AUTH, LDAP_INSUFFICIENT_ACCESS |