PHP 클래스 Adldap\Connections\Ldap

Class LDAP
상속: implements Adldap\Interfaces\ConnectionInterface, use trait Adldap\Traits\LdapFunctionSupportTrait
파일 보기 프로젝트 열기: adldap2/adldap2 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$bound boolean Stores the bool whether or not the current connection is bound.
$connection resource The active LDAP connection.
$useSSL boolean To use SSL, your server must support LDAP over SSL. http://adldap.sourceforge.net/wiki/doku.php?id=ldap_over_ssl
$useTLS boolean If you wish to use TLS you should ensure that $useSSL is set to false and vice-versa

공개 메소드들

메소드 설명
add ( $dn, array $entry )
bind ( $username, $password, $sasl = false )
canChangePasswords ( )
close ( )
compare ( $dn, $attribute, $value )
connect ( $hosts = [], $port = '389' )
controlPagedResult ( $pageSize = 1000, $isCritical = false, $cookie = '' )
controlPagedResultResponse ( $result, &$cookie )
countEntries ( $searchResults )
delete ( $dn )
err2Str ( $number )
errNo ( )
extractDiagnosticCode ( $message )
getAttributes ( $entry )
getConnection ( )
getDiagnosticMessage ( )
getEntries ( $searchResults )
getExtendedError ( )
getExtendedErrorCode ( )
getExtendedErrorHex ( )
getFirstEntry ( $searchResults )
getLastError ( )
getNextEntry ( $entry )
getProtocol ( ) : string Returns the LDAP protocol to utilize for the current connection.
getValuesLen ( $entry, $attribute )
isBound ( )
isUsingSSL ( )
isUsingTLS ( )
listing ( $dn, $filter, array $attributes )
modAdd ( $dn, array $entry )
modDelete ( $dn, array $entry )
modReplace ( $dn, array $entry )
modify ( $dn, array $entry )
modifyBatch ( $dn, array $values )
read ( $dn, $filter, array $fields )
rename ( $dn, $newRdn, $newParent, $deleteOldRdn = false )
search ( $dn, $filter, array $fields )
setOption ( $option, $value )
setOptions ( array $options = [] )
setRebindCallback ( callable $callback )
ssl ( $enabled = true )
startTLS ( )
tls ( $enabled = true )

보호된 메소드들

메소드 설명
getConnectionString ( string | array $hosts = [], string $protocol, string $port ) : string Generates an LDAP connection string for each host given.

메소드 상세

add() 공개 메소드

public add ( $dn, array $entry )
$entry array

bind() 공개 메소드

public bind ( $username, $password, $sasl = false )

canChangePasswords() 공개 메소드

public canChangePasswords ( )

close() 공개 메소드

public close ( )

compare() 공개 메소드

public compare ( $dn, $attribute, $value )

connect() 공개 메소드

public connect ( $hosts = [], $port = '389' )

controlPagedResult() 공개 메소드

public controlPagedResult ( $pageSize = 1000, $isCritical = false, $cookie = '' )

controlPagedResultResponse() 공개 메소드

public controlPagedResultResponse ( $result, &$cookie )

countEntries() 공개 메소드

public countEntries ( $searchResults )

delete() 공개 메소드

public delete ( $dn )

err2Str() 공개 메소드

public err2Str ( $number )

errNo() 공개 메소드

public errNo ( )

extractDiagnosticCode() 공개 메소드

public extractDiagnosticCode ( $message )

getAttributes() 공개 메소드

public getAttributes ( $entry )

getConnection() 공개 메소드

public getConnection ( )

getConnectionString() 보호된 메소드

Generates an LDAP connection string for each host given.
protected getConnectionString ( string | array $hosts = [], string $protocol, string $port ) : string
$hosts string | array
$protocol string
$port string
리턴 string

getDiagnosticMessage() 공개 메소드

getEntries() 공개 메소드

public getEntries ( $searchResults )

getExtendedError() 공개 메소드

public getExtendedError ( )

getExtendedErrorCode() 공개 메소드

getExtendedErrorHex() 공개 메소드

public getExtendedErrorHex ( )

getFirstEntry() 공개 메소드

public getFirstEntry ( $searchResults )

getLastError() 공개 메소드

public getLastError ( )

getNextEntry() 공개 메소드

public getNextEntry ( $entry )

getProtocol() 공개 메소드

Returns the LDAP protocol to utilize for the current connection.
public getProtocol ( ) : string
리턴 string

getValuesLen() 공개 메소드

public getValuesLen ( $entry, $attribute )

isBound() 공개 메소드

public isBound ( )

isUsingSSL() 공개 메소드

public isUsingSSL ( )

isUsingTLS() 공개 메소드

public isUsingTLS ( )

listing() 공개 메소드

public listing ( $dn, $filter, array $attributes )
$attributes array

modAdd() 공개 메소드

public modAdd ( $dn, array $entry )
$entry array

modDelete() 공개 메소드

public modDelete ( $dn, array $entry )
$entry array

modReplace() 공개 메소드

public modReplace ( $dn, array $entry )
$entry array

modify() 공개 메소드

public modify ( $dn, array $entry )
$entry array

modifyBatch() 공개 메소드

public modifyBatch ( $dn, array $values )
$values array

read() 공개 메소드

public read ( $dn, $filter, array $fields )
$fields array

rename() 공개 메소드

public rename ( $dn, $newRdn, $newParent, $deleteOldRdn = false )

setOption() 공개 메소드

public setOption ( $option, $value )

setOptions() 공개 메소드

public setOptions ( array $options = [] )
$options array

setRebindCallback() 공개 메소드

public setRebindCallback ( callable $callback )
$callback callable

ssl() 공개 메소드

public ssl ( $enabled = true )

startTLS() 공개 메소드

public startTLS ( )

tls() 공개 메소드

public tls ( $enabled = true )

프로퍼티 상세

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

Stores the bool whether or not the current connection is bound.
protected bool $bound
리턴 boolean

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

The active LDAP connection.
protected resource $connection
리턴 resource

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

To use SSL, your server must support LDAP over SSL. http://adldap.sourceforge.net/wiki/doku.php?id=ldap_over_ssl
protected bool $useSSL
리턴 boolean

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

If you wish to use TLS you should ensure that $useSSL is set to false and vice-versa
protected bool $useTLS
리턴 boolean