Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-04-10 22:40:30 -0400
committerspingel2009-04-10 22:40:30 -0400
commit986548a2044687000c9b8907d71781e4dd54ddce (patch)
tree524596dff3e81ff5c71a5bf85e39f3305d4c443b
parent8dab4848ba2f7cae12738521283351e7431f8c33 (diff)
downloadorg.eclipse.mylyn.tasks-986548a2044687000c9b8907d71781e4dd54ddce.tar.gz
org.eclipse.mylyn.tasks-986548a2044687000c9b8907d71781e4dd54ddce.tar.xz
org.eclipse.mylyn.tasks-986548a2044687000c9b8907d71781e4dd54ddce.zip
RESOLVED - bug 269323: [regression] authentification fails with mod_auth_sspi or NTLMR_3_1_1e_3_4_m_3_1_x
https://bugs.eclipse.org/bugs/show_bug.cgi?id=269323
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracXmlRpcClient.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracXmlRpcClient.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracXmlRpcClient.java
index 627462b79..ce4499de5 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracXmlRpcClient.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracXmlRpcClient.java
@@ -34,7 +34,6 @@ import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpMethod;
import org.apache.commons.httpclient.HttpState;
import org.apache.commons.httpclient.HttpStatus;
-import org.apache.commons.httpclient.UsernamePasswordCredentials;
import org.apache.commons.httpclient.auth.AuthScheme;
import org.apache.commons.httpclient.auth.AuthScope;
import org.apache.commons.httpclient.auth.BasicScheme;
@@ -265,7 +264,7 @@ public class TracXmlRpcClient extends AbstractTracClient implements ITracWikiCli
AuthenticationCredentials credentials = location.getCredentials(AuthenticationType.REPOSITORY);
config.setServerURL(getXmlRpcUrl(credentials));
if (credentialsValid(credentials)) {
- Credentials creds = new UsernamePasswordCredentials(credentials.getUserName(), credentials.getPassword());
+ Credentials creds = WebUtil.getHttpClientCredentials(credentials, WebUtil.getHost(location.getUrl()));
httpClient.getState().setCredentials(authScope, creds);
} else {
httpClient.getState().clearCredentials();

Back to the top