Property | Type | Description | |
---|---|---|---|
$config | |||
$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 | |||
$server | The LDAP server that we are currently connected to. | ||
$serverPool | |||
$usernameFormatter |
Method | Description | |
---|---|---|
__construct ( |
||
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 ( |
Method | Description | |
---|---|---|
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. |
public __construct ( |
||
$config | ||
$dispatcher | LdapTools\Event\EventDispatcherInterface | |
$logger | LdapTools\Log\LdapLoggerInterface |
public connect ( $username = null, $password = null, $anonymous = false, $server = null ) |
public execute ( LdapTools\Operation\LdapOperationInterface $operation ) | ||
$operation | LdapTools\Operation\LdapOperationInterface |
protected getLdapUrl ( null | string $server = null ) : string[] | ||
$server | null | string | |
return | string[] |
protected initiateLdapConnection ( null | string $server = null ) | ||
$server | null | string |
protected setupOperationInvoker ( ) |
protected DomainConfiguration,LdapTools $config | ||
return |
protected EventDispatcherInterface,LdapTools\Event $dispatcher | ||
return | LdapTools\Event\EventDispatcherInterface |
protected $isBound |
protected LdapLoggerInterface,LdapTools\Log|null $logger | ||
return | LdapTools\Log\LdapLoggerInterface | null |
protected LdapObject,LdapTools\Object|null $rootDse | ||
return |
protected LdapServerPool,LdapTools\Connection $serverPool | ||
return |