Hi,
I have installed shibboleth sp on Linux red hat where apache mod shib is used to intercept the requests. I am using the USC-meta data to connect to USC test IDP installation. (https://shibboleth-test.usc.edu/shibboleth-idp/SSO).
I test it in the linux box with url https://localhost/Shibboleth.sso/Status to check the configuration. And it gives me status handler xml with status as ok.
Now I test https://localhost/secure. It takes me to the idp site for authentication, and upon entering the credentials it brings me back to the url
https://localhost.localdomain/Shibboleth.sso/SAML2/POST.
Everything is fine. Now I created an actual folder as secure and placed a html file named welcome.html and tried to reach the html file with the above stated steps. I reach the page without any issues.
Thing to notice is that the URL that IDP sent me back has localhost.localdomain instead of localhost.
Now I try to test it from a different machine using the IP of the machine where my apache and shibboleth service provider is installed. The IP of the linux box is 10.64.61.81.
· I hit the URL https://10.64.61.81/secure/welcome.html
o Apache sends to shibboleth sp and shibboleth gives me 302 and redirects me to IDP
o IDP gives me login page
· I provide credentials
o Idp authenticates and sends me back with 302 and a URL à https://localhost.localdomain/Shibboleth.sso/SAML2/POST
o It is obvious that I get to see “Firefox can't find the server at localhost.localdomain.”
To fix this I changed the spconfig\applicationdefault\handlerURL to https://10.64.61.81/Shibboleth.sso instead of the default value /Shibboleth.sso
Now
· I hit the URL https://10.64.61.81/secure/welcome.html
o Apache sends to shibboleth sp and shibboleth gives me 302 and redirects me to IDP
o IDP gives me login page
· I provide credentials
o Idp authenticates and sends me back with 302 and a URL à https://localhost.localdomain/Shibboleth.sso/SAML2/POST
I see an error that
The requested URL /Shibboleth.sso/SAML2/POST was not found on this server.
Apache/2.2.3 (Red Hat) Server at localhost.localdomain Port 443
And now when I try to access
https://localhost/Shibboleth.sso/Status
it says /Shibboleth.sso/Status url was not found on the server.
So something goes wrong when I change the handler url to absolute url instead of relative url. But I cannot work on local host and I need that this set up is available within my intranet atleast.
Can someone help me here.
Thanks
Harsha