1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s3:utils: Use better error message for smbtree

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Jul 16 03:45:19 UTC 2021 on sn-devel-184
This commit is contained in:
Andreas Schneider 2021-07-14 11:38:39 +02:00 committed by Jeremy Allison
parent 155348cda6
commit 1f047831c1

View File

@ -161,7 +161,14 @@ int main(int argc, char *argv[])
workgroups = smbc_getFunctionOpendir(ctx)(ctx, "smb://");
if (workgroups == NULL) {
perror("smbc_opendir");
DBG_ERR("This is utility doesn't work if netbios name "
"resolution is not configured.\n"
"If you are using SMB2 or SMB3, network browsing uses "
"WSD/LLMNR, which is not yet supported by Samba. SMB1 "
"is disabled by default on the latest Windows versions "
"for security reasons. It is still possible to access "
"the Samba resources directly via \\name or "
"\\ip.address.\n");
goto fail;
}