【发布时间】:2011-07-01 00:56:31
【问题描述】:
我正在使用命令行 svn 客户端(版本 1.6.12,来自 Ubuntu 存储库),我似乎无法让它缓存我的用户凭据。我正在尝试访问 https svn 存储库(类似于https://subversion.FAKE.com/PROJECT)。我的这个 repo 的用户名与我的本地用户名不同。
这是 ~/.subversion/config 的 auth 部分
[auth]
### Set password stores used by Subversion. They should be
### delimited by spaces or commas. The order of values determines
### the order in which password stores are used.
### Valid password stores:
### gnome-keyring (Unix-like systems)
### kwallet (Unix-like systems)
### keychain (Mac OS X)
### windows-cryptoapi (Windows)
# password-stores = gnome-keyring
###
### The rest of this section in this file has been deprecated.
### Both 'store-passwords' and 'store-auth-creds' can now be
### specified in the 'servers' file in your config directory.
### Anything specified in this section is overridden by settings
### specified in the 'servers' file.
###
### Set store-passwords to 'no' to avoid storing passwords in the
### auth/ area of your config directory. It defaults to 'yes',
### but Subversion will never save your password to disk in
### plaintext unless you tell it to (see the 'servers' file).
### Note that this option only prevents saving of *new* passwords;
### it doesn't invalidate existing passwords. (To do that, remove
### the cache files by hand as described in the Subversion book.)
store-passwords = yes
### Set store-auth-creds to 'no' to avoid storing any subversion
### credentials in the auth/ area of your config directory.
### It defaults to 'yes'. Note that this option only prevents
### saving of *new* credentials; it doesn't invalidate existing
### caches. (To do that, remove the cache files by hand.)
store-auth-creds = yes
这里是 ~/.subversion/servers 的全局部分
[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
# http-compression = no
# http-auth-types = basic;digest;negotiate
# No http-timeout, so just use the builtin default.
# No neon-debug-mask, so neon debugging is disabled.
# ssl-authority-files = /path/to/CAcert.pem;/path/to/CAcert2.pem
#
# Password / passphrase caching parameters:
store-passwords = yes
store-plaintext-passwords = no
store-auth-creds = yes
# store-ssl-client-cert-pp = no
# store-ssl-client-cert-pp-plaintext = no
我所做的唯一更改是明确设置一些与存储密码相关的选项。我尝试设置 password-stores = gnome-keyring 无效。此外,我删除了 ~/.subversion/auth (根据其他一些线程),它仍然没有被 svn 客户端重新创建。
有什么建议吗?如何强制 SVN 存储我的凭据(在 ~/.subversion/auth 或使用 gnome-keyring,我不在乎)。
【问题讨论】:
标签: svn credentials