I realized some unsuccessful tests and I don't find if I really can use Windows Credential (generic credentials) to store credentials from a service account (domain account).
I must store and retrieve credentials from an Intranet application hosted in IIS. The pool of this application runs under a service account (special domain account). I logged to my server one time with this account to create a Windows profile (I think it's necessary).
When I want to store a credential (CredWrite api), I get the error :
Failed to write credential: A specified logon session does not exist. It may already have been terminated.
So is it possible to use the Windows Credential mechanism in this context ? If yes, how can I get the desired results ? If not, what is the best solution to handle my needs (store and retrieve) ?
Environment : Windows Server 2008 R2 Enterprise
The group policy setting Network access: Do not allow storage of password and credentials for network authentication is disabled.
Thanks for help.
- Edited by Explorer_69 Monday, May 18, 2015 8:47 PM