Added the online user password modification function for the visualsvn server.

Source: Internet
Author: User

Attachment download: Click to download

Visualsvn Server is a very good SVN server program, which is convenient and intuitive, and user management is also very convenient.

However, it does not provide the online password change function. In actual use, it is obviously inappropriate to change the password only on the Windows console once many SVN users are involved.

No one wants to change the password and use the administrator? Therefore, we want to add the online password change function for it.

To be honest, you already have an online password change method. You have tried it. However, I have been suffering from the failure to know the svn password encryption algorithm and will not call the DLL (SVN actually uses the httpd encryption library, I read the libapr-util source code without any concern. Oh, I found that the encryption algorithm used by SVN is not very complex, but it seems that it is not difficult to use a program to implement it ). Just get it. It's quite easy to use ^_^.

Put the program to be written first, and then paste the source code later (hey, sell the seller first)

1. Copy the content in the same folder to the installation directory of visual SVN server to overwrite the folder with the same name.

Next, modify the httpd-custom.conf file under the conf directory and change the path after the line "ScriptAlias" to the actual path of the visualsvn server on your machine:

 

Then, modify the svnpass. ini file in the cgi-bin directory:

 

This is a configuration file used to control the password change program. A brief explanation:

1: [path]

2: # the following line is used to specify the svn password file.

3: pwdfilepath = htpasswd

4:

5: [errcode]

6: # the following lines are used to specify the user prompt when an error occurs.

7: unknownerr = unknown error

8: nosuchuser = no such user

9: incorectoldpwd = incorect old password

10: newpwdnotmatch = new password not match

11: usernamereshort = username is too short to go

12: usernametylong = username is too long to go

13: pwdtooshort = the password is too short to go

14: pwdtoolong = the password is too long to go

15:

16: [Rules]

17: # the following lines are used to control the minimum and maximum lengths of user names, as well as the minimum and maximum lengths of passwords.

18: minusernamelen = 1

19: maxusernamelen = 20

20: minpwdlen = 1

21: maxpwdlen = 30

Restart the visual SVN server after you modify the path of pwdfilepath. Open the browser and you will find that the svn interface is a bit different:

 

Click "Change Password" in the upper left corner to bring up a password change form at the top of the page:

 

After entering the password information, click "confirm to modify" to change the password. If the information is incorrect, a message is displayed:

 

These prompts are defined in the INI file.

 

Added the online user password modification function for the visualsvn server.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.