Bug 439747 - Dolphin is unable to access passwordless windows 10 shares.
Summary: Dolphin is unable to access passwordless windows 10 shares.
Status: RESOLVED UPSTREAM
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 21.04.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-11 06:48 UTC by firewalker
Modified: 2021-07-15 14:18 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Video demonstrating the issue (2.11 MB, video/x-matroska)
2021-07-13 12:24 UTC, firewalker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description firewalker 2021-07-11 06:48:15 UTC
I have a windows 10 pc with some passwordless shared folders. I can access those folders anonymously (user:anonymous, password:anonymous).

Using smbclient I can login without problems

smbclient //192.168.1.69/shared/ -U anonymous 

or
 
smbclient //192.168.1.69/shared/ -N

The problem is with Dolphin. It asks for a password and it can't accept anonymous. Eg. smb://anonymous:anonymous@192.168.1.69/shared/ will fail to login and Dolphin asks for password.

Operating System: Arch Linux
KDE Plasma Version: 5.22.3
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2
Kernel Version: 5.12.15-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 PRO 4650U with Radeon Graphics
Memory: 14,9 GiB of RAM
Graphics Processor: AMD RENOIR

dolphin --new-window smb://anonymous:anonymous@192.168.1.69/shared/

[     0.000](12456)/(kf.xmlgui) unknown: KActionCollection::setComponentName does not work on a KActionCollection containing actions! "dolphin"
[     0.000](12493)/(log_kio_smb) unknown: auth_initialize_smbc
[     0.000](12493)/(log_kio_smb) unknown: Setting debug level to: 0
[     0.000](12493)/(log_kio_smb) unknown: Using libsmbclient library version 4.14.5
[     0.014](12493)/(log_kio_smb) unknown: QUrl("smb://anonymous@192.168.1.69/shared")
[     0.014](12493)/(log_kio_smb) unknown: checkURL  QUrl("smb://anonymous@192.168.1.69/shared")
[     0.014](12493)/(log_kio_smb) unknown: checkURL return3  QUrl("smb://anonymous@192.168.1.69/shared")
[     0.014](12493)/(log_kio_smb) unknown: updateCache  "/shared"
[     0.015](12493)/(log_kio_smb) unknown: Starting discovery.
Bad SMB2 signature for message
[0000] 00 00 00 00 00 00 00 00   00 00 00 00 00 00 00 00   ........ ........
[0000] 81 33 D2 17 9C 39 AF 73   AC 13 FB 6D 68 DE 5F 6C   .3...9.s ...mh._l
[     0.053](12493)/(log_kio_smb) unknown: open "smb://anonymous:anonymous@192.168.1.69/shared" url-type: 3 dirfd: -1 errNum: 1
[     0.053](12493)/(log_kio_smb) unknown: Discovery finished.
[     0.053](12493)/(log_kio_smb) unknown: trying checkPassword
[     0.053](12493)/(log_kio_smb) unknown: checkPassword for  QUrl("smb://anonymous@192.168.1.69/shared")
[     0.053](12493)/(log_kio_smb) unknown: call openPasswordDialog for  QUrl("smb://192.168.1.69/shared")
[     0.058](12493)/(log_kio_smb) unknown: no value from openPasswordDialog; error: 1
[     0.059](12493)/(log_kio_smb) unknown: user cancelled password request
[     0.059](12493)/(log_kio_smb) unknown: errNum 1
[     0.000](12502)/(log_kio_smb) unknown: auth_initialize_smbc
[     0.000](12502)/(log_kio_smb) unknown: Setting debug level to: 0
[     0.000](12502)/(log_kio_smb) unknown: Using libsmbclient library version 4.14.5
[     0.000](12497)/(log_kio_smb) unknown: auth_initialize_smbc
[     0.000](12497)/(log_kio_smb) unknown: Setting debug level to: 0
[     0.000](12497)/(log_kio_smb) unknown: Using libsmbclient library version 4.14.5
[     0.009](12497)/(log_kio_smb) unknown: QUrl("smb://anonymous@192.168.1.69/shared/")
[     0.009](12497)/(log_kio_smb) unknown: updateCache  "/shared"
[     0.013](12502)/(log_kio_smb) unknown: QUrl("smb://anonymous@192.168.1.69/shared/")
[     0.013](12502)/(log_kio_smb) unknown: checkURL  QUrl("smb://anonymous@192.168.1.69/shared/")
[     0.013](12502)/(log_kio_smb) unknown: checkURL return3  QUrl("smb://anonymous@192.168.1.69/shared/")
[     0.013](12502)/(log_kio_smb) unknown: updateCache  "/shared"
Bad SMB2 signature for message
[0000] 00 00 00 00 00 00 00 00   00 00 00 00 00 00 00 00   ........ ........
[0000] 44 F2 58 10 65 62 B8 A8   4F 95 95 C2 93 5B A5 C8   D.X.eb.. O....[..
Bad SMB2 signature for message
[0000] 00 00 00 00 00 00 00 00   00 00 00 00 00 00 00 00   ........ ........
[0000] 8C B5 E5 06 11 47 D7 F1   1C 84 F1 69 20 2B 44 9A   .....G.. ...i +D.
[     0.058](12502)/(log_kio_smb) unknown: size  0
[     0.058](12502)/(log_kio_smb) unknown: updateCache  "/shared"
[     0.058](12502)/(log_kio_smb) unknown: checkPassword for  QUrl("smb://anonymous@192.168.1.69/shared")
[     0.059](12502)/(log_kio_smb) unknown: call openPasswordDialog for  QUrl("smb://192.168.1.69/shared")
[     0.067](12502)/(log_kio_smb) unknown: no value from openPasswordDialog; error: 1
[     0.067](12502)/(log_kio_smb) unknown: updateCache  "/shared"
[     0.067](12502)/(log_kio_smb) unknown: errNum 1
[     3.436](12502)/(log_kio_smb) unknown: QUrl("smb://anonymous@192.168.1.69/shared")
[     3.436](12502)/(log_kio_smb) unknown: checkURL  QUrl("smb://anonymous@192.168.1.69/shared")
[     3.436](12502)/(log_kio_smb) unknown: checkURL return3  QUrl("smb://anonymous@192.168.1.69/shared")
[     3.436](12502)/(log_kio_smb) unknown: updateCache  "/shared"
[     3.436](12502)/(log_kio_smb) unknown: Starting discovery.
[     3.437](12502)/(log_kio_smb) unknown: auth_smbc_get_dat: set user= anonymous , workgroup= WORKGROUP  server= 192.168.1.69 , share= shared
[     3.437](12502)/(log_kio_smb) unknown: updateCache  "/shared"
[     3.437](12502)/(log_kio_smb) unknown: libsmb-auth-callback URL: QUrl("smb://192.168.1.69/shared")
[     3.439](12497)/(log_kio_smb) unknown: QUrl("smb://anonymous@192.168.1.69/shared/")
[     3.439](12497)/(log_kio_smb) unknown: updateCache  "/shared"
[     3.439](12497)/(log_kio_smb) unknown: auth_smbc_get_dat: set user= anonymous , workgroup= WORKGROUP  server= 192.168.1.69 , share= shared
[     3.439](12497)/(log_kio_smb) unknown: updateCache  "/shared"
[     3.439](12497)/(log_kio_smb) unknown: libsmb-auth-callback URL: QUrl("smb://192.168.1.69/shared")
[     3.464](12502)/(log_kio_smb) unknown: open "smb://anonymous@192.168.1.69/shared" url-type: 3 dirfd: -1 errNum: 1
[     3.465](12502)/(log_kio_smb) unknown: Discovery finished.
[     3.465](12502)/(log_kio_smb) unknown: trying checkPassword
[     3.465](12502)/(log_kio_smb) unknown: checkPassword for  QUrl("smb://anonymous@192.168.1.69/shared")
[     3.465](12502)/(log_kio_smb) unknown: call openPasswordDialog for  QUrl("smb://192.168.1.69/shared")
[     3.637](12497)/(log_kio_smb) unknown: QUrl("smb://anonymous@192.168.1.69/shared/")
[     3.637](12497)/(log_kio_smb) unknown: checkURL  QUrl("smb://anonymous@192.168.1.69/shared/")
[     3.637](12497)/(log_kio_smb) unknown: checkURL return3  QUrl("smb://anonymous@192.168.1.69/shared/")
[     3.637](12497)/(log_kio_smb) unknown: updateCache  "/shared"
[     3.637](12497)/(log_kio_smb) unknown: auth_smbc_get_dat: set user= anonymous , workgroup= WORKGROUP  server= 192.168.1.69 , share= shared
[     3.637](12497)/(log_kio_smb) unknown: updateCache  "/shared"
[     3.637](12497)/(log_kio_smb) unknown: libsmb-auth-callback URL: QUrl("smb://192.168.1.69/shared")
[     3.665](12497)/(log_kio_smb) unknown: size  0
[     3.665](12497)/(log_kio_smb) unknown: updateCache  "/shared"
[     3.665](12497)/(log_kio_smb) unknown: checkPassword for  QUrl("smb://anonymous@192.168.1.69/shared")
[     3.666](12497)/(log_kio_smb) unknown: call openPasswordDialog for  QUrl("smb://192.168.1.69/shared")
[     9.680](12502)/(log_kio_smb) unknown: openPasswordDialog returned  "anonymous"
[     9.680](12502)/(log_kio_smb) unknown: updateCache  "/shared"
[     9.689](12497)/(log_kio_smb) unknown: openPasswordDialog returned  "anonymous"
[     9.689](12497)/(log_kio_smb) unknown: updateCache  "/shared"
[     9.731](12497)/(log_kio_smb) unknown: QUrl("smb://anonymous@192.168.1.69/shared")
[     9.731](12497)/(log_kio_smb) unknown: checkURL  QUrl("smb://anonymous@192.168.1.69/shared")
[     9.731](12497)/(log_kio_smb) unknown: checkURL return3  QUrl("smb://anonymous@192.168.1.69/shared")
[     9.735](12502)/(log_kio_smb) unknown: QUrl("smb://anonymous@192.168.1.69/shared")
[     9.735](12502)/(log_kio_smb) unknown: checkURL  QUrl("smb://anonymous@192.168.1.69/shared")
[     9.731](12497)/(log_kio_smb) unknown: updateCache  "/shared"
[     9.735](12502)/(log_kio_smb) unknown: checkURL return3  QUrl("smb://anonymous@192.168.1.69/shared")
[     9.735](12502)/(log_kio_smb) unknown: updateCache  "/shared"
[     9.731](12497)/(log_kio_smb) unknown: Starting discovery.
[     9.735](12502)/(log_kio_smb) unknown: auth_smbc_get_dat: set user= anonymous , workgroup= WORKGROUP  server= 192.168.1.69 , share= shared
[     9.735](12502)/(log_kio_smb) unknown: updateCache  "/shared"
[     9.735](12502)/(log_kio_smb) unknown: libsmb-auth-callback URL: QUrl("smb://192.168.1.69/shared")
[     9.732](12497)/(log_kio_smb) unknown: auth_smbc_get_dat: set user= anonymous , workgroup= WORKGROUP  server= 192.168.1.69 , share= shared
[     9.732](12497)/(log_kio_smb) unknown: updateCache  "/shared"
[     9.732](12497)/(log_kio_smb) unknown: libsmb-auth-callback URL: QUrl("smb://192.168.1.69/shared")
[     9.738](12502)/(log_kio_smb) unknown: got password through cache "anonymous"
[     9.735](12497)/(log_kio_smb) unknown: got password through cache "anonymous"
Bad SMB2 signature for message
[0000] 00 00 00 00 00 00 00 00   00 00 00 00 00 00 00 00   ........ ........
[0000] 7C EE DC 8A FB 64 EF 13   F8 95 B9 32 3C 6B 74 BB   |....d.. ...2<kt.
Bad SMB2 signature for message
[0000] 00 00 00 00 00 00 00 00   00 00 00 00 00 00 00 00   ........ ........
[0000] 3A 22 1A CB 1F 12 B5 68   8A CF 31 18 A5 FB 1C 4B   :".....h ..1....K
[     9.773](12502)/(log_kio_smb) unknown: size  0
[     9.770](12497)/(log_kio_smb) unknown: open "smb://anonymous@192.168.1.69/shared" url-type: 3 dirfd: -1 errNum: 1
[     9.770](12497)/(log_kio_smb) unknown: Discovery finished.
[     9.773](12502)/(log_kio_smb) unknown: updateCache  "/shared"
[     9.770](12497)/(log_kio_smb) unknown: trying checkPassword
[     9.770](12497)/(log_kio_smb) unknown: checkPassword for  QUrl("smb://anonymous@192.168.1.69/shared")
[     9.773](12502)/(log_kio_smb) unknown: checkPassword for  QUrl("smb://anonymous@192.168.1.69/shared")
[     9.770](12497)/(log_kio_smb) unknown: call openPasswordDialog for  QUrl("smb://192.168.1.69/shared")
[     9.774](12502)/(log_kio_smb) unknown: call openPasswordDialog for  QUrl("smb://192.168.1.69/shared")
[    11.560](12497)/(log_kio_smb) unknown: no value from openPasswordDialog; error: 1
[    11.560](12497)/(log_kio_smb) unknown: user cancelled password request
[    11.560](12497)/(log_kio_smb) unknown: errNum 1
[    11.565](12502)/(log_kio_smb) unknown: no value from openPasswordDialog; error: 1
[    11.565](12502)/(log_kio_smb) unknown: updateCache  "/shared"
[    11.565](12502)/(log_kio_smb) unknown: errNum 1
Comment 1 Harald Sitter 2021-07-13 10:32:52 UTC
Passwords get stripped from URIs somewhere along the way, you have to actually supply anonymous:anonymous to the password dialog.
Comment 2 firewalker 2021-07-13 11:10:55 UTC
If you mean like the image below, it doesn;t work. With any iteration on the fields of the authentication dialog.

https://i.imgur.com/m4YwOOC.png
Comment 3 Harald Sitter 2021-07-13 11:32:22 UTC
No. You need to provide the username anonymous and you need to provide the password anonymous. That is what anonymous:anonymous means in a URI.
Comment 4 firewalker 2021-07-13 11:44:53 UTC
This is the first thing I did. If I provide anonymous in the user field and anonymous in the password filed. It doesn;t do anything, it shows again the same authentication dialog.
Comment 5 Harald Sitter 2021-07-13 11:57:51 UTC
Well, the log you provided is of you cancelling the dialog :)

https://community.kde.org/Guidelines_and_HOWTOs/Debugging/Debugging_IOSlaves/Debugging_kio_smb#Reporting_Bugs
Comment 6 firewalker 2021-07-13 12:24:26 UTC
Created attachment 140029 [details]
Video demonstrating the issue

Video demonstrating the issue
Comment 7 firewalker 2021-07-13 12:25:49 UTC
The debug info was generated by instructions of your link. See the attached video with the issue. I am not canceling the authentication dialog....
Comment 8 Harald Sitter 2021-07-13 12:39:16 UTC
Perhaps it's the same as this problem? https://www.spinics.net/lists/samba/msg167472.html
Comment 9 firewalker 2021-07-13 12:49:24 UTC
I don;t think it is. every other program (smbclient, smb4k) logins anonymously just fine. Also dolphin works just fine with password protected shares. The only issue is with paswordless shares.
Comment 10 Harald Sitter 2021-07-13 12:53:19 UTC
The thing is, there's nothing special going on. From our side an anonymous login is like any other. So whatever is wrong might be within libsmbclient, but supposedly that is also what sits underneath smbclient.

It's likely that `Bad SMB2 signature for message` is the actual problem here, but that comes out of libsmbclient and I don't know anything about it's internals. 

Have you tried a name different than anonymous?
Comment 11 firewalker 2021-07-13 13:05:43 UTC
Yes, it doesnt work.
Comment 12 Harald Sitter 2021-07-13 14:29:05 UTC
Can you provide detailed instructions on how you've set up windows (and samba if you've configured anything there)?
Comment 13 firewalker 2021-07-14 06:07:35 UTC
You "Turn off password protected sharing" from control panel and then share a folder (right click, properties, sharing, share) adding everyone to the list.

https://i.imgur.com/m6oqVsG.png

https://i.imgur.com/LxyHwnK.png
Comment 14 Harald Sitter 2021-07-15 14:18:39 UTC
https://bugzilla.samba.org/show_bug.cgi?id=14761