Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smb listed users are wrong #87

Open
Meliox opened this issue Feb 21, 2024 · 0 comments
Open

smb listed users are wrong #87

Meliox opened this issue Feb 21, 2024 · 0 comments

Comments

@Meliox
Copy link

Meliox commented Feb 21, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant