https://bugs.kde.org/show_bug.cgi?id=433784

--- Comment #1 from Méven <[email protected]> ---
Git commit bb779b08dd5676e5ecf2749fbfa077dd19d65270 by Méven Car.
Committed on 07/10/2026 at 17:55.
Pushed by meven into branch 'master'.

smb: use the saved login of a share whose url names no user

When the url of a share names no user, libsmbclient asks for credentials with
$USER, the local login. This is the case for a share added through "Add Network
Folder" without a username. KPasswdServer only gives out a saved login whose
username matches, so a password saved for another account, such as
[email protected], was never found. The password dialog came back each time the
share was opened.

The context now has an empty default user, so the authenticator sees which urls
name no user. It asks KPasswdServer without a username, which gives out the
login saved for that share. When none is saved, it tries $USER, as libsmbclient
did before.
Related: bug 487690, bug 520702

M  +1    -0    smb/autotests/CMakeLists.txt
A  +126  -0    smb/autotests/smbauthenticatortest.cpp     [License: GPL(3+eV)
GPL(v3.0) GPL(v2.0)]
M  +4    -0    smb/smbauthenticator.cpp
M  +4    -0    smb/smbcontext.cpp

https://invent.kde.org/network/kio-extras/-/commit/bb779b08dd5676e5ecf2749fbfa077dd19d65270

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to