-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add script to set provisioning on grouper groups
- Loading branch information
root
committed
Jul 20, 2023
1 parent
6c49790
commit 9fdb5f2
Showing
10 changed files
with
114 additions
and
51 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
Workbench/grouper_daemon/container_files/conf/grouper.hibernate.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # | ||
| # Grouper Hibernate Configuration | ||
| # $Id: grouper.hibernate.example.properties,v 1.9 2009-08-11 20:18:09 mchyzer Exp $ | ||
| # | ||
|
|
||
| # The grouper hibernate config uses Grouper Configuration Overlays (documented on wiki) | ||
| # By default the configuration is read from grouper.hibernate.base.properties | ||
| # (which should not be edited), and the grouper.hibernate.properties overlays | ||
| # the base settings. See the grouper.hibernate.base.properties for the possible | ||
| # settings that can be applied to the grouper.hibernate.properties | ||
|
|
||
| ######################################## | ||
| ## DB settings | ||
| ######################################## | ||
|
|
||
| # e.g. mysql: jdbc:mysql://localhost:3306/grouper | ||
| # e.g. p6spy (log sql): [use the URL that your DB requires] | ||
| # e.g. oracle: jdbc:oracle:thin:@server.school.edu:1521:sid | ||
| # e.g. hsqldb (a): jdbc:hsqldb:dist/run/grouper;create=true | ||
| # e.g. hsqldb (b): jdbc:hsqldb:hsql://localhost:9001/grouper | ||
| # e.g. postgres: jdbc:postgresql://localhost:5432/database | ||
| # e.g. mssql: jdbc:sqlserver://localhost:3280;databaseName=grouper | ||
| hibernate.connection.url = jdbc:mysql://grouper_data:3306/grouper?CharSet=utf8&useUnicode=true&characterEncoding=utf8 | ||
|
|
||
| hibernate.connection.username = grouper | ||
| # If you are using an empty password, depending upon your version of | ||
| # Java and Ant you may need to specify a password of "". | ||
| # Note: you can keep passwords external and encrypted: https://bugs.internet2.edu/jira/browse/GRP-122 | ||
| hibernate.connection.password = password | ||
|
|
25 changes: 25 additions & 0 deletions
25
Workbench/grouper_daemon/container_files/conf/grouper.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # | ||
| # Grouper Configuration | ||
| # $Id: grouper.example.properties,v 1.48 2009-12-16 06:02:30 mchyzer Exp $ | ||
| # | ||
|
|
||
| # Grouper uses Grouper Configuration Overlays (documented on wiki) | ||
| # By default the configuration is read from grouper.base.properties | ||
| # (which should not be edited), and the grouper.properties overlays | ||
| # the base settings. See the grouper.base.properties for the possible | ||
| # settings that can be applied to the grouper.properties | ||
|
|
||
| #if groups like the wheel group should be auto-created for convenience (note: check config needs to be on) | ||
| configuration.autocreate.system.groups = true | ||
|
|
||
| # A wheel group allows you to enable non-GrouperSystem subjects to act | ||
| # like a root user when interacting with the registry. | ||
| groups.wheel.use = true | ||
|
|
||
| # Set to the name of the group you want to treat as the wheel group. | ||
| # The members of this group will be treated as root-like users. | ||
| groups.wheel.group = etc:sysadmingroup | ||
|
|
||
| # Used to allow Include Exclude groups | ||
| grouperIncludeExclude.use = true | ||
| grouperIncludeExclude.requireGroups.use = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
Workbench/grouper_data/container_files/bootstrap/set-prov.gsh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
|
|
||
| provisioner_name="midPoint"; | ||
| GrouperSession grouperSession = GrouperSession.startRootSession(); | ||
|
|
||
| def setProvOnStem(grouperSession,provisioner_name,folder_name) { | ||
| AttributeAssign attributeAssignMarker = null; | ||
| attributeAssignMarker = new AttributeAssignSave(grouperSession).assignOwnerStemName(folder_name).assignNameOfAttributeDefName("etc:provisioning:provisioningMarker").save(); | ||
| new AttributeAssignSave(grouperSession).assignOwnerAttributeAssign(attributeAssignMarker).assignNameOfAttributeDefName("etc:provisioning:provisioningDirectAssign").addValue("true").save(); | ||
| new AttributeAssignSave(grouperSession).assignOwnerAttributeAssign(attributeAssignMarker).assignNameOfAttributeDefName("etc:provisioning:provisioningDoProvision").addValue(provisioner_name).save(); | ||
| new AttributeAssignSave(grouperSession).assignOwnerAttributeAssign(attributeAssignMarker).assignNameOfAttributeDefName("etc:provisioning:provisioningStemScope").addValue("sub").save(); | ||
| new AttributeAssignSave(grouperSession).assignOwnerAttributeAssign(attributeAssignMarker).assignNameOfAttributeDefName("etc:provisioning:provisioningTarget").addValue(provisioner_name).save(); | ||
| new AttributeAssignSave(grouperSession).assignOwnerAttributeAssign(attributeAssignMarker).assignNameOfAttributeDefName("etc:provisioning:provisioningMetadataJson").addValue("{\"md_trim_prefix\":\"whatever\",\"md_entityId\":\"theEntityId\"}").save(); | ||
|
|
||
| } | ||
|
|
||
| def setProvOnGroup(grouperSession,provisioner_name,group_name) { | ||
| AttributeAssign attributeAssignMarker = null; | ||
| attributeAssignMarker = new AttributeAssignSave(grouperSession).assignOwnerGroupName(group_name).assignNameOfAttributeDefName("etc:provisioning:provisioningMarker").save(); | ||
| new AttributeAssignSave(grouperSession).assignOwnerAttributeAssign(attributeAssignMarker).assignNameOfAttributeDefName("etc:provisioning:provisioningDirectAssign").addValue("true").save(); | ||
| new AttributeAssignSave(grouperSession).assignOwnerAttributeAssign(attributeAssignMarker).assignNameOfAttributeDefName("etc:provisioning:provisioningDoProvision").addValue(provisioner_name).save(); | ||
| new AttributeAssignSave(grouperSession).assignOwnerAttributeAssign(attributeAssignMarker).assignNameOfAttributeDefName("etc:provisioning:provisioningStemScope").addValue("sub").save(); | ||
| new AttributeAssignSave(grouperSession).assignOwnerAttributeAssign(attributeAssignMarker).assignNameOfAttributeDefName("etc:provisioning:provisioningTarget").addValue(provisioner_name).save(); | ||
| new AttributeAssignSave(grouperSession).assignOwnerAttributeAssign(attributeAssignMarker).assignNameOfAttributeDefName("etc:provisioning:provisioningMetadataJson").addValue("{\"md_trim_prefix\":\"whatever\",\"md_entityId\":\"theEntityId\"}").save(); | ||
|
|
||
| } | ||
|
|
||
| setProvOnStem(grouperSession,provisioner_name,"app") | ||
| setProvOnStem(grouperSession,provisioner_name,"test") | ||
| setProvOnStem(grouperSession,provisioner_name,"ref:dept") | ||
| setProvOnStem(grouperSession,provisioner_name,"ref:course") | ||
| setProvOnGroup(grouperSession,provisioner_name,"ref:affiliation:alum") | ||
| setProvOnGroup(grouperSession,provisioner_name,"ref:affiliation:community") | ||
| setProvOnGroup(grouperSession,provisioner_name,"ref:affiliation:faculty") | ||
| setProvOnGroup(grouperSession,provisioner_name,"ref:affiliation:member") | ||
| setProvOnGroup(grouperSession,provisioner_name,"ref:affiliation:staff") | ||
| setProvOnGroup(grouperSession,provisioner_name,"ref:affiliation:student") | ||
|
|
Binary file modified
BIN
+17.8 KB
(100%)
...midpoint_server/container_files/mp-home/icf-connectors/connector-grouper-1.0-SNAPSHOT.jar
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 0 additions & 43 deletions
43
...ainer_files/mp-home/post-initial-objects/tasks/998-task-reconciliation-grouper-groups.xml
This file was deleted.
Oops, something went wrong.