From 1ef50595a0066312c0fc4cedd08bcbec5592cb03 Mon Sep 17 00:00:00 2001 From: mchyzer Date: Sat, 2 Mar 2024 17:13:11 -0500 Subject: [PATCH] fix build error --- .../ex401.end/container_files/grouper/bootstrap.gsh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/ex401/ex401.end/container_files/grouper/bootstrap.gsh b/ex401/ex401.end/container_files/grouper/bootstrap.gsh index a41e56a..4f4b548 100644 --- a/ex401/ex401.end/container_files/grouper/bootstrap.gsh +++ b/ex401/ex401.end/container_files/grouper/bootstrap.gsh @@ -321,19 +321,17 @@ wri250Ref.grantPriv(wri250Sec.toSubject(), AccessPrivilege.READ) wri250Ref.grantPriv(wri250Sec.toSubject(), AccessPrivilege.UPDATE) // Add member as kjenkins - -GrouperSession gs2 = GrouperSession.start(SubjectFinder.findByIdentifierAndSource("kjenkins", "eduLDAP", true)) +GrouperSession.stopQuietly(gs) +GrouperSession gs2 = GrouperSession.startBySubjectIdentifierAndSource("kjenkins", "eduLDAP") wri250Ref.addMember(SubjectFinder.findByIdentifierAndSource("mwest", "eduLDAP", true), false) // switch back to banderson -GrouperSession.start(gs.subject) +GrouperSession.stopQuietly(gs2) +gs = GrouperSession.startBySubjectIdentifierAndSource("banderson", "eduLDAP") 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 @@ -348,8 +346,6 @@ attribAssign.attributeValueDelegate.with { assignValue(RuleUtils.ruleThenEnumArg1Name(), "T") } -GrouperSession.stopQuietly(gs2); -gs2 = GrouperSession.startBySubjectIdentifierAndSource("kjenkins", "eduLDAP") vpnConsultantsRef.addMember(SubjectFinder.findByIdentifierAndSource("rjohnso5", "eduLDAP", true), false)