<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Juan,
<div class=""><br class="">
</div>
<div class="">Yes, that's very possible, along with almost anything else you can imagine.</div>
<div class=""><br class="">
</div>
<div class="">Personally, I'd do this with a Script attribute that implemented that very simple logic: specialEmail ~= "if !null A, use A, else, use B"</div>
<div class=""><br class="">
</div>
<div class=""><a href="https://wiki.shibboleth.net/confluence/display/IDP30/ScriptedAttributeDefinition" class="">https://wiki.shibboleth.net/confluence/display/IDP30/ScriptedAttributeDefinition</a></div>
<div class=""><br class="">
</div>
<div class="">Then release that particular Script attribute to this SP with a dedicated filter.</div>
<div class=""><br class="">
</div>
<div class="">There are many other ways, but this will give you the most flexibility by far.</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class="">Nate.</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Oct 5, 2016, at 10:16 AM, Juan Padilla <<a href="mailto:juan.padilla@nxp.com" class="">juan.padilla@nxp.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class=""><span style="font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">is
 it possible to configure attribute-resolver.xml to set and release an attribute based on the existence of multiple LDAP attributes? For example, I want to release an "email" attribute to the service provider: if LDAP has an attribute and value for "alt_email"
 then use that value ... otherwise use the value in LDAP attribute "email" (which will always exist).</span></div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>