feat: auth + storage config improvements
This commit is contained in:
@@ -11,7 +11,30 @@ module.exports = {
|
||||
key: 'ldap',
|
||||
title: 'LDAP / Active Directory',
|
||||
useForm: true,
|
||||
props: ['url', 'bindDn', 'bindCredentials', 'searchBase', 'searchFilter', 'tlsEnabled', 'tlsCertPath'],
|
||||
props: {
|
||||
url: {
|
||||
type: String,
|
||||
default: 'ldap://serverhost:389'
|
||||
},
|
||||
bindDn: {
|
||||
type: String,
|
||||
default: `cn='root'`
|
||||
},
|
||||
bindCredentials: String,
|
||||
searchBase: {
|
||||
type: String,
|
||||
default: 'o=users,o=example.com'
|
||||
},
|
||||
searchFilter: {
|
||||
type: String,
|
||||
default: '(uid={{username}})'
|
||||
},
|
||||
tlsEnabled: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
tlsCertPath: String
|
||||
},
|
||||
init (passport, conf) {
|
||||
passport.use('ldapauth',
|
||||
new LdapStrategy({
|
||||
|
||||
Reference in New Issue
Block a user