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

Reply via email to