PHP 클래스 BookStack\Services\Ldap

Allows the standard LDAP functions to be mocked for testing.
파일 보기 프로젝트 열기: ssddanbrown/bookstack

공개 메소드들

메소드 설명
bind ( resource $ldapConnection, string $bindRdn = null, string $bindPassword = null ) : boolean Bind to LDAP directory.
connect ( string $hostName, integer $port ) : resource Connect to a LDAP server.
getEntries ( resource $ldapConnection, resource $ldapSearchResult ) : array Get entries from an ldap search result.
search ( resource $ldapConnection, string $baseDn, string $filter, array $attributes = null ) : resource Search LDAP tree using the provided filter.
searchAndGetEntries ( resource $ldapConnection, string $baseDn, string $filter, array $attributes = null ) : resource Search and get entries immediately.
setOption ( resource $ldapConnection, integer $option, mixed $value ) : boolean Set the value of a LDAP option for the given connection.
setVersion ( $ldapConnection, $version ) : boolean Set the version number for the given ldap connection.

메소드 상세

bind() 공개 메소드

Bind to LDAP directory.
public bind ( resource $ldapConnection, string $bindRdn = null, string $bindPassword = null ) : boolean
$ldapConnection resource
$bindRdn string
$bindPassword string
리턴 boolean

connect() 공개 메소드

Connect to a LDAP server.
public connect ( string $hostName, integer $port ) : resource
$hostName string
$port integer
리턴 resource

getEntries() 공개 메소드

Get entries from an ldap search result.
public getEntries ( resource $ldapConnection, resource $ldapSearchResult ) : array
$ldapConnection resource
$ldapSearchResult resource
리턴 array

searchAndGetEntries() 공개 메소드

Search and get entries immediately.
public searchAndGetEntries ( resource $ldapConnection, string $baseDn, string $filter, array $attributes = null ) : resource
$ldapConnection resource
$baseDn string
$filter string
$attributes array
리턴 resource

setOption() 공개 메소드

Set the value of a LDAP option for the given connection.
public setOption ( resource $ldapConnection, integer $option, mixed $value ) : boolean
$ldapConnection resource
$option integer
$value mixed
리턴 boolean

setVersion() 공개 메소드

Set the version number for the given ldap connection.
public setVersion ( $ldapConnection, $version ) : boolean
$ldapConnection
$version
리턴 boolean