<div dir="ltr">Hi to all,<br>I have faced with a problem of unexpected behavior of Midpoint IDM(3.7) during user recalculations.<br>I have extended IDM and LDAP with sshPublicKey attribute (xsd:base64Binary in IDM and Octet String in LDAP) and created of mapping attribute in LDAP resource as is.<br>I have to remove the attribute value on LDAP when it removes in IDM. For this task, I have added tolerant=false option in the attribute mapping in LDAP resource.<br>It works in a wrong way. When I have a non-empty sshPublicKey in IDM it is provisioned in LDAP correctly. It is Ok. But when run user recalculation it removes sshPublicKey attribute value in  LDAP. When I run recalculation the second time it re-provisions sshPublicKey attribute value in  LDAP again.<br>And it can be Infinite. Every time when recalculation runs it removes and restores attribute value periodically.<br>Please help me to understand what I did in the wrong way in configuration or confirm that is a bug in Midpoint.<br><div><br></div><div>See below configuration details<br></div><div><br></div><div>Attribute in LDAP schema<br></div><div><br></div><div>olcAttributeTypes: {17}( 1.3.6.1.4.1.45689.1.1.1.2.18 NAME 'sshPublicKey' DESC 'SSH Public key' EQUALITY octetStringMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 SINGLE-VALUE )<br></div><div><br></div><div>Attribute in LDAP connector  schema<br></div><div><br></div><div>                  <xsd:element minOccurs="0" name="sshPublicKey" type="xsd:base64Binary"><br>                     <xsd:annotation><br>                        <xsd:appinfo><br>                           <a:displayOrder>290</a:displayOrder><br>                           <ra:nativeAttributeName>sshPublicKey</ra:nativeAttributeName><br>                           <ra:frameworkAttributeName>sshPublicKey</ra:frameworkAttributeName><br>                        </xsd:appinfo><br>                     </xsd:annotation><br>                  </xsd:element></div><div><br></div><div>Attribute in IDM schema<br></div><div><br></div><div>               <xsd:element name="sshPublicKey" type="xsd:base64Binary" minOccurs="0" maxOccurs="1"><br>                <xsd:annotation><br>                        <xsd:appinfo><br>                        <a:displayName>sshPublicKey</a:displayName><br>                        <a:indexed>false</a:indexed><br>                        </xsd:appinfo><br>                </xsd:annotation><br>                </xsd:element><br></div><div><br></div><div>Attribute mapping in LDAP connector</div><div><br></div><div>         <attribute id="141"><br>            <c:ref>ri:sshPublicKey</c:ref><br>            <displayName>sshPublicKey</displayName><br>            <tolerant>false</tolerant><br>            <fetchStrategy>explicit</fetchStrategy><br>            <outbound><br>               <strength>strong</strength><br>               <source><br>                  <c:path>$user/extension/sshPublicKey</c:path><br>               </source><br>            </outbound><br>         </attribute><br></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><span style="color:rgb(76,76,76)">Best regards, <br><br><img src="cid:o.nekriach@dynatech.lv1520941785292-7770"> <br><br>Oleksandr Nekriach | Identity and access management engineer <br><br>Dynatech, <a href="https://maps.google.com/?q=Mednieku+str.+4a,+Riga,+LV-1010,+Latvia&entry=gmail&source=g" target="_blank">Mednieku str. 4a, Riga, LV-1010, Latvia</a> <br><br><div style="display:inline-block"><a href="tel:+371%2025%20314%20685" value="+37125314685" target="_blank">+37125314685</a></div>,<div style="display:inline-block"><a href="mailto:o.nekriach@dynatech.lv" target="_blank">o.nekriach@dynatech.lv</a></div>|<div style="display:inline-block"><a href="http://www.dynatech.lv" target="_blank">www.dynatech.lv</a></div> <br><br>Stay connected: <br><div style="display:inline-block;margin:5px 5px 0px 0px"><a href="https://www.facebook.com/DynatechLatvia/?ref=br_rs" target="_blank"><img src="cid:o.nekriach@dynatech.lv1520941785292-7771"></a></div><div style="display:inline-block;margin:5px 0px 0px"><a href="https://www.linkedin.com/company-beta/17893047/" target="_blank"><img src="cid:o.nekriach@dynatech.lv1520941785292-7772"></a></div><br><br><span style="font-size:11px;color:rgb(161,161,161)">Confidentiality Notice: This message contains confidential information and is intended only for the named recipient(s). If you are not the addressee you may not copy, distribute or perform any other activities with this information. If you have received this transmission in error, please notify us by e-mail immediately. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.</span></span></div></div>
</div>