如何在Collabnet SVN Edge中恢复root密码? [英] how to recover root password in Collabnet SVN Edge?

查看:240
本文介绍了如何在Collabnet SVN Edge中恢复root密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将CollabNet SVN Edge用作Windows中的存储库服务器,无论如何,我弄乱了该SVN的用户帐户,包括根帐户.我可以知道如何还原该SVN的管理员帐户吗?

I am using CollabNet SVN Edge as my repository server in windows, anyhow I have mess up the user accounts of this SVN including the root one. May I know how can I restore the admin account of this SVN?

推荐答案

如果您正在找寻忘记密码的方式来重置管理员密码,那么在不删除数据库的情况下重置密码的唯一方法是编辑直接(非常简单).

If at all you are looking for an option to reset your admin password as you have forgotten it, the only way to reset this without deleting the database is to edit it directly (it's pretty easy).

  1. 在Windows上停止Subversion Edge服务或运行 Linux/Solaris上的$ bin/csvn stop命令
  2. 找到您的安装目录(例如c:\ csvn).该目录将包含一个名为data的文件夹,该文件夹包含一个名为"csvn-production-hsqldb.script"的文件.
  3. 在文本编辑器中打开此文件.搜索'admin'"(用单引号引起来)-您应该找到一行,如下所示:

  1. Stop the Subversion Edge service on Windows or run the $ bin/csvn stop command on Linux/Solaris
  2. Find your install directory (eg, c:\csvn).This will contain a folder named data which contains a file named "csvn-production-hsqldb.script".
  3. Open this file in a text editor. Search for "'admin'" (with the single quotes) -- you should find a row that looks like this:

INSERT INTO USER VALUES(1,2,'admin user','admin@example.com',TRUE,
    '78989asdef7898abde4252aedcb4352','Super Administrator','admin')

  • 将长加密密码字段("789 ...")替换为:21232f297a57a5a743894a0e4a801fc3

  • Replace the long encrypted password field ("789...") with this: 21232f297a57a5a743894a0e4a801fc3

    保存,然后重新启动Subversion Edge服务.

    Save, and restart the Subversion Edge service.

    用户名:admin 密码:管理员

    Username : admin Password : admin

    应该在那之后工作.

    这篇关于如何在Collabnet SVN Edge中恢复root密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆