From f8fbc4163b3f3e02bf15fb495b2d2b721a67162b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 28 Nov 2011 19:49:54 +0100 Subject: s4:py_net: add optional 'machinepass' parameter to py_net_join_member() metze --- source4/libnet/py_net.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source4') diff --git a/source4/libnet/py_net.c b/source4/libnet/py_net.c index 4754eb572b..c710680b39 100644 --- a/source4/libnet/py_net.c +++ b/source4/libnet/py_net.c @@ -49,13 +49,14 @@ static PyObject *py_net_join_member(py_net_Object *self, PyObject *args, PyObjec NTSTATUS status; PyObject *result; TALLOC_CTX *mem_ctx; - const char *kwnames[] = { "domain_name", "netbios_name", "level", NULL }; + const char *kwnames[] = { "domain_name", "netbios_name", "level", "machinepass", NULL }; ZERO_STRUCT(r); - if (!PyArg_ParseTupleAndKeywords(args, kwargs, "ssi:Join", discard_const_p(char *, kwnames), + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "ssi|z:Join", discard_const_p(char *, kwnames), &r.in.domain_name, &r.in.netbios_name, - &_level)) { + &_level, + &r.in.account_pass)) { return NULL; } r.in.level = _level; -- cgit