1

I'm coding a C# application trying to bind an LDAP server via DirectoryServices.DirectoryEntry. There are several DirectoryEntry objects accessing to the server. I saw that all of these objects use the same connection on the server (I check it out by TCPViewer and saw only one ldap connection). Although I think I'm closing all objects by myDirectoryObject.Close() method, there is still an open connection on the server. Is it possible to force the connection to close the open connection to a server?

4

1 回答 1

1

如果您想在连接级别进行控制,我认为您应该使用System.DirectoryServices.Protocols

于 2010-12-24T08:17:52.890 回答