Unable to connect to smb / CIFS / Samba servers
Reported downstream for Xubuntu 20.04 and 22.04 (gigolo versions 0.5.1, 0.5.2) https://bugs.launchpad.net/ubuntu/+source/gigolo/+bug/1963768
A while ago we identified and had resolved an issue with Gigolo being able to connect via bookmarks to a Samba server over smb / CIFS. That was as follows:
Gigolo tries to use port 21 for SMB/CIFS connect https://bugs.launchpad.net/bugs/1854137
So this was found working with Xubuntu 20.04 Focal Fossa.
Testing 22.04 Jammy Jellyfish, I get an error trying to use a brand new smb bookmark. Trying in my Xubuntu 20.04 Focal Fossa system, now I get the same error. So this impacts both Xubuntu releases.
Open Gigolo Edit \ Bookmarks Add Name the bookmark Service Type: Windows Share Server: hostname of Samba NT4 PDC Share: share name on the Samba NT4 PDC Domain: smb domain name of the Samba NT4 PDC User Name: my username on the Samba NT4 PDC OK to save
Actions \ Bookmarks \ the newly created SMB bookmark At the password box, enter my password for the Samba NT4 PDC, and select the radio button "Remember password until you logout"
Error pops up: Connecting to "smb://smb-domain;userid@hostname/-sharename" failed. Failed to mount Windows Share: Software caused connection abort
So, is it really adding a "-" character between the Samba server hostname, slash, and the sharename? That might be causing problems. I did not type a dash there.
Same connection error occurs if I free hand type the connection string into a Thunar window URL bar. Note I did not add the "-" in my free-hand entered URL attempt.
The entry crated in ~/.config/gigolo/bookmarks looks perfect, no extra unexpected characters.
I am able to create a Gigolo ssh connection to the same server and connect successfully over that protocol.