ADSI, use ASP to complete NT management
Keywords: ASP
I last mentioned how to use ADSI Management Web Server This time I discuss how ADSI is managed using ADSI to manage IIS requires OP4 and requires NTLMNTLM to provide the following objects: domain, group, and and User. You can increase Groups and Users. WARNING: The following example will change the NT access to the NT access database; please read it carefully before use and change the authority of the NT user. Please use only on the test machine to run these programs. Only you have mastered the working principle of NTLM. Don't harm the security of the real host. Talents with Administrator or Operator privileges can change NT user databases on running IIS machines. So, login using Anonymous permissions is no permission. Of course, if you use SSL, you can guarantee security.
Examples are as follows: New a user: You can add users on a separate server, you can add users on a primary domain server <% on Error Resume next strdomain = "Machinename" struser = "jdoe" set odomain = getObject ("Winnt: // "& strdomain) set Ouser = odomain.create (" User ", struser) ife (err.number = 0) Then Ouser.setInfo OUSER.SETPASSWORD" mypassword "OUser.setInfo set Ouse = Nothing end = notomain = nothing end %> Add a group: <% strdomain = "Machinename" strgroup = "unidentified" set odomain = getObject ("winnt: //" & strdomain) set = odomain.create ("group", strunt) Ogroup.setInfo Set Odomain = nothin g set g = nothing%> Added a user into a group. <% strdomain = "machinename" struser = "jdoe" strunt = "unidentified" set odomain = getObject ("Winnt: //" & strdomomain) set g = Odomain.getObject ("group", strgroup) OGroup.Add ("Winnt: //" & strdomain & "/" & struser) set odomain =