Posting to an old thread, but I too struggled to get attributes visible in php
After making the following changes mine came through If you have specified the CAS version in /etc/httpd/conf.d/cas.conf, comment it out. # CASVersion 2 CASValidateUrl https://<farm-name>/cas/samlValidate CASValidateSAML On In CAS itself ensure that the following are also present for each LDAP config, in etc/cas/config/cas.properties cas.authn.attributeRepository.merger: ADD cas.authn.ldap[0].principalAttributeList=cn,sn,mail For me the attributeRepository.ldap attributes did not display on the client side. e.g cas.authn.attributeRepository.ldap[0].attributes. On Friday, 16 February 2018 02:13:37 UTC+2, dhawes wrote: > > On Thu, Feb 15, 2018 at 2:51 PM, Mukunthini Jeyakumar > <[email protected] <javascript:>> wrote: > > Thanks dhawes. > > > > I'm using the php code to print the values retuned in the header > > <?php > > foreach (getallheaders() as $name => $value) { > > echo "$name: $value\n"; > > } > > ?> > > > > I've no issues if I use serviceValidate, but I'm only getting the > username, > > I do not see the rest of the attributes released > > > > CASValidateURL https://<farm-name>:8443/cas/serviceValidate > > CASValidateSAML Off > > Do you see the attributes in the validation response? You can see this > in the debug logs. > > Note that only the code in master supports CASv2 attributes. If you > see the attributes in the validation response, try mod_auth_cas > master. > > > if I use SAML then I get error > > > > CASValidateURL https://<farm-name>:8443/cas/samlValidate > > CASValidateSAML On > > > > > > I already built CAS with SAML 1.1 by adding cas-server-support-saml, > > This sounds like a CAS server issue. Have you verified /samlValidate > is working? What does the validation response look like? > -- See OpenCollab email disclaimer at http://www.opencollab.co.za/email-disclaimer <http://www.opencollab.co.za/email-disclaimer> -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- 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/cf0cce1c-fed1-4bb7-9e12-2ab4d67bf823%40apereo.org.
