PHP Class Adldap\Connections\Ldap

Class LDAP
Inheritance: implements Adldap\Interfaces\ConnectionInterface, use trait Adldap\Traits\LdapFunctionSupportTrait
Afficher le fichier Open project: adldap2/adldap2 Class Usage Examples

Protected Properties

Свойство Type Description
$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

Méthodes publiques

Méthode Description
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 )

Méthodes protégées

Méthode Description
getConnectionString ( string | array $hosts = [], string $protocol, string $port ) : string Generates an LDAP connection string for each host given.

Method Details

add() public méthode

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

bind() public méthode

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

canChangePasswords() public méthode

public canChangePasswords ( )

close() public méthode

public close ( )

compare() public méthode

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

connect() public méthode

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

controlPagedResult() public méthode

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

controlPagedResultResponse() public méthode

public controlPagedResultResponse ( $result, &$cookie )

countEntries() public méthode

public countEntries ( $searchResults )

delete() public méthode

public delete ( $dn )

err2Str() public méthode

public err2Str ( $number )

errNo() public méthode

public errNo ( )

extractDiagnosticCode() public méthode

public extractDiagnosticCode ( $message )

getAttributes() public méthode

public getAttributes ( $entry )

getConnection() public méthode

public getConnection ( )

getConnectionString() protected méthode

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
Résultat string

getDiagnosticMessage() public méthode

getEntries() public méthode

public getEntries ( $searchResults )

getExtendedError() public méthode

public getExtendedError ( )

getExtendedErrorCode() public méthode

getExtendedErrorHex() public méthode

public getExtendedErrorHex ( )

getFirstEntry() public méthode

public getFirstEntry ( $searchResults )

getLastError() public méthode

public getLastError ( )

getNextEntry() public méthode

public getNextEntry ( $entry )

getProtocol() public méthode

Returns the LDAP protocol to utilize for the current connection.
public getProtocol ( ) : string
Résultat string

getValuesLen() public méthode

public getValuesLen ( $entry, $attribute )

isBound() public méthode

public isBound ( )

isUsingSSL() public méthode

public isUsingSSL ( )

isUsingTLS() public méthode

public isUsingTLS ( )

listing() public méthode

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

modAdd() public méthode

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

modDelete() public méthode

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

modReplace() public méthode

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

modify() public méthode

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

modifyBatch() public méthode

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

read() public méthode

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

rename() public méthode

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

setOption() public méthode

public setOption ( $option, $value )

setOptions() public méthode

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

setRebindCallback() public méthode

public setRebindCallback ( callable $callback )
$callback callable

ssl() public méthode

public ssl ( $enabled = true )

startTLS() public méthode

public startTLS ( )

tls() public méthode

public tls ( $enabled = true )

Property Details

$bound protected_oe property

Stores the bool whether or not the current connection is bound.
protected bool $bound
Résultat boolean

$connection protected_oe property

The active LDAP connection.
protected resource $connection
Résultat resource

$useSSL protected_oe property

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

$useTLS protected_oe property

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