방금 내 Active Directory에 액세스하는 것을 배우므로 코드에 사용자 계정 암호가 없어도 정보에 액세스 할 수 있는지 알아야합니다. 이 코드는 작동합니다암호를 노출하지 않고 Active Directory 데이터에 액세스하는 방법
DirectoryEntry SharePointUpdate = new DirectoryEntry("LDAP://" + "comm2k8-dc3", "juser01", "password", AuthenticationTypes.Secure);
이 코드하려고 할 때 :
String strPath = "LDAP:// DC=MYOrganization"
DirectoryEntry SharePointUpdate = new DirectoryEntry(strPath);
을 나는이 오류
"A referral was returned from the server.\r\n
내가 뭔가 실종을 얻을?
코드에 사용자 이름과 암호를 갖고 싶지 않습니다. 어쨌든 내가 할 수 있니?
광고가 익명 쿼리를 허용하도록 구성 되었습니까? 자세한 내용은 http://stackoverflow.com/questions/10730486/accessing-ad-without-a-user-name-password-for-read-only-access를 참조하십시오. – StfBln
은'PrincipalContext'에 익숙합니다. – MethodMan
태그'active-directory'에서 액티브 디렉터가 아니라 실제로 액티브 디렉터에 대해 말하고 있습니다. 이에 따라 귀하의 질문을 편집하고 승인/거부가 결정될 때까지 유용한 태그를 추가했습니다. –