dotnet/runtime
Auf GitHub ansehenLinux System.DirectoryServices.Protocols: does the library support multiple server connection?
Open
#100.007 geöffnet am 20. März 2024
area-System.DirectoryServiceshelp wanted
Repository-Metriken
- Stars
- (17.886 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 12T 11h) (661 gemergte PRs in 30 T)
Beschreibung
If I create a connection and try to send request from Windows computer, then shut down the dc1 and resend the request it will succeed. I assume it will use the dc2.
var ldi = new LdapDirectoryIdentifier(new [] { "dc1.domain.com", "dc2.domain.com" }, 389, false, false);
var conn = new LdapConnection(ldi, new NetworkCredential("user", "password"))
{
SessionOptions = {
ProtocolVersion = 3
},
AuthType = AuthType.Basic
};
var req = new SearchRequest("", "(objectType=*)", SearchScope.Base, "defaultNamingContext");
conn.SendRequest(req);
If the same code executes on Linux machine it will fail with System.DirectoryServices.Protocols.LdapException: The operation was aborted because the client side timeout limit was exceeded.
Does it depend on OpenLDAP library? Can I achieve the same result on Linux?