Re: Changing a user's windows password

From: G.V. (gv_at_mail.lt)
Date: 07/03/03


Date: Thu, 3 Jul 2003 23:35:55 +0300


I guess ASP.NET process does not have permission to do this.

G.V.

"Jackie_ol" <jackie_ol@hotmail.com> wrote in message
news:3eb401c3407b$bd8cc420$a401280a@phx.gbl...
> Hi!
> I used the following code to change a user's windows
> password:
>
> DirectoryEntry myDirectoryEntry;
> string dirEntry = string.Format(@"WinNT://{0}/
> {1},User", "COMPUTER_NAME", "cyberuser");
> myDirectoryEntry = new DirectoryEntry(dirEntry);
> myDirectoryEntry.Invoke("setPassword", "abcde");
> myDirectoryEntry.CommitChanges();
>
> This code works fine when I run it as a console
> application. But when I run this code in a web service
> method, the password doesn't change. I don't receive an
> error or an exception, but the password remains the same.
> Any solutions?
>
> Thanks in advance.



Relevant Pages

  • Exception from HRESULT: 0x800700B6
    ... I developed an C# ASP.NET Web Service and 3rd party COM component is used in ... But I am getting the following error after migrating to Windows 2003 SP1 ... Exception from HRESULT: 0x800700B6. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • DCOM permission denied
    ... I have moving the application from windows 2000 to windows 2003, ... Exception Details: System.UnauthorizedAccessException: Access is denied. ... granting access rights to the resource to the ASP.NET request identity. ... The application-specific permission settings do not grant Local Activation ...
    (microsoft.public.windows.server.general)
  • DOCM permission denied
    ... I have moving the application from windows 2000 to windows 2003, ... Exception Details: System.UnauthorizedAccessException: Access is denied. ... granting access rights to the resource to the ASP.NET request identity. ... The application-specific permission settings do not grant Local Activation ...
    (microsoft.public.windows.server.setup)
  • DCOM permission denied
    ... I have moving the application from windows 2000 to windows 2003, ... Exception Details: System.UnauthorizedAccessException: Access is denied. ... granting access rights to the resource to the ASP.NET request identity. ... The application-specific permission settings do not grant Local Activation ...
    (microsoft.public.dotnet.general)
  • Re: Problem calling COM object
    ... Are you sure that your application is receiving the same CAS permission ... grants on the Windows 2000 and 2003 servers? ... If you can't find any difference in the ASP.NET permission grants, ... please post back with the full exception details? ...
    (microsoft.public.dotnet.security)