[midPoint] Ldap connector objectSynchronization conditions not executing

Roman Pudil roman.pudil at ami.cz
Wed Nov 8 07:06:17 CET 2023


Hi, Gary,
I think, you don't need use conditions in sync situations.
What is your goal in sync?

Regards


Roman Pudil
solution architect

gsm: [+420] 775 663 666
e‑mail: roman.pudil at ami.cz<mailto:roman.pudil at ami.cz>

AMI Praha a.s.
Pernerova 697/35, 186 00 Praha 8

recepce: [+420] 604 444 848 | web: www.ami.cz<https://www.ami.cz/>

[AMI Praha a.s.]

Textem tohoto e‑mailu podepisující neslibuje uzavřít ani neuzavírá za společnost AMI Praha a.s.
jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít výhradně písemnou formu.

Tento e‑mail je určen výhradně pro potřeby jeho adresáta/ů a může obsahovat důvěrné nebo osobní
informace. Nejste‑li zamýšleným příjemcem, je zakázáno jakékoliv zveřejňování, zprostředkování
nebo jiné použití těchto informací. Pokud jste obdrželi e‑mail neoprávněně, informujte o tom prosím
odesílatele a vymažte neprodleně všechny kopie tohoto e‑mailu včetně všech jeho příloh. Nakládáním
s neoprávněně získanými informacemi se vystavujete riziku právního postihu.


------ Původní zpráva ------
Od "Dmitriy Berezkin via midPoint" <midpoint at lists.evolveum.com<mailto:midpoint at lists.evolveum.com>>
Komu "midpoint at lists.evolveum.com<mailto:midpoint at lists.evolveum.com>" <midpoint at lists.evolveum.com<mailto:midpoint at lists.evolveum.com>>; "Maxwell, Gary" <Maxwell_G at fortlewis.edu<mailto:Maxwell_G at fortlewis.edu>>
Kopie "Dmitriy Berezkin" <berezkin.dmitriy at gmail.com<mailto:berezkin.dmitriy at gmail.com>>
Datum 08.11.2023 6:42:17
Předmět Re: [midPoint] Ldap connector objectSynchronization conditions not executing

Gary,

As I know ICF&ConnId connectors don’t have any logic about that. Connectors just provide data. So it’s resource configuration issue (or data). Try to dig a bit into this way. Were AD objects skipped when you run a task?

–––
Dmitry Berezkin
7 нояб. 2023 г., 21:31 +0300, Maxwell, Gary <Maxwell_G at fortlewis.edu<mailto:Maxwell_G at fortlewis.edu>>, писал:
Hi Dmitriy,
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.
-Gary

From: Dmitriy Berezkin <berezkin.dmitriy at gmail.com<mailto:berezkin.dmitriy at gmail.com>>
Sent: Tuesday, November 7, 2023 11:19 AM
To: midpoint at lists.evolveum.com<mailto:midpoint at lists.evolveum.com>; midPoint General Discussion <midpoint at lists.evolveum.com<mailto:midpoint at lists.evolveum.com>>
Cc: Maxwell, Gary <Maxwell_G at fortlewis.edu<mailto:Maxwell_G at fortlewis.edu>>
Subject: Re: [midPoint] Ldap connector objectSynchronization conditions not executing

Hi Gary!

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: https://github.com/Evolveum/midpoint-samples/blob/98fcbc8ddf72c5c4a331c528a8dcaf1f2272f96f/samples/stories/multitenant-idm-saas/resources/openldap-customers.xml#L735

–––
Dmitry Berezkin
7 нояб. 2023 г., 20:57 +0300, Maxwell, Gary via midPoint <midpoint at lists.evolveum.com<mailto:midpoint at lists.evolveum.com>>, писал:

Hello All,

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?

<resource>
<synchronization>
    <objectSynchronization>
…….
<reaction>
    <situation>unmatched</situation>
    <synchronize>true</synchronize>
    <action>
        <handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/action-3#addFocus</handlerUri<http://midpoint.evolveum.com/xml/ns/public/model/action-3#addFocus%3C/handlerUri>>
    </action>
    <condition>
        <script>
            <code>
                log.info("executing unmatched")
                return true
            </code>
        </script>
    </condition>
</reaction>
  </objectSynchronization>
    </synchronization>
</resource>


Any thoughts?
Thanks Gary
_______________________________________________
midPoint mailing list
midPoint at lists.evolveum.com<mailto:midPoint at lists.evolveum.com>
https://lists.evolveum.com/mailman/listinfo/midpoint
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20231108/0c17198f/attachment-0001.htm>


More information about the midPoint mailing list