I did not touch the section about credentialsToPrincipalResolvers so I still have the following. How can I inject my attributeRepository?

 <property name="credentialsToPrincipalResolvers">
            <list>                        
                <bean
class = "org .jasig .cas .authentication .principal.UsernamePasswordCredentialsToPrincipalResolver" />
                <bean
class = "org .jasig .cas .authentication .principal.HttpBasedServiceCredentialsToPrincipalResolver" />
            </list>
        </property>

Cheers

Jean-Noël


On 22 Jun 2009, at 16:23, Scott Battaglia wrote:

Did you configure something, such as the UsernamePasswordCredentialsToPrincipalResolver to actually use the attributeRepository you defined? I believe you need to inject it into the resolver.

Cheers,
Scott


On Mon, Jun 22, 2009 at 10:20 AM, Jean-Noel Colin <[email protected]> wrote:
Hi

I need to pull attributes from my user db (Oracle) so I have configured a custom attributeRepository (see below); however, resolution never happens, without any error message (see logs below). I know that resolution does not happen because the actual db server is down :-)

Did I miss something in the configuration of my attributeRepository? Do I need to select a specific CredentialsToPrincipalResolver?

Cheers

Jean-Noel


 <bean id="attributeRepository"
class = "org .jasig .services.persondir.support.jdbc.SingleRowJdbcPersonAttributeDao">

    <constructor-arg index="0" ref="userDataSource"/>
    <constructor-arg index="1">
        <list>
            <value>logonname</value>
        </list>
    </constructor-arg>

<constructor-arg index="2" value="SELECT * FROM users WHERE {0}" />

    <property name="columnsToAttributes">
        <map>
            <entry key="logonname" value="username" />
            <entry key="authenticid" value="authenticid" />
            <entry key="blocked" value="blocked" />
        </map>
    </property>
</bean>

2009-06-22 14:06:00,157 INFO [org.jasig.cas.authentication.AuthenticationManagerImpl] - <AuthenticationHandler: org .eun.authentication.cas.etwinning.ETwinningCASAuthenticationHandler successfully authenticated the user which provided the following credentials: [username: jnc]> 2009-06-22 14:06:00,157 DEBUG [org .jasig .cas .authentication .principal.UsernamePasswordCredentialsToPrincipalResolver] - <Attempting to resolve a principal...> 2009-06-22 14:06:00,157 DEBUG [org .jasig .cas .authentication .principal.UsernamePasswordCredentialsToPrincipalResolver] - <Creating SimplePrincipal for [jnc]> 2009-06-22 14:06:00,160 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - <Added ticket [TGT-1-2Srbg7MprkeDfTSPFqA43N7tX2bqM45xKf0TwYiWgbVd95cIgn- narya.infonet.fundp.ac.be] to registry.>

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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to