A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Other JSE/JEE APIs
How to get all the groups assigned to a user from AD
Joined: Apr 22, 2014
Apr 22, 2014 18:52:15
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.
I agree. Here's the link:
subject: How to get all the groups assigned to a user from AD
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
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015