Use jpegPhoto LDAP attribute as Avatar picture
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Implementation Plan
Based on a previous attempt at adding this feature: https://github.com/brigriffin/gitlabhq/commit/b8c5ba30919c72c5d66e9090b7b89a50cec5bb24
- Add
jpegPhoto
todef user_attributes
inlib/gitlab/auth/ldap/adapter.rb
- Map
photo
tojpegPhoto
(orthumbnailPhoto
) indef default_attributes
inlib/gitlab/auth/ldap/config.rb
- Define
photo
inlib/gitlab/auth/ldap/person.rb
(attribute_value(:photo)
) - Add tests (likely to be:
lib/gitlab/auth/ldap/person.rb
lib/gitlab/auth/ldap/config.rb
lib/gitlab/auth/ldap/adapter.rb
Bonus:
- Create a rake task to import photos/avatars for all LDAP users and add specs (probably a separate merge request)
Edited by 🤖 GitLab Bot 🤖