create a service in windows that uses the same credentials on another environment

nschwend
nschwend used Ask the Experts™
on
Hello all,
I've a problem. I have a service which runs with a user credentials.
I need to use the same credentials to login to another environment.
the programmers and the system administrators don't know these credentials
this service will be written in .Net

there's a way? how?

thank you a lot

Nick
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
If the services uses windows authentication -then the new app can use the same credentials using code access security.

http://msdn.microsoft.com/en-us/library/ff648663.aspx

Author

Commented:
thank you for your reply. The problem is that the second environment doesn't use windows as authentication method.
you can still impersonate the windows credentials using the WindowsIdentity.Impersonate Method

http://msdn.microsoft.com/en-us/library/w070t6ka.aspx

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial