Cast gidNumber to strings
This commit is contained in:
parent
8b8c2e076f
commit
3d2c4c0fec
@ -54,7 +54,7 @@ class GroupModel extends Model {
|
|||||||
cn: this.name,
|
cn: this.name,
|
||||||
dn: this.dn.format(this.configs.get('ldap:server.format')),
|
dn: this.dn.format(this.configs.get('ldap:server.format')),
|
||||||
objectClass: ['groupOfNames', 'posixGroup'],
|
objectClass: ['groupOfNames', 'posixGroup'],
|
||||||
gidNumber: await this.get_gid_number(),
|
gidNumber: String(await this.get_gid_number()),
|
||||||
member: users.map(x => x.dn.format(this.configs.get('ldap:server.format'))),
|
member: users.map(x => x.dn.format(this.configs.get('ldap:server.format'))),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -213,7 +213,7 @@ class User extends AuthUser {
|
|||||||
objectGuid: this.uuid,
|
objectGuid: this.uuid,
|
||||||
objectguid: this.uuid,
|
objectguid: this.uuid,
|
||||||
uidNumber: uid_number,
|
uidNumber: uid_number,
|
||||||
gidNumber: await this.get_uid_number(), // group_ids.map(x => String(x)),
|
gidNumber: String(await this.get_uid_number()), // group_ids.map(x => String(x)),
|
||||||
loginShell: shell,
|
loginShell: shell,
|
||||||
homeDirectory: `/home/${this.uid}@${domain}`
|
homeDirectory: `/home/${this.uid}@${domain}`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user