Microsoft KB Archive/266066

{|
 * width="100%"|

BUG: Windows 2000 Services Cannot Access Some Network Resources

 * }

Q266066

-

The information in this article applies to:


 * Microsoft Win32 Application Programming Interface (API), included with:
 * the operating system: Microsoft Windows 2000

-

SYMPTOMS
When the Service Control Manager (SCM) starts a service under a specific user account, it must initiate a logon session for the user. In Windows 2000, the SCM does not notify credential managers and network providers of this new logon session. As a result, Win32 APIs that attempt to access a network resource, such as a printer or share, may fail with error 53 (ERROR_BAD_NETPATH) or error 68 (ERROR_INVALID_PASSWORD).

This problem will affect any service that relies on the network provider to supply credentials when connecting to a remote resource. For example, Microsoft's Gateway Services for NetWare and Novell's NetWare client experience this problem when accessed through a service that is running under a specific user account.

WORKAROUND
To work around this problem, the service can explicitly cause the credential managers and network providers to receive a logon notification by calling WNetAddConnection2 or WNetAddConnection3. These APIs require the user credentials (username and password). Note that the developer of the service should implement appropriate security measures to protect the user credentials from misuse. These include, but are not limited to, storing the password in a suitably encrypted form.

RESOLUTION
To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, please see the following article in the Microsoft Knowledge Base:

"Q260910 How to Obtain the Latest Windows 2000 Service Pack" The English version of this fix should have the following file attributes or later:

  Date        Time    Version         Size    File name 09/29/2000  4:35p   5.0.2195.2394  83.7KB  services.exe 10/11/2000 11:13a   5.0.2195.2458  101KB   msv1_0.dll

STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.

Additional query words:

Keywords : kbKernBase kbOSWin2000bug kbService kbSvcMgr kbDSupport kbGrpDSKernBase kbWin2000SP2Fix

Issue type : kbbug

Technology : kbAudDeveloper kbWin32sSearch kbWin32API