Thursday, March 29, 2007

subversion through a proxy

In order to use subversion (svn) behind my corporate firewall, I was able to edit the .subversion/servers file to point subversion at my locally running ntlmaps proxy. You may remember I mentioned ntlmaps as a proxy for yum late last year (http://cacasodo.blogspot.com/2006/09/yum-through-proxy.html).

Our shop is Microsoft-based, so I edited the following lines configured in the "~/.subversion/servers" file. The generic example is:
[global]
# http-proxy-exceptions = *.exception.com, www.internal-site.org
# http-proxy-host = defaultproxy.whatever.com
# http-proxy-port = 7000
# http-proxy-username = defaultusername
# http-proxy-password = defaultpassword


In my world, the first two lines point to the local ntlmaps proxy and the last two are used for user credentials:
http-proxy-host = localhost
http-proxy-port = 5865
http-proxy-username = (NT username)
http-proxy-password = (NT user password)


Neato!

No comments:

Feel free to drop me a line or ask me a question.