Err Msg: System Error 1240 Has Occurred. The Account Is Not Authorized to Login...

ID: Q224287


The information in this article applies to:
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Datacenter Server
  • Microsoft Windows 2000 Professional
  • Microsoft Windows 2000 Server

IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, view the "Restoring the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help topic in Regedt32.exe.

SYMPTOMS

When you attempt to connect to a third-party SMB server, such as DEC Pathworks or Samba, you may receive the following error message:

System error 1240 has occurred.

The account is not authorized to login from this station.


CAUSE

This issue can occur if the non-Microsoft SMB server supports only unencrypted (plain text) passwords during authentication.


RESOLUTION

To resolve this issue, contact the third-party SMB server manufacturer.

To work around this issue, use Regedit to enable unencrypted (plain text) passwords for the SMB client.

WARNING: When you enable unencrypted passwords, you allow unencrypted (plain text) passwords to be sent across the network when you authenticate to an SMB server that requests this option. Anyone using a packet monitoring utility on your network, such as Network Monitor, can read your password by taking a trace of network traffic.

WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.

For information about how to edit the registry, view the "Changing Keys and Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it. If you are running Windows NT, you should also update your Emergency Repair Disk (ERD).


To enable unencrypted passwords, add the following value and data value to the following registry key:

Value Name: EnablePlainTextPassword
Data Type: REG_DWORD
Data: 1

Registry Key

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkStation\Parameters
For additional information about this issue as it applies to Microsoft Windows NT 4.0 SP3 or later, see the following article in the Microsoft Knowledge Base:
Q166730 With Unencrypted Password SP3 Fails to Connect to SMB Server


MORE INFORMATION

Beginning with Microsoft Windows NT 4.0 Service Pack 3, the SMB redirector does not send an unencrypted password during authentication to an SMB server unless you add the registry entry described in this article.

In earlier versions of Windows NT 4.0, the client automatically negotiates unencrypted (plain text) password authentication if the server requests it.

Additional query words: plain text enableplaintextpassword password samba smb

Keywords : kb3rdparty kbenv kbnetwork ntsecurity
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbprb


Last Reviewed: December 29, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.