PHP Class LdapTools\Connection\BindUserStrategy

Author: Chad Sikorra ([email protected])
Datei anzeigen Open project: ldaptools/ldaptools Class Usage Examples

Protected Properties

Property Type Description
$bindFormat The default bind format.
$config LdapTools\DomainConfiguration
$params The parameters to be replaced in the username string.

Public Methods

Method Description
__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.

Method Details

__construct() public method

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

getInstance() public static method

Given the LDAP type, determine the BindStrategy to use.
public static getInstance ( DomainConfiguration $config ) : ADBindUserStrategy | BindUserStrategy
$config LdapTools\DomainConfiguration
return LdapTools\Connection\AD\ADBindUserStrategy | BindUserStrategy

getUsername() public method

Given the connection resource and the other required parameters, attempt the bind and return the result.
public getUsername ( string $username ) : string
$username string
return string

Property Details

$bindFormat protected_oe property

The default bind format.
protected $bindFormat

$config protected_oe property

protected DomainConfiguration,LdapTools $config
return LdapTools\DomainConfiguration

$params protected_oe property

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