Samba/SMB re-authenticates on every request

iOS, iPad, iPhone, tvOS specific usage questions
Tatsh
New Cone
New Cone
Posts: 2
Joined: 20 Jun 2018 08:39

Samba/SMB re-authenticates on every request

Postby Tatsh » 20 Jun 2018 08:49

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Samba/SMB re-authenticates on every request

Postby Jean-Baptiste Kempf » 21 Jun 2018 23:51

This is a bug, then.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: No registered users and 9 guests