<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Mauro,<div><br></div><div>Apparently each search is returning different information, or you're building an attribute directly from the principal name.</div><div><br></div><div>Either way, with the IdP's main logging and LDAP logging on DEBUG you'll be able to follow the resolution and release of values precisely and figure out why there's a discrepancy.</div><div><br></div><div>I'd start with the assertion that is produced, identify which attribute(or Subject) is different, and then trace back in the logs to figure out why.</div><div><br></div><div>Thanks,</div><div>Nate.</div><div><br><div><div>On Sep 15, 2012, at 17:37 , Mauro Minella wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Thanks guys. But can you help understanding why I apparently get different assertions if I get authenticated with flat sAMAccountName or userPrincipalName?<br>In fact, you told me how to login with both attributes on the shibtest page, and it works if I go straight there, however when the same Shib login page is called by the service provider (in my case, Office365), I'm allowed to use that service provider only if I use the sAMAccountName authentication method. If, instead, I configure login.config to accept the userPrincipalName on the Shibboleth authentication, I'm authenticated on the shib page, but then my service provider says that I'm not authorized to use it.<br>In other words, it seems that different assertions are released, when I just change the userField setting.<br><br>Thanks,<br><br>Mauro<br></span></blockquote></div><br></div></body></html>