C # Use DirectoryEntry to manage window accounts

Source: Internet
Author: User

Recently, wss has been used for oa. The headache is that wss has not modified its own password, added users, and so on. Therefore, it is easy to implement
1. Account query;
2. group query;
3. Change the password (change the current logon password );
4. Create an account (not completed );
Note: It is not AD, but window account management. The specific code is very simple and will not be described much, mainly Member. cs class;

Open directly with vs2008 sp1. There are two portal pages:
1. In the Members/Find. aspx search window, you can search for accounts and search groups, view account and group information, query accounts by group, and query groups by account.
2. UserChangePassword. aspx is used to change the password of the current Logon account;
3. UserAdd. aspx adds an account because it is not very urgent and has not been implemented yet;

Implemented in c #, the key is to operate DirectoryEntry

Related Article

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.