Add App setup wizard

This commit is contained in:
garrettmills
2020-05-21 22:56:48 -05:00
parent ca11e3afae
commit b275391674
13 changed files with 475 additions and 8 deletions

View File

@@ -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) {