[Samba] Windows clients connecting to SMB share differently over IP than DNS
rpenny at samba.org
Thu Apr 1 18:35:46 UTC 2021
On 01/04/2021 18:51, Gavin Greenwalt wrote:
> >It might help if the OP did two things:
> >Upgrade Samba, 4.4.16 is very old and EOL.
> >Post their smb.conf, at the moment we have no idea how they are running Samba.
> Unfortunately I'm locked into 4.4 because that's what Synology is using in DSM.
Not being a synology user, what does that actually mean ? Does it mean
that it is impossible to upgrade Samba ?
> But my next step will be to spin up a fresh VM of Ubuntu and compare a clean installation of 4.4.16 to see if Synology DSM is somehow introducing the slowdown.
I would also try a supported version of Samba.
> smb.conf (sanitized) >
> printcap name=cups
> winbind enum groups=yes
the 'winbind enum' lines could be slowing things down.
Interesting, you have SMBv1 turned off, but you have an include file
called smb.netbios.aliases.conf, (you need SMBv1 for netbios), so what
is in it ?
> password server=22.214.171.124
You should allow Samba to find the best password server
> encrypt passwords=yes
> admin users=@DOM\Domain Admins, at DOM\Enterprise Admins
> min protocol=SMB2_10
> local master=no
> realm=DOMAIN.COM <http://DOMAIN.COM>
> syno sync dctime=yes
> passdb backend=smbpasswd
Samba was telling people to not smbpasswd as the passdb backend way back
in the 3.x.x days, so why is your Synology device still using it ?
> ldap timeout=60
> max protocol=SMB3
> winbind enum users=yes
> load printers=yes
> smbinfo.conf >
> prev domain=DOM
> server signing=yes
> veto files=
> smb2 leases=yes
> btrfs clone=no
> winbind expand groups=1
> register nic=bond1
> enable nt4 enum=no
> allow insecure widelinks=no
> disable shadow copy=no
> smb.share.conf >
> recycle bin admin only=yes
> ftp disable modify=no
> ftp disable download=no
> write list=nobody,nobody
> hide unreadable=no
> win share=yes
> enable recycle bin=yes
> invalid users=nobody,nobody
> read list=nobody,nobody
> ftp disable list=no
> edit synoacl=yes
> valid users=nobody,nobody
> guest ok=yes
> skip smb perm=yes
> comment="Share Directory"
What are 'smbinfo.conf' and 'smb.share.conf' , there doesn't seem to be
an 'include' for them.
Now the big one, what is doing the ID mapping ? I do not see any 'idmap
config' or even any 'idmap uid' & 'idmap gid' lines.
More information about the samba