From 4e82150dc14cb8852a7a20c1d57b0db4a4cf82e1 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 3 Dec 2020 17:07:53 +0100 Subject: auth:creds: Use our own cli_credentials_set_cmdline_callbacks() Signed-off-by: Andreas Schneider Reviewed-by: Guenther Deschner --- auth/credentials/pycredentials.c | 3 +-- auth/credentials/wscript_build | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'auth') 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' ) -- cgit v1.2.1