Re: [Pysvn-discuss] Pysvn reset my svn.simple auth settings
pysvn is the pythonic interface to subversion
Brought to you by:
barry-scott
|
From: Barry <ba...@ba...> - 2022-10-11 07:51:50
|
> On 10 Oct 2022, at 21:16, cra...@li... wrote: > > > Hi all, recently I configured my svn to use gnupg password store introduced by this link https://www.dhiller.de/2018/10/04/svn-gpg-agent.html > It worked correctly, after I `svn up my_repo`, I got correct info stored in the corresponding `svn.simple` directory: > ```shell > $ cat ~/.subversion/auth/svn.simple/f127ed5a5027eb2fe2a8c242cdf24487 > K 8 > passtype > V 9 > gpg-agent > K 15 > svn:realmstring > V 67 > https://*****************:443 Authenticate your CORP account. > K 8 > username > V 9 > ************** > END > ``` > But if I use pysvn to do something on the repo, I got the `svn.simple` directory reset by pysvn > ```python > import pysvn > client = pysvn.Client() > client.callback_get_login = lambda *_: (True, ‘my_username’, ‘my_password’, True) > client.update(‘my_repo’) > ``` > Then the `svn.simple` is reset to something like below > ```shell > $ cat ~/.subversion/auth/svn.simple/f127ed5a5027eb2fe2a8c242cdf24487 > K 15 > svn:realmstring > V 67 > https://*****************:443 Authenticate your CORP account. > K 8 > username > V 9 > ************** > END > ``` > No plain text password is stored, nor password store is used, and if I `svn up my_repo`, I got prompted to input password again, which is annoying > Even I configure svn to not use password store, and just store plain text password, pysvn will also reset it to the content above. > If I do not set `callback_get_login`, I got `client.update` failed with authentication failure exception. > > So how should I configure pysvn to use password store, or at least not let it mess up the `svn.simple` dir? Subversion removed the ability to store plain text passwords. I wonder if you are hitting this issue. What os, python, svn and pysvn versions are you using? Barry > > Sincerely > > This is my first-time sending to a mailing list, if I do anything wrong, you are welcome to point it out. > _______________________________________________ > Pysvn-discuss mailing list > Pys...@li... > https://lists.sourceforge.net/lists/listinfo/pysvn-discuss |