Solved

Reading MemberUid Attribute From AD LDAP

Posted on 2014-03-16
2
556 Views
Last Modified: 2014-04-30
Good Day

i need to read the values of the attribute MemberUID using ASP.net

Please see attached image
memberuid
0
Comment
Question by:Kamal Khaleefa
2 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 39933796
Firstly you'll need to add a reference to the System.DirectoryServices assembly to your project. Then you can use something like the following:
            DirectorySearcher search = new DirectorySearcher("(&(objectClass=group)(Name=testgroup))");
            search.PropertiesToLoad.AddRange(new string[] { "MemberUID" });

            SearchResult result = search.FindOne();
            if (result.Properties["MemberUID"].Count > 0)
            {
                string value = result.Properties["MemberUID"][0].ToString();
            }

Open in new window

You may need to play around with the query a little, depending on your setup.
0
 
LVL 16

Author Closing Comment

by:Kamal Khaleefa
ID: 40031623
you give me  a hint  from where to start .

thanks
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Resolve DNS query failed errors for Exchange
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now