Error 0x80005000 and DirectoryServices

后端 未结 13 1812

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:46

    Just FYI, I had the same error and was using the correct credentials but my LDAP url was wrong :(

    I got the exact same error message and code

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2020-11-29 04:53

    In the context of Ektron, this issue is resolved by installing the "IIS6 Metabase compatibility" feature in Windows:

    Check 'Windows features' or 'Role Services' for IIS6 Metabase compatibility, add if missing:

    enter image description here

    Ref: https://portal.ektron.com/KB/1088/

    0 讨论(0)
  • 2020-11-29 04:56

    Spent a day on my similar issue, but all these answers didn't help.

    Turned out in my case, I didn't enable Windows Authentication in IIS setting...

    0 讨论(0)
  • 2020-11-29 04:57

    I had the same error - in my case it was extra slash in path argument that made the difference.

    BAD:

    DirectoryEntry directoryEntry = 
        new DirectoryEntry("LDAP://someserver.contoso.com/DC=contoso,DC=com/", 
                           userName, password);
    

    GOOD:

    DirectoryEntry directoryEntry = 
        new DirectoryEntry("LDAP://someserver.contoso.com/DC=contoso,DC=com", 
                           userName, password);
    
    0 讨论(0)
  • 2020-11-29 04:59

    Just had that problem in a production system in the company where I live... A webpage that made a LDAP bind stopped working after an IP changed.

    The solution... ... I installed Basic Authentication to perform the troubleshooting indicated here: https://support.microsoft.com/en-us/kb/329986

    And after that, things just started to work. Even after I re-disabled Basic Authentication in the page I was testing, all other pages started working again with Windows Authentication.

    Regards, Acácio

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