summaryrefslogtreecommitdiff
path: root/app/Core/Ldap
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core/Ldap')
-rw-r--r--app/Core/Ldap/User.php15
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