Dear John,
yes from that URL we obtain the metadata of our SP.
Now we are redirect to the Liferay after the IDP authentication, bat
we are not logged in Liferay.
Below our configuration:
Regards,
Marco B
######## CAS - LIFERAY CONFIGURATION ##########
Server Name
halfback.cnaf.infn.it:8080
######## IDP CONFIGURATION #######
-----> /opt/shibboleth-idp/conf/attribute-filter.xml
[...]
<afp:AttributeFilterPolicy id="applicazioniAmmesse">
<afp:PolicyRequirementRule xsi:type="basic:OR">
<basic:Rule xsi:type="basic:AttributeRequesterString" value="http://
halfback.cnaf.infn.it:8080/en/c/portal/login/" />
</afp:PolicyRequirementRule>
<afp:AttributeRule attributeID="uid">
<afp:PermitValueRule xsi:type="basic:ANY"/>
</afp:AttributeRule>
</afp:AttributeFilterPolicy>
[...]
-----> /opt/shibboleth-idp/conf/relying-party.xml
[...]
<MetadataProvider id="liferay"
xsi:type="ResourceBackedMetadataProvider" xmlns="urn:mace:shibboleth:
2.0:metadata">
<MetadataResource xsi:type="resource:FilesystemResource" file="/opt/
shibboleth-idp/metadata/liferay-metadata.xml" />
</MetadataProvider>
[...]
######## SP CONFIGURATION #######
-----> /etc/shibboleth/shibboleth2.xml
[...]
<RequestMapper type="Native">
<RequestMap applicationId="default">
<Host name="
halfback.cnaf.infn.it" port="443"
scheme="https">
<PathRegex regex="casshib/shib/liferay"
applicationId="liferay" authType="shibboleth" requireSession="true"/>
</Host>
</RequestMap>
</RequestMapper>
[...]
<ApplicationDefaults id="default" policyId="default"
entityID="
https://halfback.cnaf.infn.it/shibboleth"
homeURL="
https://halfback.cnaf.infn.it/index.html"
REMOTE_USER="eppn persistent-id targeted-id"
signing="false" encryption="false">
[...]
<Sessions lifetime="28800" timeout="3600" checkAddress="false"
handlerURL="/Shibboleth.sso" handlerSSL="false"
exportLocation="
https://halfback.cnaf.infn.it/Shibboleth.sso/
GetAssertion" exportACL="127.0.0.1"
idpHistory="false" idpHistoryDays="7">
<SessionInitiator type="Chaining" Location="/Login"
isDefault="true" id="Intranet"
relayState="cookie" entityID="https://
gridlab01.cnaf.infn.it/idp/shibboleth">
<SessionInitiator type="SAML2" defaultACSIndex="1"
acsByIndex="false" template="bindingTemplate.html"/>
<SessionInitiator type="Shib1" defaultACSIndex="5"/>
</SessionInitiator>
<md:AssertionConsumerService Location="/SAML2/POST" index="1"
Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"/>
<md:AssertionConsumerService Location="/SAML2/POST-SimpleSign"
index="2"
Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST-
SimpleSign"/>
<md:AssertionConsumerService Location="/SAML2/Artifact" index="3"
Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact"/>
<md:AssertionConsumerService Location="/SAML2/ECP" index="4"
Binding="urn:oasis:names:tc:SAML:2.0:bindings:PAOS"/>
<md:AssertionConsumerService Location="/SAML/POST" index="5"
Binding="urn:oasis:names:tc:SAML:1.0:profiles:browser-post"/>
<md:AssertionConsumerService Location="/SAML/Artifact" index="6"
Binding="urn:oasis:names:tc:SAML:1.0:profiles:artifact-01"/>
<!-- LogoutInitiators enable SP-initiated local or global/single
logout of sessions. -->
<LogoutInitiator type="Chaining" Location="/Logout"
relayState="cookie">
<LogoutInitiator type="SAML2" template="bindingTemplate.html"/
>
<LogoutInitiator type="Local"/>
</LogoutInitiator>
<!-- md:SingleLogoutService locations handle single logout (SLO)
protocol messages. -->
<md:SingleLogoutService Location="/SLO/SOAP"
Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP"/>
<md:SingleLogoutService Location="/SLO/Redirect"
conf:template="bindingTemplate.html"
Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"/>
<md:SingleLogoutService Location="/SLO/POST"
conf:template="bindingTemplate.html"
Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"/>
<md:SingleLogoutService Location="/SLO/Artifact"
conf:template="bindingTemplate.html"
Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact"/>
<!-- md:ManageNameIDService locations handle NameID management
(NIM) protocol messages. -->
<md:ManageNameIDService Location="/NIM/SOAP"
Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP"/>
<md:ManageNameIDService Location="/NIM/Redirect"
conf:template="bindingTemplate.html"
Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"/>
<md:ManageNameIDService Location="/NIM/POST"
conf:template="bindingTemplate.html"
Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"/>
<md:ManageNameIDService Location="/NIM/Artifact"
conf:template="bindingTemplate.html"
Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact"/>
<!--
md:ArtifactResolutionService locations resolve artifacts issued
when using the
SAML 2.0 HTTP-Artifact binding on outgoing messages, generally
uses SOAP.
-->
<md:ArtifactResolutionService Location="/Artifact/SOAP" index="1"
Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP"/>
<!-- Extension service that generates "approximate" metadata based
on SP configuration. -->
<Handler type="MetadataGenerator" Location="/Metadata"
signing="false"/>
<!-- Status reporting service. -->
<Handler type="Status" Location="/Status" acl="127.0.0.1"/>
<!-- Session diagnostic service. -->
<Handler type="Session" Location="/Session"
showAttributeValues="false"/>
</Sessions>
[...]
<!-- this contains the service metadata for app1 and app2 -->
<MetadataProvider type="XML" file="liferay-metadata.xml"/>
<!-- this contains the metadata for our identity provider -->
en/c/portal/login/"
homeURL="
http://halfback.cnaf.infn.it:8080/en/
c/portal/login/"
REMOTE_USER="shibattr-uid">
<Sessions lifetime="28800" timeout="3600" checkAddress="false"
handlerURL="/casshib/shib/liferay/Shibboleth.sso"
handlerSSL="true"
exportLocation="/casshib/shib/liferay/Shibboleth.sso/
GetAssertion"
idpHistory="false" idpHistoryDays="7"
cookieProps="; path=/en/c/portal/login/">
</Sessions>
</ApplicationOverride>
[...]
######## CASSHIB CONFIGURATION #######
-----> /opt/tomcat/webapp/casshib/WEB-INF/classes/casshib-service-
registration.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<casShibServiceRegistrations>
<service id="
http://halfback.cnaf.infn.it:8080/en/c/portal/login/"
appname="liferay"
passcode="101" />
</casShibServiceRegistrations>
######## LOG FILES #######
-----> idp-process.log
16:22:58.943 - DEBUG
[org.opensaml.ws.message.encoder.BaseMessageEncoder:54] - Successfully
encoded message.
16:22:58.943 - INFO [Shibboleth-Audit:950] - 20110505T142258Z|
urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect|
_707389a6854361a7385791e33a7afec5|
http://halfback.cnaf.infn.it:8080/en/
c/portal/login/|urn:mace:shibboleth:2.0:profiles:saml2:sso|https://
2.0:bindings:HTTP-POST|_3d817837f5cdc64f71f0ad9a439f455d|mbenci|
urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport||
_f44941229bb0e84b19077229d31257ac||
-----> /opt/tomcat/logs/catalina.out
2011-05-05 16:41:47,657 INFO
[org.jasig.cas.services.DefaultServicesManagerImpl] - <Reloading
registered services.>
2011-05-05 16:41:47,657 DEBUG
[org.jasig.cas.services.DefaultServicesManagerImpl] - <Adding
registered service
https://halfback.cnaf.infn.it/app1/>
2011-05-05 16:41:47,657 DEBUG
[org.jasig.cas.services.DefaultServicesManagerImpl] - <Adding
registered service
http://halfback.cnaf.infn.it:8080/en/c/portal/login/>
2011-05-05 16:41:47,657 INFO
[org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 2
services.>
-----> cas.log
2011-05-05 16:41:47,657 INFO
[org.jasig.cas.services.DefaultServicesManagerImpl] - Reloading
registered services.
2011-05-05 16:41:47,657 DEBUG
[org.jasig.cas.services.DefaultServicesManagerImpl] - Adding
registered service
https://halfback.cnaf.infn.it/app1/
2011-05-05 16:41:47,657 DEBUG
[org.jasig.cas.services.DefaultServicesManagerImpl] - Adding
registered service
http://halfback.cnaf.infn.it:8080/en/c/portal/login/
2011-05-05 16:41:47,657 INFO
[org.jasig.cas.services.DefaultServicesManagerImpl] - Loaded 2
services.
-----> /opt/liferay/tomcat/logs/catalina.out
after login with log lever DEBUG
14:42:52,758 DEBUG [PrincipalThreadLocal:30] getName null
14:42:52,806 DEBUG [PrincipalThreadLocal:30] getName null
14:42:52,825 DEBUG [PrincipalThreadLocal:30] getName null
14:42:52,849 DEBUG [PrincipalThreadLocal:30] getName null
14:42:52,866 DEBUG [PrincipalThreadLocal:30] getName null
14:42:58,025 DEBUG [PrincipalThreadLocal:30] getName null
14:42:58,081 DEBUG [PrincipalThreadLocal:30] getName null
14:42:58,113 DEBUG [PrincipalThreadLocal:30] getName null
14:42:58,136 DEBUG [PrincipalThreadLocal:30] getName null
14:42:58,148 DEBUG [PrincipalThreadLocal:30] getName null
14:42:58,349 DEBUG [PrincipalThreadLocal:42] setName 10134
14:42:58,352 DEBUG [PrincipalThreadLocal:42] setName 10134
14:42:58,357 DEBUG [PrincipalThreadLocal:42] setName 10134
14:42:58,359 DEBUG [PrincipalThreadLocal:42] setName 10134
14:42:58,376 DEBUG [PrincipalThreadLocal:42] setName 10134
14:42:58,387 DEBUG [PrincipalThreadLocal:42] setName 10134
in the db of liferay under table User_ the usedId 10134 is the guest
user
> >
https://halfback.cnaf.infn.it/casshib/shib/liferay/Shibboleth.sso/SAM...
> > but The page requested is not on this server.
> > It seems a comunication problem from Idp to Sp, but we are not able to
> > find the error.
>
> > Here the idp.log
> > 14:48:07.829 - DEBUG
> > [org.opensaml.ws.message.encoder.BaseMessageEncoder:54] - Successfully
> > encoded message.
> > 14:48:07.829 - INFO [Shibboleth-Audit:950] - 20110504T124807Z|
> > urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect|
> > _ce2ab81e4edb99e8983eefa9bcd3de39|
https://halfback.cnaf.infn.it/c/
> > portal/login/|urn:mace:shibboleth:2.0:profiles:saml2:sso|https://
> >
gridlab01.cnaf.infn.it/idp/shibboleth|urn:oasis:names:tc:SAML:
> > 2.0:bindings:HTTP-POST|_f5dfcbadf3b18d6e03177e9730660b25|dmichelotto|
> > urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport||
> > _8efeb66f2d0dc187dd5510efe1398c2b||
>
> > and here the catalina.out of casshib
> > 2011-05-04 14:48:31,667 WARN
> > [org.springframework.web.servlet.PageNotFound] - <No mapping found for
> > HTTP request with URI [/casshib/shib/liferay/Shibboleth.sso/SAML2/
> > POST] in DispatcherServlet with name 'cas'>
>
> Something is incorrect in the URL mapping as it says. What does your
> Apache configuration look like in front of your Tomcat instance? If
> the mapping was correct you should see the metadata for the SP at the
> following URL:
>
>
https://halfback.cnaf.infn.it/casshib/shib/liferay/Shibboleth.sso/Met...
> ...
>
> leggi tutto