VisualSVN Server 修改使用者密碼

來源:互聯網
上載者:User

標籤:svn

VisualSVN Server是非常方便好用的SVN伺服器端軟體,但有個問題,你在伺服器端建立了使用者名稱密碼後,使用者無法自己修改密碼,據說VisualSVN的用戶端可以修改使用者密碼,但用戶端是收費軟體。
VisualSVN Server是基於Apache的,所以密碼可以修改可以通過網頁來修改。參考網上各種方法後,我總結如下:
1.本著盡量少修改的原則,htdocs這個目錄不用修改。
2.需要copy Apache的 mod_cgi.so 到C:\Program Files\VisualSVN Server\bin(我安裝在C盤).注意版本對應,可以查看該目錄下其他 .so 檔案版本。我的VisualSVN Server是2.1.10,.so檔案版本是2.2.20.0,為此我還裝了一個Apache 2.2.20,就為了提取這個 .so 檔案。
3.修改C:\Program Files\VisualSVN Server\conf\httpd-custom.conf,添加如下內容:
LoadModule alias_module bin/mod_alias.so
LoadModule cgi_module bin/mod_cgi.so
<IfModule alias_module>
    ScriptAlias /cgi-bin/ "C:/Program Files/VisualSVN Server/cgi-bin/"
</IfModule>
第一個mod_alias.so 原來就有的。
4.下載 Apache22Passwd.rar,建立目錄C:/Program Files/VisualSVN Server/cgi-bin/,把Apache22Passwd.rar到該目錄,修改Apache22Passwd.cgi.ini,一般是這樣的:
auth_user_file=X:/Repositories/htpasswd
Apache22Passwd.rar在CSDN資源裡有。
5.還要把Apache的bin目錄下的 libapr-1.dll、libapriconv-1.dll、libaprutil-1.dll 複製到 VisualSVN Server的 cgi-bin目錄下。

然後重啟一下VisualSVN Server,在IE瀏覽器裡輸入https://svn伺服器IP/cgi-bin/Apache22Passwd.cgi (我的svn配置是https的),就可以看到修改密碼的介面了。


這個cgi只支援IE瀏覽器,我試過Chrome是不行的。

為了避免大家也要裝個Apache 2.2.20,我把修改的檔案打包了,放在這裡,你只要copy到VisualSVN Server的安裝目錄,修改一下Apache22Passwd.cgi.ini,就可以用了。


VisualSVN Server 修改使用者密碼

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.