Add setting ldap.usernameField

This determines which ldap field is used as the username on
HackMD. By default, the "id" is used as username, too. The id
is taken from the fields `uidNumber`, `uid` or
`sAMAccountName`. To give the user more flexibility, they can
now choose the field used for the username instead.
This commit is contained in:
Lukas Kalbertodt 2017-12-09 11:17:06 +01:00
parent 1b7d621fd1
commit 612b2d1811
5 changed files with 11 additions and 1 deletions

View file

@ -96,6 +96,7 @@ module.exports = {
searchBase: undefined,
searchFilter: undefined,
searchAttributes: undefined,
usernameField: undefined,
tlsca: undefined
},
saml: {