PHP 클래스 LdapTools\Connection\LdapConnection

저자: Chad Sikorra ([email protected])
상속: implements LdapTools\Connection\LdapConnectionInterface
파일 보기 프로젝트 열기: ldaptools/ldaptools

보호된 프로퍼티들

프로퍼티 타입 설명
$config LdapTools\DomainConfiguration
$connection resource
$dispatcher LdapTools\Event\EventDispatcherInterface
$isBound Whether the connection is bound using a username/password
$lastActivity DateTime | null
$logger LdapTools\Log\LdapLoggerInterface | null
$rootDse LdapTools\Object\LdapObject | null
$server The LDAP server that we are currently connected to.
$serverPool LdapServerPool
$usernameFormatter LdapTools\Connection\AD\ADBindUserStrategy | BindUserStrategy

공개 메소드들

메소드 설명
__construct ( DomainConfiguration $config, LdapTools\Event\EventDispatcherInterface $dispatcher = null, LdapTools\Log\LdapLoggerInterface $logger = null )
close ( )
connect ( $username = null, $password = null, $anonymous = false, $server = null )
execute ( LdapTools\Operation\LdapOperationInterface $operation )
getConfig ( )
getConnection ( )
getDiagnosticMessage ( )
getExtendedErrorNumber ( )
getIdleTime ( )
getLastError ( )
getRootDse ( )
getServer ( )
isBound ( )
setControl ( LdapControl $control )

보호된 메소드들

메소드 설명
bind ( string $username, string $password, boolean $anonymous = false ) Binds to LDAP with the supplied credentials or anonymously if specified.
getLdapUrl ( null | string $server = null ) : string[] Get the LDAP URL to connect to.
initiateLdapConnection ( null | string $server = null ) Makes the initial connection to LDAP, sets connection options, and starts TLS if specified.
setupOperationInvoker ( ) Sets the needed objects on the operation invoker.

메소드 상세

__construct() 공개 메소드

public __construct ( DomainConfiguration $config, LdapTools\Event\EventDispatcherInterface $dispatcher = null, LdapTools\Log\LdapLoggerInterface $logger = null )
$config LdapTools\DomainConfiguration
$dispatcher LdapTools\Event\EventDispatcherInterface
$logger LdapTools\Log\LdapLoggerInterface

bind() 보호된 메소드

Binds to LDAP with the supplied credentials or anonymously if specified.
protected bind ( string $username, string $password, boolean $anonymous = false )
$username string The username to bind with.
$password string The password to bind with.
$anonymous boolean Whether this is an anonymous bind attempt.

close() 공개 메소드

public close ( )

connect() 공개 메소드

public connect ( $username = null, $password = null, $anonymous = false, $server = null )

execute() 공개 메소드

public execute ( LdapTools\Operation\LdapOperationInterface $operation )
$operation LdapTools\Operation\LdapOperationInterface

getConfig() 공개 메소드

public getConfig ( )

getConnection() 공개 메소드

public getConnection ( )

getDiagnosticMessage() 공개 메소드

getExtendedErrorNumber() 공개 메소드

getIdleTime() 공개 메소드

public getIdleTime ( )

getLastError() 공개 메소드

public getLastError ( )

getLdapUrl() 보호된 메소드

Get the LDAP URL to connect to.
protected getLdapUrl ( null | string $server = null ) : string[]
$server null | string
리턴 string[]

getRootDse() 공개 메소드

public getRootDse ( )

getServer() 공개 메소드

public getServer ( )

initiateLdapConnection() 보호된 메소드

Makes the initial connection to LDAP, sets connection options, and starts TLS if specified.
protected initiateLdapConnection ( null | string $server = null )
$server null | string

isBound() 공개 메소드

public isBound ( )

setControl() 공개 메소드

public setControl ( LdapControl $control )
$control LdapControl

setupOperationInvoker() 보호된 메소드

Sets the needed objects on the operation invoker.
protected setupOperationInvoker ( )

프로퍼티 상세

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

protected DomainConfiguration,LdapTools $config
리턴 LdapTools\DomainConfiguration

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

protected resource $connection
리턴 resource

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

protected EventDispatcherInterface,LdapTools\Event $dispatcher
리턴 LdapTools\Event\EventDispatcherInterface

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

Whether the connection is bound using a username/password
protected $isBound

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

protected DateTime|null $lastActivity
리턴 DateTime | null

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

protected LdapLoggerInterface,LdapTools\Log|null $logger
리턴 LdapTools\Log\LdapLoggerInterface | null

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

protected LdapObject,LdapTools\Object|null $rootDse
리턴 LdapTools\Object\LdapObject | null

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

The LDAP server that we are currently connected to.
protected $server

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

protected LdapServerPool,LdapTools\Connection $serverPool
리턴 LdapServerPool

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

protected ADBindUserStrategy,LdapTools\Connection\AD|BindUserStrategy,LdapTools\Connection $usernameFormatter
리턴 LdapTools\Connection\AD\ADBindUserStrategy | BindUserStrategy