WINDOWS2000 server account debut authentication

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

''Modify passwords for intranets and mailboxes
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 < Br> err.clear
%>
<script language="javascript">
alert("Username or password is wrong, please re-enter!");
history.go( -1);
</script>
<%
else
''Response.Write "newPwd=" & newPwd
obj.SetPassword newPwd
''Response .Write "<hr>"
Response.Write("<div class=aa>You have successfully modified your network password!</div>")
end if
%>


//basically just change dc = yulong, dc = com this place into their own domain



Copyright © Windows knowledge All Rights Reserved