Re: Changing Windows password by .NET code?

From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 05/27/04


Date: Wed, 26 May 2004 16:24:16 -0700

You can use System.DirectoryServices to change the user's password by
invoking the ChangePassword method. There are some docs here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sds/sds/managing_user_passwords.asp?frame=true
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sds/sds/troubleshooting_authentication_problems_on_asp_pages.asp?frame=true

There are some weird issues that crop up with ChangePassword and
SetPassword, but those questions are probably better asked
microsoft.public.adsi.general

HTH,

Joe K.

"Jens Weiermann" <spamgoeshere@solidsoftware.de> wrote in message
news:%23KcF3huQEHA.1960@TK2MSFTNGP10.phx.gbl...
> Hi!
>
> I'm using Windows authentication in one of my ASP.NET projects because
this
> way it's easy for me to define which users has access to which page (using
> the NTFS file system security settings).
> Now my users want to change their passwords via a web interface. Does
> anyone know if it is at all possible to change the windows passwords by
> .NET code? Or do I have to change the project to forms authentication and
> store user info in a database?
>
> Thanks!
> Jens



Relevant Pages

  • Re: File downloads
    ... One way would be to use Windows authentication on your site instead of users ... more appropriate way would then be to store the .exe file outside of the WWW ... > I have an Access db with usernames and passwords set up on a web site. ... the user clicks the link and the browser asks to either Open or Save ...
    (microsoft.public.inetserver.asp.general)
  • Re: Convert SQL logins to Windows authentication
    ... > SQL Server doesn't store passwords for Windows authenticated accounts ... > grant the existing Windows accounts access to SQL Server, ... >> login passwords to the new corresponding Windows Authentication ...
    (microsoft.public.sqlserver.security)
  • Re: Can a Login/Password be validated against a Domain login/passord using a prompt dialog?
    ... the domain so I can't rely on Windows Authentication. ... authenticate users in such a way I don't have to store another set of user ... Standard SQL Security ... Trusted Security using duplicate nt username and passwords ...
    (microsoft.public.sqlserver.connect)
  • Checking a login against a windows NT Domain...
    ... their own passwords or use an NT/2000 domain login. ... domain/username/password manually to a Windows Domain to check to see if ... I don't want to use Windows Authentication, ...
    (microsoft.public.dotnet.framework.aspnet.security)