On some computers the windows authentication of Java is not working. On the same machine, the same user and the same HTTP URL the windows login is working in the brower. By debugging the problem, monitor the network monitor and find Java is not sending the third message of the NTLM handshake. Look in Java sources and debug the problem, find that NTLMAuthSequence.getNextToken() return null in the error case. This result in follow exception: Exception in thread "main" java.io.IOException: Internal authentication error at sun.net.www.protocol.http.ntlm.NTLMAuthSequence.getAuthHeader(Unknown Source) at TestNtlm.main(TestNtlm.java:29) Attached a test program and the log output from the failing system. Java version - 1.7.0_04-b22. It is not a regression and the problem occur on Java 6; however, after upgrade to 7u4 and the problem persistent. The OS is a Windows 7 32 Bit.
|