Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 73877

Summary: [Pserver] Nedd to handle E message on authentication failure
Product: [Eclipse Project] Platform Reporter: Robin Rosenberg <robin.rosenberg>
Component: CVSAssignee: Michael Valenta <Michael.Valenta>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M3   
Hardware: Other   
OS: Linux   
Whiteboard:

Description Robin Rosenberg CLA 2004-09-14 10:47:32 EDT
When trying to share an existing project it seems CVS doesn't find or ask for 
the password, but tries to connect anyway. I have selected pserver in the 
workspace preferences.
Comment 1 Michael Valenta CLA 2004-09-14 10:54:30 EDT
What CVS server verson are you using? Is there anything in the log file? If 
you set the password in the Properties dialog of the repository location in 
the CVS Repositories view, does it then work?
Comment 2 Robin Rosenberg CLA 2004-09-14 12:03:03 EDT
standard cvs 1.12.9 (with Linux and PAM on the server, but that shouldn't 
matter). 1.11.9 doesn't work either. 
 
I've snooped the connection now. It connects using pserver but sends a null 
passord. User is correct. 
 
In the password management view there are no connections and no way I can see 
to add one. cvs access from the command line and e.g. cervisia which is the cvs 
gui I usually use, but now I want the quickdiffs in eclipse. Apparently eclipse 
doesn't even try to use .cvspass, but reads 
~/eclipse-3.0/configuration/org.eclipse.core.runtime/.keyring 
 
 
Comment 3 Michael Valenta CLA 2004-09-14 12:14:53 EDT
In the cases where authentication fails, Eclipse should prompt. The only time 
this wouldn't happen is if the failure string returned by the server wasn't 
recognized by Eclipse. Could you perorm the steps outlines at the following 
URL to get a trace of the failed login attemp.

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-vcm-
home/docs/online/cvs_features2.0/cvs-faq.html#misc_0

Also, you should be able to specify a password for the connection in the CVS 
Repositories view. Open the view, select the location you are trying to 
connect to and choose Properties from the context menu. You can enter the 
password in the dialog and subsequently you should be able to connect.
Comment 4 Robin Rosenberg CLA 2004-09-14 19:35:05 EDT
These two lines appeared when I tried to share the project. 
E PAM authenticate error: Authentication failure 
I HATE YOU 
 
Setting the password in the CVS Repositories view worked. Thanks a lot. 
 
Comment 5 Michael Valenta CLA 2004-09-15 08:41:25 EDT
The problem is due to the E line which is not standard behavior. What is PAM 
anyway?
Comment 6 Robin Rosenberg CLA 2004-09-15 09:37:35 EDT
PAM=Pluggable Authentication Modules 
 
Comment 7 Michael Valenta CLA 2004-09-15 10:05:01 EDT
When authenticating, the pserver connection method should gather the E 
messages and then interpret the failure as usual. This will allow reprompting 
in this case.
Comment 8 Michael Valenta CLA 2004-10-04 11:42:55 EDT
Fix released to HEAD