프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$config | |||
$dns | |||
$selectionMethod | The method to use when ordering the servers array. | ||
$tcp |
메소드 | 설명 | |
---|---|---|
__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'). |
메소드 | 설명 | |
---|---|---|
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 | ||
리턴 | string |
protected getServersFromDns ( ) : array | ||
리턴 | array | The LDAP servers. |
public getSortedServersArray ( ) : array | ||
리턴 | array |
protected isServerAvailable ( string $server ) : boolean | ||
$server | string | |
리턴 | boolean |
public setSelectionMethod ( string $method ) | ||
$method | string |
protected shuffleServers ( array $servers ) : array | ||
$servers | array | |
리턴 | array |
protected DomainConfiguration,LdapTools $config | ||
리턴 |
protected $selectionMethod |