Property | Type | Description | |
---|---|---|---|
$config | |||
$ldap | |||
$ldapConnection |
Method | Description | |
---|---|---|
__construct ( |
LdapService constructor. | |
getUserDetails ( $userName ) : array | null | Get the details of a user from LDAP using the given username. | |
validateUserCredentials ( Illuminate\Contracts\Auth\Authenticatable $user, string $username, string $password ) : boolean |
Method | Description | |
---|---|---|
bindSystemUser ( $connection ) | Bind the system user to the LDAP connection using the given credentials otherwise anonymous access is attempted. | |
buildFilter ( string $filterString, array $attrs ) : string | Build a filter string by injecting common variables. | |
getConnection ( ) : resource | Get the connection to the LDAP server. |
protected bindSystemUser ( $connection ) | ||
$connection |
protected getConnection ( ) : resource | ||
return | resource |
public getUserDetails ( $userName ) : array | null | ||
$userName | ||
return | array | null |