14a18a42b7
This commit is contained in:
Girish Ramakrishnan
2024-10-30 17:41:54 +01:00
parent 61341b8380
commit 55a880c9ac
+1 -1
View File
@@ -46,7 +46,7 @@ function translateUser(ldapConfig, ldapUser) {
// RFC: https://datatracker.ietf.org/doc/html/rfc2798
const user = {
username: typeof ldapUser[ldapConfig.usernameField] !== 'string' ? ldapUser[ldapConfig.usernameField].toLowerCase() : '',
username: typeof ldapUser[ldapConfig.usernameField] === 'string' ? ldapUser[ldapConfig.usernameField].toLowerCase() : '',
email: ldapUser.mail || ldapUser.mailPrimaryAddress,
twoFactorAuthenticationEnabled: !!ldapUser.twoFactorAuthenticationEnabled,
displayName: ldapUser.displayName || ldapUser.cn // user.giveName + ' ' + user.sn