“A referral was returned from the server” exception when accessing AD from C#

后端 未结 8 1308
不知归路
不知归路 2020-12-01 18:08
DirectoryEntry oDE = new DirectoryEntry(\"LDAP://DC=Test1,DC=Test2,DC=gov,DC=lk\");

using (DirectorySearcher ds = new DirectorySearcher(oDE))
{
    ds.PropertiesToL         


        
相关标签:
8条回答
  • 2020-12-01 18:51

    I know this might sound silly, but I recently came across this myself, Make sure the domain controller is not read-only.

    0 讨论(0)
  • 2020-12-01 18:54

    You may also need to enable ReferralChasing on the DirectorySearcher - http://msdn.microsoft.com/en-us/library/ms180884(VS.80).aspx.

    0 讨论(0)
提交回复
热议问题