Re: Handle leak in Windows 2003 Authorization Manager?
From: Gary Chang[MSFT] (v-garych_at_online.microsoft.com)
Date: 12/08/04
- Previous message: Ulrich Peters: "USERINIT.EXE won't work when called in my gina.dll"
- In reply to: Stefan Cuypers: "Re: Handle leak in Windows 2003 Authorization Manager?"
- Next in thread: Stefan Cuypers: "Re: Handle leak in Windows 2003 Authorization Manager?"
- Reply: Stefan Cuypers: "Re: Handle leak in Windows 2003 Authorization Manager?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 08 Dec 2004 02:37:02 GMT
Hi Stefan,
We could not reproduce the token handle leak problem using your modified VB
sample code (modified to use a local XML store and a redmond user account)
on W2K3.
When you run this VB 6.0 test() method repeatedly, does it leak one token
handle for each method call?
If you look at the token handle in Process Explorer, does it show the
username as NT AUTHORITY\SYSTEM or CC\Stefan?
Can you reproduce the problem on other W2K3 systems?
By the way, for performance reasons, recommended approach is to use
InitializeClientContextFromToken, if a token for that domain user account
is available or if you are constructing client context for the user account
under which the code runs, specify NULL for ullTokenHandle parameter.
If a token is not available and if
IAzApplication.InitializeClientContextFromName needs to be used, it is
advised to cache the client context handle returned by
AzApplication.InitializeClientContextFromName for a given domain user
account and use it later for future use in the same process to avoid
expensive membership evaluation/S4U logon calls everytime.
Thanks!
Best regards,
Gary Chang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
- Previous message: Ulrich Peters: "USERINIT.EXE won't work when called in my gina.dll"
- In reply to: Stefan Cuypers: "Re: Handle leak in Windows 2003 Authorization Manager?"
- Next in thread: Stefan Cuypers: "Re: Handle leak in Windows 2003 Authorization Manager?"
- Reply: Stefan Cuypers: "Re: Handle leak in Windows 2003 Authorization Manager?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|