Impersonating accounts
From: Mat (anon_at_discussions.microsoft.com)
Date: 04/28/05
- Next message: deepice: "Modify Default User Template in Certificate Server"
- Previous message: Roger Abell: "Re: Security update dated 2/13/2002?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 28 Apr 2005 10:55:29 +1000
Hi,
I am logged into Windows as User A and running a service under Local System
account. This service is trying to find a certificate that is in the user
store (not the local machine store). To search for the certificate, I assume
I have to impersonate the user (User A) programmatically. The impersonation
functions are returning successfully and I am able to find the certificate.
However, the problem is that although the impersonation functions are
working, they do not load the registry hive for User A. So if I am logged in
to Windows as User B (or even logged out), the certificate searching fails.
How can I programmatically load the registry hive for a specific user?
Thanks,
Mat.
- Next message: deepice: "Modify Default User Template in Certificate Server"
- Previous message: Roger Abell: "Re: Security update dated 2/13/2002?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|