Windows XP Windows 7 Windows 2003 Windows Vista Windows教程綜合 Linux 系統教程
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟件教程
 Windows教程網 >> Windows Server系統教程 >> Windows Server教程 >> WINDOWS2000服務器賬號亮相身份驗證

WINDOWS2000服務器賬號亮相身份驗證

日期:2017/1/24 11:02:32      編輯:Windows Server教程
>


<%
userflag=trim(request("userflag"))
oldPwd=trim(request("oldPwd"))
newPwd=trim(request("newPwd"))

''修改內部網和郵箱的密碼
adsPath = "LDAP://file/cn=" & userflag & ",cn=users,dc=yulong,dc=com"
Set oo = GetObject("LDAP:")
on error resume next
Set obj = oo.OpenDSObject(adsPath,userflag,oldPwd,0)
if err.Number <> o then
err.clear
%>
<script language="javascript">
alert("用戶名或密碼錯,請重新輸入!");
history.go(-1);
</script>
<%
else
''Response.Write "newPwd=" & newPwd
obj.SetPassword newPwd
''Response.Write "<hr>"
Response.Write("<div class=aa>你已經成功修改了網絡密碼!</div>")
end if
%>


//基本上只需改dc=yulong,dc=com這地方,改成自己的域

 
Copyright © Windows教程網 All Rights Reserved