To try to resolve the principle using the referenced documentation,
I tried setting the property like so (last property in the bean) :

<bean id="attributeRepository1"
                
class="org.jasig.services.persondir.support.jdbc.SingleRowJdbcPersonAttributeDao">
    <constructor-arg index="0" ref="dataSource1" />
    <constructor-arg index="1" value="SELECT 
netid,lfname,alias,banid,email,locaff,active,getscirc,getsill,getsproxy FROM 
patrons WHERE {0}" />
    <property name="queryAttributeMapping">
        <map>
            <entry key="username" value="banid" />
        </map>
    </property>
    <property name="resultAttributeMapping">
        <map>
            <entry key="netid" value="netid" />
            <entry key="lfname" value="lfname" />
            <entry key="alias" value="alias" />
            <entry key="banid" value="banid" />
            <entry key="email" value="email" />
            <entry key="locaff" value="locaff" />
            <entry key="active" value="active" />
            <entry key="getscirc" value="getscirc" />
            <entry key="getsill" value="getsill" />
            <entry key="getsproxy" value="getsproxy" />
        </map>
    </property>

   <property name="userNameAttribute" value="alias" />
</bean>

in my deployerConfigContext.xml, and received this error:

...much deleted for clarity....
...Error setting property values; nested exception is 
org.springframework.beans.NotWritablePropertyException: Invalid property 
'userNameAttribute' of bean class 
[org.jasig.services.persondir.support.jdbc.SingleRowJdbcPersonAttributeDao]: 
Bean property 'userNameAttribute' is not writable or has an invalid setter 
method. Does the parameter type of the setter match the return type of the 
getter?.......

any ideas?

Thanks so much,
Guss
________________________________________
From: Marvin Addison [[email protected]]
Sent: Tuesday, August 09, 2011 2:20 PM
To: [email protected]
Subject: Re: [cas-user] Using jdbc instead of ldap to resolve a principle

> I've searched for documentation on how to configure a principle resolver
> that will bounce off my jdbc data source, to no avail. The jasig docs
> indicate that it CAN be done.

It can be done but we haven't documented it well in our manual since
the Person Directory docs do a better job,
https://wiki.jasig.org/display/PDM15/JDBC+Attribute+Source.  Probably
should cite that page somewhere in our docs to help others.  I'll do
that if you find it sufficient.

M

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