CSNW Fails to Connect to Preferred Server

Last reviewed: January 30, 1998
Article ID: Q164763
The information in this article applies to:
  • Microsoft Windows NT Workstation versions 3.51 and 4.0
  • Microsoft Windows NT Server version 3.51 and 4.0

SYMPTOMS

Client Services for NetWare (CSNW) clients may fail to connect to their preferred server with the following error:

   NetWare Authentication Failure

   You cannot be authenticated on <server> due to the following reason:
   A connection to the server could not be made because the limit on the
   number of concurrent connections for this account has been reached.

   Do you want to select another preferred server?

CAUSE

This problem only occurs if the following steps are used:

  1. A CSNW client creates a new printer, or prints to an existing printer during a logon session.

  2. The CSNW client logs out.

  3. The CSNW client immediately logs back on as the same user without restarting the workstation.

The problem occurs because the previous preferred server connection is never closed. It may fail to close if the Logon User ID (LUID) for the previous logon session was not released after a new printer was created or if an existing printer was used.

The previous logon session was not released because its LUID, which is maintained by the kernel, has a reference counter that is incremented when the user's credentials are impersonated (used) and decremented when the impersonation is released.

When the reference counter for an LUID reaches 0, the kernel notifies the Local Security Authority (LSA) that the user has logged out. The LSA then notifies CSNW to disconnect the user's preferred connection to the NetWare server. In this case, the LUID for the user who is currently logged on is never decremented to 0, so the LSA is never notified, which causes CSNW to never be notified of the logout to disconnect from the preferred server.

RESOLUTION

Currently, only a workaround exists for this problem. To enable the workaround, use the following steps:

For Windows NT 4.0

  1. Whenever a new printer is created, shut down and restart the workstation at the end of the day instead of logging out.

  2. Disable all spooler event logging using the following steps:

    a. Open Printers in Control Panel.

    b. Click File and select Server Properties.

    c. Click the Advanced tab on the Print Server Properties page.

    d. Disable all Log Spooler options.

    e. Click Ok, and then shut down and restart.

For Windows NT 3.51

  1. Whenever a new printer is created, shut down and restart the workstation at the end of the day instead of logging out.

  2. Disable all spooler event logging using the following steps:

    WARNING: Using Registry Editor incorrectly can cause serious, system- wide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk.

    a. Run Registry Editor (regedt32.exe).

    b. Go to the following key:

          HKEY_Local_Machine\System\CurrentControlSet\Control\Print\Providers
    

    c. Add the following value:

          EventLog = REG_DWORD 0x00000000
    

    d. Close Registry Editor, and then shut down and restart.

STATUS

Microsoft has confirmed this to be a problem in Windows NT versions 3.51 and 4.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Keywords          : kbbug3.51 kbbug4.00 ntprint NTSrvWkst kbprint
Version           : WinNT:3.51,4.0
Platform          : winnt
Hardware          : ALPHA x86
Issue type        : kbbug


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 30, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.