Remote SVN password Modification
Reference: http://bbs.iusesvn.com/thread-20-1-1.html
1. apachepasswd, a tool for remotely modifying APACHE-based subversion passwords
Apachepasswd description
This is a tool used to modify authuserfile in Apache. It is mainly used to remotely modify the Subversion User Password Based on Apache configuration.
Currently, for apache2.0 and for apache2.2 are available.
When the Subversion is configured to run as a module of Apache, the following statements may be used in httpd. conf:
<Location/SVN>
Dav SVN
Svnparentpath E:/svnroot
Authzsvnaccessfile E:/svnroot/access. Auth (permission file)
Satisfy any
Require valid-user
Authtype basic
Authname "Subversion repositories"
Authuserfile E:/svnroot/users. Auth (user and password files)
Require valid-user
</Location>
Apacehpasswd is used to modify the E:/svnroot/users. auth file in the preceding configuration.
Usage:
1. Copy the apache2xpasswd. cgi and apache2xpasswd. cgi. ini files to the CGI script directory of Apache, which is usually the cgi-bin directory. (Replace X with the corresponding version in this sentence. For example, for apache2.0, It is apache20passwd. cgi)
2 For apache2.2, copy the libapr-1.dll, libapriconv-1.dll, libaprutil-1.dll under the bin directory of Apache to the directory where apache2xpasswd. cgi is located
3. Modify the path of auth_user_file in the configuration file apache2xpasswd. cgi. ini, as shown below:
[Path]
Auth_user_file = the full path of authuserfile used by your subversion is changed here, for example, E:/svnroot/users. auth
4 now you can access your server's http: // ip/cgi-bin/apache2xpasswd. cgi and you will be able to see the page for changing the Subversion password.
Note:
1. configuration items available in the configuration file
[Path]
Auth_user_file = the full path of authuserfile used for your subversion is changed here, for example, C:/svn_repos/passwd.
Log File Name
LOG_FILE = svnpass. Log
[Setup]
Password_min_length = 1
[HTML]
Title = change the Subversion Password
Description = Modify the Subversion Password
Your_name = User Name
Old_password = old password
New_password1 = New Password
New_password2 = verify the new password
Btn_change = Modify
Btn_reset = Reset
Change_password_ OK = PASSWORD modified successfully
Change_password_failed = An error occurred while changing the password.
Old_password_error = incorrect old password
Server_error = Server Error
Password_must_greater = the number of digits of the password must be greater
Two_password_not_matched = the two passwords are inconsistent.
Please_enter_name = enter the user name
Back = return
2. I usually change the name of apache2xpasswd. cgi to svnpass, so that the user can write less words when changing the password.
For example, you can access http: // 192.168.0.1/cgi-bin/svnpass to change the password. When you change the name to svnpass, the configuration file apache2xpasswd is used. CGI. change INI to svnpass. INI, because this script is used to find the configuration file based on the file name.
3. If you have configured multiple authuserfiles, you can copy multiple apachepasswd and configure multiple corresponding. ini files so that you can modify multiple authuserfiles.