You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Giampiero Cardillo (JIRA)" <ax...@ws.apache.org> on 2005/08/19 15:39:55 UTC
[jira] Created: (AXIS-2182) Proxy credentials provided through MessageContext does not works with Proxy ISA
Proxy credentials provided through MessageContext does not works with Proxy ISA
-------------------------------------------------------------------------------
Key: AXIS-2182
URL: http://issues.apache.org/jira/browse/AXIS-2182
Project: Apache Axis
Type: Bug
Components: Basic Architecture
Versions: current (nightly)
Environment: Microsoft LAN with proxy ISA Server
Reporter: Giampiero Cardillo
In class org.apache.axis.transport.http.CommonsHTTPSender the method
private void addContextInfo(HttpMethodBase method,
HttpClient httpClient,
MessageContext msgContext,
URL tmpURL)
has a bug while setting proxy credentials for NTLM authentication.
The code below reports the error and his correction.
if (userID != null) {
Credentials proxyCred =
new UsernamePasswordCredentials(userID,
passwd);
// if the username is in the form "user\domain"
// then use NTCredentials instead.
int domainIndex = userID.indexOf("\\");
if (domainIndex > 0) {
String domain = userID.substring(0, domainIndex);
if (userID.length() > domainIndex + 1) {
String user = userID.substring(domainIndex + 1);
proxyCred = new NTCredentials(user,
passwd,
NetworkUtils.getLocalHostname(), domain);
}
}
// BUG: the method setCredentials doesn't relate to proxy authentication
httpClient.getState().setCredentials(AuthScope.ANY, proxyCred);
// CORRECTION: httpClient.getState().setProxyCredentials(AuthScope.ANY, proxyCred);
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Resolved: (AXIS-2182) Proxy credentials provided through MessageContext does not works with Proxy ISA
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2182?page=all ]
Davanum Srinivas resolved AXIS-2182:
------------------------------------
Resolution: Invalid
there is another spot where proxy credentials are set....set the https.proxyUser and https.proxyPassword and they will be picked up.
-- dims
> Proxy credentials provided through MessageContext does not works with Proxy ISA
> -------------------------------------------------------------------------------
>
> Key: AXIS-2182
> URL: http://issues.apache.org/jira/browse/AXIS-2182
> Project: Apache Axis
> Type: Bug
> Components: Basic Architecture
> Versions: current (nightly)
> Environment: Microsoft LAN with proxy ISA Server
> Reporter: Giampiero Cardillo
>
> In class org.apache.axis.transport.http.CommonsHTTPSender the method
> private void addContextInfo(HttpMethodBase method,
> HttpClient httpClient,
> MessageContext msgContext,
> URL tmpURL)
> has a bug while setting proxy credentials for NTLM authentication.
> The code below reports the error and his correction.
> if (userID != null) {
> Credentials proxyCred =
> new UsernamePasswordCredentials(userID,
> passwd);
> // if the username is in the form "user\domain"
> // then use NTCredentials instead.
> int domainIndex = userID.indexOf("\\");
> if (domainIndex > 0) {
> String domain = userID.substring(0, domainIndex);
> if (userID.length() > domainIndex + 1) {
> String user = userID.substring(domainIndex + 1);
> proxyCred = new NTCredentials(user,
> passwd,
> NetworkUtils.getLocalHostname(), domain);
> }
> }
> // BUG: the method setCredentials doesn't relate to proxy authentication
> httpClient.getState().setCredentials(AuthScope.ANY, proxyCred);
> // CORRECTION: httpClient.getState().setProxyCredentials(AuthScope.ANY, proxyCred);
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira