feat: ldap avatar support

This commit is contained in:
NGPixel
2020-09-07 20:02:33 -04:00
parent dab5dcfbc1
commit 78417524b3
6 changed files with 111 additions and 11 deletions

View File

@@ -23,7 +23,8 @@ module.exports = {
ca: [
fs.readFileSync(conf.tlsCertPath)
]
} : {}
} : {},
includeRaw: true
},
usernameField: 'email',
passwordField: 'password',
@@ -41,7 +42,7 @@ module.exports = {
id: userId,
email: String(_.get(profile, conf.mappingEmail, '')).split(',')[0],
displayName: _.get(profile, conf.mappingDisplayName, '???'),
picture: _.get(profile, conf.mappingPicture, '')
picture: _.get(profile, `_raw.${conf.mappingPicture}`, '')
}
})
cb(null, user)