如何使Subversion重置存储的密​​码/用户并记住我的身份验证凭据?


14

背景:我以前在全新安装中一切正常。

$ svn co https://domain:443/ test1
Error validating server certificate for 'https://domain:443':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
Certificate information:
 - Hostname: **REMOVED**
 - Valid: **REMOVED**
 - Issuer: **REMOVED**
 - Fingerprint: **checked with issuer and REMOVED**
(R)eject, accept (t)emporarily or accept (p)ermanently? p
Authentication realm: <https://domain:443> Subversion repository
Password for 'nicdumz-machine-hostname':
Authentication realm: <https://domain:443> Subversion repository
Username: nicdumz
Password for 'nicdumz':

# proceeds to checkout correctly

$ svn co https://domain:443/ test2

# checkouts nicely, without asking for my password.

在某个时候,我需要使用其他帐户提交内容。所以我做到了

$ svn ci --username other.user
Authentication realm: <https://domain:443> Subversion repository
Password for 'other.user':

# works fine

但是从那以后,每次我想以“ nicdumz”身份提交(默认用户,所有存储库都已被该用户签出)时,都会提示我输入密码:

$ svn ci
Authentication realm: <https://domain:443> Subversion repository
Password for 'nicdumz':

嘿,来吧,为什么:)如果我想要重新签出,也会发生同样的情况,因为读访问也受到保护。

因此,我尝试自己解决此问题。我读到〜/ .subversion / auth正在存储凭据,因此我从以下方式删除了它:

$ cd ~/.subversion
$ mv auth oldauth
$ mkdir auth

起初它似乎起作用,因为svn忘记了证书验证:

$ svn co https://domain:443/ test3
Error validating server certificate for 'https://domain:443':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
Certificate information:
 - Hostname: **REMOVED**
 - Valid: **REMOVED**
 - Issuer: **REMOVED**
 - Fingerprint: **checked with issuer and REMOVED**
(R)eject, accept (t)emporarily or accept (p)ermanently? p
Authentication realm: <https://domain:443> Subversion repository
Password for 'nicdumz-machine-hostname':
Authentication realm: <https://domain:443> Subversion repository
Username: nicdumz
Password for 'nicdumz':

# proceeds to checkout correctly

$ svn up
Authentication realm: <https://domain:443> Subversion repository
Password for 'nicdumz':

什么?这是怎么回事?

如果您有建议对行为进行更多调查,我非常感兴趣。如果我是正确的,则无法进行冗长svn up或类似的操作,因此我不确定是否应该进行调查。哦,这是值得的:

$ svn --version
svn, version 1.6.6 (r40053)
   compiled Oct 26 2009, 06:19:08

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - handles 'http' scheme
  - handles 'https' scheme

Answers:


14

好吧,我遇到了同样的问题,并且删除了auth目录。然后我做了:

svn --username xxx update

要求我输入密码,但是仅此而已。我只能说删除auth目录对我有用。您的服务器文件中是否有适当的选项?即(我认为):

store-passwords = yes
store-plaintext-passwords = yes

在本[global]节中。我不确定100%,但这可能会有所帮助。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.