diff options
author | Stefan Metzmacher <metze@samba.org> | 2017-06-20 08:02:40 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2017-06-22 13:07:40 +0200 |
commit | 1e35c63f4e665d42e9a844d9f9385d591bdfc7e0 (patch) | |
tree | 15509397cb00f9369ff1aa53dc65c154d0e121c1 /source3 | |
parent | 5b9a2e520db0b609958f0b37b15b3e891478d8c9 (diff) | |
download | samba-1e35c63f4e665d42e9a844d9f9385d591bdfc7e0.tar.gz |
s3:pylibsmb: use CLI_FULL_CONNECTION_FORCE_SMB1 in py_cli_state_init()
For now we only support SMB1, as most of the cli_*_send() function don't
support SMB2, it's only plugged into the sync wrapper functions currently.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/pylibsmb.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/libsmb/pylibsmb.c b/source3/libsmb/pylibsmb.c index 59c09983688..39afdc8a952 100644 --- a/source3/libsmb/pylibsmb.c +++ b/source3/libsmb/pylibsmb.c @@ -411,6 +411,13 @@ static int py_cli_state_init(struct py_cli_state *self, PyObject *args, struct cli_credentials *cli_creds; struct tevent_req *req; bool ret; + /* + * For now we only support SMB1, + * as most of the cli_*_send() function + * don't support SMB2, it's only plugged + * into the sync wrapper functions currently. + */ + int flags = CLI_FULL_CONNECTION_FORCE_SMB1; static const char *kwlist[] = { "host", "share", "credentials", NULL @@ -444,7 +451,7 @@ static int py_cli_state_init(struct py_cli_state *self, PyObject *args, req = cli_full_connection_creds_send( NULL, self->ev, "myname", host, NULL, 0, share, "?????", - cli_creds, 0, 0); + cli_creds, flags, 0); if (!py_tevent_req_wait_exc(self->ev, req)) { return -1; } |