Why does authenticating against LDAP with DirectoryEntry intermittently throw COMException (0x8007203A): “The server is not operational”?

后端 未结 3 1301
隐瞒了意图╮
隐瞒了意图╮ 2021-02-09 06:27

If anybody has a similar story, please post details below!

I\'m building an ASP.NET website which needs to support authentication against LDAP.

相关标签:
3条回答
  • 2021-02-09 07:07

    I had the same problem and fixed it with this method

    http://blogs.dirteam.com/blogs/tomek/archive/2007/08/09/system-directoryservices-and-connection-pooling.aspx

    0 讨论(0)
  • 2021-02-09 07:10

    Although I can't precisely pinpoint the cause of this trouble, it seems to have to have stopped after migrating to a non-clustered server.

    There are other odd facts about this bug:

    • Restarting the asp.net host process isn't sufficient to fix the trouble. This is odd; you'd expect the OS to forcibly release resources on process death
    • Restarting the IIS service doesn't release the resources (the UDP ports). netstat reveals the ports seem free, but all ports opened are actually opened by process #4 - the System process.
    • Killing IIS (for instance via the IIS manager) does release the UDP ports, and then authentication works again.

    All in all, this looks very much like a driver or kernel issue in win2k3 with clustering enabled, and not a .NET related problem.

    So, if anyone else stumbles over a similar problem, check to see if clustering is enabled - it may save you weeks of headaches.

    0 讨论(0)
  • 2021-02-09 07:11

    I read something about the checking with NETSTAT and checking the states of active connections. a TIME WAIT multiples could indicate an issue with ports redirection. Nonetheless, am getting the same error for past 3 days. I've asked the network administrator to modify my permissions, and even that didn't help. The article discussing this in more details: C# .NET Application looses Connection to the Active Directory

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