Are you allowing attributes for release? Is your client talking to 
/p3/serviceValidate?



From: Gianluca Diodato [mailto:[email protected]]
Sent: Friday, May 15, 2015 1:41 AM
To: [email protected]
Subject: Re:[cas-user] Empty Attribute Map



Same problem with Java Cas Client but no answers yet from community..

I'm almost depressed.



Gianluca

Il giorno giovedì 14 maggio 2015 12:33:26 UTC+2, Luís Lobo ha scritto:

Hi!



I am using CAS Server version 4.0.1 and I am having trouble with the 
attributes. The problem is that in the client side (phpCAS) the attribute 
map is empty.



The relevant parts in my deployerConfigContext.xml are:

<bean id="authenticationManager" 
class="org.jasig.cas.authentication.PolicyBasedAuthenticationManager">
    <constructor-arg>
        <map>
            <entry key-ref="userAuthHandler" value-ref="principalResolver" 
/>
        </map>
    </constructor-arg>

    <property name="authenticationPolicy">
        <bean class="org.jasig.cas.authentication.AnyAuthenticationPolicy" 
/>
    </property>
</bean>



The principal resolver is declared as:

<bean id="personAttributeDao"
      
class="org.jasig.services.persondir.support.jdbc.SingleRowJdbcPersonAttributeDao">
    <constructor-arg index="0" ref="dataSource" />
    <constructor-arg index="1" value="${auth.resolverSql}" />
    <property name="queryAttributeMapping">
        <map>
            <entry key="username" value="username" />
        </map>
    </property>
    <property name="resultAttributeMapping">
        <map>
            <entry key="login" value="login" />
            <entry key="client_id" value="client_id" />
        </map>
    </property>
</bean>

<bean id="principalResolver"
      
class="org.jasig.cas.authentication.principal.PersonDirectoryPrincipalResolver"
      p:principalAttributeName="username"
      p:attributeRepository-ref="personAttributeDao"
      p:returnNullIfNoAttributes="true" />


The relevant log line in the console is:

2015-05-14 11:33:41,370 INFO 
[org.jasig.cas.authentication.PolicyBasedAuthenticationManager] - 
<Authenticated [email protected] <mailto:[email protected]>  with credentials 
[<username>+password].>
2015-05-14 11:33:41,370 DEBUG 
[org.jasig.cas.authentication.PolicyBasedAuthenticationManager] - <Attribute 
map for [email protected] <mailto:[email protected]> : {login=<username>, 
client_id=123}>

(<username> is the user's login)

Am I missing something?



Regards,

LL


-- 
You are currently subscribed to [email protected] 
<mailto:[email protected]>  as: [email protected] 
<mailto:[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