[PATCH] (not for review) Add SMB2 support to smbclient and smbcacls.

Jeremy Allison jra at samba.org
Tue Jul 2 14:27:30 MDT 2013


Ok, so this is a big blob of a patch,
not for review and merging (yet :-) but
more of a snapshot of a work in progress
that I thought others in the community
would like to look at and possibly play
with.

Applies to git master, probably no
other branch.

It allows smbclient and smbcacls to
use SMB2 as their native transport
by adding a -mSMB2 command line switch.

So:

smbclient //server/share -Uuser%pass

will connect using SMB1 whilst:

smbclient //server/share -Uuser%pass -mSMB2

will connect using SMB2. The code is
general enough that libsmbclient.so
should also work using SMB2 (so long
as:

client max protocol = SMB2_02

is set in smb.conf) although I
haven't tested libsmbclient yet.

Most things work (obviously
not the POSIX protocol specific
things) but probably not the SMB3
encryption (although I'm looking
at that for a later patchset).

In the mean time I'll break this
into a small patchsets to allow
a proper review and merge, but
this might have to wait until
I get back off vacation from the
US 4th of July holiday next
Monday 8th.

Cheers,

	Jeremy.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Test-patch-adding-SMB2-support-to-smbclient-and-smbc.patch
Type: text/x-diff
Size: 95478 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20130702/cd073130/attachment.patch>


More information about the samba-technical mailing list