Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
mchyzer committed Mar 2, 2024
1 parent 632d6c6 commit 1ef5059
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions ex401/ex401.end/container_files/grouper/bootstrap.gsh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)

Expand Down

0 comments on commit 1ef5059

Please sign in to comment.