How to change active directory User Account Password using code?
I wouldn't do this personally.
But you can as long as you have sufficient permissions something like:
DirectoryEntry myADUser = new DirectoryEntry("LDAP://CN=User,CN=Users,DC=Domain,DC=com"); myADUser.Invoke("<opass>", "<npass>"); myADUser.CommitChanges();
Here's an opensource webpart that enables users to change their password:
I use this webpart myself and am satisfied about it. The source code is available for viewing. It might inspire you for your own programming need.