Fix Eclipse svn, always asking for login and password. Clear keyring or cache

By neokrates, written on May 27, 2010

howto

  • Join date: 11-30-99
  • Posts: 224
View Counter:
  • 14,271 views
Rate it
Ad
Poll
  • Your favorite Java IDE is?

    View Results

    Loading ... Loading ...
Feeds:
  • bodytext bodytext bodytext

Sometimes before you entered correct credentials. Now, you need to enter different credentials. And you can, but eclipse and svn always forget them.

Software:

✔ Eclipse Galileo (3.5.2)

✔ SVN 1.6.5

✔ Linux or Windows

✔ TortoiseSVN

✔ Command line Svn

Should also work for:

✔ all Eclipse and SVN combinations which rely on keyring or cache.
Windows will have somewhat different paths

1

How the password was stored

There are two SVN providers, each store authentication info different way.
To check, which one you have, go:
window->preferences then type “svn” and select svn Connector tab. It is either SVNKit or JavaHL.

2

Remove .keyring

Here, we just remove the eclipse keyring. You might want to make a backup of it, just in case.

2.1

.keyring in ~/.eclipse

Presume, your Eclipse home is in default location (~/.eclipse):

$ cd ~/.eclipse
$ find .|grep key
./configuration/org.eclipse.core.runtime/.keyring

2.2

.keyring in eclipse/configuration

The keyring might also be located in eclipse configuration as shown below:

>locate .keyring
C:\programs\dev\eclipse-cpp-galileo-subclipse\configuration\org.eclipse.core.runtime\.keyring

 
In case you have locate installed on your system (locate32 is good windows version) you want to view where your .keyring resides.

Close eclipse, remove what you have found like:

$ rm /my/eclipse/stored/it/here/configuration/org.eclipse.core.runtime/.keyring

3

Remove eclipse cash

Also, don’t forget to archive just in case.

Windows: %APPDATA%\Subversion\auth
Unix and Linux: ~/.subversion/auth

There, find and delete the stored password info.

http://www.thinkplexx.com/learn/howto/ide/eclipse/fix-eclipse-svn-always-asking-for-login-and-password-clear-keyring-or-cache

⚠ For TortoiseSVN users, step 3 can also be done by pressing settings->["Saved data" TAB]->["Authentication data Clear" BUTTON] button. (See Illustration )

4

Validate

Now, during the first SVN operation, Eclipse will ask you about your credentials once again. This time both pass and login fields are empty, as eclipse doesn’t have any previous data.

That’s it. Have fun :-)

Be Sociable, Share!
 
Does that help to solve your problem?
VN:F [1.8.5_1061]
Rating: +5 (from 53 votes)
29 votes 'YES'  24 votes 'NO'

LEARN MORE (amazon bookstore)

TAGS

SOCIAL
Be Sociable, Share!

INCOMING SEARCH TERMS


5 Responses to “Fix Eclipse svn, always asking for login and password. Clear keyring or cache”

  1. Urs Locher says:

    thanks a bundle, this was exactly what I was looking for.

  2. Vrodriguezg says:

    Awesome. Ty m8.

  3. Will Stevens says:

    This did it.  Thank you!

  4. Jakar says:

    that’s work for me, thanks :)

Leave a Reply