Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get users info belongs to AD server group.

 
satish kinikiri
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I need to get list of users(basically list of email addresses of users) who are members of AD group
Please help with sample Java program to list all the user info below to group

My AD sever has a group with name "MyGroup" and has two members "user1" and "user2" can I able to read the email ids of the user1 and user2 by querying AD sever with group name MyGroup

Thanks in advance

Satish
 
satish kinikiri
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anybody has an idea about this.
Please help
 
Stuart A. Burkett
Ranch Hand
Posts: 679
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AD has an LDAP interface to it, so that is probably the easiest way to do it. If you haven't used LDAP through Java before, this is probably a good place to start.

The alternative is to write the code that accesses AD in C/C++ and then write a JNI wrapper around that code. This is definitely the less easy option but will give you greater flexibility when accessing AD.
 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As Stuart said, you will have to use LDAP searchfilters.

Here is a snippet that requires a previous bind to the AD server, searches and returns attributes.


WP

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic