Subject: Grouper Users - Open Discussion List
Contribution: A really simple command-line tool to manage ADMIN and UPDATE access privileges
- From: Keith Hazelton <>
- Cc: EIS Architecture <>
- Subject: Contribution: A really simple command-line tool to manage ADMIN and UPDATE access privileges
- Date: Fri, 31 Dec 2004 11:03:22 -0600
I just did one test run on a really simple command-line tool to manage Grouper's ADMIN and UPDATE access privileges. It seemed to work, so I'm letting others have at it.
If you feel like trying this out, create a new subdirectory in your Grouper installation /contrib/load directory called "accessmgr." Add the following three files to that directory:
Then follow the guidance in the README file.
I've tried to follow the conventions established in the other contributed programs. Accessmgr is VERY closely modeled on /contrib/load/groupmgr/groupmgr.java. Saying this protects me against the charge of plagiarism and shows sincerest flattery to Blair Christensen.
Here's a snippet from the terminal session that convinced me it kinda works. I wanted to give subject heyward the UPDATE privilege on group pase:service:wiscCal:include:
java accessmgr -g -m heyward -p UPDATE -s pase:service:wiscCal -e include -v
Enabling verbose mode
Using extension 'include'
Enabling grant mode
Will act upon a group
Will act upon a member `heyward'
Will act upon privilege
Using stem 'pase:service:wiscCal'
Using default subjectID
2004-12-31 10:42:20,358 INFO event: Initializing Grouper
Using default subjectTypeID (person)
Looking up subjectID 'GrouperSystem'
2004-12-31 10:42:23,359 INFO event: Started session for 'GrouperSystem'
Started session as GrouperSystem:person
Loaded member GrouperSystem:person
2004-12-31 10:42:23,706 INFO event: Added memberID='500f56c9-0db7-4205-ba6d-7ee0a76c3da0' subjectID='heyward' to member table
2004-12-31 10:42:23,838 INFO event: 'GrouperSystem' granted 'UPDATE' to memberID='500f56c9-0db7-4205-ba6d-7ee0a76c3da0' subjectID='heyward' on 'pase:service:wiscCal:include'
Granted access privilege `UPDATE' to member `heyward' on group `pase:service:wiscCal:include'
2004-12-31 10:42:23,846 INFO event: Stopped session for 'GrouperSystem'
Keith Hazelton Senior IT Architect, UW-Madison
(608) 262-0771 Division of Info. Technology
(608) 877-0977 (home) 1210 W. Dayton St., rm. 2164
http://arch.doit.wisc.edu/keith Madison, WI 53706
- Contribution: A really simple command-line tool to manage ADMIN and UPDATE access privileges, Keith Hazelton, 12/31/2004
- Re: [grouper-users] Contribution: A really simple command-line tool to manage ADMIN and UPDATE access privileges, Keith Hazelton, 12/31/2004
Archive powered by MHonArc 2.6.16.