Cast gidNumber to strings
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 23:21:33 -06:00
parent 8b8c2e076f
commit 3d2c4c0fec
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246
2 changed files with 2 additions and 2 deletions

View File

@ -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'))),
} }
} }

View File

@ -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}`
} }