Method | Description | |
---|---|---|
__construct ( array $config, string $location ) | Constructor for this configuration parser. | |
getAttributes ( $dn, $attributes = null ) | ||
login ( string $username, string $password, array $sasl_args = null ) : array | Attempt to log in using the given username and password. | |
searchfordn ( string | array $attribute, string $value, boolean $allowZeroHits ) : string | Search for a DN. |
public __construct ( array $config, string $location ) | ||
$config | array | Configuration. |
$location | string | The location of this configuration. Used for error reporting. |
public searchfordn ( string | array $attribute, string $value, boolean $allowZeroHits ) : string | ||
$attribute | string | array | The attribute name(s) searched for. If set to NULL, values from configuration is used. |
$value | string | The attribute value searched for. |
$allowZeroHits | boolean | Determines if the method will throw an exception if no hits are found. Defaults to FALSE. |
return | string | The DN of the matching element, if found. If no element was found and $allowZeroHits is set to FALSE, an exception will be thrown; otherwise NULL will be returned. |