[midPoint] LDAP Correlation
Andrea Picconi
andrea.picconi at innovery.net
Mon Oct 12 14:15:50 CEST 2020
HI Slavek,
really thanks for the info and example, truly exhaustive!
Andrea
-----Original Message-----
From: Slavek Licehammer <slavek.licehammer at evolveum.com>
Sent: Sunday, October 11, 2020 9:59 PM
To: midPoint General Discussion <midpoint at lists.evolveum.com>
Cc: Andrea Picconi <andrea.picconi at innovery.net>; Marianna De Biasio <marianna.debiasio at innovery.net>; Jacopo Giuliano <jacopo.giuliano at innovery.net>
Subject: Re: [midPoint] LDAP Correlation
Hello Andrea.
You can use <q:or> to combine different conditions. See https://wiki.evolveum.com/display/midPoint/Query+API for more info.
In your case it will be something like this:
<q:or>
<q:equal>
<q:path >c:name</q:path>
<expression xmlns="">
<variable xmlns="">
<name>en</name>
<path>$account/attributes/employeeNumber</path>
</variable>
<script xmlns="">
<code>
'EMP_' + en
</code>
</script>
</expression>
</q:equal>
<q:equal>
<!-- condition for: 'STU_' + en will be placed here-->
</q:equal>
</q:or>
Best regards,
Slavek
On 06/10/2020 12:13, Andrea Picconi via midPoint wrote:
> Hi all,
>
> i need help with correlation. I have one of this type for an LDAP:
>
> <q:equal xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3" xmlns="">
> <q:path >c:name</q:path>
> <expression xmlns="">
> <variable xmlns="">
> <name>en</name>
> <path>$account/attributes/employeeNumber</path>
> </variable>
> <script xmlns="">
> <code>
> 'EMP_' + en
> </code>
> </script>
> </expression>
> </q:equal>
>
> and it works great for correlating only one type of the "name" attribute ('EMP_' + en). But what if I wanted to add another one? For example, 'STU_' + en?
> How can I add it? Any help?
>
> Thank you,
>
> Andrea Picconi
> IAM (Identity Access Management)
>
> [Innovery]
> Skype: precons
> T: +39 06 51963439 (int. 196)
>
> Strada Quattro Palazzina A6 c/o Centro Direzionale Milanofiori, 20057 Assago (MI).
> www.innovery.net<http://www.innovery.net/> | T: +39 06 519 63 439
>
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> https://lists.evolveum.com/mailman/listinfo/midpoint
>
More information about the midPoint
mailing list