Il 31/01/19 14:31, Sebastien Bacher ha scritto: > Upstream comment > > 'SMB backend doesn't use smbc_setOptionUseCCache explicitly in order to > enable winbind ccache, but it seems that it is enabled by default, at > least on my system. Please try to obtain the debug log again, but also > with GVFS_SMB_DEBUG=3.
If I have well understood this is the output: $ GVFS_DEBUG=1 GVFS_SMB_DEBUG=3 /usr/lib/gvfs/gvfsd -r smb: g_vfs_backend_smb_init: default workgroup = 'NULL' smb: Added new job source 0x562f1e60d130 (GVfsBackendSmb) smb: Queued new job 0x562f1e60e1d0 (GVfsJobMount) Using netbios name 103NOTE0512. Using workgroup DOMAIN. smb: do_mount - URI = smb://server/share smb: do_mount - try #0 smb: auth_callback - kerberos pass smb: auth_callback - out: last_user = 'DOMAIN\username', last_domain = 'DOMAIN' tdb(/var/cache/samba/gencache.tdb): tdb_open_ex: could not open file /var/cache/samba/gencache.tdb: Permesso negato resolve_lmhosts: Attempting lmhosts lookup for name server<0x20> resolve_wins: WINS server resolution selected and no WINS servers listed. resolve_hosts: Attempting host lookup for name server<0x20> Connecting to 192.168.70.5 at port 445 got OID=1.3.6.1.4.1.311.2.2.10 GENSEC backend 'gssapi_spnego' registered GENSEC backend 'gssapi_krb5' registered GENSEC backend 'gssapi_krb5_sasl' registered GENSEC backend 'spnego' registered GENSEC backend 'schannel' registered GENSEC backend 'naclrpc_as_system' registered GENSEC backend 'sasl-EXTERNAL' registered GENSEC backend 'ntlmssp' registered GENSEC backend 'ntlmssp_resume_ccache' registered GENSEC backend 'http_basic' registered GENSEC backend 'http_ntlm' registered GENSEC backend 'krb5' registered GENSEC backend 'fake_gssapi_krb5' registered SPNEGO: Could not find a suitable mechtype in NEG_TOKEN_INIT SPNEGO login failed: An invalid parameter was passed to a service or function. smb: do_mount - [smb://server/share; 0] res = -1, cancelled = 0, errno = [1] 'Operazione non permessa' smb: do_mount - after anon, enabling NTLMSSP fallback smb: do_mount - try #1 smb: auth_callback - normal pass smb: auth_callback - asking for password... smb: auth_callback - out: last_user = 'DOMAIN\username', last_domain = 'DOMAIN' resolve_lmhosts: Attempting lmhosts lookup for name server<0x20> resolve_wins: WINS server resolution selected and no WINS servers listed. resolve_hosts: Attempting host lookup for name server<0x20> Connecting to 192.168.70.5 at port 445 got OID=1.3.6.1.4.1.311.2.2.10 Got challenge flags: Got NTLMSSP neg_flags=0x62898215 NTLMSSP: Set final flags: Got NTLMSSP neg_flags=0x62088215 NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x62088215 NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x62088215 Server connect ok: //server/share: 0x7f583c026c90 smb: do_mount - [smb://server/share; 1] res = 0, cancelled = 0, errno = [17] 'File giĆ esistente' smb: do_mount - login successful smb: send_reply(0x562f1e60e1d0), failed=0 () > The SMB backend is based on libsmbclient, so > please also verify whether smbclient works and provide its debug log. > Tentatively something like smbclient //server/share --debuglevel 3 > --kerberos --use-ccache --user ... --workgroup ... should work.' smbclient wasn't installed... now I have installed it and in effect doesn't seems to works; this is the output: $ smbclient //server/share --debuglevel 3 --kerberos --use-ccache --user DOMAIN\\username --workgroup DOMAIN lp_load_ex: refreshing parameters Initialising global parameters rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) Processing section "[global]" WARNING: The "syslog" option is deprecated added interface wlp2s0 ip=192.168.71.226 bcast=192.168.79.255 netmask=255.255.240.0 Client started (version 4.7.6-Ubuntu). tdb(/var/cache/samba/gencache.tdb): tdb_open_ex: could not open file /var/cache/samba/gencache.tdb: Permesso negato resolve_lmhosts: Attempting lmhosts lookup for name server<0x20> resolve_wins: WINS server resolution selected and no WINS servers listed. resolve_hosts: Attempting host lookup for name server<0x20> Connecting to 192.168.70.5 at port 445 got OID=1.3.6.1.4.1.311.2.2.10 GENSEC backend 'gssapi_spnego' registered GENSEC backend 'gssapi_krb5' registered GENSEC backend 'gssapi_krb5_sasl' registered GENSEC backend 'spnego' registered GENSEC backend 'schannel' registered GENSEC backend 'naclrpc_as_system' registered GENSEC backend 'sasl-EXTERNAL' registered GENSEC backend 'ntlmssp' registered GENSEC backend 'ntlmssp_resume_ccache' registered GENSEC backend 'http_basic' registered GENSEC backend 'http_ntlm' registered GENSEC backend 'krb5' registered GENSEC backend 'fake_gssapi_krb5' registered SPNEGO: Could not find a suitable mechtype in NEG_TOKEN_INIT SPNEGO login failed: An invalid parameter was passed to a service or function. session setup failed: NT_STATUS_INVALID_PARAMETER but if I remove --kerberos it works!: $ smbclient //server/share --debuglevel 3 --use-ccache --user DOMAIN\\username --workgroup DOMAIN lp_load_ex: refreshing parameters Initialising global parameters rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) Processing section "[global]" WARNING: The "syslog" option is deprecated added interface wlp2s0 ip=192.168.71.226 bcast=192.168.79.255 netmask=255.255.240.0 Client started (version 4.7.6-Ubuntu). tdb(/var/cache/samba/gencache.tdb): tdb_open_ex: could not open file /var/cache/samba/gencache.tdb: Permesso negato resolve_lmhosts: Attempting lmhosts lookup for name server<0x20> resolve_wins: WINS server resolution selected and no WINS servers listed. resolve_hosts: Attempting host lookup for name server<0x20> Connecting to 192.168.70.5 at port 445 got OID=1.3.6.1.4.1.311.2.2.10 GENSEC backend 'gssapi_spnego' registered GENSEC backend 'gssapi_krb5' registered GENSEC backend 'gssapi_krb5_sasl' registered GENSEC backend 'spnego' registered GENSEC backend 'schannel' registered GENSEC backend 'naclrpc_as_system' registered GENSEC backend 'sasl-EXTERNAL' registered GENSEC backend 'ntlmssp' registered GENSEC backend 'ntlmssp_resume_ccache' registered GENSEC backend 'http_basic' registered GENSEC backend 'http_ntlm' registered GENSEC backend 'krb5' registered GENSEC backend 'fake_gssapi_krb5' registered Got challenge flags: Got NTLMSSP neg_flags=0x62898215 NTLMSSP: Set final flags: Got NTLMSSP neg_flags=0x62088215 NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x62088215 NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x62088215 Try "help" to get a list of possible commands. smb: \> ...but I have forgot to say that the JOIN is on a samba3 domain: we have done bingo? Piviul -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gvfs in Ubuntu. https://bugs.launchpad.net/bugs/1771943 Title: nautilus accessing samba shares doesn't use cached credentials Status in gvfs package in Ubuntu: Triaged Bug description: I don't know if the bug is in nautilus or other package but accessing samba shares in a samba domain membership authentication using winbind, nautilus doesn't try to use cached credentials to access network shares. Before the upgrade to ubuntu bionic (18.04) all works as expected. I have configured winbind bind module for samba authentication on a samba server and all seems works flawless. I have enabled winbind offline logon (in smb.conf) and cached credentials (in /etc/security/pam_winbind.conf). Offline logon seems to work but when I access samba shares, nautilus ask me for a username and password even if I log on using a valid domain account and this valid account can access the samba share. If you need some more info please ask me Have a great day Piviul ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: nautilus 1:3.26.3-0ubuntu4 ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17 Uname: Linux 4.15.0-20-generic i686 NonfreeKernelModules: nvidia wl ApportVersion: 2.20.9-0ubuntu7 Architecture: i386 CurrentDesktop: ubuntu:GNOME Date: Fri May 18 08:19:06 2018 GsettingsChanges: b'org.gnome.nautilus.window-state' b'geometry' b"'855x550+65+24'" b'org.gnome.nautilus.window-state' b'maximized' b'true' InstallationDate: Installed on 2012-05-17 (2191 days ago) InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423) ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=it_IT.UTF-8 SHELL=/bin/bash SourcePackage: nautilus UpgradeStatus: Upgraded to bionic on 2018-05-03 (15 days ago) usr_lib_nautilus: To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1771943/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

