FWIW, the following occurs when I double-click on the host to see its
shares. Messages in the log are displayed immediately but Windows still
waits several seconds before displaying the shares:
root at debian:~# tail -f /var/log/samba/log.smbd
[2024/10/17 19:02:13.434025,? 2]
../../source3/lib/tallocmsg.c:84(register_msg_pool_usage)
? Registered MSG_REQ_POOL_USAGE
[2024/10/17 19:02:13.468958,? 2]
../../source3/auth/auth.c:345(auth_check_ntlm_password)
? check_ntlm_password:? Authentication for user [fred] -> [fred] FAILED
with error NT_STATUS_NO_SUCH_USER, authoritative=1
[2024/10/17 19:02:13.470471,? 2]
../../auth/auth_log.c:647(log_authentication_event_human_readable)
? Auth: [SMB2,(null)] user [MYPUTER]\[fred] at [Thu, 17 Oct 2024
19:02:13.470182 CEST] with [NTLMv1] status [NT_STATUS_NO_SUCH_USER]
workstation [MYPUTER] remote host [ipv4:192.168.0.17:56659] mapped to
[MYPUTER]\[fred]. local host [ipv4:192.168.0.15:445]
? {"timestamp": "2024-10-17T19:02:13.471976+0200",
"type":
"Authentication", "Authentication": {"version":
{"major": 1, "minor":
2}, "eventId": 4625, "logonId": "0",
"logonType": 3, "status":
"NT_STATUS_NO_SUCH_USER", "localAddress":
"ipv4:192.168.0.15:445",
"remoteAddress": "ipv4:192.168.0.17:56659",
"serviceDescription":
"SMB2", "authDescription": null, "clientDomain":
"MYPUTER",
"clientAccount": "fred", "workstation":
"MYPUTER", "becameAccount":
null, "becameDomain": null, "becameSid": null,
"mappedAccount": "fred",
"mappedDomain": "MYPUTER", "netlogonComputer":
null,
"netlogonTrustAccount": null, "netlogonNegotiateFlags":
"0x00000000",
"netlogonSecureChannelType": 0, "netlogonTrustAccountSid":
null,
"passwordType": "NTLMv1", "duration": 6515}}
[2024/10/17 19:02:13.476724,? 2]
../../source3/param/loadparm.c:2897(lp_do_section)
? Processing section "[www]"
[2024/10/17 19:02:13.478484,? 0]
../../lib/param/loadparm.c:749(lpcfg_map_parameter)
? Unknown parameter encountered: "security mask"
[2024/10/17 19:02:13.483260,? 0]
../../lib/param/loadparm.c:1936(lpcfg_do_service_parameter)
? Ignoring unknown parameter "security mask"
[2024/10/17 19:02:13.484668,? 0]
../../lib/param/loadparm.c:749(lpcfg_map_parameter)
? Unknown parameter encountered: "force security mode"
[2024/10/17 19:02:13.488062,? 0]
../../lib/param/loadparm.c:1936(lpcfg_do_service_parameter)
? Ignoring unknown parameter "force security mode"
[2024/10/17 19:02:13.489202,? 2]
../../source3/param/loadparm.c:2897(lp_do_section)
? Processing section "[sdcard]"
On 17/10/2024 16:21, Gilles via samba wrote:> I notice that when double-clicking on the Network icon in Windows, the
> host is displayed instantly: What takes several seconds is
> double-clicking on the Debian host to display its shares.
>
> Windows? wsdd? Samba?
>
> On 17/10/2024 15:59, Gilles via samba wrote:
>> Thanks. I actually started with wsdd2 before removing it and
>> installing to wsdd to see if it made a difference (no).
>>
>> Launching wsd with -vvv shows nothing when typing "net view
\\debian"
>> on Windows, so I suspect it's something in Windows, although the
two
>> WSD-related services are running: ?Function Discovery Provider Host?
>> and ?Function Discovery Resource Publication? are both
"Running" and
>> "Manual/Manual (Trigger Start)".
>>
>> Maybe for some reaons, my Windows 10 is not calling WSD and relying
>> on broadcasting?
>>
>> On 17/10/2024 15:18, Ingo Asche via samba wrote:
>>> If you're running Bookworm you can try WSDD2:
>>> https://packages.debian.org/bookworm/net/wsdd2
>>>
>>> Maybe it's faster...
>>>
>>> Regards
>>> Ingo
>>> https://github.com/WAdama
>>>
>>>
>>>
>>> Gilles via samba schrieb am 17.10.2024 um 15:01:
>>>> On 17/10/2024 12:52, Rowland Penny via samba wrote:
>>>> > You only need nmbd if you are using SMBv1 (which from your
smb.conf
>>>> > file you are not), I would disable it and add 'disable
netbios
>>>> > = yes' to the 'global' part of your smb.conf
file. NetBIOS provided
>>>> > 'Network Browsing' which has been replaced by
'Network Discovery'
>>>> and
>>>> > that is what wsdd is for, but wsdd has nothing to do with
Samba.
>>>> >
>>>> > You might as well disable the 'samba-ad-dc'
service, you are not
>>>> > running a Samba AD DC.
>>>>
>>>> Thanks for the infos. wsdd takes as much time to respond, but
since
>>>> it has nothing to do with with Samba, I'll look at that
particular
>>>> piece of software.
>>>>
>>>> =======>>>> systemctl stop nmbd
>>>> systemctl disable nmbd
>>>>
>>>> systemctl stop samba-ad-dc
>>>> systemctl disable samba-ad-dc
>>>>
>>>> vi /etc/samba/smb.conf:
>>>> [global]
>>>> ?
>>>> disable netbios = yes
>>>>
>>>> smbcontrol smbd reload-config
>>>> =======>>>>
>>>
>>>
>>
>>
>
>