471,594 Members | 2,588 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,594 software developers and data experts.

storing credentials for a windows service

I'm writing a windows service wich shall be able to access certain resources
(files etc). So accessrights will have to be configurable by a local
administrator.

One option is to use the account under wich the service runs wich can be set
while installation or in the services window.

Another option i'm looking for will be to enter the credentials in an
administration form and then use impersonation or something. Is this
feasable? How shall I store the credentials in a secure way?
Nov 2 '06 #1
1 2197
You can use the DPAPI (google it) to store the credentials securely in the
Registry.
--
Dale Preston
MCAD C#
MCSE, MCDBA
"Christof Nordiek" wrote:
I'm writing a windows service wich shall be able to access certain resources
(files etc). So accessrights will have to be configurable by a local
administrator.

One option is to use the account under wich the service runs wich can be set
while installation or in the services window.

Another option i'm looking for will be to enter the credentials in an
administration form and then use impersonation or something. Is this
feasable? How shall I store the credentials in a secure way?
Nov 2 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by cmueller | last post: by
2 posts views Thread by elora_c | last post: by
reply views Thread by Joao Correia | last post: by
3 posts views Thread by Jay-nospam | last post: by
13 posts views Thread by =?Utf-8?B?QWRhbSBT?= | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.