[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: MacOS: SVN keychain and automated tasks

From: Christian Schaffner <chris01_at_users.sourceforge.net>
Date: 2006-10-17 02:06:36 CEST

On 16.10.2006, at 17:22, Christopher Elkins wrote:

> On Oct 16, 2006, at 2:55 PM, Christian Schaffner wrote:
>
>>> On 25.09.2006, at 11:31, Felix Ritter wrote:
>>>
>>>> Hi Mac users,
>>>>
>>>> the new keychain support in subversion 1.4 is giving me a hard
>>>> time. I've some automated builds using svn that are started via
>>>> cron deamon (Mac OS 10.4.7). Since the cron jobs runs as a user
>>>> who never actually unlocked the keychain tool (e.g. by login
>>>> into a MacOS desktop session), the svn checkout or update stops
>>>> with prompting the user for a keyword to unlock the keychain
>>>> (the repository is accessed via https). Thus the whole build
>>>> process hangs. Any advice on how to use svn on MacOS in
>>>> automated processes like this would be greatly appreciated.
>>>>
>>>> Cheers,
>>>>
>>>> Felix
>>
>> I am the author of the Fink svn packages, which I updated to svn
>> 1.4.0 recently. I am having exactly the same problem, since we run
>> an automated script that updates our internal test web site every
>> time we check something into svn. The user of the script is 'www'
>> which doesn't have a keychain. Did you find a solution to that
>> problem? Anybody else?
>
> One workaround, although somewhat inconvenient, is to use a 1.3
> client to authenticate for the first time (thereby caching the
> credentials in plain-text) and then use a 1.4 client for further
> access (which will use the cached credentials as-is).

Reading through the commit logs and mailing lists (there doesn't seem
to be too much documentation about this feature) it looks like adding
'--non-interactive' to svn commands should disable user interaction
with keychain too.

Read about the keychain API at:
http://developer.apple.com/documentation/Security/Reference/
keychainservices/Reference/reference.html#//apple_ref/c/func/
SecKeychainSetUserInteractionAllowed

Did you try that? (I can't try right now...)

Christian.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 17 02:07:26 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.