This is inspired by a customer reporting that a Mac OS client disconnects the connection after a few hours if the server is called by dns name and likely uses kerberos. I found this https://apple.stackexchange.com/questions/373563/macs-disconnect-from-smb-share-status-network-session-expired-0xc000035c It basically showed that a Mac OS Client does a compound chain of Create(Open) QueryDirectory Close The Create gets NT_STATUS_NETWORK_SESSION_EXPIRED The QueryDirectory gets NT_STATUS_INVALID_PARAMETER The Close gets NT_STATUS_NETWORK_NAME_DELETED While a Windows server would return NETWORK_SESSION_EXPIRED for all 3. I guess it's the NETWORK_NAME_DELETED that triggers the disconnect on the MacOS client...
This bug was referenced in samba master: f6009aa73b9234df1e6ab689de322487ad1394ed 4df1bfd07012dd3d2d2921281e6d6e309303b88d
Created attachment 18409 [details] Patches for v4-21-test
Created attachment 18410 [details] Patches for v4-20-test
Created attachment 18411 [details] Patches for v4-19-test
Re-assigning to Jule for inclusion in 4.21.next, 4.20.next, 4.19.next.
Pushed to autobuild-v4-{21,20}-test. I will push to 4.19 if there will be another bug-fix release.
This bug was referenced in samba v4-21-test: 64416b69784c7f2df44f930d1e9d925573138632 3805545491419cf9a0ff7f0d2b45384c1adc14bf
This bug was referenced in samba v4-21-stable (Release samba-4.21.0rc3): 64416b69784c7f2df44f930d1e9d925573138632 3805545491419cf9a0ff7f0d2b45384c1adc14bf
Pushed to autobuild-v4-19-test.
This bug was referenced in samba v4-20-test: 6a416edfa214c9807a65d6d62cbe2e30f836d701 0bd26677e65b700c23d07e524c1b884ee0bfe6fc
This bug was referenced in samba v4-19-test: 3db88bd0527b37ca297627cf223ed44ae9256900 2d944eb04adedf31549c9ae9ad5d46e59c449f10
Closing out bug report. Thanks!
This bug was referenced in samba v4-20-stable (Release samba-4.20.5): 6a416edfa214c9807a65d6d62cbe2e30f836d701 0bd26677e65b700c23d07e524c1b884ee0bfe6fc
This bug was referenced in samba v4-19-stable (Release samba-4.19.9): 3db88bd0527b37ca297627cf223ed44ae9256900 2d944eb04adedf31549c9ae9ad5d46e59c449f10