auth:creds: Use our own cli_credentials_set_cmdline_callbacks()
authorAndreas Schneider <asn@samba.org>
Thu, 3 Dec 2020 16:07:53 +0000 (17:07 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 24 Mar 2021 00:55:32 +0000 (00:55 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
auth/credentials/pycredentials.c
auth/credentials/wscript_build

index 250a16018e35d33328c690ba833d90b672058f9d..23048c372764a2e5d27f55eae4805c7a6e1ad83e 100644 (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)
index 06536651d375967ae504a32014f8e54dcc122e1b..7568554df4d669bccf0d20969b482b8bdf13e4ae 100644 (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'
 )