<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi,</p>
<p><br>
</p>
<p>I am trying to use role-meta-ldapgroup.xml from midpoint/samples/stories/unix-ldap.
</p>
<p><br>
</p>
<p>Uploading the meta role via rest api succeeds, but I get an error message when trying to upload the following role:</p>
<p><br>
</p>
<p><role <br>
        xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"<br>
        xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"<br>
        xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"<br>
        xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"><br>
      <name>My LDAP Group</name><br>
      <description>Use LDAP Group Metarole</description><br>
      <assignment><br>
    <targetRef oid="1568ec1e-36cc-11e6-a052-3c970e44b9e2" type="RoleType"/><br>
      </assignment><br>
</role></p>
<p><br>
</p>
<p>The error message is shown below, and to me it looks like running a Groovy script fails for some reason. I am running midPoint in a docker container based on Ubuntu 14.04, and running 'groovy -v' says:<br>
</p>
<p><br>
</p>
<p> Groovy Version: 1.8.6 JVM: 1.8.0_111 Vendor: Oracle Corporation OS: Linux</p>
<p><br>
</p>
<p>Any ideas? Am I missing some package in the container?<br>
</p>
<p><br>
</p>
<p>Thanks, Pertti</p>
<p><br>
</p>
<p>---------------------------------<br>
</p>
<p>org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:<br>
Script3.groovy: 1: unexpected token: import @ line 1, column 45.<br>
    javax.naming.ldap.Rdn                                import jav<br>
                                 ^<br>
<br>
1 error<br>
* Closing connection 0<br>
 expression in mapping in outbound mapping for {.../resource/instance-3}dn in resource:cb9ea519-cf73-4d0c-86aa-7fafc598f08b(LDAP)(name=PPV(PolyString:My LDAP Group); ) in expression in mapping in outbound mapping for {.../resource/instance-3}dn in resource:cb9ea519-cf73-4d0c-86aa-7fafc598f08b(LDAP)</p>
<p><br>
</p>
<p><br>
</p>
</body>
</html>