diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-05-07 18:05:33 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-05-07 18:05:33 -0400 |
commit | 55ee906ba36cf66c3a390c98dde75e241de26e65 (patch) | |
tree | ed4e5419bb6254c97d63d6a5cab5ab74536201a0 /app/Core/Ldap/User.php | |
parent | aac11a609c58ec8356e1ca479da456876034b06c (diff) |
Added support for language LDAP attribute
Diffstat (limited to 'app/Core/Ldap/User.php')
-rw-r--r-- | app/Core/Ldap/User.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/app/Core/Ldap/User.php b/app/Core/Ldap/User.php index d0036ea7..c54aa1ac 100644 --- a/app/Core/Ldap/User.php +++ b/app/Core/Ldap/User.php @@ -146,7 +146,8 @@ class User $entry->getFirstValue($this->getAttributeEmail()), $this->getRole($groupIds), $groupIds, - $entry->getFirstValue($this->getAttributePhoto()) + $entry->getFirstValue($this->getAttributePhoto()), + $entry->getFirstValue($this->getAttributeLanguage()) ); } @@ -166,6 +167,7 @@ class User $this->getAttributeEmail(), $this->getAttributeGroup(), $this->getAttributePhoto(), + $this->getAttributeLanguage(), ))); } @@ -237,6 +239,17 @@ class User } /** + * Get LDAP language attribute + * + * @access public + * @return string + */ + public function getAttributeLanguage() + { + return strtolower(LDAP_USER_ATTRIBUTE_LANGUAGE); + } + + /** * Get LDAP Group User filter * * @access public |