From 92287cf7f537e17cf6c0bfbbdec4a7716a334636 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 16 May 2024 07:58:25 +0200 Subject: [PATCH] test(samba): refs #5770 REVERT try to use ldap to add group --- modules/account/back/models/samba-helper.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/modules/account/back/models/samba-helper.js b/modules/account/back/models/samba-helper.js index b21dd6a34b..36789c0c20 100644 --- a/modules/account/back/models/samba-helper.js +++ b/modules/account/back/models/samba-helper.js @@ -80,9 +80,6 @@ module.exports = class SambaHelper { addMembers(role, user) { return this.sambaTool('group', ['addmembers', role, user]); } - editGroup(role, descriptrion = '') { - return this.sambaTool('group', ['edit', `${role}`, '--editor=\'vi\'']); - } handleRoleMembers(users) { if (users.length === 0) return []; @@ -160,24 +157,10 @@ module.exports = class SambaHelper { if (this.rolesToInsert.length > 0) { // PROCEDIMIENTO PARA INSERTAR ROLES - // for (const $role of this.rolesToInsert) { - // const {name, description} = this.roles.get($role); - - // const changed = await this.adClient.add( - // `cn=${$role},${this.fullGroupsDn}`, - // { - // cn: $role, - // description: description, - // objectClass: ['top', 'posixGroup', 'sambaGroupMapping'] - // } - // ); - // console.log(changed); - // } const resultsRoleInsert = await Promise.all( this.rolesToInsert.map(role => this.addRole(this.roles.get(role)))); printResults(resultsRoleInsert); } - // const edit = await this.editGroup('$developer'); if (this.rolesToUpdate.length > 0) { for await (const role of this.rolesToUpdate) {