PHP 트레잇 Adldap\Laravel\Traits\AuthenticatesUsers

상속: use trait UsesAdldap
파일 보기 프로젝트 열기: Adldap2/Adldap2-Laravel

공개 메소드들

메소드 설명
getLoginUsernameFromUser ( User $user ) : string Retrieves the configured login username from the LDAP user.
retrieveByCredentials ( array $credentials = [] ) : Illuminate\Contracts\Auth\Authenticatable | null Retrieves an LDAP user by their credentials.

보호된 메소드들

메소드 설명
authenticate ( string $username, string $password ) : boolean Authenticates a user against our default LDAP connection.
getLoginAttribute ( ) : string Returns the configured login attribute for authenticating users.
getLoginFallback ( ) : boolean Retrieves the Adldap login fallback option for falling back to the local database if AD authentication fails.
getPasswordFromCredentials ( array $credentials = [] ) : string Returns the configured users password from the credentials array.
getPasswordKey ( ) : mixed Returns the password key to retrieve the password from the user input array.
getUsernameAttribute ( ) : array Returns the configured username attribute for discovering LDAP users.
getUsernameFromCredentials ( array $credentials = [] ) : string Returns the username from the specified credentials.
getUsernameKey ( ) : string Returns the configured username key.
getUsernameValue ( ) : string Returns the configured username value.
handleAuthenticatedModelTrashed ( User $user, Illuminate\Contracts\Auth\Authenticatable $model ) : void Handle an authenticated users model that has been soft deleted.
handleAuthenticatedWithCredentials ( User $user, Illuminate\Contracts\Auth\Authenticatable $model ) : void Handle an authenticated LDAP user with their model.
handleDiscoveredUserWithCredentials ( User $user ) : void Handle discovered LDAP users before they are authenticated.
isConnected ( ) : boolean Checks if we're currently connected to our configured LDAP server.

메소드 상세

authenticate() 보호된 메소드

Authenticates a user against our default LDAP connection.
protected authenticate ( string $username, string $password ) : boolean
$username string
$password string
리턴 boolean

getLoginAttribute() 보호된 메소드

Returns the configured login attribute for authenticating users.
protected getLoginAttribute ( ) : string
리턴 string

getLoginFallback() 보호된 메소드

Retrieves the Adldap login fallback option for falling back to the local database if AD authentication fails.
protected getLoginFallback ( ) : boolean
리턴 boolean

getLoginUsernameFromUser() 공개 메소드

Retrieves the configured login username from the LDAP user.
public getLoginUsernameFromUser ( User $user ) : string
$user Adldap\Models\User
리턴 string

getPasswordFromCredentials() 보호된 메소드

Returns the configured users password from the credentials array.
protected getPasswordFromCredentials ( array $credentials = [] ) : string
$credentials array
리턴 string

getPasswordKey() 보호된 메소드

Returns the password key to retrieve the password from the user input array.
protected getPasswordKey ( ) : mixed
리턴 mixed

getUsernameAttribute() 보호된 메소드

Returns the configured username attribute for discovering LDAP users.
protected getUsernameAttribute ( ) : array
리턴 array

getUsernameFromCredentials() 보호된 메소드

Returns the username from the specified credentials.
protected getUsernameFromCredentials ( array $credentials = [] ) : string
$credentials array
리턴 string

getUsernameKey() 보호된 메소드

For example: 'email' or 'username'.
protected getUsernameKey ( ) : string
리턴 string

getUsernameValue() 보호된 메소드

For example: 'samaccountname' or 'mail'.
protected getUsernameValue ( ) : string
리턴 string

handleAuthenticatedModelTrashed() 보호된 메소드

Handle an authenticated users model that has been soft deleted.
protected handleAuthenticatedModelTrashed ( User $user, Illuminate\Contracts\Auth\Authenticatable $model ) : void
$user Adldap\Models\User
$model Illuminate\Contracts\Auth\Authenticatable
리턴 void

handleAuthenticatedWithCredentials() 보호된 메소드

Handle an authenticated LDAP user with their model.
protected handleAuthenticatedWithCredentials ( User $user, Illuminate\Contracts\Auth\Authenticatable $model ) : void
$user Adldap\Models\User
$model Illuminate\Contracts\Auth\Authenticatable
리턴 void

handleDiscoveredUserWithCredentials() 보호된 메소드

Handle discovered LDAP users before they are authenticated.
protected handleDiscoveredUserWithCredentials ( User $user ) : void
$user Adldap\Models\User
리턴 void

isConnected() 보호된 메소드

Checks if we're currently connected to our configured LDAP server.
protected isConnected ( ) : boolean
리턴 boolean

retrieveByCredentials() 공개 메소드

Retrieves an LDAP user by their credentials.
public retrieveByCredentials ( array $credentials = [] ) : Illuminate\Contracts\Auth\Authenticatable | null
$credentials array
리턴 Illuminate\Contracts\Auth\Authenticatable | null