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

Use correct service principle name (HTTP/hostname) for WinHttpClients

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.4 Alpha1
    • 4.4 Final
    • HttpClient (classic)
    • None
    • Windows

    Description

      If we use WinHttpClients as is, HTTP Negotiate authentication won't work because the ticket being generated always uses 'null' as the service principle name (SPN).

      According to the informational RFC 4559, the service principle name (SPN) should be in the following form: HTTP/hostname.

      Users can work around it ourselves if we did something similar to http://stackoverflow.com/a/22865583 but it would be great if the sample code works out of the box

      Attachments

        1. HTTPCLIENT-1541.patch.diff
          4 kB
          Ka-Lok Fung
        2. HTTPCLIENT-1541.patch.v1.1.diff
          4 kB
          Ka-Lok Fung

        Activity

          People

            Unassigned Unassigned
            kfung Ka-Lok Fung
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: