Hello, developers of samba. http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q316740& SMB Logoff Command Is Not Sent When Session Is Disconnected The information in this article applies to: Microsoft Windows 2000 Advanced Server Microsoft Windows 2000 Professional Microsoft Windows 2000 Server Microsoft Windows XP Professional Microsoft Windows XP Home Edition SYMPTOMS Windows 2000 and Windows XP do not send an SMB Logoff & X command when an SMB session is disconnected from an SMB server that does not understand Microsoft Windows NT status codes. This includes certain UNIX servers such as Linux that is running Samba SMB Server, Microsoft Windows 98, Microsoft Lan Manager, and so on. CAUSE When you disconnect a mapped drive to a share on the server, the client sends a Tree Disconnect &X command to the server. If that is the last mapped drive to that server, this command is followed by a logoff &X command to clean up all sessions for that user. Windows 2000 and Windows XP clients do not send the logoff &X command to the SMB server if the server does not understand Windows NT status codes, even if the dialect that was negotiated is NT LM 0.12 (the highest version of dialect that is supported by Windows 2000 and Windows XP). This design change was made in Windows 2000 and Windows XP because many SMB servers that do not support Windows NT status codes cannot correctly handle session logoffs. STATUS This behavior is by design. MORE INFORMATION The user session is cleaned up when the transport session between the client and server is closed. For example, if you are using TCP/IP for the connection, Windows 2000 and Windows XP will close that TCP session with the server, ending the user session as well. Windows 2000 and Windows XP closes this transport session much sooner than earlier versions of Windows to prevent open user sessions to linger on the server. p.s. I think, this bug must be closed before samba 2.2.6 is released. -- Vladimir I. Umnov mailto:samba@ezmail.ru
On Tue, 10 Sep 2002, Vladimir I. Umnov wrote:> Windows 2000 and Windows XP do not send an SMB Logoff & X command when > an SMB session is disconnected from an SMB server that does not > understand Microsoft Windows NT status codes. This includes certain UNIX > servers such as Linux that is running Samba SMB Server, Microsoft > Windows 98, Microsoft Lan Manager, and so on.SAMBA_2_2 does support NT status codes. This bug does not apply to us. The KB article is wrong. cheers, jerry --------------------------------------------------------------------- Hewlett-Packard http://www.hp.com SAMBA Team http://www.samba.org -- http://www.plainjoe.org "Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--
Vladimir I. Umnov
2002-Sep-10 17:10 UTC
[Samba] For developers (and for users "Solve from MS - network disk - lost connection")
Hello, Gerald. GJC> On Tue, 10 Sep 2002, Vladimir I. Umnov wrote:>> Windows 2000 and Windows XP do not send an SMB Logoff & X command when >> an SMB session is disconnected from an SMB server that does not >> understand Microsoft Windows NT status codes. This includes certain UNIX >> servers such as Linux that is running Samba SMB Server, Microsoft >> Windows 98, Microsoft Lan Manager, and so on.GJC> SAMBA_2_2 does support NT status codes. This bug does not apply to us. GJC> The KB article is wrong. Ok, according to Microsoft related article, we must set HKLM\SYSTEM\CurrentControlSet\Services\lanmanworkstation\parameters\EnableDownLevelLogOff to "1" for enabling sending of SMB Logoff & X command!!! I check it tomorrow and send results after that. -- Vladimir I. Umnov mailto:samba@ezmail.ru