in reply to Re: Unable to establish SMB2 connection using Filesys::SmbClient
in thread Unable to establish SMB2 connection using Filesys::SmbClient

That is a bit embarrassing: I changed the general smb.conf in /etc/samba, the user didnīt have one. But then I created it and added the global parameter (client max protocol) and something changed! Now the connection is actually established, as far as I can see though I still get an error:

map_errno_from_nt_status: 32 bit codes: code=c0000059 smbc errno NT_STATUS_REVISION_MISMATCH -> 22

Google has failed me on my first try but I now have something I can work on. Maybe you also know about the new error but in any case - thank you a lot Anonymous Monk!

  • Comment on Re^2: Unable to establish SMB2 connection using Filesys::SmbClient
  • Download Code

Replies are listed 'Best First'.
Re^3: Unable to establish SMB2 connection using Filesys::SmbClient
by Corion (Patriarch) on Feb 10, 2016 at 13:44 UTC

    It may or may not be related, but libsmbclient seems to have (had) some peculiarities regarding the smb.conf file, as commented on in the module:

    # Actually libsmbclient will segfault if it can't find file # $ENV{HOME}/.smb/smb.conf so I will test if it exist, # and create it if no file is found. A empty file is enough ... ... creation of an empty $ENV{HOME}/.smb/smb.conf

    So maybe libsmbclient does not crash nowadays but doesn't necessarily respect /etc/smb.conf if it doesn't find a local file.