From 632d6c64d50b49e45f308b0fde2217bc4456f4bb Mon Sep 17 00:00:00 2001 From: mchyzer Date: Sat, 2 Mar 2024 10:52:14 -0500 Subject: [PATCH] fix some errors --- ex101/ex101.1.1/container_files/postgres/hr_depts.sql | 4 ++-- ex401/ex401.end/container_files/grouper/bootstrap.gsh | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ex101/ex101.1.1/container_files/postgres/hr_depts.sql b/ex101/ex101.1.1/container_files/postgres/hr_depts.sql index 6915f4e..6b7f00b 100644 --- a/ex101/ex101.1.1/container_files/postgres/hr_depts.sql +++ b/ex101/ex101.1.1/container_files/postgres/hr_depts.sql @@ -123,8 +123,8 @@ insert into hr_depts(dept_id, name, parent_dept_id, abbrev) values create table hr_orgs ( dept_id VARCHAR(5) primary key references hr_depts (dept_id), abbrev VARCHAR(5), - min_dept_id VARCHAR(5) references hr_depts (dept_id), - max_dept_id VARCHAR(5) references hr_depts (dept_id), + min_dept_id VARCHAR(5), + max_dept_id VARCHAR(5), range_desc VARCHAR(30) ); diff --git a/ex401/ex401.end/container_files/grouper/bootstrap.gsh b/ex401/ex401.end/container_files/grouper/bootstrap.gsh index 525c82f..a41e56a 100644 --- a/ex401/ex401.end/container_files/grouper/bootstrap.gsh +++ b/ex401/ex401.end/container_files/grouper/bootstrap.gsh @@ -331,6 +331,8 @@ GrouperSession.start(gs.subject) HelperMethods.addAttestation(wri250Ref, "true", "30") +GrouperSession.stopQuietly(gs2); +gs2 = GrouperSession.startRootSession(); // Set a rule on the consultants group vpnConsultantsRef AttributeAssign attribAssign = vpnConsultantsRef.attributeDelegate.addAttribute(RuleUtils.ruleAttributeDefName()).attributeAssign @@ -346,6 +348,9 @@ attribAssign.attributeValueDelegate.with { assignValue(RuleUtils.ruleThenEnumArg1Name(), "T") } +GrouperSession.stopQuietly(gs2); +gs2 = GrouperSession.startBySubjectIdentifierAndSource("kjenkins", "eduLDAP") + vpnConsultantsRef.addMember(SubjectFinder.findByIdentifierAndSource("rjohnso5", "eduLDAP", true), false)