Re: Changing Windows password by .NET code?
From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 05/27/04
- Next message: Joe Kaplan \(MVP - ADSI\): "Re: Double number of calls when Basic Authentication?"
- Previous message: Joe Kaplan \(MVP - ADSI\): "Re: Getting AD Groups"
- In reply to: Jens Weiermann: "Changing Windows password by .NET code?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Joe Kaplan \(MVP - ADSI\): "Re: Double number of calls when Basic Authentication?"
- Previous message: Joe Kaplan \(MVP - ADSI\): "Re: Getting AD Groups"
- In reply to: Jens Weiermann: "Changing Windows password by .NET code?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|