diff --git a/samples/resources/ad/ad-resource-groups-medusa-advanced.xml b/samples/resources/ad/ad-resource-groups-medusa-advanced.xml new file mode 100644 index 00000000000..8c21abecfcd --- /dev/null +++ b/samples/resources/ad/ad-resource-groups-medusa-advanced.xml @@ -0,0 +1,402 @@ + + + + + + + + + MEDUSA Active Directory + + A sample resource that synchronizes AD groups with midPoint roles. + + + + + + c:connectorType + Org.IdentityConnectors.ActiveDirectory.ActiveDirectoryConnector + + + + + + + + + + midpoint1@win.evolveum.com + secret + User + ou=evolveum,dc=win,dc=evolveum,dc=com + false + localhost + false + win.evolveum.com + + + + false + + + + + + + + + + + + account + Default Account + true + ri:AccountObjectClass + + + ri:givenName + Given Name + + + $user/givenName + + + + + ri:sn + Surname + + 0 + + true + true + true + + + + + + $user/familyName + + + + + ri:userPrincipalName + User Principal Name + + + $user/name + + + + + + + + ri:sAMAccountName + Login name + mr:stringIgnoreCase + + + $user/name + + + + + + icfs:name + Distinguished Name + mr:stringIgnoreCase + + + 0 + + + + + $user/givenName + + + $user/familyName + + + + + + + + + + ri:group + AD Group Membership + entitlement + group + objectToSubject + ri:member + icfs:name + false + + + + 5 + + + cn=Administrator,ou=Users,dc=example,dc=com + + + + + + + + + + + + + + + + + + entitlement + group + AD Group + true + ri:CustomGroupObjectClass + + icfs:name + mr:stringIgnoreCase + + + $focus/name + + + + + + + + ri:samAccountName + mr:stringIgnoreCase + + + $focus/name + + + + + + ri:description + + strong + + description + + + + + + + + + + + ri:AccountObjectClass + true + + + + Correlation expression is a search query. + Following search query will look for users that have "name" + equal to the "sAMAccountName" attribute of the account. Simply speaking, + it will look for match in usernames in the IDM and the resource. + The correlation rule always looks for users, so it will not match + any other object type. + + + c:name + + $shadow/attributes/sAMAccountName + + + + + + + + + linked + + http://midpoint.evolveum.com/xml/ns/public/model/action-3#modifyUser + + + + deleted + + http://midpoint.evolveum.com/xml/ns/public/model/action-3#unlinkAccount + + + + unlinked + + http://midpoint.evolveum.com/xml/ns/public/model/action-3#linkAccount + + + + unmatched + + + + + + ri:CustomGroupObjectClass + entitlement + group + c:RoleType + true + + + + c:name + + $shadow/attributes/samAccountName + + + + + linked + true + + + deleted + true + + http://midpoint.evolveum.com/xml/ns/public/model/action-3#unlink + + + + unlinked + true + + http://midpoint.evolveum.com/xml/ns/public/model/action-3#link + + + + unmatched + true + + + + + + + + + Metarole for groups + + + + + + entitlement + group + + + + + + + + + account + default + + ri:group + + strong + + + + entitlement + group + + + + + + + 2 + + + + + +