<div dir="ltr"><div><div><div>Hi,<br><br></div>We are using SAML logout documented at <a href="https://wiki.shibboleth.net/confluence/display/SHIB2/IdPEnableSLO">https://wiki.shibboleth.net/confluence/display/SHIB2/IdPEnableSLO</a><br>
<br></div>When we send the NameID it is encoded based on the code below in attribute-resolver.xml:<br><br>&lt;!-- Use AD objectGUID for ImmutableID   --&gt;<br>&lt;resolver:AttributeDefinition id=&quot;ImmutableID&quot; xsi:type=&quot;Simple&quot; xmlns=&quot;urn:mace:shibboleth:2.0:resolver:ad&quot;<br>
          sourceAttributeID=&quot;objectGUID&quot;&gt;<br>   &lt;resolver:Dependency ref=&quot;myLDAP&quot; /&gt;<br><br>   &lt;resolver:<b>AttributeEncoder xsi:type=&quot;SAML2StringNameID</b>&quot; xmlns=&quot;urn:mace:shibboleth:2.0:attribute:encoder&quot;<br>
   nameFormat=&quot;urn:oasis:names:tc:SAML:2.0:nameid-format:persistent&quot; /&gt;<br>  &lt;/resolver:AttributeDefinition&gt;<br><br><br></div>When a user log out, I get following in the logs (set to DEBUG) that Session Manager couldn&#39;t find matching NameID. Therefore user is not logged out. I am having a feeling may be it is because the attribute is encoded before sending to the SP and thus when it returned by SP it is encoded and needs to be decoded to match the NameID present in session manager. Am I right? If yes then how I can achieve a logout?<br>
<div><div><div><br><br><br><br><br><br>14:32:55.131 - INFO [Shibboleth-Access:73] - 20140820T023255Z|192.168.110.92|idp.rosmini.school.nz:443|/profile/SAML2/Redirect/SLO|<br>14:32:55.131 - DEBUG [edu.internet2.middleware.shibboleth.idp.profile.IdPProfileHandlerManager:86] - shibboleth.HandlerManager: Looking up profile handler for request path: /SAML2/Redirect/SLO<br>
14:32:55.131 - DEBUG [edu.internet2.middleware.shibboleth.idp.profile.IdPProfileHandlerManager:97] - shibboleth.HandlerManager: Located profile handler of the following type for the request path: edu.internet2.middleware.shibboleth.idp.profile.saml2.SLOProfileHandler<br>
14:32:55.132 - DEBUG [edu.internet2.middleware.shibboleth.idp.profile.saml2.SLOProfileHandler:154] - Processing incoming SAML LogoutRequest<br>14:32:55.132 - DEBUG [edu.internet2.middleware.shibboleth.idp.profile.saml2.SLOProfileHandler:502] - Decoding message with decoder binding &#39;urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect&#39;<br>
14:32:55.139 - DEBUG [edu.internet2.middleware.shibboleth.common.relyingparty.provider.SAMLMDRelyingPartyConfigurationManager:128] - Looking up relying party configuration for urn:federation:MicrosoftOnline<br>14:32:55.139 - DEBUG [edu.internet2.middleware.shibboleth.common.relyingparty.provider.SAMLMDRelyingPartyConfigurationManager:130] - Custom relying party configuration found for urn:federation:MicrosoftOnline<br>
14:32:55.194 - DEBUG [edu.internet2.middleware.shibboleth.idp.profile.saml2.SLOProfileHandler:516] - Decoded request from relying party &#39;urn:federation:MicrosoftOnline&#39;<br>14:32:55.194 - DEBUG [edu.internet2.middleware.shibboleth.common.relyingparty.provider.SAMLMDRelyingPartyConfigurationManager:128] - Looking up relying party configuration for urn:federation:MicrosoftOnline<br>
14:32:55.194 - DEBUG [edu.internet2.middleware.shibboleth.common.relyingparty.provider.SAMLMDRelyingPartyConfigurationManager:130] - Custom relying party configuration found for urn:federation:MicrosoftOnline<br>14:32:55.195 - DEBUG <b>[edu.internet2.middleware.shibboleth.idp.profile.saml2.SLOProfileHandler:259] - <span style="color:rgb(255,0,0)">Querying SessionManager based on NameID </span>&#39;It6BhFXNZkOSF8USULeA9A==|urn:oasis:names:tc:SAML:2.0:nameid-format:persistent&#39;<br>
14:32:55.195 - INFO [edu.internet2.middleware.shibboleth.idp.profile.saml2.SLOProfileHandler:266] - <span style="color:rgb(255,0,0)">LogoutRequest did not reference an active session.</span><br></b>14:32:55.199 - DEBUG [edu.internet2.middleware.shibboleth.idp.profile.AbstractSAMLProfileHandler:796] - Encoding response to SAML request _8e4c6d5b-304d-464a-be20-2505dd8dc7a8 from relying party urn:federation:MicrosoftOnline<br>
<br clear="all"><div><br>-- <br><font face="tahoma, sans-serif"><b>Farzan Qureshi</b> | Network Administrator &amp; Help-desk Support | Rosmini College | (09) 487 0 530</font>
</div></div></div></div></div>

<br>
<font style="font-family:Verdana" size="1">This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager (<span style="font-weight:bold;font-style:italic"><a href="mailto:admin@rosmini.school.nz" target="_blank">admin@rosmini.school.nz</a></span>). Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. <span style="font-weight:bold">Rosmini College</span> accepts no liability for any damage caused by any virus transmitted by this email.</font>