diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-11-28 19:49:54 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-11-29 09:21:25 +0100 |
commit | f8fbc4163b3f3e02bf15fb495b2d2b721a67162b (patch) | |
tree | e6cb27df398ecd2eab1eb5ffec7c691d8d1dbd02 | |
parent | fe69c589e8f3196f2f478adf611bc78a0ea66f50 (diff) | |
download | samba-f8fbc4163b3f3e02bf15fb495b2d2b721a67162b.tar.gz |
s4:py_net: add optional 'machinepass' parameter to py_net_join_member()
metze
-rw-r--r-- | source4/libnet/py_net.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/libnet/py_net.c b/source4/libnet/py_net.c index 4754eb572be..c710680b396 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; |