From: Andreas Schneider Date: Thu, 3 Dec 2020 16:07:53 +0000 (+0100) Subject: auth:creds: Use our own cli_credentials_set_cmdline_callbacks() X-Git-Tag: tevent-0.11.0~1408 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e82150dc14cb8852a7a20c1d57b0db4a4cf82e1;p=thirdparty%2Fsamba.git auth:creds: Use our own cli_credentials_set_cmdline_callbacks() Signed-off-by: Andreas Schneider Reviewed-by: Guenther Deschner --- diff --git a/auth/credentials/pycredentials.c b/auth/credentials/pycredentials.c index 250a16018e3..23048c37276 100644 --- a/auth/credentials/pycredentials.c +++ b/auth/credentials/pycredentials.c @@ -22,7 +22,6 @@ #include "python/modules.h" #include "pycredentials.h" #include "param/param.h" -#include "lib/cmdline/credentials.h" #include "auth/credentials/credentials_internal.h" #include "librpc/gen_ndr/samr.h" /* for struct samr_Password */ #include "librpc/gen_ndr/netlogon.h" @@ -474,7 +473,7 @@ static PyObject *py_creds_set_cmdline_callbacks(PyObject *self, PyObject *unused PyErr_Format(PyExc_TypeError, "Credentials expected"); return NULL; } - return PyBool_FromLong(s4_cli_credentials_set_cmdline_callbacks(creds)); + return PyBool_FromLong(cli_credentials_set_cmdline_callbacks(creds)); } static PyObject *py_creds_parse_string(PyObject *self, PyObject *args) diff --git a/auth/credentials/wscript_build b/auth/credentials/wscript_build index 06536651d37..7568554df4d 100644 --- a/auth/credentials/wscript_build +++ b/auth/credentials/wscript_build @@ -32,7 +32,7 @@ pyparam_util = bld.pyembed_libname('pyparam_util') bld.SAMBA_PYTHON('pycredentials', source='pycredentials.c', - public_deps='samba-credentials cmdline-credentials %s %s CREDENTIALS_KRB5 CREDENTIALS_SECRETS' % (pytalloc_util, pyparam_util), + public_deps='samba-credentials %s %s CREDENTIALS_CMDLINE CREDENTIALS_KRB5 CREDENTIALS_SECRETS' % (pytalloc_util, pyparam_util), realname='samba/credentials.so' )