Bug 445557 - KIO doesn't work with smbclient > 4.13
Summary: KIO doesn't work with smbclient > 4.13
Status: RESOLVED UPSTREAM
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: Samba (show other bugs)
Version: 21.08.3
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-15 23:17 UTC by Tobias G.
Modified: 2021-11-19 11:55 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias G. 2021-11-15 23:17:30 UTC
SUMMARY
As discussed here https://bugs.kde.org/show_bug.cgi?id=445416 KIO doesn't work properly on systems with smbclient > 4.13 installed. This leads to network shares not being accessible anymore.


STEPS TO REPRODUCE
1. install smbclient > 4.13 and KDE Plasma Desktop
2. try to access a samba shares with specific config

OBSERVED RESULT
access to share not possible

EXPECTED RESULT
share should be accessed as on smbclient < 4.14

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Harald Sitter 2021-11-19 11:10:13 UTC
Sounds like https://bugzilla.samba.org/show_bug.cgi?id=14326

I do rather feel like the problem is on the windows side though cause I also didn't manage to make it work from windows 10 to another windows 10
Comment 2 Tobias G. 2021-11-19 11:21:51 UTC
(In reply to Harald Sitter from comment #1)
> Sounds like https://bugzilla.samba.org/show_bug.cgi?id=14326
> 
> I do rather feel like the problem is on the windows side though cause I also
> didn't manage to make it work from windows 10 to another windows 10

Yes and no.

As described in the linked bug report, smbclient asks me for a password, but lets me access it nonetheless with anything entered as username and password.

KIO accepts until version 4.13 the windows PC name and anything as password, with smbclient > 4.13 nothing works.
I can verify this since 4.15 was pre-installed on my machine and manually compiled 4.13, which made it work.
It's also not an issue on Windows machines, they just don't ask me for a password at all.

So yes, the bug applies here too, as it asks me for credentials, but it's not the only bug here, as KIO doesn't seem to allow access to unprotected Windows shares at all anymore.

The Windows machines have a specific setup, as a local account without user password is in use instead of a Microsoft account, SMB1 is activated and password-less shares are activated.

Accessing a Windows share with a Microsoft account and it's credentials works fine.
Most of what I've written above is already stated in the linked bug report, with another user having an issue with KIO and smbclient > 4.13, so it might be worth a look.
Comment 3 Harald Sitter 2021-11-19 11:45:48 UTC
smbclient uses a different code base from libsmbclient which makes it not nearly surprising that one works when the other does not.
Comment 4 Tobias G. 2021-11-19 11:53:08 UTC
(In reply to Harald Sitter from comment #3)
> smbclient uses a different code base from libsmbclient which makes it not
> nearly surprising that one works when the other does not.

I'm sorry, but why is this an upstream issue now?
Comment 5 Harald Sitter 2021-11-19 11:55:45 UTC
Because samba, the provider of libsmbclient is our upstream product that we use to talk to the server. KIO only implements different API on top, there's zero SMB protocol code on our end. Hence https://bugzilla.samba.org/show_bug.cgi?id=14326