Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6628661

NTLM-authentication doesn't work with non-ASCII letters

    • b25
    • x86
    • windows_xp
    • Not verified

        FULL PRODUCT VERSION :
        java version "1.6.0_02"
        Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
        Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing)


        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows XP [Version 5.1.2600]

        A DESCRIPTION OF THE PROBLEM :
        The NTLM-authentication in HTTPUrlConnection doesn't work if the windows password contains non-ASCII letters.
         
        Reason: "NTLMAuthSequence.c" contains the function "Java_sun_net_www_protocol_http_NTLMAuthSequence_getCredentialsHandle"
        that encodes the password in UTF-8 and sends it to the Windows API function "AcquireCredentialsHandleA" with the flag
        "SEC_WINNT_AUTH_IDENTITY_ANSI"
        And so a "ä" (ä) converts to c3 a4. But e4 is expected -> ä in ANSI




        REPRODUCIBILITY :
        This bug can be reproduced always.

        CUSTOMER SUBMITTED WORKAROUND :
        Password with ASCII letters

              chegar Chris Hegarty
              rlewis Roger Lewis (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: