After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 775477 - smb backend ignores username part after @
smb backend ignores username part after @
Status: RESOLVED NOTGNOME
Product: gvfs
Classification: Core
Component: smb backend
1.30.x
Other Linux
: Normal minor
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2016-12-01 15:39 UTC by Willem Mulder
Modified: 2017-03-06 12:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Wireshark dump of gvfsd-smb login sequence (5.87 KB, image/png)
2016-12-01 15:39 UTC, Willem Mulder
Details
Wireshark dump of mount.cifs login sequence (5.55 KB, image/png)
2016-12-01 15:41 UTC, Willem Mulder
Details

Description Willem Mulder 2016-12-01 15:39:38 UTC
Created attachment 341163 [details]
Wireshark dump of gvfsd-smb login sequence

When trying to mount an smb share, the smb backend ignores the part after an @ in the username. This causes login to fail when an @-part is required. I've attached a screenshot of a login attempt with gvfsd-smb.
Comment 1 Willem Mulder 2016-12-01 15:41:02 UTC
Created attachment 341164 [details]
Wireshark dump of mount.cifs login sequence

Here is a login sequence to the same host using mount.cifs
Comment 2 Ondrej Holy 2016-12-02 09:34:33 UTC
Thanks for your bug report.

Is the @-part part of the username, or does it mean something else?

It seems that the smb backend passes the whole username including the @-part into libsmbclient, so it seems to me that this is a bug in the libsmbclient. Does smbclient works for you properly? It seems to me that the smbclient also drops it:
smbclient //server/share -U user@foo -c ls

Can you please try to replace "@" by "%40" and test this again in the smbclient/gvfs?
Comment 3 Willem Mulder 2016-12-02 13:12:35 UTC
smbclient does indeed exhibit the same behaviour. Replacing @ by %40 does not seem to change anything (neither in gvfs nor smbclient).
Comment 4 Willem Mulder 2016-12-02 13:17:02 UTC
I see I forgot to answer your first question. The @-part is part of the username, although Windows connection prompts also seem to set the domain to the part after the @ (at least in the GUI). Windows does not have any problem connecting though.
Comment 5 Ondrej Holy 2016-12-22 14:35:22 UTC
Hmm, so this is probably bug in SAMBA. Please file a bug report at: https://bugzilla.samba.org/

Please let us know the bug number...
Comment 6 Willem Mulder 2017-03-06 11:51:37 UTC
I finally got around to reporting this at Samba: https://bugzilla.samba.org/show_bug.cgi?id=12614
Comment 7 Ondrej Holy 2017-03-06 12:23:52 UTC
Thanks!