[midPoint] Script expression in mapping & LDAP baseContext
philippebriffod at laposte.net
philippebriffod at laposte.net
Thu Nov 2 12:26:42 CET 2023
Hello,
when configuring an LDAP resource we enter an LDAP DN in the parameter "baseContext"
<connectorConfiguration >
<icfc:configurationProperties >
...
<gen629:baseContext>O=app21</gen629:baseContext>
...
</icfc:configurationProperties>
</connectorConfiguration>
when defining the mapping of the account, I would like to reuse this information for building the DN of the account
<attribute id="9">
<ref>ri:dn</ref>
<outbound>
<strength>strong</strength>
<source>
<path>$focus/employeeNumber</path>
</source>
<expression>
<script>
<code>'cn=' + employeeNumber + ',OU=Users,' + resource.getBaseContext()</code>
</script>
</expression>
</outbound>
</attribute>
what is the correct expression to get the "baseContext" attribute of the resource ?
Thanks in advance
Philippe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20231102/ae7f9ed3/attachment.htm>
More information about the midPoint
mailing list