Use ASP's security verification to modify Windows 2000 managers password

xiaoxiao2021-03-06  88

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

< / form> changepwd.asp <% oldpwd = request.form ("oldpwd") newpwd = request.form ("newpwd1") username = request.form ("username" set Ouser = getObject ("Winnt: // computername / "& username) OUSER.CHANGEPASSWORD OLDPWD, NewPWD OUSER.SETINFO SET OUSER = Nothing response.write" Password modification successfully! "%>

Author Blog:

http://blog.9cbs.net/lookoo/

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

New Post(0)