[midPoint] correlation expression
Roman Pudil - AMI Praha a.s.
roman.pudil at ami.cz
Tue Mar 7 14:17:36 CET 2017
Yes, some example:
<correlation>
<q:equal>
<q:path>c:name</q:path>
<expression>
<variable>
<name
xmlns:my="http://myself.me/schemas/whatever">my:distinguishedName</name>
<c:path>$shadow/attributes/ri:dn</c:path>
</variable>
<script>
<language>http://midpoint.evolveum.com/xml/ns/public/expression/language#Groovy</language>
<code>
def cn = '';
if (!basic.isEmpty(distinguishedName)) {
// workaround - vycisteni carek primo v DN
(napr. Udalosti, komentare)
tmpDN =
distinguishedName.replaceAll('\\\\,','--');
// ziskani CN z DN
cn = 'AD: ' + distinguishedName.substring(3,
tmpDN.indexOf(","));
cn = cn.replaceAll('\\\\','');
}
return cn;
</code>
</script>
</expression>
</q:equal>
</correlation>
Roman Pudil
solution architect
gsm: [+420] 775 663 666
e-mail: roman.pudil at ami.cz
AMI Praha a.s.
Pláničkova 11
162 00 Praha 6
tel./fax: [+420] 274 783 239
web: www.ami.cz
<http://www.ami.cz/reseni-a-sluzby/bezpecnost-dat/identity-management>
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.
------ Původní zpráva ------
Od: "Oskar Butovič - AMI Praha a.s." <oskar.butovic at ami.cz>
Komu: "midPoint General Discussion" <midPoint at lists.evolveum.com>
Odesláno: 7.3.2017 14:14:01
Předmět: [midPoint] correlation expression
>Hello everybody,
>
>today I would need to have some simple expression in correlation. would
>something like this be posssible?:
>
><correlation>
> <q:equal>
> <q:path>c:name</q:path>
> <expression>
> <c:path>"ad_" +
>$shadow/attributes/sAMAccountName</c:path>
> </expression>
> </q:equal>
> </correlation>
>
>Best Regards
>
>Oskar Butovič
>
>--
>Oskar Butovič
>solution architect
>
>gsm: [+420] 774 480 101
>e-mail: oskar.butovic at ami.cz
>
>
>AMI Praha a.s.
>Pláničkova 11
>162 00 Praha 6
>tel.: [+420] 274 783 239
>web: www.ami.cz
>
>
>
>
><http://www.ami.cz/reseni-a-sluzby/bezpecnost-dat/identity-management>
>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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20170307/d38a0614/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4339 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20170307/d38a0614/attachment-0001.bin>
More information about the midPoint
mailing list