Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Unable to establish SMB2 connection using Filesys::SmbClient

by natxo (Scribe)
on May 18, 2017 at 20:51 UTC ( #1190563=note: print w/replies, xml ) Need Help??

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

A bit late to this post, but for future reference maybe worth it as smb 1 after the wannacry drama will probably be less and less common out there :-)

I have just used Filesys::SmbClient with smb2 or 3. You just need to fill in the file ~/.smb/smb.conf that Filesys::Smbclient autocreates with something like this:

[global] client max protocol = SMB3
If the share only accepts smb2, it will downgrade to 2 or 2.1, otherwise it will use 3.

I verified this using wireshark traces.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1190563]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2018-06-18 08:24 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (109 votes). Check out past polls.