diff --git a/src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/Context.cs b/src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/Context.cs index ce5e870eea23c74a035d0f8b8895afd5d067d146..1947b66f588821240b17025fbe8711503708a555 100644 --- a/src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/Context.cs +++ b/src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/Context.cs @@ -264,6 +264,10 @@ public bool Validate(string userName, string password) // we don't return false here even if we failed with ERROR_LOGON_FAILURE. We must check Negotiate // because there might be cases in which SSL fails and Negotiate succeeds } + catch (DirectoryOperationException) + { + // see LdapException + } BindLdap(networkCredential, defaultContextOptionsNegotiate); _lastBindMethod = AuthMethod.Negotiate;