Hi Marvin,

after a lot of trial-and-error attempts, here is what I figured out about the new config options.
I am not sure if it is the "right" configuration, but it seems to work...

<bean id="attributeRepository"
class="org.jasig.services.persondir.support.ldap.LdapPersonAttributeDao">
               <property name="baseDN" value="ou=people,dc=X,dc=Y" />
               <property name="contextSource" ref="contextSource"/>
               <property name="queryTemplate" value="{0}"/>

               <property name="queryAttributeMapping">
                       <map>
                               <entry key="username" value="uid"/>
                       </map>
               </property>

               <property name="resultAttributeMapping">
                       <map>
<entry key="ldapAttribute" value="applicationAttribute"/>
                       </map>
               </property>
       </bean>

Hope it helps,
Pavlos

Marvin Addison wrote:
This JavaDoc should help:
http://developer.jasig.org/projects/person-directory/1.5.0-RC6/apidocs/org/jasig/services/persondir/support/ldap/LdapPersonAttributeDao.html

Actually, the API docs are no help at all.  I've studied the javadocs
carefully, and I've been poring over the person directory _source_ in
a trial-and-error attempt to port our LdapPersonAttributeDao
configuration to from 3.3.3 to 3.3.4.  I'm getting pretty frustrated
as the interface has changed substantially and the documentation is
poor at best.  Clearly we need to provide some example configurations
for 1.5.0.  I'll add a 1.5.0 LDAP example to
http://www.ja-sig.org/wiki/display/CASUM/Attributes once I figure it
out.  IF I figure it out.  *grumble*

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

Reply via email to