Allow users to set login shell in profile
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user