[ http://jira.codehaus.org/browse/XFIRE-878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tomasz Sztelak resolved XFIRE-878. ---------------------------------- Resolution: Fixed Fix Version/s: 1.2.5 Fixed in svn > NTML authentication credentials reversed > ---------------------------------------- > > Key: XFIRE-878 > URL: http://jira.codehaus.org/browse/XFIRE-878 > Project: XFire > Issue Type: Bug > Affects Versions: 1.2.4 > Reporter: Rich Aston > Assigned To: Tomasz Sztelak > Fix For: 1.2.5 > > > NT credentials should be in this format: > domain\username > In CommonsHttpMessageSender the getCredentials() method attempts to split the > domain from the username using the following code: > int domainIndex = username.indexOf('\\'); > ... > return new NTCredentials(username.substring(0, domainIndex), > password,"localhost", username.substring(domainIndex+1)); > However, the constructor for NTCredentials is: > NTCredentials(String userName, String password, String host, String > domain) > username.substring(0, domainIndex) actually returns the first part of the > credentials (the domain) yet it is passed into the contructor as the username. > The correct code is: > return new NTCredentials(username.substring(domainIndex+1), password, > "localhost", username.substring(0, domainIndex)); -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email