Samba 4.x package support thread

Yes that is correct, i changed the init script to take care of this and set the netbios name to the hostname (the current snapshot version has this change). The "hostname" setting field in luci is not used anymore and i need to update the UI package as well.

As noted thats a side-effect from switching from netbios to wsd. MacOS uses mdns via avahi, which takes care of the correct nameing.

1 Like

Got it.

It makes sense now- I thought the bug was supposed to be fixed using some other way. Sorry for not paying attention.

@Andy2244 i have NO-MORE-LAG-ROUTER.NO-MORE-NETWORK in network list on windows any idea why ?

Apparently that is your hostname and domain, for your router, under it you should see your shares. That's announced by wsdd2, via the netbios name option, which needs to match now, to browse shares by name.

JFYI: If avahi-daemon disabled, Samba start using it's hostname, instead of router one. I mention it recently then fight poor read performance.

Yes you probably have a older samba4 build, this should be fixed in the latest snapshot ones. I changed the logic and now always use hostname.domain, the luci samba hostname field is ignored now.

i think that .domain should be ignored...

I prefer to use both, but this OK too.

Why do you think it should be ignored?

On windows the name is displayed with domain and I get error can't find the path

Um, than something is broken yet again, dammit.
I use router.lan as hostname/domain combo and can see, access this path just fine under windows. Can you check the set hostname, domain/suffix of your router and whats set via netbios name in the smb.conf?
What is the error you get under windows? You should be able to access this path normally, can you ping the router using the FQDN ?

On the share what is the name displayed?

Here is what things look for me on a nearly default setup.
1

My router is configured with unbound as dns server (and odhcpd only as dhcp server )
Don't know if we should cover also this use case...

So my share would be

no-more-lag-router.No-Lag-Network. (pay attention to the ending point)

or

no-more-lag-router

(or just add a checkbox in luci configuration page to force override hostname with a custom one)

I just leave it here. It's what happened if i try to watch movie from samba share at my Android TV:

Wed Oct 10 19:38:44 2018 daemon.err smbd[9720]: [2018/10/10 19:38:44.683955,  0] ../libcli/smb/smb2_signing.c:171(smb2_signing_check_pdu)
Wed Oct 10 19:38:44 2018 daemon.err smbd[9720]:   Bad SMB2 signature for message
Wed Oct 10 19:38:44 2018 daemon.err smbd[9720]: [2018/10/10 19:38:44.684097,  0] ../lib/util/util.c:514(dump_data)
Wed Oct 10 19:38:44 2018 daemon.err smbd[9720]:   [0000] 81 C6 2C 57 30 AA 29 54   B7 66 9C A1 E5 C6 7B 42   ..,W0.)T .f....{B
Wed Oct 10 19:38:44 2018 daemon.err smbd[9720]: [2018/10/10 19:38:44.684249,  0] ../lib/util/util.c:514(dump_data)
Wed Oct 10 19:38:44 2018 daemon.err smbd[9720]:   [0000] 79 49 77 07 D7 B6 1C 81   75 7D 07 62 5E 68 6A 4A   yIw..... u}.b^hjJ
Wed Oct 10 19:38:44 2018 daemon.err smbd[9720]: [2018/10/10 19:38:44.693032,  0] ../libcli/smb/smb2_signing.c:171(smb2_signing_check_pdu)
Wed Oct 10 19:38:44 2018 daemon.err smbd[9720]:   Bad SMB2 signature for message
Wed Oct 10 19:38:44 2018 daemon.err smbd[9720]: [2018/10/10 19:38:44.693133,  0] ../lib/util/util.c:514(dump_data)
Wed Oct 10 19:38:44 2018 daemon.err smbd[9720]:   [0000] 79 B4 23 21 1C 20 5B 68   36 D8 24 0F 0B 54 9F 19   y.#!. [h 6.$..T..
Wed Oct 10 19:38:44 2018 daemon.err smbd[9720]: [2018/10/10 19:38:44.693274,  0] ../lib/util/util.c:514(dump_data)
Wed Oct 10 19:38:44 2018 daemon.err smbd[9720]:   [0000] 9E 84 7E 00 43 19 57 DD   DD 59 EF 1F 28 ED B8 6A   ..~.C.W. .Y..(..j
Wed Oct 10 19:39:00 2018 daemon.err smbd[9723]: [2018/10/10 19:39:00.362183,  0] ../libcli/smb/smb2_signing.c:171(smb2_signing_check_pdu)
Wed Oct 10 19:39:00 2018 daemon.err smbd[9723]:   Bad SMB2 signature for message
Wed Oct 10 19:39:00 2018 daemon.err smbd[9723]: [2018/10/10 19:39:00.362392,  0] ../lib/util/util.c:514(dump_data)
Wed Oct 10 19:39:00 2018 daemon.err smbd[9723]:   [0000] 24 ED 69 A6 BE 14 A4 49   7C D0 04 06 FA CC 79 DB   $.i....I |.....y.
Wed Oct 10 19:39:00 2018 daemon.err smbd[9723]: [2018/10/10 19:39:00.362598,  0] ../lib/util/util.c:514(dump_data)
Wed Oct 10 19:39:00 2018 daemon.err smbd[9723]:   [0000] 5D 50 E4 56 0D 14 95 4F   71 A1 1F 40 95 3A DA A5   ]P.V...O q..@.:..
Wed Oct 10 19:39:00 2018 daemon.err smbd[9723]: [2018/10/10 19:39:00.383484,  0] ../libcli/smb/smb2_signing.c:171(smb2_signing_check_pdu)
Wed Oct 10 19:39:00 2018 daemon.err smbd[9723]:   Bad SMB2 signature for message
Wed Oct 10 19:39:00 2018 daemon.err smbd[9723]: [2018/10/10 19:39:00.383647,  0] ../lib/util/util.c:514(dump_data)
Wed Oct 10 19:39:00 2018 daemon.err smbd[9723]:   [0000] 33 76 80 33 E6 94 3B 9F   2A 96 C5 68 A0 BF B3 78   3v.3..;. *..h...x
Wed Oct 10 19:39:00 2018 daemon.err smbd[9723]: [2018/10/10 19:39:00.383845,  0] ../lib/util/util.c:514(dump_data)
Wed Oct 10 19:39:00 2018 daemon.err smbd[9723]:   [0000] 57 4C CD 6D D2 18 A3 7D   DE 93 AE E2 7B 3C 9A D5   WL.m...} ....{<..

So there is an extra '.' at the end of the domain? The problem i had is that the hostname tool is not build by default, so i did what most other packages do and grabbed the values directly via uci from the configs.

Can you verify what cat /proc/sys/kernel/hostname and cat /proc/sys/kernel/domainname would print?

PS: PR is out, hopefully this finally solves your issue and thanks for the reports.

Use NFS for WiFi if you can. Night and day diff in speed. On Ethernet however, Samba4 all the way:)

Hostname No-More-Lag-Router
Domain name none

So you should add a check to exclude domain name if none

Is there any ETA when the Samba 4 will be aviable to install from the mainstream repo of the 18.06 rampis version?

Speeds are dependent upon client wifi card drivers