PHP 인터페이스 LdapTools\Connection\LdapConnectionInterface

저자: Chad Sikorra ([email protected])
파일 보기 프로젝트 열기: ldaptools/ldaptools 0 사용 예제들

공개 메소드들

메소드 설명
close ( ) If the connection is bound, this closes the LDAP connection.
connect ( string | null $username = null, string | null $password = null, boolean $anonymous = false, string | null $server = null ) Connect and bind to LDAP.
execute ( LdapTools\Operation\LdapOperationInterface $operation ) : mixed Execute an operation against LDAP (Add, Modify, Delete, Move, Query, etc).
getConfig ( ) : DomainConfiguration Get the DomainConfiguration instance in use by the connection.
getConnection ( ) : resource Get the LDAP connection resource.
getDiagnosticMessage ( ) : string Get the full diagnostic message from the LDAP server for the last operation.
getExtendedErrorNumber ( ) : integer Get the extended error number from LDAP for the last operation.
getIdleTime ( ) : integer Get the time, in seconds, that the connection has been idle. If not connected this will always return 0.
getLastError ( ) : string Get the message from the LDAP server for the last operation.
getRootDse ( ) : LdapObject Return a RootDse LDAP object for this connection.
getServer ( ) : string | null Get the LDAP server that the connection is currently connected to.
isBound ( ) : boolean Determine whether the connection is currently bound to LDAP with a username/password.
setControl ( LdapControl $control ) Set the LDAP control for the connection.

메소드 상세

close() 공개 메소드

If the connection is bound, this closes the LDAP connection.
public close ( )

connect() 공개 메소드

Connect and bind to LDAP.
public connect ( string | null $username = null, string | null $password = null, boolean $anonymous = false, string | null $server = null )
$username string | null The username to connect with. If not specified, the one in the config is used.
$password string | null The password for the username.
$anonymous boolean Whether this is an attempt to bind anonymously, ignoring the username and password.
$server string | null The server to connect to. If not specified, the server(s) in the config are used.

execute() 공개 메소드

Execute an operation against LDAP (Add, Modify, Delete, Move, Query, etc).
public execute ( LdapTools\Operation\LdapOperationInterface $operation ) : mixed
$operation LdapTools\Operation\LdapOperationInterface
리턴 mixed

getConfig() 공개 메소드

Get the DomainConfiguration instance in use by the connection.
public getConfig ( ) : DomainConfiguration
리턴 LdapTools\DomainConfiguration

getConnection() 공개 메소드

Get the LDAP connection resource.
public getConnection ( ) : resource
리턴 resource

getDiagnosticMessage() 공개 메소드

Get the full diagnostic message from the LDAP server for the last operation.
public getDiagnosticMessage ( ) : string
리턴 string

getExtendedErrorNumber() 공개 메소드

Get the extended error number from LDAP for the last operation.
public getExtendedErrorNumber ( ) : integer
리턴 integer

getIdleTime() 공개 메소드

Get the time, in seconds, that the connection has been idle. If not connected this will always return 0.
public getIdleTime ( ) : integer
리턴 integer

getLastError() 공개 메소드

Get the message from the LDAP server for the last operation.
public getLastError ( ) : string
리턴 string

getRootDse() 공개 메소드

Return a RootDse LDAP object for this connection.
public getRootDse ( ) : LdapObject
리턴 LdapTools\Object\LdapObject

getServer() 공개 메소드

Get the LDAP server that the connection is currently connected to.
public getServer ( ) : string | null
리턴 string | null

isBound() 공개 메소드

Determine whether the connection is currently bound to LDAP with a username/password.
public isBound ( ) : boolean
리턴 boolean

setControl() 공개 메소드

Set the LDAP control for the connection.
public setControl ( LdapControl $control )
$control LdapControl