I think you have two options here:

 

-          Look into the person directory API and the way it supports
attribute aggregation. CascadingPersonAttributeDao is possibly what you're
looking for. 
https://wiki.jasig.org/display/PDM15/Attribute+Aggregation

 

-          Extend the current Ldap Dao class of the person directory and
override the appropriate methods with the 2nd query config. 

 

-Misagh



 

From: Myn Harry [mailto:[email protected]] 
Sent: Friday, May 18, 2012 2:53 PM
To: [email protected]
Subject: [cas-user] Dependent LDAP Attribute Query for CAS 3.4.11

 

I am experimenting in CAS 3.4.11 to retrieve account attributes from LDAP
- so far so good (configuration listed below).

I next need to use one of the returned attribute values to look up another
LDAP object - can anyone let me know if this is possible?

In the example below,  after CAS authentication is successful, the
'loginKey' belonging to the account holder, is successfully returned;
using the 'loginKey', the next step for me is to retrieve the student
number- to do this, I need to run a second LDAP query using the returned
'loginKey' value.  Is this possible to configure in CAS? Any tips will be
greatly appreciated.

Thanks.


    <property name="queryAttributeMapping">
        <map>
            <entry key="username" value="loginName" />
        </map>
    </property>
 
    <property name="resultAttributeMapping">
        <map>
            <entry value="loginKey" key="loginKey" />
        </property>
    </bean>

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