KDE samba mounter not mounting shares in AD environment

Bug #1264139 reported by Heiner
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Linux Mint
New
Undecided
Unassigned
samba-mounter
New
Undecided
Unassigned

Bug Description

In an Active Directory environment served by a samba 4.1 server, I interated a linux mint 16 KDE client with winbind/kerberos authentication.
When I try to mount a directory from a samba3 server in this environment via samba mounter, the directories ~/Network/share get created, but nothing gets mounted. Syslog contains

Dec 25 16:42:32 scutum dbus[399]: [system] Successfully activated service 'org.
kde.sambamounter'
Dec 25 16:42:32 scutum kernel: [ 175.442831] FS-Cache: Netfs 'cifs' registered
 for caching
Dec 25 16:42:32 scutum kernel: [ 175.444017] Key type cifs.spnego registered
Dec 25 16:42:32 scutum kernel: [ 175.444017] Key type cifs.idmap registered
Dec 25 16:42:32 scutum kernel: [ 175.496544] CIFS VFS: cifs_mount failed w/return code = -13
Dec 25 16:42:45 scutum dbus[399]: [system] Activating service name='org.kde.sambamounter' (using servicehelper)
Dec 25 16:42:45 scutum org.kde.sambamounter: QDBusConnection: system D-Bus connection created before QCoreApplication. Application may misbehave.
Dec 25 16:42:45 scutum dbus[399]: [system] Successfully activated service 'org.kde.sambamounter'
Dec 25 16:42:45 scutum kernel: [ 188.765420] CIFS VFS: cifs_mount failed w/return code = -13

I tried with and without passwords, although the kerberos ticket should make the mount work without a password. However, nothing works and I get the same behavior all the time.

For testing, I created a local user on the mint machine and tried to mount a share from the samba server with specific credentials of an AD user. This also fails with the same error message in syslog. The configuration dialog of samba mounter always displays "Not required" above the user/password fields, even if a local user tries to mount a share of the server which it can only access using different credentials.

Revision history for this message
Nicolas Piguet (npiguet) wrote :

I get the same error and behavior. on top of that. When i close the configuration dialog and re-open it, the username and password fields are blank.

I enabled debugging for CIFS, and dmesg shows a lot of output, but it only seems to ever try logging in as "Anonymous" or "Guest". Obviously that won't work.

I connect to a folder that doesn't require authentication, then everything works as expected.

Revision history for this message
Nicolas Piguet (npiguet) wrote :

Well, I've looked a little in the source code, and the cause of the problem seems clear: samba-mounter completely ignores whatever values are in the username and password fields. The values are never stored anywhere, not in any config file nor in KWallet. And of course they are never passed to the mount command either.

So i wouldn't expect samba-mounter to work with any authenticated share.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.