From e2e4e550d72b1696a985e80ce6408817c172666b Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 8 May 2024 07:13:56 +0200 Subject: [PATCH] feat(samba): refs #5770 #5770 Add new field GroupDn in sambaConfig --- db/dump/fixtures.before.sql | 4 ++-- db/versions/11035-blueGalax/00-firstScript.sql | 2 ++ modules/account/back/models/samba-config.json | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 db/versions/11035-blueGalax/00-firstScript.sql diff --git a/db/dump/fixtures.before.sql b/db/dump/fixtures.before.sql index 438c2655b..355091ac2 100644 --- a/db/dump/fixtures.before.sql +++ b/db/dump/fixtures.before.sql @@ -3792,5 +3792,5 @@ INSERT INTO vn.workCenter (id, name, payrollCenterFk, counter, warehouseFk, stre VALUES(100, 'workCenterOne', 1, NULL, 1, 'gotham', NULL, NULL); - INSERT INTO account.sambaConfig (id,adDomain,adController,adUser,adPassword,verifyCert,userDn) VALUES - (1,'verdnatura.es','192.168.56.102','Administrator','V3rdn4tur4$',0,'ou=users'); + INSERT INTO account.sambaConfig (id,adDomain,adController,adUser,adPassword,verifyCert,userDn,groupDn) VALUES + (1,'verdnatura.es','192.168.56.102','Administrator','V3rdn4tur4$',0,'ou=VnUsers','ou=VnGroups'); diff --git a/db/versions/11035-blueGalax/00-firstScript.sql b/db/versions/11035-blueGalax/00-firstScript.sql new file mode 100644 index 000000000..4ba206d81 --- /dev/null +++ b/db/versions/11035-blueGalax/00-firstScript.sql @@ -0,0 +1,2 @@ +-- Place your SQL code here +ALTER TABLE account.sambaConfig ADD groupDn varchar(255) NULL COMMENT 'The base DN for groups'; diff --git a/modules/account/back/models/samba-config.json b/modules/account/back/models/samba-config.json index 4c9e0a794..6fde4f97a 100644 --- a/modules/account/back/models/samba-config.json +++ b/modules/account/back/models/samba-config.json @@ -32,6 +32,10 @@ "type": "string", "required": true }, + "groupDn": { + "type": "string", + "required": true + }, "verifyCert": { "type": "boolean" }