Property | Type | Description | |
---|---|---|---|
$config | |||
$dns | |||
$selectionMethod | The method to use when ordering the servers array. | ||
$tcp |
Method | Description | |
---|---|---|
__construct ( |
||
getSelectionMethod ( ) : string | Get the selection method for checking servers. | |
getServer ( ) : string | Retrieve the first available LDAP server. | |
getSortedServersArray ( ) : array | Uses the selected method to decide how to return the server array for the check. | |
setSelectionMethod ( string $method ) | Set the selection method for checking servers (ie. 'random', 'order'). |
Method | Description | |
---|---|---|
getServersFromDns ( ) : array | Attempt to lookup the LDAP servers from the DNS name. | |
isServerAvailable ( string $server ) : boolean | Check if a LDAP server is up and available. | |
shuffleServers ( array $servers ) : array | Returns a randomized array of the servers. |
public __construct ( |
||
$config | ||
$tcp | ||
$dns |
public getSelectionMethod ( ) : string | ||
return | string |
protected getServersFromDns ( ) : array | ||
return | array | The LDAP servers. |
public getSortedServersArray ( ) : array | ||
return | array |
protected isServerAvailable ( string $server ) : boolean | ||
$server | string | |
return | boolean |
public setSelectionMethod ( string $method ) | ||
$method | string |
protected shuffleServers ( array $servers ) : array | ||
$servers | array | |
return | array |
protected DomainConfiguration,LdapTools $config | ||
return |
protected $selectionMethod |