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 787689 - smb: support "anonymous" user to try anonymous mount first
smb: support "anonymous" user to try anonymous mount first
Status: RESOLVED OBSOLETE
Product: gvfs
Classification: Core
Component: smb backend
git master
Other Linux
: Normal enhancement
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2017-09-14 17:03 UTC by Michael Terry
Modified: 2018-09-21 18:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Terry 2017-09-14 17:03:15 UTC
The other backends that support anonymous logins (afp and ftp) seem to support passing "anonymous@" as the user part of the URI.

This is useful for smb too, ever since a commit in 2015 that stopped trying an anonymous mount first [1].  Now there's no way to specify an anonymous URI that doesn't cause the GMountOperation dialog to appear.

I hit this because a user of deja-dup reported that every time the automatic scheduled backups would start, it asks them to log in as it mounts the location.  If I could tell them to simply save "smb://anonymous@..." as the location to fix the problem, that would help.

[1] https://git.gnome.org/browse/gvfs/commit/?id=a0aec329939e198b6faea6b788df7278f6543436 -- actually this commit left a comment in the source that is now outdated: "in case of no username specified, try anonymous login"
Comment 1 Ondrej Holy 2017-09-21 16:15:48 UTC
Thanks for your bug report. Sounds like that deja-dup uses GIO, so it can try g_mount_operation_set_anonymous first in order to avoid password prompt... but sounds like a good idea to try anonymous login if anonymous user is provided. Are you willing to provide patch for it?
Comment 2 Michael Terry 2017-09-26 17:01:54 UTC
I could provide a patch, sure.  No eta, but I can look at it.
Comment 3 GNOME Infrastructure Team 2018-09-21 18:11:24 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gvfs/issues/313.