Error 0x80005000 and DirectoryServices

后端 未结 13 1954

I\'m trying to run a simple LDAP query using directory services in .Net.

    DirectoryEntry directoryEntry = new DirectoryEntry(\"LDAP://someserver.contoso.c         


        
13条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-29 04:47

    I encounter this error when I'm querying an entry of another domain of the forrest and this entry have some custom attribut of the other domain.

    To solve this error, I only need to specify the server in the url LDAP :

    Path with error = LDAP://CN=MyObj,DC=DOMAIN,DC=COM

    Path without error : LDAP://domain.com:389/CN=MyObj,DC=Domain,DC=COM

提交回复
热议问题