Delete all files at /etc/cas/saml then, start it again. It will generate new 
idp-metadata.xml.

Once it is generated, you have to manually modify it.

From: [email protected] [mailto:[email protected]] On Behalf Of Ng Sek Long
Sent: Wednesday, July 12, 2017 10:49 PM
To: CAS Community
Subject: [cas-user] SAML 2 unable to change idpEndPoint

Hi all, first time posting, hopefully I am not asking a stupid question.

Scope:
I am using CAS 5.1.1 with SAML 2 protocol, my server act as an idp.

Problem:
When I tried to generate an idp-metadata.xml by modifying some CAS properties, 
no matter how I change it I can't modified out the cas.example.org

I found my research that cas.example.org links to an variable called 
${idpEndPoint}, and it seems to link to cas.host.name, but changing 
cas.host.name and other host info doesn't seems to modified  ${idpEndPoint}, am 
I doing something wrong?

I also tried removing idp-metadata.xml completely and try generate a new one, 
didn't works too.

Any helps would be appreciated :D

Code:
idp-metadata.xml
<EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" 
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"; 
xmlns:shibmd="urn:mace:shibboleth:metadata:1.0" 
xmlns:mdui="urn:oasis:names:tc:SAML:metadata:ui" 
entityID="https://my.network.com/idp";>
<IDPSSODescriptor 
protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol 
urn:oasis:names:tc:SAML:1.1:protocol urn:mace:shibboleth:1.0">
<Extensions>
<shibmd:Scope regexp="false">my.network.com</shibmd:Scope>
</Extensions>
<KeyDescriptor use="signing">
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>
ABCDE.....
</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</KeyDescriptor>
<KeyDescriptor use="encryption">
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>
ABCDE.....
</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</KeyDescriptor>
<NameIDFormat>urn:mace:shibboleth:1.0:nameIdentifier</NameIDFormat>
<NameIDFormat>
urn:oasis:names:tc:SAML:2.0:nameid-format:transient
</NameIDFormat>
<SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" 
Location="https://cas.example.org:8443/cas/idp/profile/SAML2/POST/SLO"/>
<SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" 
Location="https://cas.example.org:8443/cas/idp/profile/SAML2/POST/SSO"/>
<SingleSignOnService 
Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" 
Location="https://cas.example.org:8443/cas/idp/profile/SAML2/Redirect/SSO"/>
<SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP" 
Location="https://cas.example.org:8443/cas/idp/profile/SAML2/SOAP/ECP"/>
</IDPSSODescriptor>
</EntityDescriptor>





Relavent part in application.properties:
##
# CAS Server Context Configuration
#
server.context-path=/
server.port=8443

cas.host.name=my.network.com
cas.server.name=https://my.network.com:8443
cas.server.prefix=https://my.network.com:8443/cas


##
# CAS SAML2.0 IDP
#
cas.authn.samlIdp.entityId=https://my.network.com/idp
cas.authn.samlIdp.scope=my.network.com

 cas.authn.samlIdp.metadata.cacheExpirationMinutes=30
 cas.authn.samlIdp.metadata.failFast=false
cas.authn.samlIdp.metadata.location=file:/etc/cas/saml/id

 cas.authn.samlIdp.metadata.privateKeyAlgName=RSA
cas.authn.samlIdp.metadata.requireValidMetadata=true

 cas.authn.samlIdp.logout.forceSignedLogoutRequests=true
 cas.authn.samlIdp.logout.singleLogoutCallbacksDisabled=false

 cas.authn.samlIdp.response.skewAllowance=0
 cas.authn.samlIdp.response.signError=false
 cas.authn.samlIdp.response.useAttributeFriendlyName=true
--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/fb196595-aaae-437a-bbef-b84c619f1791%40apereo.org<https://groups.google.com/a/apereo.org/d/msgid/cas-user/fb196595-aaae-437a-bbef-b84c619f1791%40apereo.org?utm_medium=email&utm_source=footer>.



The information contained in this e-mail and any attachments is confidential and
intended only for the recipient. If you are not the intended recipient, the
information contained in this message may not be used, copied, or forwarded to
third parties or otherwise distributed for any other purpose. Please notify the
sender if you received this e-mail in error and delete the e-mail and its
attachments promptly.  Nothing in this e-mail may be used or deemed to form the
basis of a contractual or any other legally binding obligation unless separately
confirmed in writing by an authorized representative of ARMADA.

-- 
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/7C27C94EB0F1AD41BB2FA62533E661E201DA80F218%40MailS01P.hub1.com.

Reply via email to