Skip to content

Commit

Permalink
Another attempt at fixing dn/uid
Browse files Browse the repository at this point in the history
  • Loading branch information
ohnotnow committed Oct 24, 2019
1 parent 7d2b6c3 commit c055568
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/LdapUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class LdapUser implements \ArrayAccess
protected $phone;

protected $validKeys = [
'uid' => 'username',
'dn' => 'username',
'mail' => 'email',
'sn' => 'surname',
'givenname' => 'forenames',
Expand Down Expand Up @@ -68,4 +68,4 @@ public function offsetGet($offset)
{
return $this->$offset;
}
}
}
4 changes: 2 additions & 2 deletions tests/LdapTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function can_convert_an_ldap_user_to_an_array()
{
$user = new LdapUser([
0 => [
'uid' => [0 => 'validuser'],
'dn' => [0 => 'validuser'],
'mail' => [0 => '[email protected]'],
'sn' => [0 => 'surname'],
'givenname' => [0 => 'forenames'],
Expand Down Expand Up @@ -124,4 +124,4 @@ protected function getPackageAliases($app)
'Ldap' => 'Ohffs\Ldap\LdapFacade'
];
}
}
}

0 comments on commit c055568

Please sign in to comment.