mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
py_net: Fix typo in change_password docstring, and indentation in
set_password docstring. Change-Id: I93e9ed79ee43233fc3c1bb69d8eb0a5c6e0e3940 Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
eef3a7be2d
commit
08ca688d4e
@ -129,7 +129,7 @@ static PyObject *py_net_change_password(py_net_Object *self, PyObject *args, PyO
|
|||||||
static const char py_net_change_password_doc[] = "change_password(newpassword) -> True\n\n" \
|
static const char py_net_change_password_doc[] = "change_password(newpassword) -> True\n\n" \
|
||||||
"Change password for a user. You must supply credential with enough rights to do this.\n\n" \
|
"Change password for a user. You must supply credential with enough rights to do this.\n\n" \
|
||||||
"Sample usage is:\n" \
|
"Sample usage is:\n" \
|
||||||
"net.set_password(newpassword=<new_password>\n";
|
"net.change_password(newpassword=<new_password>)\n";
|
||||||
|
|
||||||
|
|
||||||
static PyObject *py_net_set_password(py_net_Object *self, PyObject *args, PyObject *kwargs)
|
static PyObject *py_net_set_password(py_net_Object *self, PyObject *args, PyObject *kwargs)
|
||||||
@ -178,9 +178,7 @@ static PyObject *py_net_set_password(py_net_Object *self, PyObject *args, PyObje
|
|||||||
static const char py_net_set_password_doc[] = "set_password(account_name, domain_name, newpassword) -> True\n\n" \
|
static const char py_net_set_password_doc[] = "set_password(account_name, domain_name, newpassword) -> True\n\n" \
|
||||||
"Set password for a user. You must supply credential with enough rights to do this.\n\n" \
|
"Set password for a user. You must supply credential with enough rights to do this.\n\n" \
|
||||||
"Sample usage is:\n" \
|
"Sample usage is:\n" \
|
||||||
"net.set_password(account_name=<account_name>,\n" \
|
"net.set_password(account_name=account_name, domain_name=domain_name, newpassword=new_pass)\n";
|
||||||
" domain_name=domain_name,\n" \
|
|
||||||
" newpassword=new_pass)\n";
|
|
||||||
|
|
||||||
|
|
||||||
static PyObject *py_net_time(py_net_Object *self, PyObject *args, PyObject *kwargs)
|
static PyObject *py_net_time(py_net_Object *self, PyObject *args, PyObject *kwargs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user