I'm not an LDAP expert but can't that be done with an LDAP filter? We do something similar at Rutgers though we deploy Sun One.
------Original Message------ From: Ashima To: [email protected] ReplyTo: [email protected] Subject: [cas-user] How to Authenticate depending on attribute values?? Please help Sent: Mar 9, 2009 8:29 PM Hi I am using BindLdapAuthenticationHandler for authentication. I am extracting additional attributes using 'attributeRepository' as follows:- <bean id="attributeRepository" class="org.jasig.services.persondir.support.ldap.LdapPersonAttributeDao"> <property name="baseDN" value="ou=people,dc=XXXX,dc=edu" /> <property name="query" value="(tEduPersonNetID={0})" /> <property name="contextSource" ref="contextSource" /> <property name="ldapAttributesToPortalAttributes"> <map> <entry key="tEduPersonNetID" value="tEduPersonNetID" /> <entry key="tEduPersonUIN" value="tEduPersonUIN" /> <entry key="tStatus" value="tStatus" /> </map> </property> </bean> My requirement is that even if username and password combination is authenticated successfully, but if the attribute 'tStatus' has value 'false' then do not log-in the user. Please let me know if you have any directions on how to do this?? Thanks Ashima -- 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 Sent from my Verizon Wireless BlackBerry -- 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
