Method | Description | |
---|---|---|
__construct ( array $params, array $data ) | Constructor. | |
add ( Horde_Ldap_Entry $entry ) : Horde_Ldap_Error | true | Add a new entryobject to a directory. | |
bind ( string $dn = '', string $pw = '' ) : null | Binds the LDAP connection with a specific user and pass. | |
delete ( string $uid ) : null | Delete an object. | |
doSearch ( array $filter, array $attributes = null ) : array | Perform the search. | |
getEntries ( array $result ) : mixed | Return the entries of a result. | |
getEntry ( string $dn, array $attr = [] ) : Horde_Ldap_Entry | Horde_Ldap_Error | Get a specific entry based on the DN | |
modify ( $entry, $data = [] ) : Horde_Ldap_Error | true | Modify an ldapentry directly on the server | |
move ( string $uid, string $new ) : null | Rename an object. | |
parse ( string $filter ) : array | Parse LDAP filter. | |
parseSub ( string $filter ) : array | Parse a LDAP subfilter. | |
schema ( ) | ||
search ( string $base = null, string $filter = null, string $params = [] ) : array | Search for object data. |
Method | Description | |
---|---|---|
toStorage ( array $data ) : array | Rewrite a data array to our internal storage format. |
Method | Description | |
---|---|---|
_checkBound ( ) : null | Check if the current connection is bound. |
public __construct ( array $params, array $data ) | ||
$params | array | Connection parameters. |
$data | array | Mockup LDAP data. |
public add ( Horde_Ldap_Entry $entry ) : Horde_Ldap_Error | true | ||
$entry | Horde_Ldap_Entry | Horde_Ldap_Entry |
return | Horde_Ldap_Error | true | Horde_Ldap_Error object or true |
public getEntries ( array $result ) : mixed | ||
$result | array | The LDAP search result. |
return | mixed | The entries of the result or false. |
public getEntry ( string $dn, array $attr = [] ) : Horde_Ldap_Entry | Horde_Ldap_Error | ||
$dn | string | DN of the entry that should be fetched |
$attr | array | Array of Attributes to select. If ommitted, all attributes are fetched. |
return | Horde_Ldap_Entry | Horde_Ldap_Error | Reference to a Horde_Ldap_Entry object or Horde_Ldap_Error object |
public modify ( $entry, $data = [] ) : Horde_Ldap_Error | true | ||
return | Horde_Ldap_Error | true | Horde_Ldap_Error object or true |