The information in this article applies to:
SUMMARYIn Windows NT, the security accounts manager (SAM) manages a set of connections, referred to as active contexts. An active context is established as a result of user management query and set operations. Examples of operations that utilize active contexts are running User Manager and making certain Win32 LAN Manager Networking API calls. MORE INFORMATION
When a process makes a SAM-related call, a single active context is
consumed on the target machine, for the lifetime of the client process or
the lifetime of the open SAM handle, whichever is less. Win32 LAN Manager
Networking API calls maintain a single cached SAM handle per process,
because opening the SAM is considered an expensive operation. A side effect
of this caching operation is the use of an active context on the machine
that was the target of the last user management function.
Example ScenarioA large number of workstations are running a process that queries user information on the logon domain controller; this process remains running throughout the day. In this scenario, each process consumes an active context on the logon domain controller for the lifetime of the process. If the number of client processes exceeds 2048 (or 255 prior to Windows NT 3.51 SP4), each new process fails the SAM connection against the domain controller.In current versions of Windows NT, there is no API call for directly "closing" an active context. However, the following code fragment illustrates an approach that can be used to achieve this:
Additional query words:
Keywords : kbnetwork kbAPI kbKernBase kbNTOS350 kbNTOS400 kbWinOS2000 kbSDKPlatform kbSecurity kbNetAPI kbDSupport kbGrpNet kbGrpKernBase |
Last Reviewed: January 6, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |