Hello, Is it possible to limit the responses a mapped result returns?
To clarify my intention.... I have setup deployerConfigContext.xml with the following mappings.. <bean id="attributeRepository" class="org.jasig.services.persondir.support.ldap.LdapPersonAttributeDao"> ==Truncated== <property name="resultAttributeMapping"> <map> <!-- Mapping between LDAP entry attributes (key) and Principal's (value) --> <entry key="uid" value="netid"/> <entry key="userPIDM" value="UDC_IDENTIFIER"/> <entry key="cn" value="commonName"/> <entry key="mail" value="mail"/> <entry key="mailHost" value="mailHost"/> <entry key="uid" value="nameidentifier"/> <entry key="givenName" value="givenname"/> <entry key="sn" value="surname"/> <entry key="userPIDM" value="studentid"/> </map> </property> I have also setup "WEB-INF/view/jsp/protocol/2.0/casServiceValidationSuccess.jsp" with the following <cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'> <cas:authenticationSuccess> <cas:user>${fn:escapeXml(assertion.chainedAuthentications[fn:length(assertion.chainedAuthentications)-1].principal.id)}</cas:user> <cas:attributes> <c:forEach var="auth" items="${assertion.chainedAuthentications}"> <c:forEach var="attr" items="${auth.principal.attributes}" > <cas:${fn:escapeXml(attr.key)}>${fn:escapeXml(attr.value)}</cas:${fn:escapeXml(attr.key)}> </c:forEach> </c:forEach> </cas:attributes> This returns as expected for all mappings except for <entry key="uid" value="nameidentifier"/> which returns an array of values <cas:nameidentifier>[dsallis, dsallis_student, dsallis_admin]</cas:nameidentifier> Returning to my question, Can this return be limited to just the first result "dsallis"? Thank you, D.Sallis -- 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 cas-user+unsubscr...@apereo.org. Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/be818a1b-1848-4105-9801-48d2132d9074%40apereo.org. For more options, visit https://groups.google.com/a/apereo.org/d/optout.