Use ASP's security verification to modify the Managers password for Windows 2000.

xiaoxiao2021-03-06  103

The IIS's security verification mechanism is well done, we can use ASP's security verification to modify the Windows 2000 administrator password.

When someone logs in to the site, use the login_user in the ServerVariables collection to capture the login account, the premise is that the IIS must be closed to allow anonymous login to this option, and then modify the password through the ADSI in the ChangePwd.asp file.

The following is the program:

Changepwd.htm

Changepwd.asp

<%

Oldpwd = Request.form ("OldPwd")

Newpwd = Request.form ("newpwd1")

UserName = Request.form ("Username")

Set Ouser = getObject ("Winnt: // computername /" & username)

Ouser.changepassword Oldpwd, NewPwd

Ouse.setInfo

Set Ouser = Nothing

Response.write "password modification is successful!"

%>

转载请注明原文地址:https://www.9cbs.com/read-103409.html

New Post(0)