Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1488

Built-in NTLM engine fails to authenticate against Squids ntlm_fake_auth, JCIFS doesn't

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 4.3.3
    • None
    • HttpClient (classic)
    • None
    • Squid 4.3.3
      JCIFS 1.3.17

    Description

      I used the provided ClientProxyAuthentication example <https://hc.apache.org/httpcomponents-client-4.2.x/httpclient/examples/org/apache/http/examples/client/ClientProxyAuthentication.java> to authenticate with NTML against a local Squid instance, using its ntlm_fake_auth helper (only does the handshake, all credentials are considered valid).

      Unfortunately, this fails with the NTLM engine built into version 4.3.3 (also tested with 4.2.1: same result). Following the guidance of <http://hc.apache.org/httpcomponents-client-ga/ntlm.html>, I got it working with JCIFS. Is Squid not implementing NTLM as expected by HttpComponents?

      I added two Wireshark captures to show the differences in handshake behaviour between the built-in and JCIFS engines. Hope that helps.

      Attachments

        1. builtin.pcap.gz
          2 kB
          Andreas Sewe
        2. jcfis.pcap.gz
          3 kB
          Andreas Sewe
        3. builtin.txt
          45 kB
          Andreas Sewe
        4. jcifs.txt
          39 kB
          Andreas Sewe

        Activity

          People

            Unassigned Unassigned
            sewe Andreas Sewe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: