Many thanks Jerome.  I've got that plugged in and I'm showing a bit more being 
dumped into the logs now.  I tried adding

<c:forEach var="auth" items="${assertion.chainedAuthentications}">
        <c:forEach var="attr" items="${auth.principal.attributes}" >
                <cas:attribute name="${fn:escapeXml(attr.key)}" 
value="${fn:escapeXml(attr.value)}"/>
        </c:forEach>
</c:forEach>

To the casServiceValidationSuccess.jsp, but all I'm getting are some blank 
lines in addition to the original output.  I've not had much success in being 
able to find a working customization to add the output.

Jonathan Liedy
Middleware Administrator
The Florida State University
2035 East Paul Dirac Drive
Sliger, Suite 113
Tallahassee, FL 32310
[email protected]
Voice: (850) 270-7368


-----Original Message-----
From: jleleu [mailto:[email protected]] 
Sent: Tuesday, February 28, 2012 1:19 PM
To: [email protected]
Subject: re:[cas-user] Trying to get LDAP Attributes passed into serviceValidate

Hi Jonathan,

By default, no attribute are returned by /serviceValidate, you have to 
customize the view : casServiceValidationSuccess.jsp.
To retrieve attributes from the LDAP, you use the attributeRepository bean, 
which is right. But this bean is referenced nowhere in the 
deployerConfigContext.xml file and therefore attributes retrieved from LDAP are 
never added to the principal.
It should be defined in the UsernamePasswordCredentialsToPrincipalResolver bean 
:
<bean id="authenticationManager" 
class="org.jasig.cas.authentication.AuthenticationManagerImpl">
  <property name="credentialsToPrincipalResolvers">
    <list>
      <bean 
class="org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPrincipalResolver">
        <property name="attributeRepository" ref="attributeRepository" />
      </bean>
      <bean 
class="org.jasig.cas.authentication.principal.HttpBasedServiceCredentialsToPrincipalResolver"/>
    </list>
  </property>
....

Just let me know if it works...

Best regards,
Jérôme

--
You are currently subscribed to [email protected] as: [email protected] To 
unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user


-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to