5

I'm behind an authenticating proxy and need to access a remote SVN repo over https using git svn.

The proxy is defined in my ~/.subversion/servers file.

When I start with git svn fetch, I get an error message:

RA layer request failed: OPTIONS of 'http://url/to/repos/branches/experimental'

Ok. No problem. Let's write down the credentials to ~/.subversion/servers → everything works fine.

However, I'm a little bit uncomfortable having my domain credentials stored in a plain text file on my hard disk.

Are there other ways (especially interactive ones) to authenticate at my proxy when using git svn over https?

Info: The PC where this should be accomplished is in a Windows domain and authentication is done with NTLM.

Community
  • 1
  • 1
eckes
  • 64,417
  • 29
  • 168
  • 201
  • 1
    if your pc joined domain, does your proxy server support Kerbose or NTLM authentication? – Ted Shaw Aug 23 '12 at 01:28
  • Good question. It's NTLM. Adding that to my question! – eckes Aug 23 '12 at 05:18
  • 1
    try http://ntlmaps.sourceforge.net/ ,It supports:stores user's credentials in config file or requests password from a console during the start time – Ted Shaw Aug 23 '12 at 05:30

3 Answers3

2

You can protect ~/.subversion/servers file by making sure you're the only one (and root) who can access it.

% chmod 600 ~/.subversion/servers

Another way is to use http_proxy environment variable. But you cannot use @ (and some other shell special chars) in your password.

% export http_proxy=http://user:pass@proxy:port
vjangus
  • 3,464
  • 1
  • 20
  • 13
1

if im not mistaken ntlmaps can also pull the login form windows itself as you have joind the domain, defenetly worth a try

anyway if that doused work you can make ntlmaps ask for a password on start time

Ntmlaps website

borrel
  • 911
  • 9
  • 17
  • This is exactly what I was looking for! Currently, I'm on holiday, I'll check it as soon as I'm working in the domain again. But if `ntlmaps` keeps it's promises, this is what I needed! Thank you! – eckes Aug 23 '12 at 09:53
  • update: tested `ntlmaps` and it proves that this is exactly what I was searching for. Thanks again. – eckes Sep 14 '12 at 12:50
0

http://wiki.apache.org/subversion/EncryptedPasswordStorage mentions alternatives to file storage of passwords on mac, pc, linux