tags:

views:

679

answers:

3

On Mac OS X Leopard - when I try and access a remote repository from Terminal it always asks for: 1. Password 2. Username 3. Password (again)

with the message: "Authentication realm: http://svn.myserver.com:80 Subversion"

I've checked and my credentials are being stored in Keychain and SVN has access to them. Why won't it use them?

+1  A: 

By default, svn (and most Unix apps) pass your local username as the username for remote login. I suspect that your account name on the Subversion server is different from your local account name. Thus, authentication fails the first time you enter your Subversion password, and svn, like most Unix apps then asks for the remote username and password and attempts to reauthenticate. You can pass your remote user name using the --username option to svn:

svn --username [remote_username] ...
Barry Wark
Subversion <= 1.5 supported the OSX keychain and Windows CryptoAPI. Subversion 1.6 adds Gnome's an Kde's keystore to that list
Bert Huijben
Thanks for the info! I'll correct my answer.
Barry Wark
+1  A: 

Can you provide more information? Keychain caching of passwords wasn't added until Subversion 1.4.x. Do you get any error? We'll need more information to help.

Jeremy Whitlock
+1  A: 

I solved this problem by just removing the corresponding authentication file in ~/.subversion/auth/svn.simple (find the right one with with grep as they're named funny). Then after the next svn up in that repository (where svn asked fro username and password) it is now working correctly.