@@ -697,6 +697,9 @@ and wait for and return with the server's result, or with
697
697
698
698
*serverctrls * and *clientctrls * like described in section :ref: `ldap-controls `.
699
699
700
+ The *dn * argument, and mod_type (second item) of *modlist * are text strings;
701
+ see :ref: `bytes_mode `.
702
+
700
703
701
704
.. py :method :: LDAPObject.bind(who, cred, method) -> int
702
705
@@ -738,6 +741,8 @@ and wait for and return with the server's result, or with
738
741
739
742
*serverctrls * and *clientctrls * like described in section :ref: `ldap-controls `.
740
743
744
+ The *dn * and *attr * arguments are text strings; see :ref: `bytes_mode `.
745
+
741
746
.. note ::
742
747
743
748
A design fault in the LDAP API prevents *value *
@@ -758,6 +763,8 @@ and wait for and return with the server's result, or with
758
763
759
764
*serverctrls * and *clientctrls * like described in section :ref: `ldap-controls `.
760
765
766
+ The *dn * argument is text string; see :ref: `bytes_mode `.
767
+
761
768
762
769
.. py :method :: LDAPObject.extop(extreq[,serverctrls=None [,clientctrls=None ]]]) -> int
763
770
@@ -811,6 +818,9 @@ and wait for and return with the server's result, or with
811
818
You might want to look into sub-module :py:mod: `ldap.modlist ` for
812
819
generating *modlist *.
813
820
821
+ The *dn * argument, and mod_type (second item) of *modlist * are text strings;
822
+ see :ref: `bytes_mode `.
823
+
814
824
815
825
.. py :method :: LDAPObject.modrdn(dn, newrdn [, delold=1 ]) -> int
816
826
@@ -827,6 +837,8 @@ and wait for and return with the server's result, or with
827
837
This operation is emulated by :py:meth: `rename() ` and :py:meth: `rename_s() ` methods
828
838
since the modrdn2* routines in the C library are deprecated.
829
839
840
+ The *dn * and *newrdn * arguments are text strings; see :ref: `bytes_mode `.
841
+
830
842
831
843
.. py :method :: LDAPObject.passwd(user, oldpw, newpw [, serverctrls=None [, clientctrls=None ]]) -> int
832
844
@@ -845,6 +857,8 @@ and wait for and return with the server's result, or with
845
857
846
858
The asynchronous version returns the initiated message id.
847
859
860
+ The *user *, *oldpw * and *newpw * arguments are text strings; see :ref: `bytes_mode `.
861
+
848
862
.. seealso ::
849
863
850
864
:rfc: `3062 ` - LDAP Password Modify Extended Operation
@@ -866,6 +880,8 @@ and wait for and return with the server's result, or with
866
880
867
881
*serverctrls * and *clientctrls * like described in section :ref: `ldap-controls `.
868
882
883
+ The *dn * and *newdn * arguments are text strings; see :ref: `bytes_mode `.
884
+
869
885
870
886
.. py :method :: LDAPObject.result([msgid=RES_ANY [, all =1 [, timeout=None ]]]) -> 2 - tuple
871
887
@@ -1016,12 +1032,13 @@ and wait for and return with the server's result, or with
1016
1032
1017
1033
*serverctrls * and *clientctrls * like described in section :ref: `ldap-controls `.
1018
1034
1035
+ The *who * and *cred * arguments are text strings; see :ref: `bytes_mode `.
1036
+
1019
1037
.. versionchanged :: 3.0
1020
1038
1021
1039
:meth: `~LDAPObject.simple_bind ` and :meth: `~LDAPObject.simple_bind_s `
1022
1040
now accept ``None `` for *who * and *cred *, too.
1023
1041
1024
-
1025
1042
.. py :method :: LDAPObject.search(base, scope [,filterstr=' (objectClass=*)' [, attrlist=None [, attrsonly=0 ]]]) -> int
1026
1043
1027
1044
.. py :method :: LDAPObject.search_s(base, scope [,filterstr=' (objectClass=*)' [, attrlist=None [, attrsonly=0 ]]]) -> list | None
@@ -1074,6 +1091,9 @@ and wait for and return with the server's result, or with
1074
1091
or :py:meth: `search_ext_s() ` (client-side search limit). If non-zero
1075
1092
not more than *sizelimit * results are returned by the server.
1076
1093
1094
+ The *base * and *filterstr * arguments, and *attrlist * contents,
1095
+ are text strings; see :ref: `bytes_mode `.
1096
+
1077
1097
.. versionchanged :: 3.0
1078
1098
1079
1099
``filterstr=None `` is equivalent to ``filterstr='(objectClass=*)' ``.
0 commit comments