PHP 클래스 BookStack\Services\LdapService

파일 보기 프로젝트 열기: ssddanbrown/bookstack 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$config
$ldap
$ldapConnection

공개 메소드들

메소드 설명
__construct ( Ldap $ldap ) LdapService constructor.
getUserDetails ( $userName ) : array | null Get the details of a user from LDAP using the given username.
validateUserCredentials ( Illuminate\Contracts\Auth\Authenticatable $user, string $username, string $password ) : boolean

보호된 메소드들

메소드 설명
bindSystemUser ( $connection ) Bind the system user to the LDAP connection using the given credentials otherwise anonymous access is attempted.
buildFilter ( string $filterString, array $attrs ) : string Build a filter string by injecting common variables.
getConnection ( ) : resource Get the connection to the LDAP server.

메소드 상세

__construct() 공개 메소드

LdapService constructor.
public __construct ( Ldap $ldap )
$ldap Ldap

bindSystemUser() 보호된 메소드

Bind the system user to the LDAP connection using the given credentials otherwise anonymous access is attempted.
protected bindSystemUser ( $connection )
$connection

buildFilter() 보호된 메소드

Build a filter string by injecting common variables.
protected buildFilter ( string $filterString, array $attrs ) : string
$filterString string
$attrs array
리턴 string

getConnection() 보호된 메소드

Creates a new connection if one does not exist.
protected getConnection ( ) : resource
리턴 resource

getUserDetails() 공개 메소드

User found via configurable user filter.
public getUserDetails ( $userName ) : array | null
$userName
리턴 array | null

validateUserCredentials() 공개 메소드

public validateUserCredentials ( Illuminate\Contracts\Auth\Authenticatable $user, string $username, string $password ) : boolean
$user Illuminate\Contracts\Auth\Authenticatable
$username string
$password string
리턴 boolean

프로퍼티 상세

$config 보호되어 있는 프로퍼티

protected $config

$ldap 보호되어 있는 프로퍼티

protected $ldap

$ldapConnection 보호되어 있는 프로퍼티

protected $ldapConnection