Score:0

Windows clients slow to open SAMBA on Debian 10 (when using short hostname)

cn flag

I'm having a strange problem for windows 8 and 2012R2 clients, which use a Debian 10 samba server in ADS mode. The issue is slow initial directory listing of the server, only when using the server's short name i.e. "\server"

If clients use \server.mydomain.example or \Server_IP_Address connections are very fast. If they use \server the connection takes between 1 and 30 seconds to show the initial directory listing.

I confirm that short name resolution works 100%. All windows hosts report IP address on:

nbtstat -a server

or

ping server

I tried to play some more with smb.conf (this works perfectly on my old Centos 6):

netbios name = server
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE

With and without these options FQDN and IP connections are lightning fast, while the short "server" name takes some time. Usually clients return: 0x80070035 or 0x80004005

Have anyone had a similar issue?

Score:0
cn flag

I found out that netbios is delaying the initial directory view of samba. Could be that SAMBA4 is doing something differently with netbios that SAMBA3 package. I stopped netbios support on the server, but this did not help, unless I stopped netbios over TCP/IP on the windows clients. Since then \server opens immediately.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.