Suresh Kumaravel
2010-06-24 10:20:41 UTC
Hi,
I am suresh working as a .net developer. I need to integrate google app
services to shibboleth to one of my client .I don't know about shibboleth
.Client was set up everything in the shibboleth server and gave the following
information.
--- Apache ---
- proxy_ajp.conf : Apache configured to pass requests for the IdP into Tomcat
by adding the following line to:
ProxyPass /idp/ ajp://localhost:8009/idp/
- /etc/apache2/sites-enabled/default-ssl : Same directive as above, one of
them can be turned off
<IfModule mod_proxy_ajp.c>
ProxyRequests Off
<Proxy ajp://localhost:8009>
Allow from all
</Proxy>
ProxyPass /idp ajp://localhost:8009/idp retry=5
</IfModule>
SSLCertificateFile /etc/ssl/certs/server.crt
SSLCertificateKeyFile /etc/ssl/private/server.key ; self-signed
certificates, server requires passphrase (Pa33w0rd) at each restart
- /etc/apache2/httpd.conf - front-end IdP with basic authentication (user:
test, password: test), this can go to the default-ssl file probably :
<Location /idp/Authn/RemoteUser>
AuthType Basic
AuthName "My Identity Provider"
AuthUserFile /usr/local/idp/credentials/user.db
require valid-user
</Location> ;
--- Tomcat ---
- /etc/tomcat/server.xml, added :
request.tomcatAuthentication="false" and address="127.0.0.1" to
Tomcat's /etc/tomcat/conf/server.xml port 8009 AJP13 connector so Apache can
relay usernames to the IdP.
- /etc/default/tomcat6 :
JAVA_HOME=/usr/lib/jvm/java-6-openjdk ; path to Java modified,
JAVA_OPTS="-Djava.awt.headless=true -Xmx1024M -XX:MaxPermSize=512M" ;
memory settings,
TOMCAT6_SECURITY=no ; Tomcat could not to start with it turned on
--- IdP ---
Added Google Metadata into /usr/local/idp/metadata/google-metdata.xml :
<EntityDescriptor entityID="google.com"
xmlns="urn:oasis:names:tc:SAML:2.0:metadata">
<SPSSODescriptor
protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
<NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified</NameIDFor
mat>
<AssertionConsumerService index="1"
Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
Location="https://www.google.com/a/edukirklees.net/acs" />
</SPSSODescriptor>
</EntityDescriptor>
Added MetaDataProvider into /usr/local/idp/conf/relaying-party.xml :
<RelyingPartyhttp://google.com/">google.com"
provider="YOUR-ENTITY-ID"
defaultSigningCredentialRef="IdPCredential">
<ProfileConfiguration xsi:type="saml:SAML2SSOProfile"
encryptAssertions="never" encryptNameIds="never" />
</RelyingParty>
<!-- Google Metadata -->
<MetadataProvider xsi:type="FilesystemMetadataProvider"
xmlns="urn:mace:shibboleth:2.0:metadata"
metadataFile="IDP_HOME/metadata/google-metadata.xml"
maintainExpiredMetadata="true" />
Attribute Resolver configured in /usr/local/idp/conf/attribute-resolver.xml :
<resolver:AttributeDefinition xsi:type="PrincipalName"
xmlns="urn:mace:shibboleth:2.0:resolver:ad">
<resolver:AttributeEncoder xsi:type="SAML2StringNameID"
xmlns="urn:mace:shibboleth:2.0:attribute:encoder"
nameFormat="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified" />
</resolver:AttributeDefinition>
Attribute Filter configured in /usr/local/idp/conf/attribute-resolver.xml :
<AttributeFilterPolicy>
<PolicyRequirementRule xsi:type="basic:AttributeRequesterString"
value="google.com" />
<AttributeRule attributeID="principal">
<PermitValueRule xsi:type="basic:ANY" />
</AttributeRule>
</AttributeFilterPolicy>
So I was set up everything in the google domain as per the instruction in your
article and configured some xml files in the shibboleth server. My domain is
"learnderby.com" . When I go to the mail apps ie
http://mail.google.com/a/learnderby.com then it will open one popup and ask me
to enter username and password, But I dont know what should enter on these
fields. How the shibboleth server know about my username and password ? Are
shibboleth server already have my username and password ? Can you please help
me on how to proceed on this ?
Looking forward your response about this exciting one.
Thanks,
Suresh.
I am suresh working as a .net developer. I need to integrate google app
services to shibboleth to one of my client .I don't know about shibboleth
.Client was set up everything in the shibboleth server and gave the following
information.
--- Apache ---
- proxy_ajp.conf : Apache configured to pass requests for the IdP into Tomcat
by adding the following line to:
ProxyPass /idp/ ajp://localhost:8009/idp/
- /etc/apache2/sites-enabled/default-ssl : Same directive as above, one of
them can be turned off
<IfModule mod_proxy_ajp.c>
ProxyRequests Off
<Proxy ajp://localhost:8009>
Allow from all
</Proxy>
ProxyPass /idp ajp://localhost:8009/idp retry=5
</IfModule>
SSLCertificateFile /etc/ssl/certs/server.crt
SSLCertificateKeyFile /etc/ssl/private/server.key ; self-signed
certificates, server requires passphrase (Pa33w0rd) at each restart
- /etc/apache2/httpd.conf - front-end IdP with basic authentication (user:
test, password: test), this can go to the default-ssl file probably :
<Location /idp/Authn/RemoteUser>
AuthType Basic
AuthName "My Identity Provider"
AuthUserFile /usr/local/idp/credentials/user.db
require valid-user
</Location> ;
--- Tomcat ---
- /etc/tomcat/server.xml, added :
request.tomcatAuthentication="false" and address="127.0.0.1" to
Tomcat's /etc/tomcat/conf/server.xml port 8009 AJP13 connector so Apache can
relay usernames to the IdP.
- /etc/default/tomcat6 :
JAVA_HOME=/usr/lib/jvm/java-6-openjdk ; path to Java modified,
JAVA_OPTS="-Djava.awt.headless=true -Xmx1024M -XX:MaxPermSize=512M" ;
memory settings,
TOMCAT6_SECURITY=no ; Tomcat could not to start with it turned on
--- IdP ---
Added Google Metadata into /usr/local/idp/metadata/google-metdata.xml :
<EntityDescriptor entityID="google.com"
xmlns="urn:oasis:names:tc:SAML:2.0:metadata">
<SPSSODescriptor
protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
<NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified</NameIDFor
mat>
<AssertionConsumerService index="1"
Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
Location="https://www.google.com/a/edukirklees.net/acs" />
</SPSSODescriptor>
</EntityDescriptor>
Added MetaDataProvider into /usr/local/idp/conf/relaying-party.xml :
<RelyingPartyhttp://google.com/">google.com"
provider="YOUR-ENTITY-ID"
defaultSigningCredentialRef="IdPCredential">
<ProfileConfiguration xsi:type="saml:SAML2SSOProfile"
encryptAssertions="never" encryptNameIds="never" />
</RelyingParty>
<!-- Google Metadata -->
<MetadataProvider xsi:type="FilesystemMetadataProvider"
xmlns="urn:mace:shibboleth:2.0:metadata"
metadataFile="IDP_HOME/metadata/google-metadata.xml"
maintainExpiredMetadata="true" />
Attribute Resolver configured in /usr/local/idp/conf/attribute-resolver.xml :
<resolver:AttributeDefinition xsi:type="PrincipalName"
xmlns="urn:mace:shibboleth:2.0:resolver:ad">
<resolver:AttributeEncoder xsi:type="SAML2StringNameID"
xmlns="urn:mace:shibboleth:2.0:attribute:encoder"
nameFormat="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified" />
</resolver:AttributeDefinition>
Attribute Filter configured in /usr/local/idp/conf/attribute-resolver.xml :
<AttributeFilterPolicy>
<PolicyRequirementRule xsi:type="basic:AttributeRequesterString"
value="google.com" />
<AttributeRule attributeID="principal">
<PermitValueRule xsi:type="basic:ANY" />
</AttributeRule>
</AttributeFilterPolicy>
So I was set up everything in the google domain as per the instruction in your
article and configured some xml files in the shibboleth server. My domain is
"learnderby.com" . When I go to the mail apps ie
http://mail.google.com/a/learnderby.com then it will open one popup and ask me
to enter username and password, But I dont know what should enter on these
fields. How the shibboleth server know about my username and password ? Are
shibboleth server already have my username and password ? Can you please help
me on how to proceed on this ?
Looking forward your response about this exciting one.
Thanks,
Suresh.