gio cannot mount samba share by name
I would appreciate any help you can give with the following issue.
Mounting SMB3 from Synology NAS with gio
like this:
gio mount smb://ks-store1.local/nas
Authentication Required
Enter user and password for share “nas” on “ks-store1.local”:
User [keean]:
Domain [KS-GROUP]:
Password:
results in this from gvfsd -d
:
smb: g_vfs_backend_smb_init: default workgroup = 'NULL'
smb: Added new job source 0x558f7d023c10 (GVfsBackendSmb)
smb: Queued new job 0x558f7d036e40 (GVfsJobMount)
smb: do_mount - URI = smb://ks-store1.local/nas
smb: do_mount - try #0
smb: auth_callback - kerberos pass
smb: auth_callback - out: last_user = 'keean', last_domain = 'KS-GROUP'
smb: do_mount - [smb://ks-store1.local/nas; 0] res = -1, cancelled = 0, errno = [22] 'Invalid argument'
smb: do_mount - enabling NTLMSSP fallback
smb: do_mount - try #1
smb: auth_callback - ccache pass
smb: auth_callback - out: last_user = 'keean', last_domain = 'KS-GROUP'
smb: do_mount - [smb://ks-store1.local/nas; 1] res = -1, cancelled = 0, errno = [22] 'Invalid argument'
smb: do_mount - try #2
smb: auth_callback - normal pass
smb: auth_callback - asking for password...
smb: auth_callback - out: last_user = 'keean', last_domain = 'KS-GROUP'
smb: do_mount - [smb://ks-store1.local/nas; 2] res = -1, cancelled = 0, errno = [103] 'Software caused connection abort'
smb: do_mount - (errno != EPERM && errno != EACCES), cancelled = 0, breaking
smb: send_reply(0x558f7d036e40), failed=1 (Failed to mount Windows share: Software caused connection abort)
smbclient on the other hand mounts fine:
smbclient //ks-store1.local/nas
Password for [KS-GROUP\keean]:
Try "help" to get a list of possible commands.
smb: \>
gio also mounts correctly if the ip-address is given:
gio mount smb://10.186.136.2/nas
Authentication Required
Enter user and password for share “nas” on “10.186.136.2”:
User [keean]:
Domain [KS-GROUP]:
Password:
and this is the debug gvfsd debug log for this:
smb: g_vfs_backend_smb_init: default workgroup = 'NULL'
smb: Added new job source 0x55fc3cadc310 (GVfsBackendSmb)
smb: Queued new job 0x55fc3caeedf0 (GVfsJobMount)
smb: do_mount - URI = smb://10.186.136.2/nas
smb: do_mount - try #0
smb: auth_callback - kerberos pass
smb: auth_callback - out: last_user = 'keean', last_domain = 'KS-GROUP'
Kerberos auth with 'keean@KS-GROUP' (KS-GROUP\keean) to access '10.186.136.2' not possible
smb: do_mount - [smb://10.186.136.2/nas; 0] res = -1, cancelled = 0, errno = [13] 'Permission denied'
smb: do_mount - enabling NTLMSSP fallback
smb: do_mount - try #1
smb: auth_callback - ccache pass
smb: auth_callback - out: last_user = 'keean', last_domain = 'KS-GROUP'
smb: do_mount - [smb://10.186.136.2/nas; 1] res = -1, cancelled = 0, errno = [22] 'Invalid argument'
smb: do_mount - try #2
smb: auth_callback - normal pass
smb: auth_callback - asking for password...
smb: auth_callback - out: last_user = 'keean', last_domain = 'KS-GROUP'
smb: do_mount - [smb://10.186.136.2/nas; 2] res = 0, cancelled = 0, errno = [0] 'Success'
smb: do_mount - login successful
smb: send_reply(0x55fc3caeedf0), failed=0 ()
So the difference comes down to this:
smb: do_mount - [smb://ks-store1.local/nas; 2] res = -1, cancelled = 0, errno = [103] 'Software caused connection abort'
smb: do_mount - [smb://10.186.136.2/nas; 2] res = 0, cancelled = 0, errno = [0] 'Success'
Have I something obviously wrong in my configuration? How can I debug "do_mount" further?