Simplified version of Web part for password modification in SharePoint: Web part that can modify the Active Directory and the password of the local user !!

Source: Internet
Author: User
There are problems with third-party development that has checked so many SharePoint password modifications on the Internet. Summary:

1. Use the exp2.asp interface that comes with IIS6 to modify the password. This experiment sometimes fails to obtain the user's login name. Very inconvenient.

2. Check the third-party webpart, changepassword. dll.Source codeThe SourceCodeIs to change the password of the server itself. Does the moss server have to be the domain controller of the ad?

3. Some Third-Party code can be used to modify the Active Directory user, but the password of the moss local user cannot be modified. Because the moss server is not subject to domain control, it is possible to manually create some local users and local users in the moss server to allow non-domain users to log on.

Therefore, you cannot manually write a Web part that can modify the Active Directory and the local users password.

When using this Web part to modify the password of the local machine, you must increase the permission.ProgramTo run normally, you must run the following command in the command line:

Net localgroup Administrators "Network Service"/Add

Adds a "Network Service" user to the Administrator group.

Or manually add the network service to the Administrators group.

* PS: it is unnecessary to modify the password of an ad user.

In solution. Zip, I have added this command to setup. bat.

Source code download: Click to download

Solution download: Click to download (run Setup. BAT/? On the command line /? Check the installation method, which is usually Setup/URL http ://....)

After installation, it will be found in the web part library

The running interface is as follows:

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.