Retrieiving from AD LDAP attribute - PhysicalDeliveryOfficeName

  • Thread starter Thread starter MikeD
  • Start date Start date
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!
 
Back
Top