GeeCON Prague 2014*
The moose likes Security and the fly likes How to get list of user groups of active directory? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Security
Bookmark "How to get list of user groups of active directory?" Watch "How to get list of user groups of active directory?" New topic
Author

How to get list of user groups of active directory?

Yaron Rel
Greenhorn

Joined: Aug 04, 2009
Posts: 20
Hi,
1. I haven't find yet simple way to get all user groups.
2. is there any way for fetching their unique identifiers in case their name will be changed?

Here is the code sample I use:
Yaron Rel
Greenhorn

Joined: Aug 04, 2009
Posts: 20
I found some solution:
BTW,
in order to avoid "PartialResultException" its recommended to use:
1. searchResults.hasMoreElements() instead of searchResults.hasMore()
2. env.put(Context.REFERRAL, "follow");

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to get list of user groups of active directory?