Skip to content

smb listed users are wrong #87

Description

@Meliox

Given that several smb connection exists from same host with different credential logins, all streams show the same username.

smbstatus -L

Samba version 4.17.12
PID     Username     Group        Machine                                   Protocol Version  Encryption           Signing              
----------------------------------------------------------------------------------------------------------------------------------------
6980    user1      users        192.168.3.3 (ipv4:192.168.3.3:60226)      SMB3_00           -                    partial(AES-128-CMAC)
6980    user2       users        192.168.3.3 (ipv4:192.168.3.3:60226)      SMB3_00           -                    partial(AES-128-CMAC)
6980    uster3        users        192.168.3.3 (ipv4:192.168.3.3:60226)      SMB3_00           -                    partial(AES-128-CMAC)

Locked files:
Pid          User(ID)   DenyMode   Access      R/W        Oplock           SharePath   Name   Time
--------------------------------------------------------------------------------------------------
6980         1005       DENY_NONE  0x120196    WRONLY     LEASE(RWH)       /mnt/user/ 
6980         1001       DENY_NONE  0x120089    RDONLY     LEASE(RWH)       /mnt/user/

Result in webgui:

HOST	USER	SHARE	TYPE	STREAM	PLAYTIME	SIZE	HALT
192.168.3.3	user2	xxx	0:04:13	4.25 GB	
192.168.3.3	user2	xxx	0:09:17	23 MB

Where the expected result is user1 and user2

Lookup seems to be ok:
https://github.com/bergware/dynamix/blob/f66d34fdb5a3183d8799a179b8a35cf7def75e1b/source/active-streams/include/StreamList.php#L57C24-L57C39

But the translation to users seems off.

Version: 2023.02.19
Unraid 6.12.8

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions