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

Re: svn + Gnome Keyring doesn't always open a dialog for pw entry

From: Senthil Kumaran S <senthil_at_collab.net>
Date: Fri, 17 Apr 2009 19:04:41 +0530

Neels Janosch Hofmeyr wrote:
> If I were using some graphical frontend, the textmode-prompt would probably
> be invisible and things would appear to lock up.

In case of GUI frontend clients, they need to set
"SVN_AUTH_PARAM_GNOME_KEYRING_UNLOCK_PROMPT_FUNC" to a prompt function which
will prompt for the default gnome keyring password. If it gets one then gnome
keyring is unlocked and passwords are stored, if not then simply move to the
next provider.

The above constant is set as follows in our command line client:

<snip>
#ifdef SVN_HAVE_GNOME_KEYRING
  svn_auth_set_parameter(*ab, SVN_AUTH_PARAM_GNOME_KEYRING_UNLOCK_PROMPT_FUNC,
                         &svn_cmdline__auth_gnome_keyring_unlock_prompt);
#endif /* SVN_HAVE_GNOME_KEYRING */
</snip>

The above is the problem faced in subclipse, since in our java bindings we
don't provide a prompt function for the above value, it tries to open the GNOME
dialog box for getting the password for default keyring which fails!

Thank You.

-- 
Senthil Kumaran S
http://www.stylesen.org/
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1767971
Received on 2009-04-17 15:35:42 CEST

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

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