Method |
Description |
|
add ( string $dn, array $entry ) : boolean |
Adds an entry to the current connection. |
|
bind ( string $username, string $password, boolean $sasl = false ) : boolean |
Binds to the current connection using
the specified username and password. If sasl
is true, the current connection is bound using
SASL. |
|
canChangePasswords ( ) : boolean |
Returns true / false if the current
connection is able to modify passwords. |
|
close ( ) : boolean |
Closes the current connection. |
|
compare ( string $dn, string $attribute, string $value ) : mixed |
Compare value of attribute found in entry specified with DN. |
|
connect ( string | array $hostname = [], integer $port = 389 ) : mixed |
Connects to the specified hostname using the
specified port. |
|
controlPagedResult ( integer $pageSize = 1000, boolean $isCritical = false, string $cookie = '' ) : mixed |
Send LDAP pagination control. |
|
controlPagedResultResponse ( $result, string &$cookie ) : mixed |
Retrieve a paginated result response. |
|
countEntries ( $searchResult ) : integer |
Returns the number of entries from a search
result. |
|
delete ( string $dn ) : boolean |
Deletes an entry on the current connection. |
|
err2Str ( integer $number ) : string |
Returns the error string of the specified
error number. |
|
errNo ( ) : integer |
Returns the error number of the last command
executed on the current connection. |
|
extractDiagnosticCode ( string $message ) : string | boolean |
Extract the diagnostic code from the message. |
|
getAttributes ( $entry ) : mixed |
Retrieves the ldap entry's attributes. |
|
getConnection ( ) : mixed |
Get the current connection. |
|
getDiagnosticMessage ( ) : string |
Return the diagnostic Message. |
|
getEntries ( $searchResult ) : mixed |
Retrieve the entries from a search result. |
|
getExtendedError ( ) : string |
Returns the extended error string of the last command. |
|
getExtendedErrorCode ( ) : string |
Returns the extended error code of the last command. |
|
getExtendedErrorHex ( ) : string | null |
Returns the extended error hex code of the last command. |
|
getFirstEntry ( $searchResult ) : mixed |
Retrieves the first entry from a search result. |
|
getLastError ( ) : string |
Retrieve the last error on the current
connection. |
|
getNextEntry ( $entry ) : mixed |
Retrieves the next entry from a search result. |
|
getValuesLen ( $entry, $attribute ) : array |
Get all binary values from the specified result entry. |
|
isBatchSupported ( ) : boolean |
Returns true / false if the
current connection supports batch
modification. |
|
isBound ( ) : boolean |
Returns true / false if the current
connection is bound. |
|
isPagingSupported ( ) : boolean |
Returns true / false if the
current connection pagination. |
|
isSaslSupported ( ) : boolean |
Returns true / false if the
current connection supports
SASL for single sign on
capability. |
|
isSupported ( ) : boolean |
Returns true / false if the
current connection is supported
on the current PHP install. |
|
isUsingSSL ( ) : boolean |
Returns true / false if the
current connection instance is using
SSL. |
|
isUsingTLS ( ) : boolean |
Returns true / false if the
current connection instance is using
TLS. |
|
listing ( string $dn, string $filter, array $attributes ) : mixed |
Performs a single level search on the current connection. |
|
modAdd ( string $dn, array $entry ) : mixed |
Add attribute values to current attributes. |
|
modDelete ( string $dn, array $entry ) : mixed |
Delete attribute values from current attributes. |
|
modReplace ( string $dn, array $entry ) : mixed |
Replaces attribute values with new ones. |
|
modify ( string $dn, array $entry ) : boolean |
Modifies an existing entry on the
current connection. |
|
modifyBatch ( string $dn, array $values ) : mixed |
Batch modifies an existing entry on the
current connection. |
|
read ( string $dn, $filter, array $fields ) : mixed |
Reads an entry on the current connection. |
|
rename ( string $dn, string $newRdn, string $newParent, boolean $deleteOldRdn = false ) : boolean |
Modify the name of an entry on the current
connection. |
|
search ( string $dn, string $filter, array $fields ) : mixed |
|
|
setOption ( integer $option, mixed $value ) : mixed |
Sets an option on the current connection. |
|
setOptions ( array $options = [] ) : mixed |
Sets options on the current connection. |
|
setRebindCallback ( callable $callback ) : boolean |
Set a callback function to do re-binds on referral chasing. |
|
ssl ( boolean $enabled = true ) : Adldap\Connections\ConnectionInterface |
Sets the current connection to use SSL. |
|
startTLS ( ) : mixed |
Starts a connection using TLS. |
|
tls ( boolean $enabled = true ) : Adldap\Connections\ConnectionInterface |
Sets the current connection to use TLS. |
|