0

Is it possible to launch another window in C#/WPF with different credentials.

var OpenInterface = new UserInterface();
OpenInterface.Show();

Is the execution of this command with different credentials possible ?

Christos
  • 53,228
  • 8
  • 76
  • 108
New Bee
  • 991
  • 1
  • 13
  • 24

1 Answers1

0

Seems that you need to impersonate and do the processing

Please do refer the sites shown below

http://msdn.microsoft.com/en-us/library/system.security.principal.windowsimpersonationcontext.aspx

Can a Thread be executed as another user? (.NET 2.0/3.5)

http://www.codeproject.com/Articles/10090/A-small-C-Class-for-impersonating-a-User

Community
  • 1
  • 1
unniks
  • 166
  • 7
  • Thank you this helped, however i still cannot get authenticated through ad. but good starting point. – New Bee Mar 06 '14 at 10:23