If you enable debugging for PersonDirectory, do you see any information
about the attributes being successfully retrieved?

Cheers,
Scott


On Wed, Sep 7, 2011 at 5:38 AM, Francisco González-Blanch 
<[email protected]>wrote:

> Yes I can see the attributes in the service management tool, I select them
> and then I save the changes. However, I don't receive the information in the
> client.
>
> Do you think that may be it's because I'm using the
> "InMemoryServiceRegistryDaoImpl" instead of the persistent service registry
> with the database connection?
>
>
> 2011/9/7 Scott Battaglia <[email protected]>
>
>> Have you released the attributes to your application via the Services
>> Management Tool?
>>
>>
>> On Tue, Sep 6, 2011 at 1:08 PM, Francisco González-Blanch <[email protected]
>> > wrote:
>>
>>> Hi,
>>>
>>> I'm trying to set up a custom jdbc authentication cas server. The
>>> authentication part it's working Ok but I'm having some problems when trying
>>> to send additional attributes to the client (apart from the user id).
>>> I'm using the "Saml11TicketValidationFilter Example" in order to recover the
>>> attributes in the client and  to send the attributes from the server i have
>>> the following config in the deployerConfigContext.xml:
>>>
>>>  <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
>>>         <property name="driverClassName">
>>>             <value>oracle.jdbc.driver.OracleDriver</value>
>>>         </property>
>>>         <property name="url">
>>>             <value>jdbc:oracle:thin:@myServerIP:1521:DB</value>
>>>         </property>
>>>         <property name="username">
>>>             <value>userDB</value>
>>>         </property>
>>>         <property name="password">
>>>             <value>passDB</value>
>>>         </property>
>>>     </bean>
>>>
>>>
>>>     <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="username" value="userName" />
>>>             </map>
>>>         </property>
>>>         <property name="resultAttributeMapping">
>>>             <map>
>>>                 <entry key="id" value="userID" />
>>>                 <entry key="name" value="name" />
>>>                 <entry key="lastname" value="lastname" />
>>>                 <entry key="city" value="city" />
>>>             </map>
>>>         </property>
>>>     </bean>
>>>
>>>
>>> I have the feeling that I'm missing some part in between but reading the
>>> documentation I'm not able to guess what. ( The only documented example is
>>> for ldap attribute recovering and i haven't found any examples for JDBC)
>>>
>>>
>>> Any ideas or help? Thanks. Best,
>>>
>>> Francisco
>>>
>>> --
>>> 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-dev
>>>
>>>
>>  --
>> 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-dev
>>
>>
>
>
> --
> Francisco González-Blanch Rodríguez
> Grupo Madiva
> Tlf.:   +34 913 00 10 44
> [email protected]
> www.madiva.com
>
> Perfil en  [image: LinkedIn] <http://es.linkedin.com/in/fgblanch/>
>
>  --
> 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-dev
>
>

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

Reply via email to