Named Pipe Impersonation

M

Mike

Hi,
I'm working with a legacy application running on NT server.
This application supports the named pipe for inter-process communication.
I'm writing my client program on XP and VB.NET using NamedPipeClientStream
class to communicate with this NT server application.

Since this NT server application is running under NT Administrator account.
When I use an administrator account on XP with setting a same password as a
NT administrator,
My program on XP can communicate with the NT application properly.
But when I use other account on XP or different password, My program doesn't
run.
(I get "Logon failure: unknown user name or bad password" when I connect.)

I like to run my client program without setting a same account/password as NT.
I wonder if there's a way to impersonate using NamedPipeClientStream class.
Does anyone have a sample program?
Thank you, Mike.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top