Skip to content

Commit

Permalink
Remove Incorrect_Credentials test
Browse files Browse the repository at this point in the history
  • Loading branch information
filipnavara authored Jul 12, 2022
1 parent 98c4f75 commit fa99451
Showing 1 changed file with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,26 +60,5 @@ await kerberosExecutor.Invoke(() =>
Assert.True(serverNegotiateAuthentication.IsAuthenticated);
});
}

[Fact]
public async Task Incorrect_Credentials()
{
using var kerberosExecutor = new KerberosExecutor(_testOutputHelper, "LINUX.CONTOSO.COM");
kerberosExecutor.AddUser("user");
await kerberosExecutor.Invoke(() =>
{
// Do a loopback authentication
NegotiateAuthenticationClientOptions clientOptions = new()
{
Credential = new NetworkCredential("user", "PLACEHOLDERwrong", "LINUX.CONTOSO.COM"),
TargetName = $"HTTP/linux.contoso.com",
Package = "Kerberos",
};
NegotiateAuthentication clientNegotiateAuthentication = new(clientOptions);
byte[]? clientBlob = clientNegotiateAuthentication.GetOutgoingBlob((ReadOnlySpan<byte>)default, out NegotiateAuthenticationStatusCode statusCode);
Assert.True(statusCode >= NegotiateAuthenticationStatusCode.GenericFailure, $"Client authentication succeeded with {statusCode}");
Assert.Null(clientBlob);
});
}
}
}

0 comments on commit fa99451

Please sign in to comment.