ntlmv2-auth fails in Session key negotiation

1.5k views Asked by At

We are trying to port our jboss j2ee application from ntlm-auth to ntlmv2-auth.

AppServer: JBoss v. 4.5.2, java6, jcifs 1.3.17, ntlmv2-auth 1.0.4 AD-server: Windows Server 2003 - with a computer account in the AD created acc. to specifications from Liferay. NTLMv2 is off course enabled on the server; 'Send NTLMv2 response only\refuse LM and NTLM'

Authentication fails with a NtlmLogonException: Session key negotiation failed

From the AD-servers Event viewer logon/logoff traces off the computer account can be seen.

Stacktrace:

ERROR org.ntlmv2.filter.NtlmFilter - NTLM authentication failed:
org.ntlmv2.liferay.NtlmLogonException: Session key negotiation failed
org.ntlmv2.liferay.NtlmLogonException: Session key negotiation failed
    at org.ntlmv2.liferay.NetlogonConnection.connect(NetlogonConnection.java:172)
    at org.ntlmv2.liferay.Netlogon.logon(Netlogon.java:50)
    at org.ntlmv2.liferay.NtlmManager.authenticate(NtlmManager.java:66)
    at org.ntlmv2.filter.NtlmFilter.doFilter(NtlmFilter.java:236)

Could anyone please enlighten me on this one? Any help would be appreciated. Thank you.

1

There are 1 answers

0
amanteaux On

I had the same issue. After reading carefully the documentation from Liferay, it turns out I was using a Person account instead of a Computer account in the ntlm-account configuration of ntlmv2-auth.