Page 1 of 1

Samba/SMB re-authenticates on every request

Posted: 20 Jun 2018 08:49
by Tatsh
Is there anything that can be done to improve listing performance? I am running Samba on a Linux server and on my Linux and Mac machines everything is pretty fast. All of this is local. On iOS it takes a few seconds every time to list files even when there are only a few. What I noticed looking at SMB logs is that VLC is re-authenticating at every listing request and to view files, and most of the time closes the connection after. Other clients (like Dolphin in KDE on Linux) are not doing this and listings are nearly instant on those once authenticated. Please see logs below.

One request:

Code: Select all

[2018/06/19 23:45:09.125603, 2] ../source3/auth/auth.c:305(auth_check_ntlm_password) check_ntlm_password: authentication for user [tatsh] -> [tatsh] -> [tatsh] succeeded [2018/06/19 23:45:09.130082, 2] ../lib/util/modules.c:196(do_smb_load_module) Module 'streams_xattr' loaded [2018/06/19 23:45:09.132061, 2] ../lib/util/modules.c:196(do_smb_load_module) Module 'fruit' loaded [2018/06/19 23:45:09.133944, 2] ../lib/util/modules.c:196(do_smb_load_module) Module 'catia' loaded [2018/06/19 23:45:09.134177, 2] ../source3/smbd/service.c:822(make_connection_snum) workgroup (ipv4:192.168.1.201:49213) connect to service files initially as user tatsh (uid=1000, gid=1000) (pid 23931) [2018/06/19 23:45:09.136319, 2] ../source3/smbd/dosmode.c:136(unix_mode) unix_mode(audio) inheriting from . [2018/06/19 23:45:09.136345, 2] ../source3/smbd/dosmode.c:161(unix_mode) unix_mode(audio) inherit mode 40755 [2018/06/19 23:45:09.145882, 2] ../source3/smbd/service.c:1098(close_cnum) workgroup (ipv4:192.168.1.201:49213) closed connection to service files
Subsequent request to go into a subdirectory (note the time difference):

Code: Select all

[2018/06/19 23:45:54.605854, 2] ../source3/auth/auth.c:305(auth_check_ntlm_password) check_ntlm_password: authentication for user [tatsh] -> [tatsh] -> [tatsh] succeeded [2018/06/19 23:45:54.610383, 2] ../lib/util/modules.c:196(do_smb_load_module) Module 'streams_xattr' loaded [2018/06/19 23:45:54.612362, 2] ../lib/util/modules.c:196(do_smb_load_module) Module 'fruit' loaded [2018/06/19 23:45:54.614228, 2] ../lib/util/modules.c:196(do_smb_load_module) Module 'catia' loaded [2018/06/19 23:45:54.614447, 2] ../source3/smbd/service.c:822(make_connection_snum) workgroup (ipv4:192.168.1.201:49215) connect to service files initially as user tatsh (uid=1000, gid=1000) (pid 23972) [2018/06/19 23:45:54.615815, 2] ../source3/smbd/dosmode.c:136(unix_mode) unix_mode(video) inheriting from . [2018/06/19 23:45:54.615847, 2] ../source3/smbd/dosmode.c:161(unix_mode) unix_mode(video) inherit mode 40755 [2018/06/19 23:45:54.625186, 2] ../source3/smbd/service.c:1098(close_cnum) workgroup (ipv4:192.168.1.201:49215) closed connection to service files

Re: Samba/SMB re-authenticates on every request

Posted: 21 Jun 2018 23:51
by Jean-Baptiste Kempf
This is a bug, then.