2009-08-03 1 views
2

포리스트에 대해 ActiveDirectoryMembershipProvider를 설정하려고하는데 작동하지 않는 것 같습니다. Google의 AD 관리자 중 한 명이 글로벌 카탈로그를 참조하도록 제안되었지만 지원되지 않습니다. 가능하다면 누구나 알 수 있습니다. 그렇다면 AD 회원 공급자가 포레스트에 대해 어떻게 구성됩니까?포리스트와 함께 ASP.NET ActiveDirectoryMembershipProvider 사용

다음은 내가 시도한 순열과 그에 따른 오류입니다.

<add name="ADConnectionString1" 
    connectionString="LDAP://domain.org/DC=domain,DC=org:3268" /> 

<add name="ADConnectionString2" 
    connectionString="LDAP://domain.org/DC=domain,DC=org:" /> 

null 참조 예외 "A 참조는 서버로부터 반환 된".

<add name="ADConnectionString3" 
    connectionString="LDAP://domain.org" /> 

null 참조 예외

<add name="ADConnectionString4" 
    connectionString="LDAP://domain.org:3268" /> 

"는 GC 포트에 LDAP 연결이 활동 Directory에 대해 지원되지 않습니다."

<add name="ADConnectionString5" 
    connectionString="LDAP://domain.org:3268/DC=domain,DC=org:3268" /> 

"는 GC 포트에 LDAP 연결이 활동 Directory에 대해 지원되지 않습니다."

<add name="ADConnectionString6" 
    connectionString="LDAP://domain.org:3268/DC=domain,DC=org" /> 

"는 GC 포트에 LDAP 연결이 활동 Directory에 대해 지원되지 않습니다."

답변

2

현재 ActiveDirectoryMembershipProvider를 테스트 할 수는 없지만 일반적으로 글로벌 카탈로그 검색은 GC : // 모니 커를 사용하여 수행됩니다. 예 :

using (DirectoryEntry searchRoot = new DirectoryEntry("GC://DC=yourdomain,DC=com")) 
    using (DirectorySearcher ds = new DirectorySearcher(searchRoot)) 
    { 
     ds.Filter = "(sAMAccountName=userID1)"; 
     ds.SearchScope = SearchScope.Subtree; 
     using (SearchResultCollection src = ds.FindAll()) 
     { 
      foreach (SearchResult sr in src) 
      { 
       uxFred.Content = sr.Path; 
      } 
     } 
    } 

나의 제안 ASP.NET에서 작업 LDP 아니면 그냥 일반 콘솔 /의 WinForm/WPF 응용 프로그램을 사용하여 작업 등, 검색 필터를 얻기 위해 항상이다.

+0

멤버 자격 공급자에게 GC를 요청할 수 없지만 이는 내 용도로 사용되었습니다. – MyItchyChin