PHP Класс LdapTools\Connection\LdapConnection

Автор: Chad Sikorra ([email protected])
Наследование: implements LdapTools\Connection\LdapConnectionInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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