Return-Path: Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: (qmail 34906 invoked from network); 7 Jan 2011 00:43:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jan 2011 00:43:13 -0000 Received: (qmail 21401 invoked by uid 500); 7 Jan 2011 00:43:13 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 21349 invoked by uid 500); 7 Jan 2011 00:43:12 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 21342 invoked by uid 99); 7 Jan 2011 00:43:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jan 2011 00:43:12 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 74.125.82.47 is neither permitted nor denied by domain of lindeman@uw.edu) Received: from [74.125.82.47] (HELO mail-ww0-f47.google.com) (74.125.82.47) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jan 2011 00:43:04 +0000 Received: by wwb39 with SMTP id 39so19870047wwb.16 for ; Thu, 06 Jan 2011 16:42:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.154.136 with SMTP id h8mr679360wek.84.1294360964022; Thu, 06 Jan 2011 16:42:44 -0800 (PST) Received: by 10.216.66.211 with HTTP; Thu, 6 Jan 2011 16:42:44 -0800 (PST) Date: Thu, 6 Jan 2011 16:42:44 -0800 Message-ID: Subject: Force Subversion to grab information from Mac OS X keychain From: Kevin Lindeman To: users@subversion.apache.org Content-Type: multipart/alternative; boundary=0016e649c77078c13d049936e599 X-Virus-Checked: Checked by ClamAV on apache.org --0016e649c77078c13d049936e599 Content-Type: text/plain; charset=ISO-8859-1 Hi, I am running Subversion on Mac OS X. I noticed that once I login correctly for an https subversion URL, it will create a file in ~/.subversion/auth/ that seems to point Subversion to where it stores the authentication - in this case, it has the realmstring, username, "passtype", which is set to keychain. That makes it know that it should be using the keychain from then on to remember the password. I am trying to automate some subversion processes, so I launch subversion, give it arguments arguments, and even set some environment variables (such as SVN_SSH, which allows me to tell SVN how to launch ssh, ie: with a special username). Unfortunately, my automation has no way to intercept the password prompt for an http url. I can intercept the SSH login prompt for svn+ssh by setting the SSH_ASKPASS environment variable. I already have been automating the process of adding the password to the keychain (using the realmstring format, so svn can find it once it knows to find it in the keychain). But it looks like I am missing that critical file in ~/.subversion/auth/ that has the "passtype" set to keychain. Is there a way I can force SVN to always use that as the passtype, either with an argument or an environment variable? If not, is it possible to force the creation of that file with some magic SVN command? I thought of just running an svn info with my login info as arguments since I noticed that file is created on a successful login, but unfortunately many servers don't request authorization for info requests so that doesn't work. I don't think I will be able to solve this by using a setting in the subversion config file. Thanks, - Kevin --0016e649c77078c13d049936e599 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,

I am running Subversion on Mac OS X. I no= ticed that once I login correctly for an https subversion URL, it will crea= te a file in ~/.subversion/auth/ that seems to point Subversion to where it= stores the authentication - in this case, it has the realmstring, username= , "passtype", which is set to keychain. That makes it know that i= t should be using the keychain from then on to remember the password.

I am trying to automate some subversion processes, so I= launch subversion, give it arguments arguments, and even set some environm= ent variables (such as SVN_SSH, which allows me to tell SVN how to launch s= sh, ie: with a special username).

Unfortunately, my automation has no way to intercept th= e password prompt for an http url. I can intercept the SSH login prompt for= svn+ssh by setting the SSH_ASKPASS environment variable. I already have be= en automating the process of adding the password to the keychain (using the= realmstring format, so svn can find it once it knows to find it in the key= chain).

But it looks like I am missing that critical file in ~/= .subversion/auth/ that has the "passtype" set to keychain. Is the= re a way I can force SVN to always use that as the passtype, either with an= argument or an environment variable?

If not, is it possible to force the creation of that fi= le with some magic SVN command? I thought of just running an svn info with = my login info as arguments since I noticed that file is created on a succes= sful login, but unfortunately many servers don't request authorization = for info requests so that doesn't work.

I don't think I will be able to solve this by using= a setting in the subversion config file.

Thanks,<= /div>
- Kevin
--0016e649c77078c13d049936e599--