6982971: TEST failure: com/sun/security/sasl/ntlm/NTLMTest.java
Reviewed-by: wetmore
This commit is contained in:
parent
4b6857d9ba
commit
f788ac2dbd
@ -31,8 +31,6 @@ import javax.security.sasl.*;
|
|||||||
import javax.security.auth.callback.*;
|
import javax.security.auth.callback.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
import com.sun.security.ntlm.NTLMException;
|
|
||||||
|
|
||||||
public class NTLMTest {
|
public class NTLMTest {
|
||||||
|
|
||||||
private static final String MECH = "NTLM";
|
private static final String MECH = "NTLM";
|
||||||
@ -95,19 +93,13 @@ public class NTLMTest {
|
|||||||
checkVersion("LM/NTLM", "LMv2");
|
checkVersion("LM/NTLM", "LMv2");
|
||||||
throw new Exception("Should not succeed");
|
throw new Exception("Should not succeed");
|
||||||
} catch (SaslException se) {
|
} catch (SaslException se) {
|
||||||
NTLMException ne = (NTLMException)se.getCause();
|
// OK
|
||||||
if (ne.errorCode() != NTLMException.AUTH_FAILED) {
|
|
||||||
throw new Exception("Failed false");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
checkVersion("LMv2/NTLMv2", "LM");
|
checkVersion("LMv2/NTLMv2", "LM");
|
||||||
throw new Exception("Should not succeed");
|
throw new Exception("Should not succeed");
|
||||||
} catch (SaslException se) {
|
} catch (SaslException se) {
|
||||||
NTLMException ne = (NTLMException)se.getCause();
|
// OK
|
||||||
if (ne.errorCode() != NTLMException.AUTH_FAILED) {
|
|
||||||
throw new Exception("Failed false");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user