Use jpegPhoto LDAP attribute as Avatar picture
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=15136) </details> <!--IssueSummary end--> ## Implementation Plan Based on a previous attempt at adding this feature: https://github.com/brigriffin/gitlabhq/commit/b8c5ba30919c72c5d66e9090b7b89a50cec5bb24 * Add `jpegPhoto` to `def user_attributes` in `lib/gitlab/auth/ldap/adapter.rb` * Map `photo` to `jpegPhoto` (or `thumbnailPhoto`) in `def default_attributes` in `lib/gitlab/auth/ldap/config.rb` * Define `photo` in `lib/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)
issue