Re: Changing a user's windows password
From: G.V. (gv_at_mail.lt)
Date: 07/03/03
- Next message: Mazen: "Re: Starting exe from WebService"
- Previous message: G.V.: "Re: Impersonation Issue.....Help!!!...."
- In reply to: Jackie_ol: "Changing a user's windows password"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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.
- Next message: Mazen: "Re: Starting exe from WebService"
- Previous message: G.V.: "Re: Impersonation Issue.....Help!!!...."
- In reply to: Jackie_ol: "Changing a user's windows password"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|