summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-11-28 19:49:54 +0100
committerStefan Metzmacher <metze@samba.org>2011-11-29 09:21:25 +0100
commitf8fbc4163b3f3e02bf15fb495b2d2b721a67162b (patch)
treee6cb27df398ecd2eab1eb5ffec7c691d8d1dbd02
parentfe69c589e8f3196f2f478adf611bc78a0ea66f50 (diff)
downloadsamba-f8fbc4163b3f3e02bf15fb495b2d2b721a67162b.tar.gz
samba-f8fbc4163b3f3e02bf15fb495b2d2b721a67162b.tar.bz2
samba-f8fbc4163b3f3e02bf15fb495b2d2b721a67162b.zip
s4:py_net: add optional 'machinepass' parameter to py_net_join_member()
metze
-rw-r--r--source4/libnet/py_net.c7
1 files changed, 4 insertions, 3 deletions
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;