Bug 8023 - "net rap session" does not return correct messages
"net rap session" does not return correct messages
Status: RESOLVED FIXED
Product: Samba 3.5
Classification: Unclassified
Component: Client Tools
3.5.8
x86 Linux
: P5 minor
: ---
Assigned To: Volker Lendecke
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-17 15:15 UTC by TAKAHASHI Motonobu
Modified: 2011-03-17 20:24 UTC (History)
0 users

See Also:


Attachments
Patch (939 bytes, patch)
2011-03-17 20:23 UTC, Volker Lendecke
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description TAKAHASHI Motonobu 2011-03-17 15:15:03 UTC
From BUG#6473 "net rap session" cannot get username

I examined with Samba 3.5.8 + the patch for BUG#8009.

"net rap session" now can get username so BUG#8009 will be fixed, but
the output of "net rap session" is still wrong.

To examine, I create a simple share and put a MS-Word file and open it.

The output of smbstatus seems good:

==========
# smbstatus

Samba version 3.5.8
PID     Username      Group         Machine
-------------------------------------------------------------------
15685     monyo         users         mizuka       (::ffff:192.168.135.1)

Service      pid     machine       Connected at
-------------------------------------------------------
monyo        15685   mizuka        Thu Mar 17 23:58:41 2011
IPC$         15685   mizuka        Thu Mar 17 23:58:44 2011
IPC$         15685   mizuka        Fri Mar 18 00:05:20 2011

Locked files:
Pid          Uid        DenyMode   Access      R/W        Oplock           SharePath   Name   Time
--------------------------------------------------------------------------------------------------
15685        1000       DENY_WRITE 0x2019f     RDWR       NONE             /home/monyo   tmp/test.doc   Fri Mar 18 00:05:20 2011
==========

The word file is opened and locked.

But the output of "net rap session" displays 0 files are opened and "Opens Idle time" is always 00:00:00, although the username is correctly set:

==========
# net -U root%password -S localhost rap session
Computer             User name            Client Type        Opens Idle time
------------------------------------------------------------------------------
\\mizuka             monyo                Unknown Client         0 00:00:00
\\lenny5             root                 Unknown Client         0 00:00:00
==========

And "net rap session info" returns nothing:

==========
# net -U root%password -S localhost rap session info \\\\mizuka
Share name     Type     # Opens
------------------------------------------------------------------------------
==========
Comment 1 Volker Lendecke 2011-03-17 20:23:23 UTC
Created attachment 6302 [details]
Patch

That's a server issue. Against Windows it works fine. The attached patch is on its way to master, I don't think we'll fix this in 3.5.
Comment 2 Volker Lendecke 2011-03-17 20:24:01 UTC
Will be fixed in 3.6. Closing as fixed.