Property | 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 |
Method | 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 ) |
Method | Description | |
---|---|---|
getConnectionString ( string | array $hosts = [], string $protocol, string $port ) : string | Generates an LDAP connection string for each host given. |
public controlPagedResult ( $pageSize = 1000, $isCritical = false, $cookie = '' ) |
public getProtocol ( ) : string | ||
return | string |
public setRebindCallback ( callable $callback ) | ||
$callback | callable |
protected bool $bound | ||
return | boolean |
protected resource $connection | ||
return | resource |
protected bool $useSSL | ||
return | boolean |
protected bool $useTLS | ||
return | boolean |