From c8a5e89d9f6575c4e9eb770997172e9c25f8e9d0 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 7 Dec 2018 16:38:57 +0100 Subject: s3:libsmb: pass impersonation_level to cli_ntcreate_send() BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113 BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892 BUG: https://bugzilla.samba.org/show_bug.cgi?id=13676 Signed-off-by: Stefan Metzmacher Reviewed-by: Tim Beale Reviewed-by: Andrew Bartlett --- examples/winexe/winexe.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples') diff --git a/examples/winexe/winexe.c b/examples/winexe/winexe.c index cf667a64ebc..429ba2f5163 100644 --- a/examples/winexe/winexe.c +++ b/examples/winexe/winexe.c @@ -872,6 +872,7 @@ static struct tevent_req *winexe_out_pipe_send( FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE, FILE_OPEN, /* CreateDisposition */ 0, /* CreateOptions */ + SMB2_IMPERSONATION_IMPERSONATION, 0); /* SecurityFlags */ if (tevent_req_nomem(subreq, req)) { return tevent_req_post(req, ev); @@ -1044,6 +1045,7 @@ static struct tevent_req *winexe_in_pipe_send( FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE, FILE_OPEN, /* CreateDisposition */ 0, /* CreateOptions */ + SMB2_IMPERSONATION_IMPERSONATION, 0); /* SecurityFlags */ if (tevent_req_nomem(subreq, req)) { return tevent_req_post(req, ev); @@ -1462,6 +1464,7 @@ static struct tevent_req *winexe_ctrl_send( FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE, FILE_OPEN, /* CreateDisposition */ 0, /* CreateOptions */ + SMB2_IMPERSONATION_IMPERSONATION, 0); /* SecurityFlags */ if (tevent_req_nomem(subreq, req)) { return tevent_req_post(req, ev); -- cgit v1.2.1