Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to adjust credentials used for Subversion in Eclipse Galileo

 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We're using Eclipse Galileo and Subversion on PCs running Windows 7 (Professional?).

When a PC is given to a different user, they log into the machine using their own credentials, but when they use Eclipse to commit changes to the source repository, it is done as the machine's original owner. In other words, Subversion shows the file was committed by the machine's original owner, rather than the user that actually performed the operation.

I've found the following directory on the machine:

C:\Documents and Settings\<user name>\Application Data\Subversion\auth\

which contains what looks like authentication information. However, if we remove the files, the commit is still recorded as being performed by the machine's original owner. This information must be maintained some place we haven't been able to find.

Is there a way to get Eclipse/Subversion to forget it's previous credentials and allow the user to enter new ones?

Thanks,
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe that the subclipse plugin to Eclipse stores the Subversion account information in the workspace, in some subdirectory under the .metadata directory (though I am having a hard time finding it). Are both users using the same workspace? If so, they should not be - each should have his/her own workspace.
 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, the computer was a hand-me-down from the original user (who is no longer with the company) to a new user (who has just joined). I would guess they are just using the same workspace - although I found it surprising that the Eclipse workspace was not user-specific.

I'll have the user create a new workspace and see what happens.

Thanks for the pointer!
 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm, I looked all through the files under the .metadata directory of the workspace, and nothing contains the user's credentials. I've asked the user to create a new workspace anyway and we'll see what happens. Doesn't appear to be anything I can just delete though.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the SVN repo browser can't you just enter new credentials?
 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been all over that tab, and can't see any way to view/edit the user credentials. Is it there and I'm just not looking in the correct place?

Thanks,
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't have an Eclipse set up for SVN where I am now--but I know that I've been able to right-click the repo and change my credentials, because they frequently changed the password out from under me. I might be able to check in an hour or two.
 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, David. I would really appreciate that. I've done all the normal things (right clicking on things, looking at properties, etc.), but can't find any way to change these.

Thanks,
 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, for those following along, creating a new workspace allowed the user to enter Subversion credentials, and now commit operations are properly attributed.

I would still like to know if there's a way to achieve this without having to create a new workspace, but at least we have a rather heavy-handed way to accomplish what we want.

Thanks,
 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David (or anyone for that matter): Were you able to see where you can change the SNV credentials from within Eclipse?
It sure would be nice if we didn't have to re-create the workspace.

Thanks,
 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, we found a way to work around this. It still seems strange that there appears to be no way to change the credentials used by Eclipse to work with Subversion.

If you open the Subversion Repository Exploring perspective you can remove the existing entry and add a new one. When you add a new one, you are prompted for your credentials.

One caveat though: You must check out your project from the new repository - so you have to close/delete your current project(s), and check them out fresh once you have the new SVN repository configured. I couldn't find any way to get an existing project to "link up" with a new SVN repository entry.

Anyway, I hope this helps someone.

 
Jose Daquila
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to remove o rename the file: ".keyring" located in "/eclipse/configuration/org.eclipse.core.runtime"
After that, when you syncronize in eclipse, you need to enter your pass.
Good luck!
 
Hamed Asghari
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the SVN Repository Exploring perspective, right click on the desired repository location and select "Location Properties...". You will be able to change user credentials there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic