mirror of
https://github.com/omniauth/omniauth.git
synced 2022-11-09 12:31:49 -05:00
adding name to the user_info hash for ldap
This commit is contained in:
parent
9624081b1d
commit
3c07f89440
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ module OmniAuth
|
|||
include OmniAuth::Strategy
|
||||
|
||||
autoload :Adaptor, 'omniauth/strategies/ldap/adaptor'
|
||||
@@config = {'first_name' => 'givenName', 'last_name' => 'sn', 'email' => ['mail', "email", 'userPrincipalName'],
|
||||
@@config = {'name' => 'cn', 'first_name' => 'givenName', 'last_name' => 'sn', 'email' => ['mail', "email", 'userPrincipalName'],
|
||||
'phone' => ['telephoneNumber', 'homePhone', 'facsimileTelephoneNumber'],
|
||||
'mobile_number' => ['mobile', 'mobileTelephoneNumber'],
|
||||
'nickname' => ['uid', 'userid', 'sAMAccountName'],
|
||||
|
@ -91,4 +91,4 @@ module OmniAuth
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue