@@ -810,7 +810,7 @@ and wait for and return with the server's result, or with
810
810
811
811
.. py :method :: LDAPObject.passwd(user, oldpw, newpw [, serverctrls=None [, clientctrls=None ]]) -> int
812
812
813
- .. py :method :: LDAPObject.passwd_s(user, oldpw, newpw [, serverctrls=None [, clientctrls=None ]]) -> None
813
+ .. py :method :: LDAPObject.passwd_s(user, oldpw, newpw [, serverctrls=None [, clientctrls=None ]]) -> (respoid, respvalue)
814
814
815
815
Perform a ``LDAP Password Modify Extended Operation `` operation
816
816
on the entry specified by *user *.
@@ -821,6 +821,11 @@ and wait for and return with the server's result, or with
821
821
of the specified *user * which is sometimes used when a user changes
822
822
his own password.
823
823
824
+ ``respoid `` is always :py:const: `None `. ``respvalue `` is also
825
+ :py:const: `None ` unless *newpw * was :py:const: `None `, this requests
826
+ that the server generates a new random password. With :py:meth: `passwd_s() `
827
+ method, this password is available through ``respvalue.genPasswd ``.
828
+
824
829
*serverctrls * and *clientctrls * like described in section :ref: `ldap-controls `.
825
830
826
831
The asynchronous version returns the initiated message id.
@@ -830,6 +835,7 @@ and wait for and return with the server's result, or with
830
835
.. seealso ::
831
836
832
837
:rfc: `3062 ` - LDAP Password Modify Extended Operation
838
+ :py:mod: `ldap.extop.passwd `
833
839
834
840
835
841
0 commit comments