PHP Класс LdapTools\Connection\BindUserStrategy

Автор: Chad Sikorra ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$bindFormat The default bind format.
$config LdapTools\DomainConfiguration
$params The parameters to be replaced in the username string.

Открытые методы

Метод Описание
__construct ( DomainConfiguration $config )
getInstance ( DomainConfiguration $config ) : ADBindUserStrategy | BindUserStrategy Given the LDAP type, determine the BindStrategy to use.
getUsername ( string $username ) : string Given the connection resource and the other required parameters, attempt the bind and return the result.

Описание методов

__construct() публичный Метод

public __construct ( DomainConfiguration $config )
$config LdapTools\DomainConfiguration

getInstance() публичный статический Метод

Given the LDAP type, determine the BindStrategy to use.
public static getInstance ( DomainConfiguration $config ) : ADBindUserStrategy | BindUserStrategy
$config LdapTools\DomainConfiguration
Результат LdapTools\Connection\AD\ADBindUserStrategy | BindUserStrategy

getUsername() публичный Метод

Given the connection resource and the other required parameters, attempt the bind and return the result.
public getUsername ( string $username ) : string
$username string
Результат string

Описание свойств

$bindFormat защищенное свойство

The default bind format.
protected $bindFormat

$config защищенное свойство

protected DomainConfiguration,LdapTools $config
Результат LdapTools\DomainConfiguration

$params защищенное свойство

The parameters to be replaced in the username string.
protected $params