Advertisement
Guest User

Untitled

a guest
Jun 7th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.74 KB | None | 0 0
  1. <role xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
  2. xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"
  3. xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
  4. xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
  5. xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
  6. xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
  7. oid="f461439f-595c-430a-896c-18e451337212"
  8. version="0">
  9. <name>Service Group Metarole</name>
  10. <metadata>
  11. <createTimestamp>2016-05-24T23:50:56.034Z</createTimestamp>
  12. <creatorRef oid="00000000-0000-0000-0000-000000000002" type="c:UserType"><!-- administrator --></creatorRef>
  13. <createChannel>http://midpoint.evolveum.com/xml/ns/public/model/channels-3#objectImport</createChannel>
  14. </metadata>
  15. <inducement id="1">
  16. <construction>
  17. <resourceRef oid="a0741b12-c96d-491d-8213-ecad84ab490e" type="c:ResourceType"><!-- OpenLDAP Accounts Schema --></resourceRef>
  18. <kind>entitlement</kind>
  19. <intent>serviceGroups</intent>
  20. </construction>
  21. </inducement>
  22. <inducement id="2">
  23. <construction>
  24. <resourceRef oid="a0741b12-c96d-491d-8213-ecad84ab490e" type="c:ResourceType"><!-- OpenLDAP Accounts Schema --></resourceRef>
  25. <kind>account</kind>
  26. <intent>default</intent>
  27. <attribute>
  28. <c:ref>ri:sshPublicKey</c:ref>
  29. <limitations>
  30. <minOccurs>0</minOccurs>
  31. <access>
  32. <read>true</read>
  33. <add>true</add>
  34. <modify>true</modify>
  35. </access>
  36. </limitations>
  37. <outbound>
  38. <expression>
  39. <value>0</value>
  40. </expression>
  41. </outbound>
  42. </attribute>
  43. <attribute>
  44. <c:ref>ri:gidNumber</c:ref>
  45. <outbound>
  46. <expression>
  47. <value>100</value>
  48. </expression>
  49. </outbound>
  50. </attribute>
  51. <association>
  52. <c:ref>serviceGroups</c:ref>
  53. <outbound>
  54. <expression>
  55. <associationFromLink>
  56. <projectionDiscriminator>
  57. <kind>entitlement</kind>
  58. <intent>serviceGroups</intent>
  59. </projectionDiscriminator>
  60. </associationFromLink>
  61. </expression>
  62. </outbound>
  63. </association>
  64. </construction>
  65. <order>2</order>
  66. <condition>
  67. <source>
  68. <c:path>$user/employeeType</c:path>
  69. </source>
  70. <expression>
  71. <script>
  72. <code>employeeType == 'user'</code>
  73. </script>
  74. </expression>
  75. </condition>
  76. </inducement>
  77. <inducement id="3">
  78. <construction>
  79. <resourceRef oid="a0741b12-c96d-491d-8213-ecad84ab490e" type="c:ResourceType"><!-- OpenLDAP Accounts Schema --></resourceRef>
  80. <kind>account</kind>
  81. <intent>service</intent>
  82. <attribute>
  83. <c:ref>ri:sshPublicKey</c:ref>
  84. <limitations>
  85. <minOccurs>0</minOccurs>
  86. <access>
  87. <read>true</read>
  88. <add>true</add>
  89. <modify>true</modify>
  90. </access>
  91. </limitations>
  92. <outbound>
  93. <expression>
  94. <value>0</value>
  95. </expression>
  96. </outbound>
  97. </attribute>
  98. <attribute>
  99. <c:ref>ri:gidNumber</c:ref>
  100. <outbound>
  101. <strength>strong</strength>
  102. <source>
  103. <c:path>extension/uidNumber</c:path>
  104. </source>
  105. </outbound>
  106. </attribute>
  107. <association>
  108. <c:ref>serviceGroups</c:ref>
  109. <outbound>
  110. <expression>
  111. <associationFromLink>
  112. <projectionDiscriminator>
  113. <kind>entitlement</kind>
  114. <intent>serviceGroups</intent>
  115. </projectionDiscriminator>
  116. </associationFromLink>
  117. </expression>
  118. </outbound>
  119. </association>
  120. </construction>
  121. <order>2</order>
  122. <condition>
  123. <source>
  124. <c:path>$user/employeeType</c:path>
  125. </source>
  126. <expression>
  127. <script>
  128. <code>employeeType == 'service'</code>
  129. </script>
  130. </expression>
  131. </condition>
  132. </inducement>
  133. <inducement id="4">
  134. <focusMappings>
  135. <mapping>
  136. <name>sequenceGID</name>
  137. <strength>weak</strength>
  138. <expression>
  139. <sequentialValue>
  140. <sequenceRef oid="e35a6807-b8c8-4c42-8a71-4ee5c104d9b7"/>
  141. </sequentialValue>
  142. </expression>
  143. <target>
  144. <c:path>extension/gidNumber</c:path>
  145. </target>
  146. </mapping>
  147. </focusMappings>
  148. </inducement>
  149. <inducement id="5">
  150. <focusMappings>
  151. <mapping>
  152. <name>sequenceUID</name>
  153. <strength>weak</strength>
  154. <expression>
  155. <sequentialValue>
  156. <sequenceRef oid="7d4acb8c-65e3-11e5-9ef4-6382ba96fe6c"/>
  157. </sequentialValue>
  158. </expression>
  159. <target>
  160. <c:path>extension/uidNumber</c:path>
  161. </target>
  162. </mapping>
  163. </focusMappings>
  164. <order>2</order>
  165. </inducement>
  166. </role>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement