Hi all,

We are running CAS 3.5.2 and it is successfully pointing to Active 
Directory to authenticate users and to map certain attributes. We need 
to take an attribute that is returned from AD and convert it to 
uppercase before we release it.  The CAS name for the attribute is 
UDC_IDENTIFIER and it maps the AD sAMAccountName value to it, here is 
the <bean> entry and it is the line in bold that does the mapping.

<bean id="attributeRepository" 
class="org.jasig.services.persondir.support.ldap.LdapPersonAttributeDao">
   <property name="contextSource" ref="contextSource" />
   <property name="baseDN" value="ou=<our container>,dc=<our 
container>,dc=edu" />
   <property name="requireAllQueryAttributes" value="true" />

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

   <property name="resultAttributeMapping">
     <map>
       <!-- Mapping beetween LDAP entry attributes (key) and Principal's 
(value) -->
       <entry value="Name" key="cn" />
       <entry value="Email" key="mail" />
       <entry value="DisplayName" key="displayName" />
*<entry value="UDC_IDENTIFIER" key="sAMAccountName" />*
     </map>
   </property>
</bean>

Anyone know how to set the value returned as the UDC_IDENTITIFIER to be 
uppercase? Would it be done in the above section or would it be done in 
the service entry we have for the specific web application which is here


<bean class="org.jasig.cas.services.RegexRegisteredService">
         <property name="id" value="1" />
         <property name="name" value="Banner SSO manager CAS client" />
         <property name="description" value="Banner SSO manager CAS 
client" />
         <property name="serviceId" 
value="http://webldevl1\.wheatonma\.edu\:7004/ssomanager/.*"; />
         <property name="evaluationOrder" value="0" />
         <property name="allowedAttributes">
             <list>
                         <value>Name</value>
                         <value>Email</value>
                         <value>DisplayName</value>
*<value>UDC_IDENTIFIER</value>*
             </list>
          </property>
</bean>

Thanks for any help you can offer :-)

-- 

++++++++++++++++++++++++++++
Brian Gibson
Systems Administrator
Wheaton College

Are you a musician? If so visit my Arbans Online music site at
http://arbansonline.com and listen & contribute


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