Some of the previously collected data---ADSI, using ASP to complete NT management
Source: Internet
Author: User
What I said last time is how to use ADSI to manage Web server this time to discuss how ADSI manages NT
Using ADSI to manage IIS requires OP4
For an NT to be ADSI managed, you need NTLM
NTLM provides the following objects: Domain, Group, and User.
You can add groups and users through domain objects.
Warning:
The following examples will change the NT access rights database, and arbitrarily increase and change the NT user's permissions
Please read carefully before using, only run these programs on the test machine only until you master the NTLM
Working principle so far. Never compromise the security of a real host.
Only people with administrator or operator privileges can run the IIS machine
Change the user database for NT. Therefore, there is no permission to log on with the anonymous permission.
Of course, if you use SSL, you can guarantee security.
Examples are as follows:
Create a new User:
You can add users on a separate server or on a primary domain server
<%
On Error Resume Next
Strdomain= "MachineName"
Struser= "JDoe"
Set odomain = GetObject ("winnt://" & Strdomain)
Set ouser = odomain.create ("user", struser)
If (err.number = 0) Then
Ouser.setinfo
Ouser.setpassword "MyPassword"
Ouser.setinfo
Set ouser=nothing
End If
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