GNOME Bugzilla – Bug 775477
smb backend ignores username part after @
Last modified: 2017-03-06 12:23:52 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.
Created attachment 341164 [details] Wireshark dump of mount.cifs login sequence Here is a login sequence to the same host using mount.cifs
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?
smbclient does indeed exhibit the same behaviour. Replacing @ by %40 does not seem to change anything (neither in gvfs nor smbclient).
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.
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...
I finally got around to reporting this at Samba: https://bugzilla.samba.org/show_bug.cgi?id=12614
Thanks!