<!--
  ~ Copyright (c) 2010-2017 Evolveum
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<role oid="12345678-d34d-b33f-f00d-111111111222"
        xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">
    <name>Meta OpenDJ</name>
    <description>
     A basic role, that specifies account on OpenDJ resource
     
    </description>
    <inducement>
    	<construction>
    		<resourceRef oid="2a7c7130-7a34-11e4-bdf6-001e8c717e5b" type="c:ResourceType"/>
    		<kind>entitlement</kind>
            <intent>ldapGroup</intent>
    	</construction>
    	<focusType>OrgType</focusType>
    	<order>1</order>
    </inducement>
    
    <inducement>
    	<construction>
    		<resourceRef oid="2a7c7130-7a34-11e4-bdf6-001e8c717e5b" type="c:ResourceType"/>
    		<kind>account</kind>
            <intent>default</intent>
    		<association>
                	<ref>ri:group</ref>
                	<outbound>
                		<strength>strong</strength>
                    	<expression>
                    		<associationFromLink>
                    			<projectionDiscriminator>
	                    			<kind>entitlement</kind>
	           						<intent>ldapGroup</intent>
           						</projectionDiscriminator>
                    		</associationFromLink>
                		</expression>
                	</outbound>
                </association>
    	</construction>
    	<focusType>UserType</focusType>
    	<order>2</order>
    </inducement>
    <requestable>false</requestable>
</role>
