LDAP - include gid number
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
Garrett Mills 2021-03-10 16:02:18 -06:00
parent 20e723f39f
commit e6588b4f5b
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

View File

@ -189,6 +189,8 @@ class User extends AuthUser {
async to_ldap(iam_targets = []) {
const Policy = this.models.get('iam:Policy')
const uid_number = await this.get_uid_number()
const ldap_data = {
uid: this.uid.toLowerCase(),
uuid: this.uuid,
@ -202,7 +204,10 @@ class User extends AuthUser {
entryUUID: this.uuid,
objectGuid: this.uuid,
objectguid: this.uuid,
uidnumber: await this.get_uid_number(),
uidnumber: uid_number,
uidNumber: uid_number,
gidnumber: uid_number,
gidNumber: uid_number,
}
if ( this.tagline ) ldap_data.extras_tagline = this.tagline