CREDUI API - Cached credentials don't survive a reboot
- From: "Pat" <patrick.philippot@xxxxxxxxxxxxxx>
- Date: Tue, 11 Aug 2009 17:43:33 +0200
Hi,
Lets' assume a program that uses the CREDUI API (CredUIPromptForCredentials) to retrieve and store a user's generic credentials for accessing a remote server. The PERSIST flag is set and a call to CredUIConfirmCredentials is made to allow the credentials to stored locally. No problem. No error returned by the system. Everything works well until the system is rebooted. Then the credentials are lost and must be re-entered. I have also tested the CredWrite function. Same results.
I have examined all possible causes that could explain that these credentials are not persisted. To no avail. Yes, the "Network access: Do not allow storage of credentials or .NET Passports for network authentication" policy is disabled and the "Number of previous logons to cache " is OK (only 4 entries from 10 are used). The calling application is run under an administrator account.
The credentials do not appear in "Stored Usernames and Passwords" although they are actually cached because when closing and re-starting the application, the program can find and use them without any problem, even after a logoff/logon. Just, they are cleared after a reboot.
I have seen that I'm not the only one with this problem which occurs only on one system here (all systems are running XP SP3 and the very same code works flawlessly on the other systems). I have verified that all system DLLs are at the very same level on all systems. I have also checked the registry permissions for the keys that are normally used to store persistent credentials. No luck. I'm stuck.
Any idea will be welcome.
Thanks in advance.
--
Patrick
.
- Prev by Date: Re: Is it possible to authenticate a user against an untrusted dom
- Next by Date: MsiGetFileSignatureInformationW on invalid certificates
- Previous by thread: Cannot access certificate
- Next by thread: MsiGetFileSignatureInformationW on invalid certificates
- Index(es):
Relevant Pages
|