hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HTTPCLIENT-1377) NTCredentials for Basic Authentication uses slash instead of backslash
Date Wed, 19 Jun 2013 19:43:20 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Kalnichevski resolved HTTPCLIENT-1377.
-------------------------------------------

       Resolution: Fixed
    Fix Version/s: 4.3 Beta3
                   4.2.6

Fixed in SVN trunk and 4.2.x branch

Oleg
                
> NTCredentials for Basic Authentication uses slash instead of backslash  
> ------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1377
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1377
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.2.5
>            Reporter: Jason Millard
>              Labels: Authentication, Basic, NTCredentials
>             Fix For: 4.2.6, 4.3 Beta3
>
>
> Basic authentication fails when using NTCredentials because a slash is used instead of
a backslash for the DOMAIN USERNAME separator.
>    httpClient.getCredentialsProvider().setCredentials(
>       new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT),
>       new NTCredentials("USERNAME", "PASSWORD", "", "DOMAIN"));
> produces USERNAME/PASSWORD
> Tested to work using:
>    httpClient.getCredentialsProvider().setCredentials(
>       new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT),
>       new UsernamePasswordCredentials("DOMAIN\\USERNAME", "PASSWORD"));
> According to:
>    http://msdn.microsoft.com/en-us/library/windows/desktop/aa380525%28v=vs.85%29.aspx
> Down-Level Logon Name
>    The down-level logon name format is used to specify a domain and a user account in
that domain, for example, DOMAIN\UserName. The following table summarizes the parts of a down-level
logon name.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message