<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 11/08/2012 09:07 AM, Max Rydahl
      Andersen wrote:<br>
    </div>
    <blockquote
      cite="mid:269D1855-3784-460F-9C50-D3E961033B25@redhat.com"
      type="cite">
      <blockquote type="cite">
        <blockquote type="cite">
          <pre wrap="">The Apache HttpClient doesn't support NTLMv2 authentication.
</pre>
        </blockquote>
        <pre wrap="">
According to this <a class="moz-txt-link-freetext" href="http://hc.apache.org/httpcomponents-client-ga/ntlm.html">http://hc.apache.org/httpcomponents-client-ga/ntlm.html</a> it supports NTLMv2 in v4.1 and up.
</pre>
      </blockquote>
      <pre wrap="">
no it doesn't - it requires using the LGPL library named JCIFS thus that page is a possible example on how to configure it.</pre>
    </blockquote>
    <br>
    The text says something different. It says that Apache HttpClient
    supports it out-of-the-box, without JCIFS: "
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    4.1 supports NTLMv1 and NTLMv2 authentication protocols out of the
    box using a custom authentication engine<span style="color: rgb(0,
      0, 0); font-family: Verdana, Helvetica, Arial, sans-serif;
      font-size: small; font-style: normal; font-variant: normal;
      font-weight: normal; letter-spacing: normal; line-height:
      16.899999618530273px; orphans: 2; text-align: start; text-indent:
      0px; text-transform: none; white-space: normal; widows: 2;
      word-spacing: 0px; -webkit-text-size-adjust: auto;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255); display: inline !important; float: none; ">".</span> It says
    that the out-of-the-box engine is not very mature and has issue and
    that you can use JCIFS (LGPL) instead of the default engine. JCIFS
    was not bundled because it's LGPL and they're working towards
    solving the legal hurdles of bundling it.<br>
    <br>
    <blockquote
      cite="mid:269D1855-3784-460F-9C50-D3E961033B25@redhat.com"
      type="cite">
      <pre wrap="">

/max

</pre>
      <blockquote type="cite">
        <pre wrap="">
</pre>
        <blockquote type="cite">
          <pre wrap="">
Snjeza

</pre>
          <blockquote type="cite">
            <blockquote type="cite">
              <pre wrap="">Snjeza

On 11/7/2012 4:40 PM, Andr&eacute; Dietisheim wrote:
</pre>
              <blockquote type="cite">
                <pre wrap="">Hi Snjezana

good point! 
I already found out about this when looking at different Eclipse plugins. EGit does it, Scout and apparently ECF, too. Quite a mess to be honest: A bad API in the jdk UrlConnection, a poor implementation in org.eclipse.ui and here we are: plenty of plugins overriding the Authenticator with unpredictable results.

Cheers
Andr&eacute;

On 11/07/2012 04:21 PM, Snjezana Peco wrote:
</pre>
                <blockquote type="cite">
                  <pre wrap="">I think you can disable it by setting your own authenticator.
You can check how ECF sets its authenticator using the org.eclipse.ecf.provider.filetransfer.retrieve.UrlConnectionRetrieveFileTransfer.UrlConnectionAuthenticator class and the Authenticator.setDefault method.

Snjeza

On 11/6/2012 3:12 PM, Andr&eacute; Dietisheim wrote:
</pre>
                  <blockquote type="cite">
                    <pre wrap="">Hi

In OpenShift tooling I have a dialog that allows you to create/edit connections to OpenShift. Behind the scenes I'm using HttpUrlConnection to talk to the OpenShift REST service. If I provide invalid user-credentials Eclipse pops up a dialog for the user to provide username and password on top of my dialog. 

<a class="moz-txt-link-freetext" href="https://issues.jboss.org/browse/JBIDE-12999">https://issues.jboss.org/browse/JBIDE-12999</a>

It turns out that Eclipse is registering it's very own Authenticator in HttpUrlConnection which is invoking the Eclipse credentials dialog if the Http response is 401.
Does anybody know how to disable this in Eclipse? I'm pretty stuck, I'd appreciate any input.

Thanks!
Andr&eacute;





_______________________________________________
jbosstools-dev mailing list

<a class="moz-txt-link-abbreviated" href="mailto:jbosstools-dev@lists.jboss.org">jbosstools-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jbosstools-dev">https://lists.jboss.org/mailman/listinfo/jbosstools-dev</a>
</pre>
                  </blockquote>
                  <pre wrap="">
</pre>
                </blockquote>
                <pre wrap="">


_______________________________________________
jbosstools-dev mailing list

<a class="moz-txt-link-abbreviated" href="mailto:jbosstools-dev@lists.jboss.org">jbosstools-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jbosstools-dev">https://lists.jboss.org/mailman/listinfo/jbosstools-dev</a>
</pre>
              </blockquote>
              <pre wrap="">
</pre>
            </blockquote>
            <pre wrap="">


_______________________________________________
jbosstools-dev mailing list

<a class="moz-txt-link-abbreviated" href="mailto:jbosstools-dev@lists.jboss.org">jbosstools-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jbosstools-dev">https://lists.jboss.org/mailman/listinfo/jbosstools-dev</a>
</pre>
          </blockquote>
          <pre wrap="">


_______________________________________________
jbosstools-dev mailing list

<a class="moz-txt-link-abbreviated" href="mailto:jbosstools-dev@lists.jboss.org">jbosstools-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jbosstools-dev">https://lists.jboss.org/mailman/listinfo/jbosstools-dev</a>
</pre>
        </blockquote>
        <pre wrap="">
_______________________________________________
jbosstools-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:jbosstools-dev@lists.jboss.org">jbosstools-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jbosstools-dev">https://lists.jboss.org/mailman/listinfo/jbosstools-dev</a>
</pre>
      </blockquote>
      <pre wrap="">
</pre>
    </blockquote>
    <br>
  </body>
</html>