1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

auth:creds: Use our own cli_credentials_set_cmdline_callbacks()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
Andreas Schneider 2020-12-03 17:07:53 +01:00 committed by Günther Deschner
parent 9e5ac70a7e
commit 4e82150dc1
2 changed files with 2 additions and 3 deletions

View File

@ -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)

View File

@ -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'
)