From: Stefan Metzmacher Date: Thu, 2 Aug 2012 06:48:11 +0000 (+0200) Subject: s4:libcli: send the TCONX_FLAG_EXTENDED_RESPONSE flag X-Git-Tag: ldb-1.1.10~156 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=95b64f08a331aec2b520d43c2c4dda49ccc44e84;p=thirdparty%2Fsamba.git s4:libcli: send the TCONX_FLAG_EXTENDED_RESPONSE flag metze --- diff --git a/source4/libcli/cliconnect.c b/source4/libcli/cliconnect.c index 45d8d2a7764..d680a7e121a 100644 --- a/source4/libcli/cliconnect.c +++ b/source4/libcli/cliconnect.c @@ -124,7 +124,7 @@ NTSTATUS smbcli_tconX(struct smbcli_state *cli, const char *sharename, /* setup a tree connect */ tcon.generic.level = RAW_TCON_TCONX; - tcon.tconx.in.flags = 0; + tcon.tconx.in.flags = TCONX_FLAG_EXTENDED_RESPONSE; if (cli->transport->negotiate.sec_mode & NEGOTIATE_SECURITY_USER_LEVEL) { tcon.tconx.in.password = data_blob(NULL, 0); } else if (cli->transport->negotiate.sec_mode & NEGOTIATE_SECURITY_CHALLENGE_RESPONSE) { diff --git a/source4/libcli/smb_composite/connect.c b/source4/libcli/smb_composite/connect.c index 80ce5562d26..3453ec94cf5 100644 --- a/source4/libcli/smb_composite/connect.c +++ b/source4/libcli/smb_composite/connect.c @@ -110,7 +110,7 @@ static NTSTATUS connect_session_setup_anon(struct composite_context *c, /* connect to a share using a tree connect */ state->io_tcon->generic.level = RAW_TCON_TCONX; - state->io_tcon->tconx.in.flags = 0; + state->io_tcon->tconx.in.flags = TCONX_FLAG_EXTENDED_RESPONSE; state->io_tcon->tconx.in.password = data_blob(NULL, 0); state->io_tcon->tconx.in.path = talloc_asprintf(state->io_tcon, @@ -195,7 +195,7 @@ static NTSTATUS connect_session_setup(struct composite_context *c, /* connect to a share using a tree connect */ state->io_tcon->generic.level = RAW_TCON_TCONX; - state->io_tcon->tconx.in.flags = 0; + state->io_tcon->tconx.in.flags = TCONX_FLAG_EXTENDED_RESPONSE; state->io_tcon->tconx.in.password = data_blob(NULL, 0); state->io_tcon->tconx.in.path = talloc_asprintf(state->io_tcon, diff --git a/source4/libcli/util/clilsa.c b/source4/libcli/util/clilsa.c index 4a81457569d..2720a50c833 100644 --- a/source4/libcli/util/clilsa.c +++ b/source4/libcli/util/clilsa.c @@ -68,7 +68,7 @@ static NTSTATUS smblsa_connect(struct smbcli_state *cli) /* connect to IPC$ */ tcon.generic.level = RAW_TCON_TCONX; - tcon.tconx.in.flags = 0; + tcon.tconx.in.flags = TCONX_FLAG_EXTENDED_RESPONSE; tcon.tconx.in.password = data_blob(NULL, 0); tcon.tconx.in.path = "ipc$"; tcon.tconx.in.device = "IPC";