Skip to content

Commit 8575ac1

Browse files
committed
Doc for extract_newpw
1 parent ae68e6d commit 8575ac1

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Doc/reference/ldap.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ and wait for and return with the server's result, or with
818818

819819
.. py:method:: LDAPObject.passwd(user, oldpw, newpw [, serverctrls=None [, clientctrls=None]]) -> int
820820
821-
.. py:method:: LDAPObject.passwd_s(user, oldpw, newpw [, serverctrls=None [, clientctrls=None]]) -> (respoid, respvalue)
821+
.. py:method:: LDAPObject.passwd_s(user, oldpw, newpw [, serverctrls=None [, clientctrls=None] [, extract_newpw=False]]]) -> (respoid, respvalue)
822822
823823
Perform a ``LDAP Password Modify Extended Operation`` operation
824824
on the entry specified by *user*.
@@ -829,10 +829,12 @@ and wait for and return with the server's result, or with
829829
of the specified *user* which is sometimes used when a user changes
830830
his own password.
831831

832-
``respoid`` is always :py:const:`None`. ``respvalue`` is also
833-
:py:const:`None` unless *newpw* was :py:const:`None`, this requests
834-
that the server generates a new random password. With :py:meth:`passwd_s()`
835-
method, this password is available through ``respvalue.genPasswd``.
832+
*respoid* is always :py:const:`None`. *respvalue* is also
833+
:py:const:`None` unless *newpw* was :py:const:`None`. This requests that
834+
the server generate a new random password. If *extract_newpw* is
835+
:py:const:`True`, this password is a bytes object available through
836+
``respvalue.genPasswd``, otherwise *respvalue* is the raw ASN.1 response
837+
(this is deprecated and only for backwards compatibility).
836838

837839
*serverctrls* and *clientctrls* like described in section :ref:`ldap-controls`.
838840

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy