Discussion:
Unable to achieve Web SSO logout
B Da Bahia
2014-08-13 16:49:05 UTC
Permalink
Hello list,

Newbie here. I'm attempting to setup a simple SAML 2.0 federation with:

IdP: MS Server 2008 R2 with ADFS 2.0
SP: MS Win 7 with Shibboleth 2.5.3 win 64

I based my tests on the following link
https://wiki.shibboleth.net/confluence/download/attachments/4358293/ADFS_and_Shib.pdf?api=v2

So far, I was able to get the SSO working (with some issues) but I'm unable
to get the Logout done. And yes, I've read the SLO issues article (not sure
I get the whole picture though)

-First the SSO issues:

Once logged in, if I close my IE10 and then reopen it again, when
requesting the /secure URL, I still have a valid session with the IdP
(different Shib session ID though) so my IdP creds are not required ( which
is undesired). If I use chrome, that behavior does not hold and my creds
are indeed requested. This happens consistently even if I clear the cache
on both browsers.

The window events registered with the IE10 case are:

1) The computer attempted to validate the credentials for an account.

Authentication Package: MICROSOFT_AUTHENTICATION_PACKAGE_V1_0

2) Special privileges assigned to new logon. (with reference to my account
in that domain)

3) An account was successfully logged on.

I'm using windows authentication at the /adfs/ls site (extended protection
off)

-Next the SLO issues:
I'm trying to logout with an invocation from my SP that looks like this:

<a href="https://mySP/Shibboleth.sso/SAML2/POST"><b>IdP Logout</b></a>

And as a response I get:

"opensaml::BindingException at (https://mySP/Shibboleth.sso/SAML2/POST)

Invalid HTTP method (GET)."

The windows event viewer shows the following events:

1) Special privileges assigned to new logon (security ID: system)

2) An account was successfully logged on (security ID: NULL)

3) An account was logged off. (security ID: system)

4) The computer attempted to validate the credentials for an account.
Authentication Package: MICROSOFT_AUTHENTICATION_PACKAGE_V1_0

5) Special privileges assigned to new logon (securityID: my domain account)

6) An account was successfully logged on. (security ID: NULL)

7) An account was logged off.(securityID: my domain account)

8) A Kerberos service ticket was requested.

Some relevant config snippets are:

Shibboleth2.xml

<SSO entityID="http://myIdP/adfs/services/trust">
<!--discoveryProtocol="SAMLDS" discoveryURL="
https://ds.example.org/DS/WAYF"> -->
SAML2 SAML1
</SSO>

<!-- SAML and local-only logout. -->
<Logout> SAML2 Local</Logout>
I was able to hook in an app proxy that shows the following events after I
tried the logout:

1) a POST to https://mySP/Shibboleth.sso/SAML2/POST with a 302 Moved
redirection

2) a GET to https://mySP/secure with a 401 Unauthorized

3) idem 2

4) a GET to https://mySP/secure with a 301 Moved Permanently

5) and a GET to https://mySP/secure with a 200 OK

I'm probably not submitting enough info for you to diagnose what I'm doing
wrong, but I'm willing to submit whatever necessary.

Any hint will be much appreciated.


Thanks!
Peter Schober
2014-08-13 16:54:16 UTC
Permalink
Post by B Da Bahia
<a href="https://mySP/Shibboleth.sso/SAML2/POST"><b>IdP Logout</b></a>
"opensaml::BindingException at (https://mySP/Shibboleth.sso/SAML2/POST)
Invalid HTTP method (GET)."
The Logout handler is at /Shibboleth.sso/Logout not
/Shibboleth.sso/SAML2/POST
-peter
--
To unsubscribe from this list send an email to users-unsubscribe-***@public.gmane.org
B Da Bahia
2014-08-14 08:01:27 UTC
Permalink
Thank you Peter. I've tried that already but it calls for Local logout (and
forces to close the browser). I was hoping to invoke a SAML logout as it
has precedence in the shibboleth2.xml file, but it does not seem to be the
case.

Bida
Post by Peter Schober
Post by B Da Bahia
<a href="https://mySP/Shibboleth.sso/SAML2/POST"><b>IdP Logout</b></a>
"opensaml::BindingException at (https://mySP/Shibboleth.sso/SAML2/POST)
Invalid HTTP method (GET)."
The Logout handler is at /Shibboleth.sso/Logout not
/Shibboleth.sso/SAML2/POST
-peter
--
To unsubscribe from this list send an email to
Randy Wiemer
2014-08-13 17:17:24 UTC
Permalink
You need to configure ADFS to use forms-based authentication in order to achieve SLO. Windows integrated will use Kerberos or NTLM with IE where there is no real concept of logoff short of logging off the computer. With both of those protocols the goal is to use the desktop credentials to seamlessly access web sites.


Randy






From: B Da Bahia
Sent: ‎Wednesday‎, ‎August‎ ‎13‎, ‎2014 ‎11‎:‎49‎ ‎AM
To: Shib Users















Hello list,


Newbie here. I'm attempting to setup a simple SAML 2.0 federation with:
B Da Bahia
2014-08-14 08:17:01 UTC
Permalink
Thank you Randy, that makes a lot of sense!

Nevertheless, after enabling FBA and disabling Windows Authentication in
the IdP IIS (and the SP IIS) I've broken the SSO and don't get the IdP
login form anymore, but instead this error message:

opensaml::FatalProfileException at (https://mySP/Shibboleth.sso/SAML2/POST)

SAML response reported an IdP error.

Error from identity provider:

*Status:* urn:oasis:names:tc:SAML:2.0:status:Responder

I've tried to troubleshoot it but nothing really alarming seems to popup
from the logs.

The app proxy shows a 500 Server error on the following request:

POST https://mySP/Shibboleth.sso/SAML2/POST

Thank you once again

Bida
Post by Randy Wiemer
You need to configure ADFS to use forms-based authentication in order to
achieve SLO. Windows integrated will use Kerberos or NTLM with IE where
there is no real concept of logoff short of logging off the computer. With
both of those protocols the goal is to use the desktop credentials to
seamlessly access web sites.
Randy
*Sent:* ‎Wednesday‎, ‎August‎ ‎13‎, ‎2014 ‎11‎:‎49‎ ‎AM
Hello list,
--
To unsubscribe from this list send an email to
Cantor, Scott
2014-08-14 13:34:16 UTC
Permalink
Post by B Da Bahia
Nevertheless, after enabling FBA and disabling Windows Authentication in
the IdP IIS (and the SP IIS) I've broken the SSO and don't get the IdP
opensaml::FatalProfileException at
(https://mySP/Shibboleth.sso/SAML2/POST)
SAML response reported an IdP error.
Status: urn:oasis:names:tc:SAML:2.0:status:Responder
I've tried to troubleshoot it but nothing really alarming seems to popup
from the logs.
I assume you're looking at ADFS' logs, because that's who's reporting the
error.
Post by B Da Bahia
POST https://mySP/Shibboleth.sso/SAML2/POST
Yes, the one you just posted above.

-- Scott
--
To unsubscribe from this list send an email to users-unsubscribe-***@public.gmane.org
B Da Bahia
2014-08-14 15:08:40 UTC
Permalink
Yes, I'm looking at the ADFS logs and nothing really significant shows up.
Just to be clear, on both /adfs and /adfs/ls the only authentication method
enabled should be FBA?

Thank you once again for your invaluable help!

-Bida
Post by Cantor, Scott
Post by B Da Bahia
Nevertheless, after enabling FBA and disabling Windows Authentication in
the IdP IIS (and the SP IIS) I've broken the SSO and don't get the IdP
opensaml::FatalProfileException at
(https://mySP/Shibboleth.sso/SAML2/POST)
SAML response reported an IdP error.
Status: urn:oasis:names:tc:SAML:2.0:status:Responder
I've tried to troubleshoot it but nothing really alarming seems to popup
from the logs.
I assume you're looking at ADFS' logs, because that's who's reporting the
error.
Post by B Da Bahia
POST https://mySP/Shibboleth.sso/SAML2/POST
Yes, the one you just posted above.
-- Scott
--
To unsubscribe from this list send an email to
Loading...