Lines 758-763
Link Here
|
758 |
monitor.beginTask(NLS.bind(CVSMessages.CVSRepositoryLocation_openingConnection, new String[] { getHost() }), 2); |
758 |
monitor.beginTask(NLS.bind(CVSMessages.CVSRepositoryLocation_openingConnection, new String[] { getHost() }), 2); |
759 |
ensureLocationCached(); |
759 |
ensureLocationCached(); |
760 |
boolean cacheNeedsUpdate = false; |
760 |
boolean cacheNeedsUpdate = false; |
|
|
761 |
// If the password is null the user probably didn't want to store it, but in case of sspi via extnt make sure that the user is prompted for it |
762 |
if ((password == null) && ("sspi".equals(method.getName()) || "ext".equals(method.getName()))) { |
763 |
previousAuthenticationFailed = true; |
764 |
} |
761 |
// If the previous connection failed, prompt before attempting to connect |
765 |
// If the previous connection failed, prompt before attempting to connect |
762 |
if (previousAuthenticationFailed) { |
766 |
if (previousAuthenticationFailed) { |
763 |
promptForUserInfo(null); |
767 |
promptForUserInfo(null); |
Lines 1231-1234
Link Here
|
1231 |
} |
1235 |
} |
1232 |
return false; |
1236 |
return false; |
1233 |
} |
1237 |
} |
|
|
1238 |
|
1239 |
public void inspectCVSException(CVSException cvsException) throws CVSAuthenticationException { |
1240 |
if ("sspi".equals(method.getName()) || "ext".equals(method.getName())) { |
1241 |
IStatus status = cvsException.getStatus(); |
1242 |
|
1243 |
if ((status.getMessage().indexOf("connect aborted") > -1) && (status.getMessage().indexOf("ed access to") > -1)) { |
1244 |
previousAuthenticationFailed = true; |
1245 |
|
1246 |
throw new CVSAuthenticationException(status.getMessage(), CVSAuthenticationException.RETRY, this, null); |
1247 |
} |
1248 |
} |
1249 |
} |
1234 |
} |
1250 |
} |