Added support for LDAP user photo profile
This commit is contained in:
@@ -121,6 +121,7 @@ Technical details
|
||||
|
||||
- [LDAP authentication](ldap-authentication.markdown)
|
||||
- [LDAP group synchronization](ldap-group-sync.markdown)
|
||||
- [LDAP profile picture](ldap-profile-picture.markdown)
|
||||
- [LDAP parameters](ldap-parameters.markdown)
|
||||
- [Reverse proxy authentication](reverse-proxy-authentication.markdown)
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ Here is the list of available LDAP parameters:
|
||||
| `LDAP_USER_ATTRIBUTE_FULLNAME` | cn | LDAP attribute for user full name (Example: "displayname") |
|
||||
| `LDAP_USER_ATTRIBUTE_EMAIL` | mail | LDAP attribute for user email |
|
||||
| `LDAP_USER_ATTRIBUTE_GROUPS` | memberof | LDAP attribute to find groups in user profile |
|
||||
| `LDAP_USER_ATTRIBUTE_PHOTO` | Empty | LDAP attribute to find user photo (jpegPhoto or thumbnailPhoto |
|
||||
| `LDAP_USER_CREATION` | true | Enable automatic LDAP user creation |
|
||||
| `LDAP_GROUP_ADMIN_DN` | Empty | LDAP DN for administrators (Example: "CN=Kanboard-Admins,CN=Users,DC=kanboard,DC=local") |
|
||||
| `LDAP_GROUP_MANAGER_DN` | Empty | LDAP DN for managers (Example: "CN=Kanboard Managers,CN=Users,DC=kanboard,DC=local") |
|
||||
|
||||
27
doc/ldap-profile-picture.markdown
Normal file
27
doc/ldap-profile-picture.markdown
Normal file
@@ -0,0 +1,27 @@
|
||||
LDAP User Profile Photo
|
||||
=======================
|
||||
|
||||
Kanboard can download automatically user pictures from the LDAP server.
|
||||
|
||||
This feature is enabled only if LDAP authentication is activated and the parameter `LDAP_USER_ATTRIBUTE_PHOTO` is defined.
|
||||
|
||||
Configuration
|
||||
-------------
|
||||
|
||||
In your `config.php`, you have to set the LDAP attribute used to store the image.
|
||||
|
||||
```php
|
||||
define('LDAP_USER_ATTRIBUTE_PHOTO', 'jpegPhoto');
|
||||
```
|
||||
|
||||
Usually, the attributes `jpegPhoto` or `thumbnailPhoto` are used.
|
||||
The image can be stored in JPEG or PNG format.
|
||||
|
||||
To upload the image in the user profile, Active Directory administrators may use software like [AD Photo Edit](http://www.cjwdev.co.uk/Software/ADPhotoEdit/Info.html).
|
||||
|
||||
Notes
|
||||
-----
|
||||
|
||||
The profile image is **downloaded at login time only if the user do not already have uploaded an image previously**.
|
||||
|
||||
To change the user photo, the previous one have to be removed manually in the user profile.
|
||||
Reference in New Issue
Block a user