Allow users to set login shell in profile
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-03-10 19:43:51 -06:00
parent 2d31eaa148
commit 91fc8a65a2
5 changed files with 30 additions and 5 deletions

View File

@@ -39,6 +39,7 @@ class User extends AuthUser {
trap: String,
notify_config: NotifyConfig,
uid_number: Number,
login_shell: String,
}}
}
@@ -190,7 +191,7 @@ class User extends AuthUser {
const Policy = this.models.get('iam:Policy')
const uid_number = await this.get_uid_number()
const shell = this.configs.get('ldap:server.schema.default_shell')
const shell = this.login_shell || this.configs.get('ldap:server.schema.default_shell')
const domain = this.configs.get('ldap:server.schema.base_dc').split(',').map(x => x.replace('dc=', '')).join('.')
const ldap_data = {