LDAP - set default loginShell
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:
parent
6a4f82611b
commit
dbb8684f68
@ -190,6 +190,7 @@ class User extends AuthUser {
|
|||||||
const Policy = this.models.get('iam:Policy')
|
const Policy = this.models.get('iam:Policy')
|
||||||
|
|
||||||
const uid_number = await this.get_uid_number()
|
const uid_number = await this.get_uid_number()
|
||||||
|
const shell = this.configs.get('ldap:server.schema.default_shell')
|
||||||
|
|
||||||
const ldap_data = {
|
const ldap_data = {
|
||||||
uid: this.uid.toLowerCase(),
|
uid: this.uid.toLowerCase(),
|
||||||
@ -204,10 +205,9 @@ class User extends AuthUser {
|
|||||||
entryUUID: this.uuid,
|
entryUUID: this.uuid,
|
||||||
objectGuid: this.uuid,
|
objectGuid: this.uuid,
|
||||||
objectguid: this.uuid,
|
objectguid: this.uuid,
|
||||||
// uidnumber: uid_number,
|
|
||||||
uidNumber: uid_number,
|
uidNumber: uid_number,
|
||||||
// gidnumber: uid_number,
|
|
||||||
gidNumber: uid_number,
|
gidNumber: uid_number,
|
||||||
|
loginShell: shell,
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( this.tagline ) ldap_data.extras_tagline = this.tagline
|
if ( this.tagline ) ldap_data.extras_tagline = this.tagline
|
||||||
|
@ -19,6 +19,7 @@ const ldap_server = {
|
|||||||
user_id: 'uid',
|
user_id: 'uid',
|
||||||
},
|
},
|
||||||
start_uid: env('LDAP_START_UID', 80000),
|
start_uid: env('LDAP_START_UID', 80000),
|
||||||
|
default_shell: env('LDAP_DEFAULT_SHELL', '/bin/bash'),
|
||||||
},
|
},
|
||||||
|
|
||||||
format: {
|
format: {
|
||||||
|
Loading…
Reference in New Issue
Block a user