diff options
Diffstat (limited to 'source4/libnet')
-rw-r--r-- | source4/libnet/py_net.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/libnet/py_net.c b/source4/libnet/py_net.c index d9dc8d485b..5136fc54eb 100644 --- a/source4/libnet/py_net.c +++ b/source4/libnet/py_net.c @@ -20,6 +20,7 @@ #include "includes.h" #include <Python.h> #include "libnet.h" +#include "auth/credentials/pycredentials.h" #include "libcli/security/security.h" #include "lib/events/events.h" #include "param/param.h" @@ -35,7 +36,8 @@ static struct libnet_context *py_net_ctx(PyObject *obj, struct tevent_context *e if (!libnet) { return NULL; } - libnet->credentials = creds; + libnet->cred = creds; + return libnet; } static PyObject *py_net_join(PyObject *cls, PyObject *args, PyObject *kwargs) |