<?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>Chrome, Firefox and Edge, Ntlm Liferay</title>
  <link rel="self" href="https://uat.liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112588659" />
  <subtitle>Chrome, Firefox and Edge, Ntlm Liferay</subtitle>
  <id>https://uat.liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112588659</id>
  <updated>2026-08-02T08:00:11Z</updated>
  <dc:date>2026-08-02T08:00:11Z</dc:date>
  <entry>
    <title>RE: Chrome, Firefox and Edge, Ntlm Liferay</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112635453" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112635453</id>
    <updated>2019-03-07T19:54:42Z</updated>
    <published>2019-03-07T19:54:42Z</published>
    <summary type="html">Don&amp;#39;t use master, that code is for the upcoming 7.2 release.&lt;br /&gt;&lt;br /&gt;​​​​​​​Stick w/ a 7.1 branch if that&amp;#39;s what you&amp;#39;re building for.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-03-07T19:54:42Z</dc:date>
  </entry>
  <entry>
    <title>RE: Chrome, Firefox and Edge, Ntlm Liferay</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112631161" />
    <author>
      <name>Lorenzo Leonori</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112631161</id>
    <updated>2019-03-07T17:44:57Z</updated>
    <published>2019-03-07T17:44:57Z</published>
    <summary type="html">Thanks for reply. I proved but nothing change. You have another solution?</summary>
    <dc:creator>Lorenzo Leonori</dc:creator>
    <dc:date>2019-03-07T17:44:57Z</dc:date>
  </entry>
  <entry>
    <title>RE: Chrome, Firefox and Edge, Ntlm Liferay</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112630499" />
    <author>
      <name>Lorenzo Leonori</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112630499</id>
    <updated>2019-03-07T17:44:04Z</updated>
    <published>2019-03-07T17:44:04Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;-Not all of the dependencies are compileInclude, just the jcifs one- (your answer)&lt;br&gt;&lt;br&gt;Yes I know, only jcifs have this structure:&lt;pre&gt;&lt;code&gt;compileInclude group: 'jcifs', name: 'jcifs', version: '1.3.17'&lt;/code&gt;&lt;/pre&gt;The others have a structure like this:&lt;pre&gt;&lt;code&gt;​​​​​​​compileOnly group: 'com.liferay.portal', name: 'com.liferay.portal.impl', version: '2.21.0'&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;But I don't resolve nothing.&amp;nbsp;&amp;nbsp;I contiunue have this&lt;strong&gt; ERROR [Framework Event Dispatcher: Equinox Container: 5a6db8f6-eb44-4b44-b2c0-477922129a8a][ntlmFilter:97] FrameworkEvent ERRORorg.osgi.framework.BundleException: Could not resolve module: ntlmFilter [3204]_ &amp;nbsp;Unresolved requirement: Import-Package: jcifs_ [Sanitized].&lt;br&gt;&lt;/strong&gt;&lt;br&gt;For take all files in&amp;nbsp;com.liferay.portal.security.sso.ntlm.impl.jar I went in&lt;strong&gt;&lt;a href=""&gt;&amp;nbsp;&lt;/a&gt;&lt;a href=""&gt;https://github.com/liferay/com-liferay-portal-security-sso/tree/master/portal-security-sso-ntlm/src/main/java/com/liferay/portal/security/sso/ntlm/internal&lt;/a&gt;&amp;nbsp;&lt;/strong&gt;download all, create a new Liferay Module Project and put that files in src/main/java. Then I compile with grandle.&amp;nbsp;&lt;br&gt;&lt;br&gt;​​​​​​​Any solution?&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Lorenzo Leonori</dc:creator>
    <dc:date>2019-03-07T17:44:04Z</dc:date>
  </entry>
  <entry>
    <title>RE: Chrome, Firefox and Edge, Ntlm Liferay</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112624537" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112624537</id>
    <updated>2019-03-07T14:32:05Z</updated>
    <published>2019-03-07T14:32:05Z</published>
    <summary type="html">Not all of the dependencies are compileInclude, just the jcifs one.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://community.liferay.com/blogs/-/blogs/gradle-compile-vs-compileonly-vs-compileinclude"&gt;https://community.liferay.com/blogs/-/blogs/gradle-compile-vs-compileonly-vs-compileinclude&lt;/a&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-03-07T14:32:05Z</dc:date>
  </entry>
  <entry>
    <title>RE: Chrome, Firefox and Edge, Ntlm Liferay</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112620216" />
    <author>
      <name>Pasi Kössi</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112620216</id>
    <updated>2019-03-07T12:54:27Z</updated>
    <published>2019-03-07T12:54:27Z</published>
    <summary type="html">Maybe you should just add the .jar extension to the jar file name in theBundle-ClassPath line. (ClassPath: \ ., \lib/jcifs-1.3.17.&lt;strong&gt;jar&lt;/strong&gt;)</summary>
    <dc:creator>Pasi Kössi</dc:creator>
    <dc:date>2019-03-07T12:54:27Z</dc:date>
  </entry>
  <entry>
    <title>RE: Chrome, Firefox and Edge, Ntlm Liferay</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112617728" />
    <author>
      <name>Lorenzo Leonori</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112617728</id>
    <updated>2019-03-07T09:57:21Z</updated>
    <published>2019-03-07T09:57:21Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;span style="font-size: 18px;"&gt;Thank a lot for your patience.&lt;br&gt;&lt;br&gt;-The compileInclude directive will compile the code using the given dependency(ies) but also include them in the built module jar, taking care of any unresolved requirements. -&lt;br&gt;&lt;br&gt;I've include the dependecy jcifs in the built module jar&amp;nbsp; and I'm sure to do include the correct dependecy in the built module jar beacuse if I for example use&lt;/span&gt;&lt;pre&gt;&lt;code&gt;compileInclude group: 'com.liferay.portal', name: 'com.liferay.portal.impl', version: '2.21.0' 
&lt;/code&gt;&lt;/pre&gt;​​​​​​​I've an error as that dependecy is not include.&lt;br&gt;&lt;br&gt;Nevertheless the I've always that error.&lt;br&gt;(&lt;strong&gt;ERROR [Framework Event Dispatcher: Equinox Container: 2d5b9ae3-325d-4233-a574-346dd86244fc][ntlmFilter:97] FrameworkEvent ERROR&lt;br&gt;org.osgi.framework.BundleException: Could not resolve module: ntlmFilter [3204]_ &amp;nbsp;Unresolved requirement: Import-Package: jcifs_ [Sanitized]&lt;/strong&gt;)&lt;br&gt;&lt;br&gt;Some Ideas? In the attachment you can see the jar file &lt;span style="font-size: 18px;"&gt;buil.&lt;/span&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Lorenzo Leonori</dc:creator>
    <dc:date>2019-03-07T09:57:21Z</dc:date>
  </entry>
  <entry>
    <title>RE: Chrome, Firefox and Edge, Ntlm Liferay</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112614054" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112614054</id>
    <updated>2019-03-07T03:54:41Z</updated>
    <published>2019-03-07T03:54:41Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;I think you'd be a lot better off if you removed the Bundle-Classpath directive from bnd.bnd and change the jcifs line in build.gradle to be:&lt;br&gt;​​​​​​​&lt;br&gt;&lt;pre&gt;&lt;code&gt;compileInclude group: 'jcifs', name: 'jcifs', version: '1.3.17'&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;The compileInclude directive will compile the code using the given dependency(ies) but also include them in the built module jar, taking care of any unresolved requirements.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-03-07T03:54:41Z</dc:date>
  </entry>
  <entry>
    <title>RE: Chrome, Firefox and Edge, Ntlm Liferay</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112611839" />
    <author>
      <name>Lorenzo Leonori</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112611839</id>
    <updated>2019-03-06T23:00:39Z</updated>
    <published>2019-03-06T23:00:39Z</published>
    <summary type="html">&lt;span style="font-size: 24px;"&gt;&lt;strong&gt;This is my bnd.bnd file &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Bundle-Name: ntlmFilter&lt;br /&gt;Bundle-SymbolicName: ntlmFilter&lt;br /&gt;Bundle-Version: 1.0.0&lt;br /&gt;Bundle-ClassPath:\&lt;br /&gt;  .,\&lt;br /&gt;  lib/jcifs-1.3.17 &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size: 24px;"&gt;and this is my grandle.build&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;buildscript {&lt;br /&gt;    dependencies {&lt;br /&gt;        classpath group: &amp;#34;com.liferay&amp;#34;, name: &amp;#34;com.liferay.gradle.plugins&amp;#34;, version: &amp;#34;3.13.26&amp;#34;&lt;br /&gt;    }&lt;br /&gt;    repositories {&lt;br /&gt;        maven {&lt;br /&gt;            url &amp;#34;https://repository-cdn.liferay.com/nexus/content/groups/public&amp;#34;&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;apply plugin: &amp;#34;com.liferay.plugin&amp;#34;&lt;br /&gt;dependencies {&lt;br /&gt;    compileOnly group: &amp;#34;com.liferay.portal&amp;#34;, name: &amp;#34;com.liferay.portal.kernel&amp;#34;, version: &amp;#34;3.0.0&amp;#34;&lt;br /&gt;    compileOnly group: &amp;#34;org.osgi&amp;#34;, name: &amp;#34;osgi.cmpn&amp;#34;, version: &amp;#34;6.0.0&amp;#34;&lt;br /&gt;    compile group: &amp;#34;com.liferay&amp;#34;, name:&amp;#34;com.liferay.portal.security.exportimport.api&amp;#34;, version:&amp;#34;2.0.0&amp;#34;&lt;br /&gt;    compileOnly group: &amp;#34;javax.servlet&amp;#34;, name: &amp;#34;javax.servlet-api&amp;#34;, version: &amp;#34;3.0.1&amp;#34;&lt;br /&gt;    compileOnly group: &amp;#34;javax.portlet&amp;#34;, name: &amp;#34;portlet-api&amp;#34;, version: &amp;#34;2.0&amp;#34;&lt;br /&gt;    compileOnly group: &amp;#34;com.liferay&amp;#34;, name: &amp;#34;com.liferay.portal.security.exportimport.api&amp;#34;, version: &amp;#34;2.0.0&amp;#34;&lt;br /&gt;    compileOnly group: &amp;#34;com.liferay&amp;#34;, name: &amp;#34;com.liferay.portal.security.sso.ntlm.api&amp;#34;, version: &amp;#34;1.0.0&amp;#34;&lt;br /&gt;    compileOnly group: &amp;#34;com.liferay&amp;#34;, name: &amp;#34;com.liferay.portal.security.ldap&amp;#34;, version: &amp;#34;1.0.0&amp;#34;&lt;br /&gt;    compileOnly group: &amp;#34;com.liferay&amp;#34;, name: &amp;#34;com.liferay.portal.security.sso.ntlm&amp;#34;, version: &amp;#34;3.0.1&amp;#34;&lt;br /&gt;    compile group: &amp;#39;com.liferay&amp;#39;, name: &amp;#39;com.liferay.portal.security.sso.ntlm&amp;#39;, version: &amp;#39;4.0.5&amp;#39;&lt;br /&gt;    compile group: &amp;#39;com.liferay&amp;#39;, name: &amp;#39;com.liferay.portal.security.ldap&amp;#39;, version: &amp;#39;2.4.1&amp;#39;&lt;br /&gt;    compile group: &amp;#39;com.liferay&amp;#39;, name: &amp;#39;com.liferay.petra.string&amp;#39;, version: &amp;#39;2.0.0&amp;#39;&lt;br /&gt;    compile group: &amp;#39;com.liferay.portal&amp;#39;, name: &amp;#39;com.liferay.portal.impl&amp;#39;, version: &amp;#39;2.21.0&amp;#39;&lt;br /&gt;    compile group: &amp;#39;jcifs&amp;#39;, name: &amp;#39;jcifs&amp;#39;, version: &amp;#39;1.3.17&amp;#39;&lt;br /&gt;    //compile files(&amp;#39;lib/jcifs-1.3.17.jar&amp;#39;)&lt;br /&gt;}&lt;br /&gt;repositories {&lt;br /&gt;    maven {&lt;br /&gt;        url &amp;#34;https://repository-cdn.liferay.com/nexus/content/groups/public&amp;#34;&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t understand why there is that error (Unresolved requirement: Import-Package : jcifs_ [Sanitized]) all dependencies are declared. Any Ideas? Thanks</summary>
    <dc:creator>Lorenzo Leonori</dc:creator>
    <dc:date>2019-03-06T23:00:39Z</dc:date>
  </entry>
  <entry>
    <title>RE: Chrome, Firefox and Edge, Ntlm Liferay</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112609448" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112609448</id>
    <updated>2019-03-06T21:41:31Z</updated>
    <published>2019-03-06T21:41:31Z</published>
    <summary type="html">I have no idea.  A screenprint of something in eclipse is of little use.&lt;br /&gt;&lt;br /&gt;The build is controled by the build.gradle file and the bnd.bnd. Start there.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-03-06T21:41:31Z</dc:date>
  </entry>
  <entry>
    <title>RE: Chrome, Firefox and Edge, Ntlm Liferay</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112601283" />
    <author>
      <name>Lorenzo Leonori</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112601283</id>
    <updated>2019-03-06T16:53:47Z</updated>
    <published>2019-03-06T16:53:47Z</published>
    <summary type="html">Thanks for reply! This is my project:&lt;br /&gt;&lt;br /&gt;&lt;img src="/documents/14/110203810/screen.png/f200aa99-96de-552b-2027-98b7cfa76d7c?t=1551890431008" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When I compile this project, I have the jar file that I can put in / liferay/osgi /marketplace/overraide. So I put the file in the overraide folder, I do the shoutdown on the Tomcat &lt;br /&gt;&lt;br /&gt;server and restart the server afterI have an error, unresolved requirement: Import-Package : jcifs_ [Sanitized], why? In the ntlmFilter.bnd file I introduced Bundle-ClassPath (Bundle-&lt;br /&gt;&lt;br /&gt;ClassPath: \ ., \lib/jcifs-1.3.17) and in the build.grandle file I introduced (group compiled: &amp;#39;jcifs&amp;#39;, name: &amp;#39;jcifs&amp;#39;, version: &amp;#39;1.3.17&amp;#39;). Why do I have that mistake?</summary>
    <dc:creator>Lorenzo Leonori</dc:creator>
    <dc:date>2019-03-06T16:53:47Z</dc:date>
  </entry>
  <entry>
    <title>RE: Chrome, Firefox and Edge, Ntlm Liferay</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112592271" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112592271</id>
    <updated>2019-03-06T04:17:54Z</updated>
    <published>2019-03-06T04:17:54Z</published>
    <summary type="html">My blog &lt;a href="https://community.liferay.com/blogs/-/blogs/extending-liferay-osgi-modules"&gt;https://community.liferay.com/blogs/-/blogs/extending-liferay-osgi-modules&lt;/a&gt; shows how to build a new jar to be dropped in osgi/martketplace/override from the old jar, replacing what file you need to.&lt;br /&gt;&lt;br /&gt;Be forewarned, however... The other browsers may or may not actually support NTLM authentication, some require additional browser-based configuration to support (i.e. it is not just on by default), ...&lt;br /&gt;&lt;br /&gt;You may be under the impression that all you need to do is change this one class, but I honestly think it is going to require a lot more.&lt;br /&gt;&lt;br /&gt;Plus it is untested so any failure, you won&amp;#39;t have anyone to turn to for support; While we may know Liferay here, I can&amp;#39;t even begin to tell you how to make NTLM work correctly in firefox or how you would even go about troubleshooting an NTLM authentication issue there...</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-03-06T04:17:54Z</dc:date>
  </entry>
  <entry>
    <title>Chrome, Firefox and Edge, Ntlm Liferay</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112588658" />
    <author>
      <name>Lorenzo Leonori</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112588658</id>
    <updated>2019-03-05T17:22:08Z</updated>
    <published>2019-03-05T17:22:08Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;strong&gt;Hello to everyone!&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;This is my problem: I use Liferay 7.1 ga-2 and I would want use Ntlm on Chrome, Firefox and Edge&lt;/strong&gt;, the solution to do this as follows:Take NtlmFilter.class and modify this sample code:&lt;pre&gt;&lt;code&gt;[code]    public boolean isFilterEnabled(HttpServletRequest request, HttpServletResponse response)
  {
    if (!this._browserSniffer.isIe(request)) {
      return false;//[color=#ff0000][u]onliy [u]I[/u]nternet explorer can use NTLM[/u][/color]
    }
  }
&lt;/code&gt;&lt;/pre&gt;IN&lt;pre&gt;&lt;code&gt;[code]public boolean isFilterEnabled(HttpServletRequest request, HttpServletResponse response)
  {
    if (!this._browserSniffer.isIe(request)) {
      return true;//[u][color=#ff0000]all browser can use NTLM now[/color][/u]
    }
  }
&lt;/code&gt;&lt;/pre&gt;&lt;strong&gt;&lt;span style="font-size: 32px;"&gt;How to change or replace or override or modify this NtlmFilter.class?&lt;/span&gt;&lt;/strong&gt;&lt;br&gt;&lt;br&gt;I proved to view this articles but I resolved nothing: &lt;br&gt;-Could try&amp;nbsp;&lt;a href="https://community.liferay.com/blogs/-/blogs/extending-liferay-osgi-modules"&gt;extending the Liferay module&lt;/a&gt;.&lt;br&gt;-Could try&amp;nbsp;&lt;a href="https://community.liferay.com/blogs/-/blogs/fixing-module-package-access-modifiers"&gt;exporting the packages&lt;/a&gt;&amp;nbsp;so they are visible, but since you can't replace a servlet filter using a service ranking, you'll need to have your own component that is active and disable the Liferay filter.&lt;br&gt;&lt;br&gt;So&amp;nbsp;&amp;nbsp;I've an idea: this class (NtlmFilter.class) it's part of&amp;nbsp;&amp;nbsp;Liferay CE Foundation - Liferay CE Security SSO - Impl.lpkg&amp;nbsp;&amp;nbsp;for override the lpkg there is a guide&amp;nbsp;&lt;a href="https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-1/overriding-lpkg-files"&gt;https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-1/overriding-lpkg-files&lt;/a&gt;&amp;nbsp;but: how decompile, modify, and re-compile a file jar?&lt;br&gt;&lt;br&gt;It's a correct way? There are others ways?&amp;nbsp;&amp;nbsp;Please tell me some method to resolve this problem. It's more important.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Lorenzo Leonori</dc:creator>
    <dc:date>2019-03-05T17:22:08Z</dc:date>
  </entry>
</feed>
