|Syntactic Confectionery Delight|
Unable to establish SMB2 connection using Filesys::SmbClientby Netras (Initiate)
|on Feb 09, 2016 at 13:05 UTC||Need Help??|
Netras has asked for the
wisdom of the Perl Monks concerning the following question:
Hello Perl Monks,
I need to access a SMB host which requires SMB version 2. Filesys::SmbClient (3.2) has served me well working with SMB1 but does not successfully create a SMB2 connection. This is the error I get:samba_tevent: EPOLL_CTL_DEL EBADF for fde[0x27c9930] mpx_fde[(nil)] fd - disabling
Directly using smbclient with SMB version 2 works fine:smbclient -U domain\\user //HOSTNAME/ShareName -c "dir" -m SMB2
But when omitting the max-protocol tag (-m) while using smbclient, a very similar error appears:
I assume that Filesys::SmbClient is trying to use SMB version 1 to connect to the target host and I have no idea how I can change this behaviour. I have checked the official module documentation with no success and tried forcing the client protocol version in /etc/samba/smb.conf but this has no effect on Filesys::SmbClient as well.
Is there someone that has had this issue or has any ideas? I would appreciate any feedback and/or help in the matter.