How to search users in different AD userbases?
0 posts in topic
Thread View Thread View
TOPIC ACTIONS:
 

How to search users in different AD userbases?...
ranjani
Wed Jan 01, 2014 09:40 PM

Hi all,
We are trying to search users in different userbases with their userPrincipalName.
We could search users in multiple base by using userPattern, however if we use it, we could search nly with the attributes that are in the distinguished name. We need to serach users with the attributes that are not in the distinguished name.
Heres a sample scenario:
user A is at ou=Alpha,dc=test,dc=ad,dc=com.
DN of userA is cn=Auser,ou=Alpha,dc=test,dc=ad,dc=com
userPrincipalName =
alpha@test.ad.com

user B is at ou=Beta,dc=test,dc=ad,dc=com
DN of userB is cn=Buser,ou=Beta,dc=test,dc=ad,dc=com
userPrincipalName = beta@test.ad.com

We need to search the users with their userPrincipalName.
Heres what we have done in the context.xml.
But userSubtree doesnot work.
<Realm
className="com.org.cus.sso.realm"
connectionURL="
LDAP://172.18.8.23:389 "
connectionName="admin@test.ad.com"
connectionPassword="abc123$"
userSearch="
userPrincipalName={0}@test.ad.com "
userBase="dc=test,dc=ad,dc=com"
userSubtree="true"
/>
Help needed to search users in different directories!!! userPattern is not our option. Please suggest some solutions.

Thanks,
Ranjani.A

 

About | Sitemap | Contact