storing credentials for a windows service

  • Thread starter Christof Nordiek
  • Start date
C

Christof Nordiek

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?
 
G

Guest

You can use the DPAPI (google it) to store the credentials securely in the
Registry.
 

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