From ecafdcb39143b6b3a74f2b9d578241a0170f8486 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 7 Dec 2018 16:40:10 +0100 Subject: [PATCH] s3:pylibsmb: allow ImpersonationLevel argument to create() 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 Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Thu Dec 13 12:35:06 CET 2018 on sn-devel-144 --- source3/libsmb/pylibsmb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/libsmb/pylibsmb.c b/source3/libsmb/pylibsmb.c index 3f84d34e1fd..981e74466b9 100644 --- a/source3/libsmb/pylibsmb.c +++ b/source3/libsmb/pylibsmb.c @@ -675,13 +675,13 @@ static PyObject *py_cli_create(struct py_cli_state *self, PyObject *args, static const char *kwlist[] = { "Name", "CreateFlags", "DesiredAccess", "FileAttributes", "ShareAccess", "CreateDisposition", "CreateOptions", - "SecurityFlags", NULL }; + "ImpersonationLevel", "SecurityFlags", NULL }; if (!ParseTupleAndKeywords( - args, kwds, "s|IIIIIII", kwlist, + args, kwds, "s|IIIIIIII", kwlist, &fname, &CreateFlags, &DesiredAccess, &FileAttributes, &ShareAccess, &CreateDisposition, &CreateOptions, - &SecurityFlags)) { + &ImpersonationLevel, &SecurityFlags)) { return NULL; } -- 2.11.4.GIT