<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>NTLM authentication not working in Liferay 7</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=84068698" />
  <subtitle>NTLM authentication not working in Liferay 7</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=84068698</id>
  <updated>2026-05-13T23:29:19Z</updated>
  <dc:date>2026-05-13T23:29:19Z</dc:date>
  <entry>
    <title>RE: NTLM authentication not working in Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118420973" />
    <author>
      <name>Karthik Nainupatruni</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118420973</id>
    <updated>2020-02-04T15:37:55Z</updated>
    <published>2020-02-04T15:37:55Z</published>
    <summary type="html">i have commented the Browsersniffer code in NTLFilter.java class , it is working fine in chrome browser &lt;br /&gt;​​​​​​​In liferay 7.2 .1 ga2 by customizing the core  &lt;strong&gt;&lt;strong&gt;portal-security-sso-ntlm-impl&lt;/strong&gt;&lt;/strong&gt;  module   </summary>
    <dc:creator>Karthik Nainupatruni</dc:creator>
    <dc:date>2020-02-04T15:37:55Z</dc:date>
  </entry>
  <entry>
    <title>RE: NTLM authentication not working in Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118346791" />
    <author>
      <name>Karthik Nainupatruni</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118346791</id>
    <updated>2020-01-28T04:26:50Z</updated>
    <published>2020-01-28T04:26:50Z</published>
    <summary type="html">Thanks , it was user account and we have replaced those credentials with Computer/System account ,Now it is working fine, in IE browser.&lt;br /&gt;But how could we customize the NTLMFilter to make it work on chrome? </summary>
    <dc:creator>Karthik Nainupatruni</dc:creator>
    <dc:date>2020-01-28T04:26:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: NTLM authentication not working in Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118274297" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118274297</id>
    <updated>2020-01-14T18:18:48Z</updated>
    <published>2020-01-14T18:18:48Z</published>
    <summary type="html">I remember seeing this happen a loooooooooooong time ago and I don&amp;#39;t remember all the specifics but I think it had something to do with the account that was specified to establish the connection to NTLM. The credentials you have specified for the connection, are they for a &amp;#34;system account&amp;#34; or for a &amp;#34;regular user account&amp;#34;. It was something to do with that if my memory serves me right (disclaimer: this was a really long time ago and I have a hard time remembering what I had for dinner last night &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;)</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2020-01-14T18:18:48Z</dc:date>
  </entry>
  <entry>
    <title>RE: NTLM authentication not working in Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118275707" />
    <author>
      <name>Karthik Nainupatruni</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118275707</id>
    <updated>2020-01-14T10:20:05Z</updated>
    <published>2020-01-14T10:20:05Z</published>
    <summary type="html">Hi ,&lt;br /&gt;I have enabled NTLM in Liferay 7.2.1 CE ga2 but i am getting the below error&lt;br /&gt;Anyone have faced the similar issue? &lt;br /&gt;Configuration:&lt;span style="color: #1f497d"&gt;Domain Controller = XXX.XXX.XXX(AD IP)&lt;/span&gt;&lt;span style="color: #1f497d"&gt;Domain Controller Name =Host name of AD &lt;/span&gt;&lt;span style="color: #1f497d"&gt;Domain = XXX.com&lt;/span&gt;Exception:2020-01-14 10:52:18.669 ERROR [http-nio-8080-exec-3][NtlmFilter:304] Unable to perform NTLM authenticationcom.liferay.portal.security.sso.ntlm.internal.NtlmLogonException: Session key negotiation failed </summary>
    <dc:creator>Karthik Nainupatruni</dc:creator>
    <dc:date>2020-01-14T10:20:05Z</dc:date>
  </entry>
  <entry>
    <title>RE: NTLM authentication not working in Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112850781" />
    <author>
      <name>Roshan Qureshi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112850781</id>
    <updated>2019-03-21T12:20:31Z</updated>
    <published>2019-03-21T12:20:31Z</published>
    <summary type="html">Thanks&lt;br /&gt;&lt;br /&gt;I am agree with you. Let me check the ports with telnet</summary>
    <dc:creator>Roshan Qureshi</dc:creator>
    <dc:date>2019-03-21T12:20:31Z</dc:date>
  </entry>
  <entry>
    <title>RE: NTLM authentication not working in Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112834587" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112834587</id>
    <updated>2019-03-20T12:16:25Z</updated>
    <published>2019-03-20T12:16:25Z</published>
    <summary type="html">389 is ldap, I don&amp;#39;t think that&amp;#39;s relevant for NTLM. Well, it is indirectly relevant for AD authentication and user import, but I don&amp;#39;t think it is relevant for your current error.&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t know which ports are required, I would check with a network sniffer like tcpdump (on Linux), which ports it tries to access. Or I would ask the firewall people, they should see the connections.&lt;br /&gt;&lt;br /&gt;If I&amp;#39;d to guess, I would try port 445 (SM&lt;img alt="emoticon" src="@theme_images_path@/emoticons/cool.gif" &gt; and then maybe 88 (Kerberos).&lt;br /&gt;https://support.microsoft.com/en-us/help/179442/how-to-configure-a-firewall-for-domains-and-trusts</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2019-03-20T12:16:25Z</dc:date>
  </entry>
  <entry>
    <title>RE: NTLM authentication not working in Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112834286" />
    <author>
      <name>Roshan Qureshi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112834286</id>
    <updated>2019-03-20T11:50:12Z</updated>
    <published>2019-03-20T11:50:12Z</published>
    <summary type="html">&lt;blockquote&gt;David H Nebingerthat&amp;#39;s just the network mask/network ip form, it looks valid.&lt;br /&gt;&lt;br /&gt;Pinging the server is not enough, it just means you have a network path to the host.&lt;br /&gt;&lt;br /&gt;But it doesn&amp;#39;t say anything about the ports you can access on the path. The port could be blocked on the server or on the host.&lt;br /&gt;&lt;br /&gt;The reference you are looking at is a low level analysis of the responses being returned; a mask of 0.0.0.0/ip is not nulls getting inserted into the binary stream.&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;We checked everything and we are able to ping the controller IP &lt;strong&gt;but NOT ABLE TO telnet CONTROLLER (domain) on port 389.  Is it required?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Thanks</summary>
    <dc:creator>Roshan Qureshi</dc:creator>
    <dc:date>2019-03-20T11:50:12Z</dc:date>
  </entry>
  <entry>
    <title>RE: NTLM authentication not working in Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112832376" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112832376</id>
    <updated>2019-03-20T11:33:55Z</updated>
    <published>2019-03-20T11:33:55Z</published>
    <summary type="html">that&amp;#39;s just the network mask/network ip form, it looks valid.&lt;br /&gt;&lt;br /&gt;Pinging the server is not enough, it just means you have a network path to the host.&lt;br /&gt;&lt;br /&gt;But it doesn&amp;#39;t say anything about the ports you can access on the path. The port could be blocked on the server or on the host.&lt;br /&gt;&lt;br /&gt;The reference you are looking at is a low level analysis of the responses being returned; a mask of 0.0.0.0/ip is not nulls getting inserted into the binary stream.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-03-20T11:33:55Z</dc:date>
  </entry>
  <entry>
    <title>RE: NTLM authentication not working in Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112831173" />
    <author>
      <name>Roshan Qureshi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112831173</id>
    <updated>2019-03-20T10:56:30Z</updated>
    <published>2019-03-20T10:56:30Z</published>
    <summary type="html">&lt;blockquote&gt;&amp;amp;#034;David H NebingerBy now that fix would have made it into CE, sure, but that has nothing to do with the &amp;#34;Unable to authenticate due to communication failure with server&amp;#34; issue you are facing, that was due to trying to use a service account for authentication.&lt;br /&gt;&lt;br /&gt;But verify the low hanging fruit - make sure that you can actually connect from the server to AD and that it isn&amp;#39;t just some silly windows firewall thing blocking connectivity.&amp;#34;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;Thanks for quick reply.&lt;br /&gt;&lt;br /&gt;We checked everything and we are able to ping the controller IP.&lt;br /&gt;&lt;br /&gt;Do you know what does the meaning of Heading zeros in the logs :&lt;br /&gt;&lt;br /&gt;&amp;#34;Failed to connect: &lt;strong&gt;0.0.0.0&amp;lt;00&amp;gt;&lt;/strong&gt;/domain IP&amp;#34;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thread - https://community.liferay.com/forums/-/message_boards/message/112819703 says&lt;br /&gt;&lt;br /&gt;&amp;#34; Inspecting source code/debugging we found:&lt;br /&gt;that netrServerAuthenticate3.getServerCredential() returns byte array filled with zeroes: http://www.jarvana.com/jarvana/view/com/liferay/portal/portal-impl/6.0.5/portal-impl-6.0.5-sources.jar!/com/liferay/portal/security/ntlm/NetlogonConnection.java?format=ok&lt;br /&gt;&lt;br /&gt;so problem is somewhere in filling netrServerAuthenticate3 object by dcerpcHandle.sendrecv(netrServerAuthenticate3); &amp;#34;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Appreciate your help.</summary>
    <dc:creator>Roshan Qureshi</dc:creator>
    <dc:date>2019-03-20T10:56:30Z</dc:date>
  </entry>
  <entry>
    <title>RE: NTLM authentication not working in Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112824410" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112824410</id>
    <updated>2019-03-19T20:29:59Z</updated>
    <published>2019-03-19T20:29:59Z</published>
    <summary type="html">By now that fix would have made it into CE, sure, but that has nothing to do with the &amp;#34;Unable to authenticate due to communication failure with server&amp;#34; issue you are facing, that was due to trying to use a service account for authentication.&lt;br /&gt;&lt;br /&gt;But verify the low hanging fruit - make sure that you can actually connect from the server to AD and that it isn&amp;#39;t just some silly windows firewall thing blocking connectivity.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-03-19T20:29:59Z</dc:date>
  </entry>
  <entry>
    <title>RE: NTLM authentication not working in Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112822731" />
    <author>
      <name>Roshan Qureshi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112822731</id>
    <updated>2019-03-19T16:08:02Z</updated>
    <published>2019-03-19T16:08:02Z</published>
    <summary type="html">Hello,&lt;br /&gt;&lt;br /&gt;We have same issue with &lt;strong&gt;  LIFERAY 7 GA7 CE + WINDOWS SERVER 2012&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ERROR [ajp-nio-8009-exec-9][NtlmFilter:298] &lt;strong&gt;Unable to perform NTLM authentication&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;com.liferay.portal.security.sso.ntlm.internal.NtlmLogonException: Unable to authenticate due to communication failure with server&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;There was a known issue :&lt;br /&gt;&lt;br /&gt;https://issues.liferay.com/browse/LPS-15380&lt;br /&gt;&lt;br /&gt;It says, it is resolved in     &lt;a href="https://issues.liferay.com/issues/?jql=project+%3D+LPS+AND+fixVersion+%3D+%225.2.X+EE%22"&gt;5.2.X EE&lt;/a&gt;, &lt;a href="https://issues.liferay.com/issues/?jql=project+%3D+LPS+AND+fixVersion+%3D+%226.0.12+EE%22"&gt;6.0.12 EE&lt;/a&gt;   but what about CE? Specially Liferay 7 ga7 CE?&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Is anyone from Liferay staff can update on this please?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Thanks.</summary>
    <dc:creator>Roshan Qureshi</dc:creator>
    <dc:date>2019-03-19T16:08:02Z</dc:date>
  </entry>
  <entry>
    <title>RE: NTLM authentication not working in Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=84179304" />
    <author>
      <name>Jack Bakker</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=84179304</id>
    <updated>2016-12-28T01:44:03Z</updated>
    <published>2016-12-28T01:44:03Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Deepivoti, &lt;br&gt;&lt;br&gt;I've had to set the service account password with a VBScript. There are several out there including ones from Microsoft, and are similar to below&lt;br&gt;&lt;pre&gt;&lt;code&gt;
Dim objComputer
Set objComputer = GetObject("LDAP://CN=someName,CN=someServiceAccounts,DC=Example,DC=COM"")
objComputer.SetPassword "somePassword"
Wscript.Quit
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;Have you done this ?&lt;br&gt;EDIT: I've got NTLM this to work on Liferay v6.2EE but haven't tried in v7/DXP yet. I also had to adjust Internet Explorer configs, but I given your error you might not be at that step yet.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Jack Bakker</dc:creator>
    <dc:date>2016-12-28T01:44:03Z</dc:date>
  </entry>
  <entry>
    <title>RE: NTLM authentication not working in Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=84161774" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=84161774</id>
    <updated>2016-12-27T15:59:32Z</updated>
    <published>2016-12-27T15:59:32Z</published>
    <summary type="html">Not that I am aware of. The only &amp;#34;test&amp;#34; button I am familiar with is the one in the LDAP configuration.</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2016-12-27T15:59:32Z</dc:date>
  </entry>
  <entry>
    <title>RE: NTLM authentication not working in Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=84147104" />
    <author>
      <name>Deepjyoti Nath</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=84147104</id>
    <updated>2016-12-27T05:49:27Z</updated>
    <published>2016-12-27T05:49:27Z</published>
    <summary type="html">Thanks Andrew. I also had the same feeling, and I tried the same configuration in Liferay 6.2 version, which resulted the same error. I will check with the administrator to confirm the service account credentials. Is there any way (tool) to manually check if the credentials entered in service account field is correct or not.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Deep</summary>
    <dc:creator>Deepjyoti Nath</dc:creator>
    <dc:date>2016-12-27T05:49:27Z</dc:date>
  </entry>
  <entry>
    <title>RE: NTLM authentication not working in Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=84093783" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=84093783</id>
    <updated>2016-12-24T03:51:49Z</updated>
    <published>2016-12-24T03:51:49Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi Deepjyoti&lt;br&gt;&lt;br&gt;Based on the log you attached, it looks like the Principal (service account) that you set up is not correct, or you have the wrong address for the endpoint perhaps?&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;06:41:41,369 ERROR [http-nio-8083-exec-1][NtlmFilter:297] Unable to perform NTLM authentication
com.liferay.portal.security.sso.ntlm.internal.NtlmLogonException: Unable to authenticate due to communication failure with server&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;I don't have a DXP server to try it on (or a windows machine for an NTLM connection in fact) so I can't say for sure that it's not a bug. If you are certian that it is a bug, then your best course of action is to open a LESA with Liferay and see what they say.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2016-12-24T03:51:49Z</dc:date>
  </entry>
  <entry>
    <title>NTLM authentication not working in Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=84068697" />
    <author>
      <name>Deepjyoti Nath</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=84068697</id>
    <updated>2016-12-23T06:53:35Z</updated>
    <published>2016-12-23T06:53:35Z</published>
    <summary type="html">Hi,&lt;br /&gt;I tried to configure NTLM authentication with our AD server (configured in LDAP). But after the configuration, when I click on Sign-In button, in Liferay, it asks windows userid/password. But submitting with correct credentials also its not working. &lt;br /&gt;Log shows connection error (attached the log file).&lt;br /&gt;&lt;br /&gt;Has someone worked on NTLMv2 configuration in Liferay 7?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Deep</summary>
    <dc:creator>Deepjyoti Nath</dc:creator>
    <dc:date>2016-12-23T06:53:35Z</dc:date>
  </entry>
</feed>
