Add App setup wizard
This commit is contained in:
@@ -3,7 +3,21 @@ const zxcvbn = require('zxcvbn')
|
||||
|
||||
class LDAPController extends Controller {
|
||||
static get services() {
|
||||
return [...super.services, 'models', 'utility']
|
||||
return [...super.services, 'models', 'utility', 'configs']
|
||||
}
|
||||
|
||||
async get_config(req, res, next) {
|
||||
// ldap port
|
||||
// user base dn
|
||||
// group base dn
|
||||
const config = this.configs.get('ldap:server')
|
||||
return res.api({
|
||||
port: config.port,
|
||||
base_dc: config.schema.base_dc,
|
||||
authentication_base: config.schema.authentication_base,
|
||||
group_base: config.schema.group_base,
|
||||
login_field: config.schema.auth.user_id,
|
||||
})
|
||||
}
|
||||
|
||||
async get_clients(req, res, next) {
|
||||
|
||||
Reference in New Issue
Block a user