Skip to content
Permalink
Browse files

Post-init objects for midPoint. after-installation.sh should not be n…

…eeded anymore now.
  • Loading branch information
ivan committed Nov 13, 2019
1 parent 74fc9ef commit 3d1d731d0dfbfdff291d740fd14f16b55e15cdce
Showing with 2,552 additions and 0 deletions.
  1. +52 −0 ...midpoint_server/container_files/mp-home/post-initial-objects/archetypes/archetype-affiliation.xml
  2. +63 −0 ...uper/midpoint_server/container_files/mp-home/post-initial-objects/archetypes/archetype-course.xml
  3. +53 −0 .../midpoint_server/container_files/mp-home/post-initial-objects/archetypes/archetype-department.xml
  4. +25 −0 ...oint_server/container_files/mp-home/post-initial-objects/archetypes/archetype-external-person.xml
  5. +40 −0 ...erver/container_files/mp-home/post-initial-objects/archetypes/archetype-generic-grouper-group.xml
  6. +56 −0 ...idpoint_server/container_files/mp-home/post-initial-objects/archetypes/archetype-mailing-list.xml
  7. +32 −0 ...point_server/container_files/mp-home/post-initial-objects/archetypes/archetype-midpoint-group.xml
  8. +25 −0 .../midpoint_server/container_files/mp-home/post-initial-objects/archetypes/archetype-sis-person.xml
  9. +21 −0 ...dpoint_server/container_files/mp-home/post-initial-objects/bulkActions/990-test-all-resources.xml
  10. +17 −0 ...idpoint_server/container_files/mp-home/post-initial-objects/bulkActions/991-recompute-grouper.xml
  11. +180 −0 ...erver/container_files/mp-home/post-initial-objects/functionLibraries/function-library-grouper.xml
  12. +92 −0 ...er/midpoint_server/container_files/mp-home/post-initial-objects/objectTemplates/template-user.xml
  13. +13 −0 demo/grouper/midpoint_server/container_files/mp-home/post-initial-objects/orgs/org-affiliations.xml
  14. +13 −0 demo/grouper/midpoint_server/container_files/mp-home/post-initial-objects/orgs/org-courses.xml
  15. +13 −0 demo/grouper/midpoint_server/container_files/mp-home/post-initial-objects/orgs/org-departments.xml
  16. +13 −0 .../grouper/midpoint_server/container_files/mp-home/post-initial-objects/orgs/org-generic-groups.xml
  17. +16 −0 ...rouper/midpoint_server/container_files/mp-home/post-initial-objects/orgs/org-grouper-sysadmin.xml
  18. +13 −0 demo/grouper/midpoint_server/container_files/mp-home/post-initial-objects/orgs/org-mailing-lists.xml
  19. +13 −0 ...grouper/midpoint_server/container_files/mp-home/post-initial-objects/orgs/org-midpoint-groups.xml
  20. +341 −0 demo/grouper/midpoint_server/container_files/mp-home/post-initial-objects/resources/ldap-main.xml
  21. +184 −0 ...ouper/midpoint_server/container_files/mp-home/post-initial-objects/resources/resource-grouper.xml
  22. +221 −0 ...idpoint_server/container_files/mp-home/post-initial-objects/resources/scriptedsql-sis-persons.xml
  23. +112 −0 ...ouper/midpoint_server/container_files/mp-home/post-initial-objects/resources/target-cs-portal.xml
  24. +128 −0 .../midpoint_server/container_files/mp-home/post-initial-objects/resources/target-faculty-portal.xml
  25. +102 −0 ...r/midpoint_server/container_files/mp-home/post-initial-objects/resources/target-mailing-lists.xml
  26. +192 −0 ...int_server/container_files/mp-home/post-initial-objects/roles/metarole-grouper-provided-group.xml
  27. +128 −0 ...rouper/midpoint_server/container_files/mp-home/post-initial-objects/roles/metarole-ldap-group.xml
  28. +25 −0 demo/grouper/midpoint_server/container_files/mp-home/post-initial-objects/roles/role-ldap-basic.xml
  29. +257 −0 ..._server/container_files/mp-home/post-initial-objects/systemConfigurations/SystemConfiguration.xml
  30. +85 −0 ...r/midpoint_server/container_files/mp-home/post-initial-objects/tasks/995-task-group-scavenger.xml
  31. +27 −0 demo/grouper/midpoint_server/container_files/mp-home/post-initial-objects/users/user-banderson.xml
@@ -0,0 +1,52 @@
<archetype xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:apti="http://midpoint.evolveum.com/xml/ns/public/common/api-types-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"
xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ext="http://grouper-demo.tier.internet2.edu"
oid="56f53812-047d-4b69-83e8-519a73d161e1">
<name>affiliation</name>
<extension>
<ext:grouperNamePrefix>ref:affiliation:</ext:grouperNamePrefix>
<ext:ldapRootDn>ou=Affiliations,ou=Groups,dc=internet2,dc=edu</ext:ldapRootDn>
<ext:midPointNamePrefix>affiliation_</ext:midPointNamePrefix>
<ext:midPointDisplayNamePrefix>Affiliation: </ext:midPointDisplayNamePrefix>
</extension>
<archetypePolicy>
<display>
<label>Affiliation</label>
<pluralLabel>Affiliations</pluralLabel>
<icon>
<cssClass>fa fa-superpowers</cssClass>
<color>steelblue</color>
</icon>
</display>
</archetypePolicy>
<assignment>
<targetRef oid="bcaec940-50c8-44bb-aa37-b2b5bb2d5b90" relation="org:default" type="c:RoleType" /> <!-- metarole-grouper-provided-group -->
</assignment>
<assignment>
<targetRef oid="8da46694-bd71-4e1e-bfd7-73865ae2ea9a" relation="org:default" type="c:RoleType" /> <!-- metarole-ldap-group -->
</assignment>
<inducement>
<targetRef oid="1d7c0e3a-4456-409c-9f50-95407b2eb785" relation="org:default" type="c:OrgType" /> <!-- affiliations -->
</inducement>
<!-- Group-type-specific data -->
<inducement>
<construction>
<resourceRef oid="e417225d-8a08-46f3-9b5d-624990b52386" relation="org:default" type="c:ResourceType" /> <!-- Faculty CSV -->
</construction>
<order>2</order>
<condition>
<expression>
<script>
<code>assignmentPath[0].target.identifier == 'faculty'</code>
</script>
</expression>
</condition>
</inducement>
</archetype>
@@ -0,0 +1,63 @@
<archetype xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:apti="http://midpoint.evolveum.com/xml/ns/public/common/api-types-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"
xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ext="http://grouper-demo.tier.internet2.edu"
oid="3dab9a72-118b-4e40-a138-bb691c335eca">
<name>course</name>
<extension>
<ext:grouperNamePrefix>ref:course:</ext:grouperNamePrefix>
<ext:ldapRootDn>ou=Courses,ou=Groups,dc=internet2,dc=edu</ext:ldapRootDn>
<ext:midPointNamePrefix>course_</ext:midPointNamePrefix>
<ext:midPointDisplayNamePrefix>Course: </ext:midPointDisplayNamePrefix>
</extension>
<archetypePolicy>
<display>
<label>Course</label>
<pluralLabel>Courses</pluralLabel>
<icon>
<cssClass>fa fa-university</cssClass>
<color>teal</color>
</icon>
</display>
</archetypePolicy>
<assignment>
<targetRef oid="bcaec940-50c8-44bb-aa37-b2b5bb2d5b90" relation="org:default" type="c:RoleType" /> <!-- metarole-grouper-provided-group -->
</assignment>
<assignment>
<targetRef oid="8da46694-bd71-4e1e-bfd7-73865ae2ea9a" relation="org:default" type="c:RoleType" /> <!-- metarole-ldap-group -->
</assignment>
<inducement>
<targetRef oid="225e9360-0639-40ba-8a31-7f31bef067be" relation="org:default" type="c:OrgType" /> <!-- courses -->
</inducement>
<!-- Group-type-specific data -->
<inducement>
<construction>
<resourceRef oid="a343fc2e-3954-4034-ba1a-2b72c21e577a" relation="org:default" type="c:ResourceType" /> <!-- CS CSV -->
<attribute>
<c:ref>ri:courses</c:ref>
<outbound>
<strength>strong</strength>
<expression>
<script>
<code>assignmentPath[0].target.identifier</code>
</script>
</expression>
</outbound>
</attribute>
</construction>
<order>2</order>
<condition>
<expression>
<script>
<code>assignmentPath[0].target.identifier?.startsWith('CS')</code>
</script>
</expression>
</condition>
</inducement>
</archetype>
@@ -0,0 +1,53 @@
<archetype xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:apti="http://midpoint.evolveum.com/xml/ns/public/common/api-types-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"
xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ext="http://grouper-demo.tier.internet2.edu"
oid="1cec5f78-8fba-459b-9547-ef7485009f40">
<name>department</name>
<extension>
<ext:grouperNamePrefix>ref:dept:</ext:grouperNamePrefix>
<ext:midPointNamePrefix>department_</ext:midPointNamePrefix>
<ext:midPointDisplayNamePrefix>Department: </ext:midPointDisplayNamePrefix>
</extension>
<archetypePolicy>
<display>
<label>Department</label>
<pluralLabel>Departments</pluralLabel>
<icon>
<cssClass>fa fa-building</cssClass>
<color>darkgreen</color>
</icon>
</display>
</archetypePolicy>
<assignment>
<targetRef oid="bcaec940-50c8-44bb-aa37-b2b5bb2d5b90" relation="org:default" type="c:RoleType" /> <!-- metarole-grouper-provided-group -->
</assignment>
<!-- No LDAP metarole here: we deal with LDAP ourselves -->
<inducement>
<targetRef oid="bee44c51-2469-411d-bac7-695728e9c241" relation="org:default" type="c:OrgType" /> <!-- departments -->
</inducement>
<!-- Group-type-specific data -->
<inducement>
<construction>
<resourceRef oid="0a37121f-d515-4a23-9b6d-554c5ef61272" relation="org:default" type="c:ResourceType" /> <!-- LDAP -->
<attribute>
<ref>ri:businessCategory</ref>
<outbound>
<strength>strong</strength>
<expression>
<script>
<code>assignmentPath[0].target.identifier</code>
</script>
</expression>
</outbound>
</attribute>
</construction>
<order>2</order>
</inducement>
</archetype>
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<archetype oid="9ea701a0-fefb-11e9-aa4a-6f55fba8896e"
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
xmlns:org='http://midpoint.evolveum.com/xml/ns/public/common/org-3'>
<name>External</name>
<description>Non-academic person with no relation to the academy environment</description>
<archetypePolicy>
<display>
<label>External</label>
<pluralLabel>Externals</pluralLabel>
<tooltip>Person imported from the external database</tooltip>
<icon>
<cssClass>fa fa-space-shuttle</cssClass>
<color>olive</color>
</icon>
</display>
</archetypePolicy>
<assignment>
<assignmentRelation>
<holderType>UserType</holderType>
</assignmentRelation>
</assignment>
</archetype>
@@ -0,0 +1,40 @@
<archetype xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:apti="http://midpoint.evolveum.com/xml/ns/public/common/api-types-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"
xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ext="http://grouper-demo.tier.internet2.edu"
oid="5f2b96d2-49b5-4a8a-9601-14457309a69b">
<name>generic-grouper-group</name>
<extension>
<ext:grouperNamePrefix></ext:grouperNamePrefix>
<ext:ldapRootDn>ou=generic,ou=Groups,dc=internet2,dc=edu</ext:ldapRootDn>
<ext:midPointNamePrefix>generic_</ext:midPointNamePrefix>
<ext:midPointDisplayNamePrefix></ext:midPointDisplayNamePrefix>
</extension>
<archetypePolicy>
<display>
<label>Generic Grouper Group</label>
<pluralLabel>Generic Grouper Groups</pluralLabel>
<icon>
<cssClass>fa fa-users</cssClass>
<color>lightcoral</color>
</icon>
</display>
</archetypePolicy>
<assignment>
<targetRef oid="bcaec940-50c8-44bb-aa37-b2b5bb2d5b90" relation="org:default" type="c:RoleType" /> <!-- metarole-grouper-provided-group -->
</assignment>
<assignment>
<targetRef oid="8da46694-bd71-4e1e-bfd7-73865ae2ea9a" relation="org:default" type="c:RoleType" /> <!-- metarole-ldap-group -->
</assignment>
<inducement>
<targetRef oid="1f339075-5b2f-4a18-9c98-451f3eb0d28d" relation="org:default" type="c:OrgType" /> <!-- generic-groups -->
</inducement>
<!-- Group-type-specific data -->
<!-- nothing here by now -->
</archetype>
@@ -0,0 +1,56 @@
<archetype xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:apti="http://midpoint.evolveum.com/xml/ns/public/common/api-types-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"
xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ext="http://grouper-demo.tier.internet2.edu"
oid="1645d1dc-1f7c-4508-b50b-97b501ccdee3">
<name>mailing-list</name>
<extension>
<ext:grouperNamePrefix>app:mailinglist:</ext:grouperNamePrefix>
<ext:ldapRootDn>ou=generic,ou=Groups,dc=internet2,dc=edu</ext:ldapRootDn> <!-- could be also something specific e.g. ou=lists,ou=Groups,dc=internet2,dc=edu -->
<ext:midPointNamePrefix>mailinglist_</ext:midPointNamePrefix>
<ext:midPointDisplayNamePrefix>Mailing list: </ext:midPointDisplayNamePrefix>
</extension>
<archetypePolicy>
<display>
<label>Mailing list</label>
<pluralLabel>Mailing lists</pluralLabel>
<icon>
<cssClass>fa fa-list</cssClass>
<color>darkgoldenrod</color>
</icon>
</display>
</archetypePolicy>
<assignment>
<targetRef oid="bcaec940-50c8-44bb-aa37-b2b5bb2d5b90" relation="org:default" type="c:RoleType" /> <!-- metarole-grouper-provided-group -->
</assignment>
<assignment>
<targetRef oid="8da46694-bd71-4e1e-bfd7-73865ae2ea9a" relation="org:default" type="c:RoleType" /> <!-- metarole-ldap-group -->
</assignment>
<inducement>
<targetRef oid="d81fb46c-20c7-44d3-8402-fef404ea1264" relation="org:default" type="c:OrgType" /> <!-- generic-groups -->
</inducement>
<!-- Group-type-specific data -->
<inducement>
<construction>
<resourceRef oid="fe805d13-481b-43ec-97d8-9d2df72cd38e" relation="org:default" type="c:ResourceType" /> <!-- Mailing lists CSV -->
<attribute>
<c:ref>ri:lists</c:ref>
<outbound>
<strength>strong</strength>
<expression>
<script>
<code>assignmentPath[0].target.identifier</code>
</script>
</expression>
</outbound>
</attribute>
</construction>
<order>2</order>
</inducement>
</archetype>
@@ -0,0 +1,32 @@
<archetype xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:apti="http://midpoint.evolveum.com/xml/ns/public/common/api-types-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"
xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ext="http://grouper-demo.tier.internet2.edu"
oid="2be36917-71ad-4c3e-8789-89cadea2d5d6">
<name>midpoint-group</name>
<extension>
<ext:ldapRootDn>ou=midpoint,ou=Groups,dc=internet2,dc=edu</ext:ldapRootDn>
</extension>
<archetypePolicy>
<display>
<label>midPoint Group</label>
<pluralLabel>midPoint Groups</pluralLabel>
<icon>
<cssClass>fa fa-users</cssClass>
<color>darkgviolet</color>
</icon>
</display>
</archetypePolicy>
<assignment>
<targetRef oid="8da46694-bd71-4e1e-bfd7-73865ae2ea9a" relation="org:default" type="c:RoleType" /> <!-- metarole-ldap-group -->
</assignment>
<inducement>
<targetRef oid="4790ab69-7ef0-41a4-8992-78877f3beb23" relation="org:default" type="c:OrgType" /> <!-- midpoint-groups -->
</inducement>
</archetype>
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<archetype oid="958da09c-fefb-11e9-892d-975972472527"
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
xmlns:org='http://midpoint.evolveum.com/xml/ns/public/common/org-3'>
<name>SIS Person</name>
<description>Person with a relation to the academy environment, coming from the SIS database</description>
<archetypePolicy>
<display>
<label>SIS Person</label>
<pluralLabel>SIS Persons</pluralLabel>
<tooltip>Person imported from the SIS database</tooltip>
<icon>
<cssClass>fa fa-graduation-cap</cssClass>
<color>darkgreen</color>
</icon>
</display>
</archetypePolicy>
<assignment>
<assignmentRelation>
<holderType>UserType</holderType>
</assignmentRelation>
</assignment>
</archetype>
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<s:search xmlns:s="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3">
<s:type>c:ResourceType</s:type>
<s:searchFilter>
<q:inOid>
<q:value>0a37121f-d515-4a23-9b6d-554c5ef61272</q:value>
<q:value>4d70a0da-02dd-41cf-b0a1-00e75d3eaa15</q:value>
<q:value>a343fc2e-3954-4034-ba1a-2b72c21e577a</q:value>
<q:value>e417225d-8a08-46f3-9b5d-624990b52386</q:value>
<q:value>fe805d13-481b-43ec-97d8-9d2df72cd38e</q:value>
<q:value>1eff65de-5bb6-483d-9edf-8cc2c2ee0233</q:value>
</q:inOid>
</s:searchFilter>
<s:action>
<!-- XXX we test ALL resources here. Maybe we can just skip the query -->
<s:type>test-resource</s:type>
</s:action>
</s:search>
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- (c) 2019 Evolveum, All rights reserved -->

<s:search xmlns:s="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3">
<s:type>ObjectType</s:type>
<s:searchFilter>
<q:inOid>
<q:value>d48ec05b-fffd-4262-acd3-d9ff63365b62</q:value>
<q:value>e897468f-20bd-419c-8fc5-1fe60e2600de</q:value>
</q:inOid>
</s:searchFilter>
<s:action>
<s:type>recompute</s:type>
</s:action>
</s:search>

0 comments on commit 3d1d731

Please sign in to comment.
You can’t perform that action at this time.