I have an ASP.Net application (on Win2K) that is using Windows authentication and impersonation. We are using the following code to change password:
Dim objDE As DirectoryEntry
'...
objDE.Invoke("ChangePassword", txtOldPassword, txtNewPassword)
This code works great, except it does not lock the account if there were multiple unsuccessful attempts. Is there any way to make this code to lock the account if incorrect passwords was provided multiple times (as specified in a policy). I can't elevating user privileges, because this potentially makes the system less secure.