Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-2078

add more features to controlling RegistrySubjects and give a hint if source isnt listed

    XMLWordPrintable

Details

    Description

      Yes,  that part is working, however if I then do findSubject("someApp"), I get a subjectNotFound error.  If I try to re-add the subject, using addSubject(principal, "application", principal), I get a subject "someApp/applicaiton/someApp" already exists!.

      if I then do findSubject("someApp/application/someApp"), I once again get subjectNotFound error.  Very confusing?

       

      Josh

       

      ________________________________________

      From: grouper-users-request@internet2.edu [grouper-users-request@internet2.edu] on behalf of Shilen Patel [shilen@duke.edu]

      Sent: Monday, March 25, 2019 1:52 PM

      To: O'Dowd, Josh

      Cc: grouper-users@internet2.edu

      Subject: Re: [grouper-users] gsh addSubject issues v2.4.0

       

      Is this what and how you’re running it?  (This worked for me.)

       

      groovy:000> String principal = "someApp";

      ===> someApp

      groovy:000> String email = null;

      ===> null

      groovy:000> GrouperSession grouperSession = GrouperSession.startRootSession();

      ===> ed3f25816f4c4383b4af07aa878851a9,'GrouperSystem','application'

      groovy:000> addSubject(principal, "application", principal);

      ===> Subject id: someApp, sourceId: null, name: someApp

       

      • Shilen

       

      On 3/25/19, 1:57 PM, "grouper-users-request@internet2.edu on behalf of O'Dowd, Josh" <grouper-users-request@internet2.edu on behalf of Josh.O'Dowd@mso.umt.edu> wrote:

       

          Hi,

       

          I am attempting to follow the docs at the wiki page, https://urldefense.proofpoint.com/v2/url?u=https-3A__spaces.at.internet2.edu_pages_viewpage.action-3FpageId-3D14517859&d=DwIFAg&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=sWqutME58phurE0oO57Icg&m=XdgUsOLePLZaDCI62qgoAjRoV0RniKPYlPHfR1cunBk&s=S-zSvupCqKY6-axknwa777nPe-NtJUfyU-lqC1eBCRc&e= , and following the "add a subject application principal with attributes (GSH)" example on that page.

       

          When running the example gsh, I am getting the error:

          b523873ab73041e49c9eeccdf8710e1d,'GrouperSystem','application'

          org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:

          groovysh_parse: 2: unexpected token: principal @ line 2, column 171.

             til.toListObject(new Object[]{principal,

       

          My intent is to create an "application" type subject with a login id, without having to add maintain a record in the main subject source, which is LDAP directory.  Then I want to privilege that subject with access to an application group/folder area so that the subject can be authenticated via GrouperClient into grouper-ws.

       

          Any advice on the error, or how to go about it differently is much appreciated.

       

          Thanks,

       

          Josh O'Dowd

          University of Montana

       

       

      Attachments

        Activity

          People

            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: