Re: Logon Broker
- From: "Jos Scherders" <thrower@xxxxxxx>
- Date: Mon, 20 Feb 2006 22:32:06 +0100
Hi,
I tried this and LoadUserProfile is still failing with Access Denied.
The documentation states you need the SE_RESTORE_NAME and SE_BACKUP_NAME
privileges. Do I need to Enable these privileges as well or will the API try
to enable them ? Also, I saw a microsoft article stating that you need Admin
privileges to use
this API. Is that true ?
Can you explain why you use the impersonateloggedonuser() API ?
Thanks,
Jos.
"Kellie Fitton" <KELLIEFITTON@xxxxxxxxx> wrote in message
news:1140390808.248874.305890@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
Use the following APIs to launch the process under the user's
security context privilege:
LogonUserEx()
ImpersonateLoggedOnUser()
CreateEnvironmentBlock()
GetUserProfileDirectory()
LoadUserProfile()
CreateProcessAsUser()
Then,
DestroyEnvironmentBlock()
UnloadUserProfile()
RevertToSelf()
CloseHandle()
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauthn/security/logonuserex.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauthz/security/impersonateloggedonuser.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/policy/policy/createenvironmentblock.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/policy/policy/getuserprofiledirectory.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/policy/policy/loaduserprofile.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createprocessasuser.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/policy/policy/destroyenvironmentblock.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/policy/policy/unloaduserprofile.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauthz/security/reverttoself.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/closehandle.asp
Hope these information helps,
Kellie.
.
- References:
- Logon Broker
- From: Jos Scherders
- Logon Broker
- Prev by Date: Re: CAPI and RC4: can not decrypt when Final parameter is set to F
- Next by Date: Re: Logon Broker
- Previous by thread: Logon Broker
- Next by thread: Re: Logon Broker
- Index(es):
Relevant Pages
|