<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"JetBrains Mono";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi Dmitriy,<o:p></o:p></p>
<p class="MsoNormal">It is not working in the synchronization object or in the reaction. I am able to add conditions on other resources, It is only the AdLdap connector that seems to have this problem.<o:p></o:p></p>
<p class="MsoNormal">-Gary<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Dmitriy Berezkin <berezkin.dmitriy@gmail.com> <br>
<b>Sent:</b> Tuesday, November 7, 2023 11:19 AM<br>
<b>To:</b> midpoint@lists.evolveum.com; midPoint General Discussion <midpoint@lists.evolveum.com><br>
<b>Cc:</b> Maxwell, Gary <Maxwell_G@fortlewis.edu><br>
<b>Subject:</b> Re: [midPoint] Ldap connector objectSynchronization conditions not executing<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div name="messageBodySection">
<div>
<p class="MsoNormal">Hi Gary!<br>
<br>
I’m not sure that it’s possible to use condition into reaction. Condition works for whole syncronization object. Please, check this resource as example: <a href="https://github.com/Evolveum/midpoint-samples/blob/98fcbc8ddf72c5c4a331c528a8dcaf1f2272f96f/samples/stories/multitenant-idm-saas/resources/openldap-customers.xml#L735" target="_blank">https://github.com/Evolveum/midpoint-samples/blob/98fcbc8ddf72c5c4a331c528a8dcaf1f2272f96f/samples/stories/multitenant-idm-saas/resources/openldap-customers.xml#L735</a><o:p></o:p></p>
</div>
</div>
<div name="messageSignatureSection">
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">–––<br>
Dmitry Berezkin<o:p></o:p></p>
</div>
</div>
<div name="messageReplySection">
<p class="MsoNormal">7 нояб. 2023 г., 20:57 +0300, Maxwell, Gary via midPoint <<a href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>>, писал:<br>
<br>
<o:p></o:p></p>
<blockquote style="border:none;border-left:solid windowtext 1.0pt;padding:0in 0in 0in 8.0pt;margin-left:3.75pt;margin-top:3.75pt;margin-right:3.75pt;margin-bottom:3.75pt">
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hello All,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Can anyone explain how com.evolveum.polygon.connector.ldap.ad.AdLdapConnector v3.3 resource performs “unmatched”, “linked” and “unlinked” processing however does not execute the
 code within the condition tags?<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white;text-autospace:none">
<span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808">   </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white;text-autospace:none">
<span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808"><</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#0033B3">resource</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808">></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white;text-autospace:none">
<span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808"><</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#0033B3">synchronization</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808">></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white;text-autospace:none">
<span style="color:black">  </span><span style="font-size:10.0pt;font-family:"Times New Roman",serif;color:#080808">  </span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808"><</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#0033B3">objectSynchronization</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808">></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white;text-autospace:none">
<span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808">…….<br>
<</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#0033B3">reaction</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808">><br>
    <</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#0033B3">situation</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808">>unmatched</</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#0033B3">situation</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808">><br>
    <</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#0033B3">synchronize</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808">>true</</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#0033B3">synchronize</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808">><br>
    <</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#0033B3">action</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808">><br>
        <</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#0033B3">handlerUri</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808">><a href="http://midpoint.evolveum.com/xml/ns/public/model/action-3#addFocus%3C/handlerUri">http://midpoint.evolveum.com/xml/ns/public/model/action-3#addFocus</handlerUri</a>><br>
    </</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#0033B3">action</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808">><br>
    <</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#0033B3">condition</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808">><br>
        <</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#0033B3">script</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808">><br>
            <</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#0033B3">code</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808">><span style="background:#EDFCED"><br>
                log.info("executing unmatched")<br>
                return true<br>
            </span></</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#0033B3">code</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808">><br>
        </</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#0033B3">script</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808">><br>
    </</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#0033B3">condition</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808">><br>
</</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#0033B3">reaction</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808">></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white;text-autospace:none">
<span style="font-size:10.0pt;font-family:"Times New Roman",serif;color:#080808">  </span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808"></</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#0033B3">objectSynchronization</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808">><br>
    </</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#0033B3">synchronization</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808">><br>
</</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#0033B3">resource</span><span style="font-size:10.0pt;font-family:"JetBrains Mono";color:#080808">></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Any thoughts?<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Thanks Gary<o:p></o:p></p>
</div>
<p class="MsoNormal">_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
<a href="https://lists.evolveum.com/mailman/listinfo/midpoint">https://lists.evolveum.com/mailman/listinfo/midpoint</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</body>
</html>