Re: Changing windows passwords remotely
- From: "Willy Denoyette [MVP]" <willy.denoyette@xxxxxxxxxx>
- Date: Tue, 16 Aug 2005 22:02:49 +0200
Why PInvoke when there are managed options available??????
Willy.
"Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:u2WyospoFHA.860@xxxxxxxxxxxxxxxxxxxxxxx
> You will want to call the NetUserChangePassword API function through
> the P/Invoke layer. You can most likely get the definition from
> http://www.pinvoke.net.
>
> Depending on your setup, I don't know if you are going to be able to
> get it to work. If you are impersonating the user on the web server side,
> you ^should^ this should work, assuming users can change their own
> passwords. If not (or you are not impersonating the user, which you
> shouldn't be in general in an ASP.NET app), you will have to impersonate a
> user that has the rights to change the password. Of course, this is a
> VERY dangerous operation, so be careful.
>
> Hope this helps.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
>
>
> <dlinetsky@xxxxxxxxx> wrote in message
> news:1124215985.012854.136100@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>>I have a C# web app that uses mixed mode authentication (windows
>> integrated auth. together with formsAuthentication). I would like to
>> have a form that allows users to change their windows passwords
>> remotely. Does anyone know how I could do this?
>>
>
>
.
- References:
- Changing windows passwords remotely
- From: dlinetsky@xxxxxxxxx
- Re: Changing windows passwords remotely
- From: Nicholas Paldino [.NET/C# MVP]
- Changing windows passwords remotely
- Prev by Date: Re: Changing windows passwords remotely
- Next by Date: Re: datasets, datagrids, and datatables
- Previous by thread: Re: Changing windows passwords remotely
- Next by thread: Re: Passing Objects and protection level
- Index(es):
Relevant Pages
|