TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Himanshu Shukla
NA
19
0
Retrieve PDL Details
Oct 1 2009 6:24 AM
Hi,
I need to get the list of all the users who belong to any Distribution List (i.e. PDL).
I need to mention here that I am able to get the details of a group but not the Distribution List.
The email id of a Distribution list (eg. DLName) will be DLName.domainname.com
But the email id of a Group (eg. GROUPName) will be GROUPName.groups.domainname.com
How I retrieve details of group is:
DirectoryEntry group = new DirectoryEntry("LDAP://companyName.com/cn=GroupUSER_Name,ou=groups,o=companyName.com", null, null, AuthenticationTypes.FastBind);
foreach (object dn1 in group.Properties["member"])
{
Console.WriteLine(dn1.ToString());
}
This code gives me the detail of all the users who belong to the group called GroupUSER_Name.
What I want to get is the list of all the users who belong to a PDL (Distribution List)
I am able to check if there is any pdl which exists or not. But I am not able to get the list of all the members who belong to the particular PDL.
The LDAP path for the same is:
LDAP://companyName.com/
[email protected]
,ou=Email,ou=Services,o=companyName.com
Could you please help me how to get the details?
Reply
Answers (
0
)
LDIF scripting
Domain user how to associtae different email address to him/her