Register / Login
Win a copy of
Think Java: How to Think Like a Computer Scientist
this week in the
Java in General
Other JSE/JEE APIs
How to get all the groups assigned to a user from AD
posted 2 years ago
I am trying to get list of groups assigned to the user from AD. I have tested a query in AD tool and it seems to be working but not when triggered via the code.
LDAP query worked from AD tool:
searchFilter = "(&(objectClass=group)(member=CN=test,OU=People,DC=corp,DC=XXX,DC=org))"
String searchBase = "DC=XXX,DC=org";
searchCtls = new
NamingEnumeration answer = context.search(searchBase, searchFilter, searchCtls);
Its not returning any result and is getting timed out.
Also , we dont have memberOf attribute in the user attributes.
Tomcat Realm JNDI problem
LDAP Syntax - Don't Understand
AD LDAP Authentication & Data Fetch Error.
JNDI : Binding to an Active Directory Global Catalog with auser froma trusted Domain