summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-03-01 02:22:36 +0100
committerMichael Adam <obnox@samba.org>2012-03-03 17:03:07 +0100
commitf6047afb2dfd64fc5c636ecadd66f6c4185e100a (patch)
treea9d6b9d11733b40081e91d7affed4159949ac756 /source4/libcli
parent8dc1873ff530060850c48bd2bb3cff9ab86a6b95 (diff)
downloadsamba-f6047afb2dfd64fc5c636ecadd66f6c4185e100a.tar.gz
samba-f6047afb2dfd64fc5c636ecadd66f6c4185e100a.tar.bz2
samba-f6047afb2dfd64fc5c636ecadd66f6c4185e100a.zip
s4:libcli:smb2: set SMB2_CAP_ALL in the negprot
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/smb2/transport.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/libcli/smb2/transport.c b/source4/libcli/smb2/transport.c
index d3e17025c0..ac563da967 100644
--- a/source4/libcli/smb2/transport.c
+++ b/source4/libcli/smb2/transport.c
@@ -50,6 +50,7 @@ struct smb2_transport *smb2_transport_init(struct smbcli_socket *sock,
{
struct smb2_transport *transport;
struct GUID client_guid;
+ uint32_t smb2_capabilities = 0;
transport = talloc_zero(parent_ctx, struct smb2_transport);
if (!transport) return NULL;
@@ -62,13 +63,16 @@ struct smb2_transport *smb2_transport_init(struct smbcli_socket *sock,
client_guid = GUID_random();
+ /* TODO: hand this in via the options? */
+ smb2_capabilities = SMB2_CAP_ALL;
+
transport->conn = smbXcli_conn_create(transport,
sock->sock->fd,
sock->hostname,
options->signing,
0, /* smb1_capabilities */
&client_guid,
- 0 /* smb2_capabilities */);
+ smb2_capabilities);
if (transport->conn == NULL) {
talloc_free(transport);
return NULL;