Re: Changing windows passwords remotely

Tech-Archive recommends: Fix windows errors by optimizing your registry



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?
>>
>
>


.



Relevant Pages

  • Re: Changing windows passwords remotely
    ... If you are impersonating the user on the web server side, ... >I have a C# web app that uses mixed mode authentication (windows ... > have a form that allows users to change their windows passwords ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: password
    ... 'Offline NT Password & Registry Editor' ... 'Reset lost Windows passwords with Offline Registry Editor | Microsoft ...
    (microsoft.public.windows.vista.administration_accounts_passwords)
  • Re: Forgot windows password; can I use 2nd HD to reset?
    ... I'd asked a specific question on how to use a 2nd hard disk to reset ... all from someone named "Pegasus", all telling people to just "look it ... recover windows passwords. ... Unfortunately, I've forgotten all my Windows passwords, ...
    (microsoft.public.win2000.general)
  • SetPrincipalPolicy in ASP.NET
    ... There are various ways to achieve it in config, e.g. impersonating the ... anonymous user, but I observed that the following works too: ... i.e. IIS worker process account. ... Is this acceptable practice or could it cause problems in a web app? ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Is there any way past windows XP Logon
    ... yes the Windows passwords can be easily bypassed. ... without physical security. ... The main> Administrator account is passworded, there are two admin> accounts with passwords and on user account without a> password. ...
    (microsoft.public.windowsxp.security_admin)