Grouper API - Part 2 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported.

Slides:



Advertisements
Similar presentations
User Guide TE Connectivity Data Collection Tool (DCT) January 2012.
Advertisements

The Professional Open Source Company JBoss Network Enterprise Manager Introduction and Walkthrough.
© 2002 D & D Enterprises 1 Linking Images For Navigation & Clickable Image Maps.
Slide 1 Insert your own content. Slide 2 Insert your own content.
Appendix The SAMIEE / MD Dashboard – Step-by-Step Configuration Membership Development WebcastSlide 1 Prepared by: Helen Shiminsky MGA Information Process.
17 Copyright © 2005, Oracle. All rights reserved. Deploying Applications by Using Java Web Start.
0 - 0.
Addition Facts
©2011 Quest Software, Inc. All rights reserved.. Andrei Polevoi, Tatiana Golubovich Program Management Group ActiveRoles Add-on Manager Overview.
Grouper Training End Users Lite UI – External Users
What's new?. ETS4 for Experts - New ETS4 Functions - improved Workflows - improvements in relation to ETS3.
Topic - DATA PROVIDERS TRAINING COURSE DEPLOYMENT PROCESS MINCyT, Buenos Aires, Argentina, 7 – 11 October 2013.
Microsoft Office Illustrated Fundamentals Unit C: Getting Started with Unit C: Getting Started with Microsoft Office 2010 Microsoft Office 2010.
Grouper Training Developers and Architects LDAP Shilen Patel Duke University This work licensed under a Creative Commons Attribution-NonCommercial 3.0.
Linux commands exercise 1. What do you need, if you try to these at home? You need to download and install Ubuntu Linux from the Internet – DVD is need.
Addition 1’s to 20.
Test B, 100 Subtraction Facts
Services Course Windows Live SkyDrive Participant Guide.
1/16 Steven Leung Introduction to HTML/CGI/JavaScript Intro to HTML/CGI/JavaScript How the Web Works HTML: Basic Concept CGI: Basic Concept JavaScript:
WaveMaker Visual AJAX Studio 4.0 Training
Grouper UI Part 2 Shilen Patel Duke University This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.
Developing in CAS. Why? As distributed you edit CAS 3 with Eclipse and build with Maven 2 – Best Practice for Release Engineering – Difficult edit-debug.
Murali Mani SQL-PL Interface. Murali Mani Some Possible Options Web Interface Perl /CGI with Oracle/mySQL Install your own web server and use servlets.
Grouper Training - Admin Loader - Part 1 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons Attribution-NonCommercial.
Grouper Maintenance Shilen Patel Duke University This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.
Web Application Server Apache Tomcat Downloading and Deployment Guide.
Grouper Training End Users Lite UI – Permissions – Part 2 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons.
Starting with Gridsphere Albert Einstein Institute Gridsphere Installation.
Grouper Training Developers and Architects How to Design Permissions Shilen Patel Duke University This work licensed under a Creative Commons Attribution-NonCommercial.
Grouper Training End Users Admin UI – Part 6 Shilen Patel Duke University This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported.
Setting up the Grouper and Signet Databases Joy Veronneau Cornell University Identity Management November 7, 2006.
Grouper UI Part 1 Shilen Patel Duke University This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.
Apereo Grouper Seminar Part 2 – Penn and Grouper Chris Hyzer University of Pennsylvania and Internet2.
Chris Hyzer University of Pennsylvania
Grouper Training End Users Admin UI – Part 5 Shilen Patel Duke University This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported.
Grouper Training - Admin - WS - Part 2 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons Attribution-NonCommercial.
Grouper Training - Admin - Client Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons Attribution-NonCommercial.
Grouper Training Developers and Architects Web Services - Part 5 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons.
What’s new with Grouper 10/5/9 Internet2 Fall Member Meeting Chris Hyzer, University of Pennsylvania.
Grouper Training Developers and Architects Client - Part 1 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons.
Grouper Training Developers and Architects Advanced Topics Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons.
Grouper Training End Users Admin UI – Part 4 Shilen Patel Duke University This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported.
Grouper Training - Admin Connectors Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons Attribution-NonCommercial.
Grouper Training Developers and Architects Client - Part 2 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons.
Ant & Jar Ant – Java-based build tool Jar – pkzip archive, that contains metadata (a manifest file) that the JRE understands.
1 More basics on DB access Elke A. Rundensteiner.
Grouper Training Developers and Architects Integration Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons Attribution-NonCommercial.
Grouper Training – Admin – Subject API – Part 4 Shilen Patel Duke University This work licensed under a Creative Commons Attribution-NonCommercial 3.0.
Grouper Training Developers and Architects Client - Part 3 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons.
Grouper Training – Admin – Provisioning Service Provider (PSP) – Part 1 Shilen Patel Duke University This work licensed under a Creative Commons Attribution-NonCommercial.
Grouper Multiple Deployments and Upgrading Shilen Patel Duke University This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported.
1 G52IWS: Example Web-services Chris Greenhalgh. 2 Contents Software requirements AXIS web service run-time components Getting started with Jetty & AXIS.
Apereo Grouper Seminar Part 3 – Hands on Grouper Chris Hyzer University of Pennsylvania and Internet2.
Grouper Training End Users Lite UI – Memberships – Part 2 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons.
Grouper Training Developers and Architects How to Design Groups Shilen Patel Duke University This work licensed under a Creative Commons Attribution-NonCommercial.
Hyperion Artifact Life Cycle Management Agenda  Overview  Demo  Tips & Tricks  Takeaways  Queries.
What’s new with Grouper 26-April-2010, Spring Member Meeting Chris Hyzer, Grouper developer.
Grouper Training Admin Minor Upgrade Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons Attribution-NonCommercial.
Grouper Training - Admin - Installer Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons Attribution-NonCommercial.
Grouper Training Developers and Architects Web Services - Part 4 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons.
Grouper Training Developers and Architects Web Services - Part 1 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons.
Grouper Training - Admin - WS - Part 1 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons Attribution-NonCommercial.
Fundamental of Databases
Hadoop Architecture Mr. Sriram
Chris Hyzer, University of Pennsylvania
Grouper Training End Users Lite UI – Permissions – Part 3
Grouper Training Developers and Architects Web Services - Part 2
Grouper Training End Users Lite UI – Permissions – Part 1
Grouper Training End Users Lite UI – Rules
Installing Tomcat.
Presentation transcript:

Grouper API - Part 2 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.

2 Contents Grouper Shell (GSH) Configuring the Grouper API Import / Export

3 Grouper Shell (GSH) - Introduction Grouper Shell (GSH) is command line interface to Grouper Based on BeanShell Start with a shell script (unix/mac) or batch file (win)

4 Grouper Shell (GSH) - Intro (continued) Can run from the unzipped API tarball, or a UI or WS build from a webapp (WEB-INF/bin/gsh) GSH is all powerful - anyone with access to GSH can act as an admin (unlike the UI or WS) Document on wiki (google: Grouper GSH)Document on wiki

5 Grouper Shell (GSH) - Registry commands Generally you need to start with root session gsh 0% grouperSession = GrouperSession.startRootSession(); Can run Java command: gsh 1% new GroupSave(grouperSession).assignName("stem1:a").assignCreateParentStemsIfNotExist(true).save(); Can run built-in GSH command gsh 2% addGroup("stem1", "b", "Group b"); Note: commands must be on one line

6 Grouper Shell (GSH) - utilities Can get a list of commands gsh 3% help(); History of recent commands gsh 4% history() Grouper utilities, e.g. fix missing metadata gsh 5% new edu.internet2.middleware.grouper.misc.AddMissingGroupSets().addAllMissingGroupSets(); gsh 6% exit

7 Grouper Shell (GSH) - run from file Non-interactive mode, put commands in file e.g. gshCommands.txt Invoke by calling GSH with the argument of the filename c:\mchyzer\grouper\v2_1\ grouper\bin>gsh C:\mchyzer\ grouper\docs\201204\ gshCommands.txt

8 Configuring the Grouper API Config files are read from the default package on classpath In the API, this is the "conf" dir In the UI/WS the dir is WEB-INF/classes

9 Grouper API config files grouper.properties - main config file grouper.hibernate.properties - DB config grouper-loader.properties - Loader config sources.xml - Subject API config log4j.properties - Logging config ehcache.xml - Cache config

10 Grouper API configuration information Config changes require a restart of the JVM Each config file has an example config file which lists documentation and all of the available config options Read through the example files to see what is available

11 grouper.properties config example Do not make groups publicly viewable and readable by default groups.create.grant.all.read = false groups.create.grant.all.view = false Some properties are lists with indexes db.change.allow.user.1=grouper1 db.change.allow.url.1=jdbc:mysql://lo calhost:3306/grouper1

12 Grouper import/export Grouper can export the registry to XML Note: not 100% of the registry is exported as of April 2012 e.g. point in time auditing, external subjects Can export part of the registry by folder

13 Grouper import/export (continued) UUIDs are exported and used if inserting into a new system XML files are streamed in and out for efficient memory use Can import to new or existing registry

14 Grouper import/export help Get help with import or export, issue the command with no arguments c:\grouper\bin>gsh -xmlexport c:\grouper\bin>gsh -xmlimport

15 Grouper export/import example Export gsh -xmlexport -includeComments c:/temp/grouperRegistry.xml Import gsh -xmlimport -recordReport c:/temp/grouperRegistry.xml

16 Quiz Click on the quiz link in the video description to reinforce your knowledge of this topicquiz link

Thanks! Further information: Infosheets, mailing lists, wiki, downloads, etc.: Grouper demo server: grouperdemo.internet2.edu/ grouperdemo.internet2.edu/ Grouper Online Training Home: spaces.internet2.edu/x/IIGfAQ This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License. 17