PHP 인터페이스 Adldap\Auth\GuardInterface

파일 보기 프로젝트 열기: adldap2/adldap2

공개 메소드들

메소드 설명
__construct ( Adldap\Connections\ConnectionInterface $connection, DomainConfiguration $configuration ) Constructor.
attempt ( string $username, string $password, boolean $bindAsUser = false ) : boolean Authenticates a user using the specified credentials.
bind ( string $username, string $password, string $prefix = null, string $suffix = null ) Binds to the current connection using the inserted credentials.
bindAsAdministrator ( ) Binds to the current LDAP server using the configuration administrator credentials.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Adldap\Connections\ConnectionInterface $connection, DomainConfiguration $configuration )
$connection Adldap\Connections\ConnectionInterface
$configuration Adldap\Configuration\DomainConfiguration

attempt() 공개 메소드

Authenticates a user using the specified credentials.
public attempt ( string $username, string $password, boolean $bindAsUser = false ) : boolean
$username string The users AD username.
$password string The users AD password.
$bindAsUser boolean Whether or not to bind as the user.
리턴 boolean

bind() 공개 메소드

Binds to the current connection using the inserted credentials.
public bind ( string $username, string $password, string $prefix = null, string $suffix = null )
$username string
$password string
$prefix string
$suffix string

bindAsAdministrator() 공개 메소드

Binds to the current LDAP server using the configuration administrator credentials.
public bindAsAdministrator ( )