Skip to Content.
Sympa Menu

grouper-dev - RE: [uportal-dev] grouper integration

Subject: Grouper Developers Forum

List archive

RE: [uportal-dev] grouper integration


Chronological Thread 
  • From: Chris Hyzer <>
  • To: Paul Gazda <>
  • Cc: Grouper Dev <>
  • Subject: RE: [uportal-dev] grouper integration
  • Date: Wed, 12 May 2010 22:05:23 -0400
  • Accept-language: en-US
  • Acceptlanguage: en-US

Sorry about that.  let me know which doc and I can fix it for the next release.  I look on the wiki and it says classpath, but Im sure there are other docs out of sync… J

 

https://spaces.internet2.edu/display/GrouperWG/Grouper+Client

 

Thanks!

Chris

 

From: Paul Gazda [mailto:]
Sent: Wednesday, May 12, 2010 8:16 PM
To: Chris Hyzer
Cc: Grouper Dev
Subject: RE: [uportal-dev] grouper integration

 

Chris,

I confirmed that grouper.client.properties can be in the classpath in my application as well. The doc said that it had to be in the same directory as the jar, so that is what I did. I guess I have to break the bad habit of reading the doc. J

Thanks.

 

Paul Gazda

Web Developer, Staff Specialist

Information Technology Services

Northern Arizona University

(928) 523-6844

 

From: Chris Hyzer [mailto:]
Sent: Wednesday, May 12, 2010 12:15 PM
To: Paul Gazda
Cc: Grouper Dev
Subject: RE: [uportal-dev] grouper integration

 

Paul, regarding the placement of the grouper.client.properties, I think it already is acceptable to be on the classpath and doesn’t have to be in the lib dir.  Here is my test…  the code also shows that it checks the classpath first, then checks the dir the jar is in… anyways, I will close this jira unless you have some time to try it and give more info (or if someone else can confirm)…

 

https://bugs.internet2.edu/jira/browse/GRP-432

 

Thanks,

Chris

 

C:\mchyzer\grouper\trunk\grouperClient\dist\institution\grouperClient.institution-1.6.0>dir

 Volume in drive C has no label.

 Volume Serial Number is 8856-CFD7

 

 Directory of C:\mchyzer\grouper\trunk\grouperClient\dist\institution\grouperClient.institution-1.6.0

 

05/12/2010  03:07 PM    <DIR>          .

05/12/2010  03:07 PM    <DIR>          ..

05/12/2010  03:07 PM    <DIR>          conf

05/12/2010  03:04 PM         2,590,390 grouperClient.jar

05/12/2010  03:04 PM               422 README.txt

               2 File(s)      2,590,812 bytes

               3 Dir(s)  231,874,875,392 bytes free

 

C:\mchyzer\grouper\trunk\grouperClient\dist\institution\grouperClient.institution-1.6.0>dir conf

 Volume in drive C has no label.

 Volume Serial Number is 8856-CFD7

 

 Directory of C:\mchyzer\grouper\trunk\grouperClient\dist\institution\grouperClient.institution-1.6.0\conf

 

05/12/2010  03:07 PM    <DIR>          .

05/12/2010  03:07 PM    <DIR>          ..

05/12/2010  03:07 PM            15,388 grouper.client.properties

               1 File(s)         15,388 bytes

               2 Dir(s)  231,874,875,392 bytes free

 

C:\mchyzer\grouper\trunk\grouperClient\dist\institution\grouperClient.institution-1.6.0>java -cp conf;grouperClient.jar edu.internet2.middleware.grouperClient.GrouperClient  --operation=getMembersWs --groupNames=edu:group2

GroupIndex 0: success: T: code: SUCCESS: group: edu:group2: subjectIndex: 0: test.subject.0

 

C:\mchyzer\grouper\trunk\grouperClient\dist\institution\grouperClient.institution-1.6.0>java -jar grouperClient.jar  --operation=getMembersWs --groupNames=edu:group2

Exception in thread "main" java.lang.ExceptionInInitializerError

        at edu.internet2.middleware.grouperClient.GrouperClient.<clinit>(GrouperClient.java:118)

Caused by: java.lang.RuntimeException: Error accessing file: grouper.client.properties  This properties file needs to be

 in the same directory as grouperClient.jar, or on your Java classpath

        at edu.internet2.middleware.grouperClient.util.GrouperClientUtils.grouperClientProperties(GrouperClientUtils.jav

a:141)

        at edu.internet2.middleware.grouperClient.util.GrouperClientUtils.propertiesValue(GrouperClientUtils.java:154)

        at edu.internet2.middleware.grouperClient.util.GrouperClientUtils.retrieveLog(GrouperClientUtils.java:43)

        at edu.internet2.middleware.grouperClient.util.GrouperClientCommonUtils.<clinit>(GrouperClientCommonUtils.java:5

238)

        ... 1 more

Caused by: java.lang.RuntimeException: Problem with resource: 'grouper.client.properties'

        at edu.internet2.middleware.grouperClient.util.GrouperClientCommonUtils.propertiesFromResourceName(GrouperClient

CommonUtils.java:5316)

        at edu.internet2.middleware.grouperClient.util.GrouperClientUtils.grouperClientProperties(GrouperClientUtils.jav

a:138)

        ... 4 more

Caused by: java.lang.NullPointerException

        at edu.internet2.middleware.grouperClient.util.GrouperClientCommonUtils.propertiesFromResourceName(GrouperClient

CommonUtils.java:5270)

        ... 5 more

Could not find the main class: edu.internet2.middleware.grouperClient.GrouperClient. Program will exit.

 

C:\mchyzer\grouper\trunk\grouperClient\dist\institution\grouperClient.institution-1.6.0>

 

From: [mailto:] On Behalf Of Paul Gazda
Sent: Friday, May 07, 2010 12:53 PM
To:
Cc: Alain Mayeur; Tom Barton; Coord Esup; Coord Tech; Christian Daviau;
Subject: RE: [uportal-dev] grouper integration

 

RE: Another uPortal-Grouper integration project worth mentioning is that done by Northern Arizona University.  From what I understand, they wrote a uPortal IChannel that allowed students to administer their own Grouper-persisted groups through the portal.  I don't know much about the technical implementation of that channel, so I'm not sure if they used the web services client or created a write implementation of the group store interface.

 

We used the GrouperClient per Chris Hyzer’s recommendation to access Grouper from the portal for the UI. We make calls from the IChannel code to the methods in grouperClient.jar.  It simplified things for us because there was only one jar for us to add.  The only unusual aspect is that the grouper.client.properties file has to be deployed to the “lib” directory because it has to be in the same directory as the jar file.

 

On the back end we use Grouper’s LDAPPC application with some local mods to provision to LDAP and Active Directory.

 

Paul Gazda

 

From: Jen Bourey [mailto:]
Sent: Tuesday, May 04, 2010 10:39 AM
To:
Cc: Alain Mayeur; Tom Barton; Coord Esup; Coord Tech; Christian Daviau; ; Paul Gazda
Subject: Re: [uportal-dev] grouper integration

 

Hi Chris,

It's great to hear from you, and I'm incredibly glad that you're able to be involved in the uPortal-Grouper integration work.  I agree that adding write support to the Chicago GroupStore implementation would be a fantastic next step.  uPortal is indeed interested in potentially offloading some or all of our groups management off to uPortal, and that's something we've discussed publicly in community calls and roadmap presentations.  Even if Grouper doesn't implement PAGS-like group services any time in the near future, it would still be worth thinking about moving some of our local database groups to Grouper.

Another uPortal-Grouper integration project worth mentioning is that done by Northern Arizona University.  From what I understand, they wrote a uPortal IChannel that allowed students to administer their own Grouper-persisted groups through the portal.  I don't know much about the technical implementation of that channel, so I'm not sure if they used the web services client or created a write implementation of the group store interface.

Andrew pointed out that we should also think about whether we want to use some of the Grouper permissions from the portal.  Once we had a write-capable Grouper group store, it might make sense to allow administration of Grouper groups based on Grouper permissions.  I don't know much about Grouper's permissions, but it sounds like it might be appropriate to consider creating a Grouper implementation of the uPortal permissions store service.

For those who aren't aware, we're currently in the process of updating uPortal's administrative tools for user and group management.  While this work isn't expected to impact the groups and permissions APIs at the current time, I'm hoping that it makes the portal's groups and permissions capabilities more transparent and interesting to administrators.  We eventually might also have the opportunity to make changes that better support delegated permissions, such that use cases like that of NAU can be supported by uPortal out of the box. 

I'm also hoping that whatever we all collaborate on will be able to meet the needs of ESUP-Portail.  Alain and Raymond, it's wonderful to hear from you, and I'll have to apologize for the fact that I speak no French at all.

I'm looking forward to working with you all, and I think the Grouper integration will be a most welcome addition to uPortal.

- Jen

On Thu, Apr 29, 2010 at 1:55 PM, Chris Hyzer <> wrote:

Hey,

 

I’m Chris Hyzer from the University of Pennsylvania and on the Grouper development team, and I am interested in coding a uPortal-Grouper integration module.

 

I spoke with Andrew Petro at the Internet2 conference yesterday about this and he suggested I write the dev list to see if people have input.

 

My plan is to start with Chicago’s uPortal-Grouper implementation which I heard is readonly, and add some update functionality.  We can see how well that works, and from there see what else can be handled by Grouper.   There are some gaps between uPortal’s group functionality and what is offered out of the box by Grouper (e.g. attribute driven dynamic memberships, text file driven group lists, etc), so we can address things like that to see if it is a requirement and if we can enhance Grouper to support it (these two sound either useful or easy to do with Grouper).  It has been mentioned that if this integration works well, and if uPortal wants to get out of the Group business that Grouper could be shipped with uPortal similar to how CAS is.  I know this might sound controversial to some people, so let’s see how it goes and think about how this might work and if we want to do it.

 

I believe Jen Bourey is expecting to provide support for me, and I might be asking the list for help as well especially since I am new to uPortal.  J

 

I am wrapping up a release of Grouper now and hope to start development on this in a month or more.   I thought I would throw this out now if there is discussion around it.

 

Thoughts?  Questions?  Advice?

 

Thanks!

Chris

 

-- 

 


 
 
 
You are currently subscribed to  as: 

 


 
 
 
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/uportal-dev




--
Jen Bourey

-- 

 


 
 
You are currently subscribed to  as: 

 
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/uportal-dev



Archive powered by MHonArc 2.6.16.

Top of Page