Page 1 of 1

Samba: Error connecting to socket. Return code -115

Posted: Mon Dec 03, 2012 2:29 pm
by ^rooker
[PROBLEM]
I'm trying to connect to Windows DFS once again, and as usual it's a little princess with special needs:
[ 22.784021] CIFS VFS: Error connecting to socket. Aborting operation
[ 22.784086] CIFS VFS: cifs_mount failed w/return code = -115
[SOLUTION]
Thanks to an article on Pragmatic IT, titled "Connecting to DFS Shares with Ubuntu", I found a solution:
  • Install "keyutils":

    Code: Select all

    $ sudo apt-get install keyutils
  • Add the following 2 lines in /etc/request-key.conf:

    Code: Select all

    create  cifs.spnego *   *       /usr/sbin/cifs.upcall -c %k %d
    create  dns_resolver    *   *       /usr/sbin/cifs.upcall %k
By default, the 2 lines in /etc/request-key.conf are "almost" there, already. Just make sure that they look the way I wrote above.