Retrieiving from AD LDAP attribute - PhysicalDeliveryOfficeName

M

MikeD

I'm using C# to retrieve information from AD. I was able to retrieve other AD
fields except for the PhysicalDeliveryOfficeName. I did a CSVDE export to
make sure of the LDAP attributes but it's returning nothing for the
PhysicalDeliveryOfficeName.
I followed this article
http://www.youcanlearnseries.com/Programming Tips/CSharp/LDAPReader.aspx to
achieve my results.

Here is my code:
string myOffice = "";
........
case "PhysicalDeliveryOfficeName":
myOffice = values.ToString().Trim();
OfficeValueLabel.Text = myOffice;
break;

Thanks for any help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,172
Messages
2,570,933
Members
47,472
Latest member
blackwatermelon

Latest Threads

Top