如何在 Eclipse 中更改 SVN 存储库的凭据?

发布于 2024-07-21 09:39:24 字数 225 浏览 13 评论 0原文

我在 Windows 上使用 subclipse 安装了 Eclipse 3.4.2。 另一位开发人员使用他的凭据添加了 SVN 存储库,并选择了“保存密码”。 现在,每次我使用 SVN 执行任何操作时,都会使用他缓存的凭据。 我怎样才能将它们更改为我的?

我已经检查了“workspace/.metadata/.plugins/org.tigris...”文件夹,但找不到任何方法来重置这些缓存的凭据。

I have Eclipse 3.4.2 installed on Windows with subclipse. Another developer added an SVN repository with his credentials and selected 'Save password'. Now every time I do anything with SVN his cached credentials are used. How can I change them to mine?

I have already checked the 'workspace/.metadata/.plugins/org.tigris...' folders, and could not find any way to reset those cached credentials.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(21

残龙傲雪 2024-07-28 09:39:24

http://subclipse.tigris.org/wiki/PluginFAQ#head-d507c29676491f4419997a76735 feb6ef0aa8cf8 :

用户名和密码

Subclipse 在定义存储库时不会收集或存储用户名和密码凭据。 这是因为 JavaHL 和 SVNKit 客户端适配器足够智能,可以在需要时提示您输入此信息,包括当您的密码更改时。

您还可以允许适配器缓存此信息,一个常见的问题是如何删除此缓存信息以便再次提示您? 我们有一个公开请求,希望将 API 添加到 JavaHL,以便我们可以提供一个 UI 来执行此操作。 目前,您必须手动删除缓存。 缓存的位置根据所使用的客户端适配器而有所不同。

JavaHL 将信息缓存在与命令行客户端相同的位置——Subversion 运行时配置区域。 在 Windows 上,该文件位于 %APPDATA%\Subversion\auth 中。 在 Linux 和 OSX 上,它位于 ~/.subversion/auth。 只需找到并删除包含缓存信息的文件即可。

SVNKit 将信息缓存在 Eclipse 密钥环中。 默认情况下,这是一个名为 .keyring 的文件,存储在 Eclipse 配置文件夹的根目录中。 这两个值都可以用命令行选项覆盖。 要清除缓存,您必须删除该文件。 重新启动时 Eclipse 将创建一个新的空密钥环

http://subclipse.tigris.org/wiki/PluginFAQ#head-d507c29676491f4419997a76735feb6ef0aa8cf8:

Usernames and passwords

Subclipse does not collect or store username and password credentials when defining a repository. This is because the JavaHL and SVNKit client adapters are intelligent enough to prompt you for this information when they need to -- including when your password has changed.

You can also allow the adapter to cache this information and a common question is how do you delete this cached information so that you can be prompted again? We have an open request to have an API added to JavaHL so that we could provide a UI to do this. Currently, you have to manually delete the cache. The location of the cache varies based on the client adapter used.

JavaHL caches the information in the same location as the command line client -- in the Subversion runtime configuration area. On Windows this is located in %APPDATA%\Subversion\auth. On Linux and OSX it is located in ~/.subversion/auth. Just find and delete the file with the cached information.

SVNKit caches information in the Eclipse keyring. By default this is a file named .keyring that is stored in the root of the Eclipse configuration folder. Both of these values can be overriden with command line options. To clear the cache, you have to delete the file. Eclipse will create a new empty keyring when you restart

怎樣才叫好 2024-07-28 09:39:24

我妻子建议:

  1. 打开 SVN 存储库查看
  2. 打开位置属性...
  3. 显示凭据:按 [X] 按钮
  4. 选择用户,写入密码,按 [完成]

即可完成所有工作!

My wife suggested:

  1. Open SVN Repositories View
  2. Open Location Properties...
  3. Show Credentials For: press [X] button
  4. Select user, write password, press [Finish]

and all work!!!

Spring初心 2024-07-28 09:39:24

转到 c:\Documents and Settings\[用户名]\Application Data\subversion\auth\svn.simple

并删除十六进制文件。 通常每个文件都与一个存储库相关联

Go to c:\Documents and Settings\[username]\Application Data\subversion\auth\svn.simple

and delete the hexadecimal file. Normally each file is associated with one repository

饭团 2024-07-28 09:39:24

在Eclipse中更改用户名和密码太简单了。

只需按照以下步骤操作:

在 Eclipse 中,

转到窗口 -> 显示视图-> 其他-> (类型为)SVN 存储库 -> 单击(SVN 存储库)-> 右键单击 SVN 存储库 -> 位置属性-> 常规选项卡更改凭据的以下详细信息。,

就这样。

It's too simple to change username and password in Eclipse.

Just follow the following steps:

In your Eclipse,

Goto Window -> Show View -> Other -> (Type as) SVN Repositories -> click that(SVN Repositories) -> Right Click SVN Repositories -> Location Properties -> General tab change the following details for credentials.,

that's it.

浅听莫相离 2024-07-28 09:39:24

在 Mac OS X 上,转到文件夹 /$HOME (/Users/{user home}/)。 您将看到文件“.eclipse_keyring”。
去掉它。 所有保存的凭据都将丢失。

On Mac OS X, go to folder /$HOME (/Users/{user home}/). You will see file '.eclipse_keyring'.
Remove it. All saved credentials will be lost.

别低头,皇冠会掉 2024-07-28 09:39:24

在任何 Windows 版本上删除以下文件夹:

%APPDATA%\Subversion\auth

(您可以将其复制并粘贴到 RUN/Explorer,它将为您解析 App-Data-Folder。)

在 Linux 和 OSX 上,它位于

~/.subversion/auth

来源:
http://www.techcrony.info/2008/03 /26/admin/如何更改-eclipse-svn-password/

On any Windows Version delete the following folder:

%APPDATA%\Subversion\auth

(You can copy&paste this to RUN/Explorer, and it will resolve the App-Data-Folder for you.)

On Linux and OSX it is located in

~/.subversion/auth

Source:
http://www.techcrony.info/2008/03/26/admin/how-to-change-eclipse-svn-password/

狼性发作 2024-07-28 09:39:24

在 Windows 7 上,转到 C:\Users\%User_Name%\AppData\Roaming\Subversion 并删除 auth 目录。 请注意,如果您连接到超过 1 个 SVN 服务器,这将删除您配置的所有 SVN 服务器的身份验证。 如果您只想重置一台服务器:

在 auth 目录中您应该会看到一个名为 svn.simple 的文件夹。 使用文本编辑器打开每个文件以确定要删除哪个文件,然后仅删除该单个文件。

On Windows 7, go to C:\Users\%User_Name%\AppData\Roaming\Subversion and remove the auth directory. Just be aware if you are connected to more than 1 SVN server that this will remove the authentication for all of the SVN servers you have configured. If you want to reset just a single server:

Inside the auth directory you should see a folder called svn.simple. Open each of those files with a text editor to determine which one to remove and then remove just that single file.

滥情稳全场 2024-07-28 09:39:24

在 Windows 中:

  1. 打开运行类型 %APPDATA%\Subversion\auth\svn.simple
  2. 这将打开 svn.simple 文件夹,
  3. 您将找到一个文件,例如 Big Alpha Numeric 文件
  4. 删除该文件文件。
  5. 重新启动日食。
  6. 尝试从项目编辑文件并提交它,
  7. 您可以看到询问用户名密码的对话框

它对我有用......;)

In windows :

  1. Open run type %APPDATA%\Subversion\auth\svn.simple
  2. This will open svn.simple folder
  3. you will find a file e.g. Big Alpha Numeric file
  4. Delete that file.
  5. Restart eclipse.
  6. Try to edit file from project and commit it
  7. you can see dialog asking userName password

It worked for me.... ;)

樱花坊 2024-07-28 09:39:24

非常简单的步骤:
Eclipse:窗口----> 偏好设置-----> SVN-----> SVN接口----->选择SVNKit(纯Java)

Very simple step to follow:
Eclipse: Window ----> Preferences -----> SVN -----> SVN Interface ----->Select SVNKit (pure Java)

撩人痒 2024-07-28 09:39:24

我无法找到 svn.simple 文件,但能够使用以下三个步骤更改凭据:

从 SVN 签出项目

在此处输入图像描述

选择您需要更改凭据的存储库(注意:您不会执行结帐,但这会将您带到屏幕以输入用户名/密码组合)。

在此处输入图像描述

最后,输入新的用户名和密码凭据:

在此处输入图像描述

这有点令人困惑,因为您开始初始化新项目的过程,但您只是重置存储库凭据。

I was able unable to locate the svn.simple file, but was able to change credentials using the following three steps:

Checkout project from SVN

enter image description here

Select the repository you need to change the credentials on (note: you will not perform an checkout, but this will bring you to the screen to enter a username/password combination).

enter image description here

Finally, enter the new username and password credentials:

enter image description here

It's a bit confusing, because you begin the process of initializing a new project, but you're only resetting the repository credentials.

三生池水覆流年 2024-07-28 09:39:24

在任何 Windows 版本上,请遵循以下路径:

C:\Users\{user_name}\AppData\Roaming\Subversion\auth\svn.simple

然后删除此文件夹中带有十六进制代码的文件并重新启动 Eclipse 。

On any Windows Version follow this path:

C:\Users\{user_name}\AppData\Roaming\Subversion\auth\svn.simple

Then delete the file with hexa decimal code inside this folder and restart your eclipse.

请远离我 2024-07-28 09:39:24

(Windows 7 Eclipse Indigo 3.7)

C:\Users\\AppData\Roaming\Subversion\auth\svn.simple

找到 svn 信息文件并使其可写。
(它们默认是只读的)
(无需重启eclipse)

(Windows 7 Eclipse Indigo 3.7)

C:\Users\\AppData\Roaming\Subversion\auth\svn.simple

Find svn information file and make it writable.
(they are default readonly)
(no restart of eclipse required)

笑饮青盏花 2024-07-28 09:39:24

我想出了下面写的方法,它

在 Eclipse 中非常适合我,请按照以下简单步骤操作:
文件-> 导入-> 输入 svn -> 来自 svn 的项目 -> 下一个-> 创建新的存储库位置 -> 下一步-> 您会在身份验证菜单下方看到“安全存储”。 单击此按钮“安全存储”。 这是我们可以删除所有密码缓存的地方。 现在,一旦你在这里,请按照以下步骤操作:

  1. 在密码选项卡下,单击“清除密码”
  2. 在“内容”选项卡下,转到 SVN,选择每个子选项,然后单击“删除”
  3. 重新启动 eclipse

所有存储的密码现在都消失了,并且您可以使用新的 svn 密码进行同步

I figured out the method I have written below, and it works perfectly for me

in eclipse, follow these simple steps:
File -> Import -> type svn -> project from svn -> next -> Create a new repository location -> Next - > You would see "Secure Storage" below the Authentication Menu. Click on this button "Secure Storage" . This is the place where we can delete all the password caches. Now once you are here, follow these:

  1. Under password tab, click "Clear passwords"
  2. Under "contents" tab, go to SVN, select each sub options, and click on "Delete"
  3. Restart eclipse

All the stored passwords are now gone, and you can use your new svn password to sync

请远离我 2024-07-28 09:39:24

删除位置:configuration\org.eclipse.core.runtime下的.keyring文件,然后,您将被邀请提示您新的svn帐户。

Delete the .keyring file under the location: configuration\org.eclipse.core.runtime, and after that, you will be invited to prompt your new svn account.

困倦 2024-07-28 09:39:24

删除位置:configuration\org.eclipse.core.runtime下的.keyring文件,然后,您将被邀请提示您新的svn帐户。
对我来说它有效。

Delete the .keyring file under the location: configuration\org.eclipse.core.runtime, and after that, you will be invited to prompt your new svn account.
for me it worked.

过期情话 2024-07-28 09:39:24

对于 Mac,

  1. 关闭 Eclipse 工作区,
  2. 将 /Users/username/.subversion/auth/svn.simple
  3. 删除。 其中的文件具有加密的(大字母数字)文件名。
  4. 打开钥匙串(/Applications/Utilities/)并删除为 SVN 保存的密钥。
  5. 现在打开 Eclipse 工作区尝试更新您的项目,将出现提示,询问您 SVN 凭据
  6. 为您提供更新的 SVN 凭据并在钥匙串中更新它

For Mac ,

  1. Close the Eclipse Workspace
  2. Go to /Users/username/.subversion/auth/svn.simple
  3. Delete. The file inside it with encrypted(Big Alpha Numeric) file name.
  4. Open key chain(/Applications/Utilities/) and delete the key saved for SVN.
  5. Now open Eclipse workspace try to update your project , prompt will show up asking you the SVN credentials
  6. Give you updated SVN credentials and update it In keychain
    .
巷子口的你 2024-07-28 09:39:24

我使用 svn+ssh 协议来访问 SVN。
要解决类似的问题,我必须做的是打开 Putty 并重新配置它,以便在保存的会话中不存在错误的用户名@myserver,而是正确的用户名@myserver。

I'm using svn+ssh protocol to access SVN.
What I had to do to fix a similar issue, was to open Putty and reconfigure it so that it did not have wrong_user_name@myserver but correct_user_name@myserver in the saved sessions.

优雅的叶子 2024-07-28 09:39:24

在 Eclipse 中:Ctrl + F8 -> SVN 存储库探索 -> 在存储库中右键单击 -> 位置属性-> 结束 ;)

In Eclipse: Ctrl + F8 -> SVN Repository Exploring -> Right Click in the respository -> Location Properties -> Finish ;)

如梦亦如幻 2024-07-28 09:39:24

我删除了 Windows 计算机(Windows 7)上以下路径的 svn.simple 目录内的文件:

C:\Users\[user_name]\AppData\Roaming\Subversion\auth

问题已解决。

I deleted file inside svn.simple directory at below path on windows machine (Windows 7):

C:\Users\[user_name]\AppData\Roaming\Subversion\auth

Problem solved.

丑丑阿 2024-07-28 09:39:24

根据系统配置,SVN 将在 Windows 上的多个位置放置缓存的凭据。 阅读 SVNBook | 客户凭证

  • 主凭证存储位于%APPDATA%\Subversion\auth,您可以运行svn auth 命令查看和管理其内容。< /p>

  • 您还可以运行cmdkey 查看 Windows 凭据管理器中存储的凭据。

  • 如果您的 SVN 服务器与 Active Directory 集成并支持集成 Windows 身份验证(例如 VisualSVN Server),则您的 Windows 登录凭据将用于身份验证,但不会缓存。 您可以运行 whoami 找出您的用户帐户名。

There are several places on Windows where SVN will place cached credentials depending on system configuration. Read SVNBook | Client Credentials.

  • The main credential store is located in %APPDATA%\Subversion\auth and you can run svn auth command to view and manage its contents.

  • You can also run cmdkey to view the credentials stored in Windows Credential Manager.

  • If your SVN server is integrated with Active Directory and supports Integrated Windows Authentication such as VisualSVN Server, your Windows logon credentials are used for authentication, but they are not cached. You can run whoami to find out your user account name.

阳光下慵懒的猫 2024-07-28 09:39:24

我一直在寻找相同的答案,但以上都不适合我。但我执行了以下步骤并得到了纠正。

我的场景:-

  1. 安装在 Linux 上的 Eclipse
  2. Eclipse 版本:2019.03
  3. 之前我选择了在本地存储密码(因此每当现有 svn 存储库进行任何更新时,都不会提示输入密码)。

解决方案:-
删除本地存储的凭据。

步骤:

  1. 在Linux中允许显示隐藏文件(打开文件资源管理器,单击“查看”,然后单击“显示隐藏文件”
  2. 转到用户主文件夹-> .eclipse/.org.eclipse.equinox.security/
  3. 打开并编辑“secure_storage”文件中的任何文本编辑并删除所有内容并保存(最好在编辑之前备份“secure_storage”文件)

现在在连接 SVN 时会询问,

谢谢。

I have been searching answer for the same, but none of above didn't work for me.But I did the following steps and got rectified.

My scenario:-

  1. Eclipse installed on linux
  2. Eclipse version: 2019.03
  3. Previously I selected, store Password locally ( so whenever any updates from existing svn repository , not prompting for password).

Solution:-
Remove locally stored credentials.

Steps :

  1. In linux allow show hidden files ( Open File Explorer , Click On "View" and click on "Show Hidden Files"
  2. Go to User Home Folder-> .eclipse/.org.eclipse.equinox.security/
  3. Open & Edit "secure_storage" file any text edit and remove all the contents & save . ( Better to take backup of "secure_storage" file before editing)

Now will ask while connecting SVN

Thank You

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文