나는 Active Directory 사용자 DirectoryEntries 모음을 가지고 있으며 각 주소와 연관된 주소를 얻어야합니다. 나는의 라인을 따라 뭔가 사용하고 있습니다 :Active Directory DirectoryEntry의 Street Address 속성 검색
bool TryGetPropertyValue(DirectoryEntry de, string propertyName, out string propertyValue)
{
if (de.Properties.Contains(propertyName) && de.Properties[propertyName].Count > 0)
{
propertyValue = de.Properties[propertyName][0].ToString();
return true;
}
propertyValue = string.Empty;
return false;
}
을하지만 사용자의 주소를 얻을 것이다 propertyName
의 값을 찾을 수 없습니다. 이 정보를 얻을 수있는 방법이 있습니까?
http://stackoverflow.com/questions/5058261/how-to-get-update-contacts-withinactive-directory – Tariqulazam
"주소", "주소 - 집", "등록 된 주소 "및"Street-Address "는 Windows AD의 User-class에있는 주소 관련 항목입니다. 그 중 하나를 시도해 볼 수 있습니다. 전체 목록은 http://msdn.microsoft.com/ko-kr/library/ms683980(v=VS.85).aspx에서 찾을 수 있습니다. – Falle1234