Bug 327484 - Connecting to a samba share doesn't ask for domain
Summary: Connecting to a samba share doesn't ask for domain
Status: RESOLVED FIXED
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: Samba (show other bugs)
Version: unspecified
Platform: unspecified Linux
: HI major
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2013-11-12 09:42 UTC by Daniel Kreuter
Modified: 2020-02-14 16:03 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 19.12.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Kreuter 2013-11-12 09:42:05 UTC
When connecting to a samba share which is on a microsoft windows domain, only username and password are asked for. It would be better to ask for the domain as well (like nautilus does).

Without the domain I'm not able to use Dolphin with the samba servers of my company.

Reproducible: Always
Comment 1 Daniel Kreuter 2013-11-13 14:23:15 UTC
Hi,

I found a workaround.
It works if you enter the workgroup for samba in /etc/samba/smb.conf, then Dolphin just needs to ask for the username and password and kio takes the workgroup from the conf file.

It would be nicer to provide the workgroup in the same dialog as the username/password inside Dolphin, for the case someone uses the same program with different samba workgroups.

Cheers
Comment 2 Joan 2015-03-30 07:32:31 UTC
I can confirm the same behaviour as of  4:4.14.6-0ubuntu1, the issue can also be solved by using the domain with a backslash prior de username "DOMAIN\username" but it requires a knowledge that people might not have. Moreover in ubuntu the domain is asked, also in programs such as remmina (the most popular rdesktop client)
Comment 3 Harald Sitter 2020-02-14 16:03:11 UTC
Git commit 9d52cd9c9144cf56a3011c40b1d55c9bd853c6eb by Harald Sitter.
Committed on 14/02/2020 at 15:46.
Pushed by sitter into branch 'master'.

smb: enable anonymous and domain extra field in authinfo

Summary:
this causes kiod to query the password with the relevant functionality
enabled. domain additionally defaults to whatever smbc_getWorkgroup returns
FIXED-IN: 19.12.3

Test Plan:
- builds
- auth query has new functionality
- logging in still works as expected

I couldn't actually get the original problem in 327484 to appear with a samba DC I threw together, so for all I know this doesn't actually fix the bug but I have no way to test :|

Reviewers: ngraham, dfaure

Reviewed By: ngraham

Subscribers: kde-frameworks-devel, kfm-devel

Tags: #dolphin, #frameworks

Differential Revision: https://phabricator.kde.org/D27320

M  +1    -1    smb/kio_smb.h
M  +27   -2    smb/kio_smb_auth.cpp

https://commits.kde.org/kio-extras/9d52cd9c9144cf56a3011c40b1d55c9bd853c6eb