LDAP - include gid number
This commit is contained in:
parent
20e723f39f
commit
e6588b4f5b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user