+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user