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" }