Hi there!

I'm running CAS v.3.4.12 with MySQL. The authentication part works 
perfectly, but with the default attributes. So now I'm trying to 
configure some personalized attributes, I've added some new doing the 
following:

1) casServiceValidationSuccess.jsp (after the <cas:user>...</cas:user> 
block, as the UM says):

   <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>

2) deployerConfigContext.xml:

                                 <bean 
class="org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPrincipalResolver">
                                                 <property 
name="attributeRepository">
                                                      <ref 
bean="attributeRepository" />
                                                 </property>
                                 </bean>

      And also:

    <bean id="attributeRepository" 
class="org.jasig.services.persondir.support.jdbc.SingleRowJdbcPersonAttributeDao">
      <constructor-arg index="0" ref="dataSource"/>
      <constructor-arg index="1" value="select * from users where {0}" />
      <property name="queryAttributeMapping">
        <map>
           <entry key="login" value="username" />
        </map>
      </property>

      <property name="resultAttributeMapping">
        <map>
          <entry key="nombre" value="nombre"/>
          <entry key="email" value="email"/>
        </map>
     </property>

In the service panel I can see the new attributes and select & save 
them, but at the client side (I'm using phpCAS to test it) the 
getAttributes() function returns an empty array. I don't know whether 
I'm missing some additional configuration, or whether I have to do 
something additional to SAML, but curiously when building the WAR 
project I see this:

Downloading: 
http://oss.sonatype.org/content/repositories/releases//org/opensaml/opensaml/1.1b/opensaml-1.1b.pom
[INFO] Unable to find resource 'org.opensaml:opensaml:pom:1.1b' in 
repository ja-sig (http://oss.sonatype.org/content/repositories/releases/)
Downloading: 
http://developer.ja-sig.org/maven2/org/opensaml/opensaml/1.1b/opensaml-1.1b.pom
[INFO] Unable to find resource 'org.opensaml:opensaml:pom:1.1b' in 
repository jasig-repository (http://developer.ja-sig.org/maven2)
Downloading: 
http://repository.jboss.org/nexus/content/groups/public-jboss//org/opensaml/opensaml/1.1b/opensaml-1.1b.pom
[INFO] Unable to find resource 'org.opensaml:opensaml:pom:1.1b' in 
repository jboss 
(http://repository.jboss.org/nexus/content/groups/public-jboss/)
Downloading: 
http://repo1.maven.org/maven2/org/opensaml/opensaml/1.1b/opensaml-1.1b.pom
[INFO] Unable to find resource 'org.opensaml:opensaml:pom:1.1b' in 
repository central (http://repo1.maven.org/maven2)

Do you guys have any idea of why it isn't working? Any help will be 
appreciated!

Regards,

Nicolás

-- 
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