Impersonate through app.config

  • Thread starter Thread starter A.M
  • Start date Start date
A

A.M

Hi,

Using WinForms, i want the exe file logs-in the network as specific UID/PWD.
Something like impersonation.
ASP.NET's web.config has ritch set of setting for impersonation. I am
expecting that WinForms' app.config also has similar settings.

What would be the best way to allow a winforms app impersonate itself ?

Thanks,
Ali
 
Hi Ali,

If impersonate in the winform, i.e. the customer can read the app.config,
i.e. he can read the username/password in the app.config. I think that will
be security issue.

Can you tell me what do you mean log in the network?

If you want to log on to a website, you may try to use the
NetworkCredential Class

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemnetnetworkcredentialclasstopic.asp

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top