PHP Class Dsdevbe\LdapConnector\Adapter\Adldap

Inheritance: implements Dsdevbe\LdapConnector\Adapter\LdapInterface
Datei anzeigen Open project: dsdevbe/ldap-connector

Protected Properties

Property Type Description
$_hasher Illuminate\Contracts\Hashing\Hasher
$_ldap Adldap\Adldap
$_password string
$_username string

Public Methods

Method Description
__construct ( Illuminate\Contracts\Hashing\Hasher $hasher, array $config )
connect ( string $username, string $password ) : boolean
getUserInfo ( string $username, string $password = null ) : Dsdevbe\LdapConnector\Model\User | null
isConnectedToLdap ( ) : boolean

Protected Methods

Method Description
mapDataToUserModel ( User $user, $password )

Method Details

__construct() public method

public __construct ( Illuminate\Contracts\Hashing\Hasher $hasher, array $config )
$hasher Illuminate\Contracts\Hashing\Hasher
$config array

connect() public method

public connect ( string $username, string $password ) : boolean
$username string
$password string
return boolean

getUserInfo() public method

public getUserInfo ( string $username, string $password = null ) : Dsdevbe\LdapConnector\Model\User | null
$username string
$password string
return Dsdevbe\LdapConnector\Model\User | null

isConnectedToLdap() public method

public isConnectedToLdap ( ) : boolean
return boolean

mapDataToUserModel() protected method

protected mapDataToUserModel ( User $user, $password )
$user Adldap\Models\User

Property Details

$_hasher protected_oe property

protected Hasher,Illuminate\Contracts\Hashing $_hasher
return Illuminate\Contracts\Hashing\Hasher

$_ldap protected_oe property

protected Adldap,Adldap $_ldap
return Adldap\Adldap

$_password protected_oe property

protected string $_password
return string

$_username protected_oe property

protected string $_username
return string