mirror of
https://github.com/openstf/stf
synced 2025-10-04 10:19:30 +02:00
Add ldap username field option. Default field is 'cn'
This commit is contained in:
parent
b61df410f7
commit
5618e68cb4
2 changed files with 8 additions and 1 deletions
|
@ -79,7 +79,7 @@ module.exports = function(options) {
|
|||
var token = jwtutil.encode({
|
||||
payload: {
|
||||
email: ldaputil.email(user)
|
||||
, name: user.cn
|
||||
, name: user[options.ldap.username.field]
|
||||
}
|
||||
, secret: options.secret
|
||||
, header: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue