Commit fcf9cc47 authored by stanislav.goldmann's avatar stanislav.goldmann

Fixed refactoring bugs

parent a29082c1
......@@ -4,6 +4,7 @@ namespace Krenor\LdapAuth;
use Illuminate\Contracts\Auth\UserProvider;
use Illuminate\Contracts\Auth\Authenticatable;
use Krenor\LdapAuth\Objects\Ldap;
class LdapAuthUserProvider implements UserProvider
{
......
......@@ -148,7 +148,7 @@ class LdapUser implements UserContract, AuthorizableContract, LdapUserContract
*/
private function buildAttributesFromLdap($entry)
{
$this->attributes['display_name'] = $entry['displayname'][0];
$this->attributes['dn'] = $entry['dn'];
// Set the attributes accordingly to the search fields given
foreach($entry as $index => $key){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment