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[8] - disablingDirectly using smbclient with SMB version 2 works fine:
smbclient -U domain\\user //HOSTNAME/ShareName -c "dir" -m SMB2But when omitting the max-protocol tag (-m) while using smbclient, a very similar error appears:
smbclient -U domain\\user //HOSTNAME/ShareName -c "dir" samba_tevent: EPOLL_CTL_DEL EBADF for fde[0x7f454d1eff50] mpx_fde[(nil +)] fd[7] - disabling
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.
Thank you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unable to establish SMB2 connection using Filesys::SmbClient
by natxo (Scribe) on May 18, 2017 at 20:51 UTC | |
|
Re: Unable to establish SMB2 connection using Filesys::SmbClient
by Anonymous Monk on Feb 10, 2016 at 13:05 UTC | |
by Netras (Initiate) on Feb 10, 2016 at 13:36 UTC | |
by Corion (Patriarch) on Feb 10, 2016 at 13:44 UTC | |
by Netras (Initiate) on Feb 10, 2016 at 13:12 UTC | |
by UID_Zero (Initiate) on May 11, 2018 at 16:23 UTC | |
|
Re: Unable to establish SMB2 connection using Filesys::SmbClient
by u65 (Chaplain) on Feb 10, 2016 at 12:23 UTC |