Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
site-packages
/
ldap
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/site-packages/ldap/ldapobject.pyc
mò •9oCc�����������@���sô���d��Z��d�Z�d�d�d�d�d�g�Z�e�o �d�k�Z�n�d�k�Z�d�k�Z�d�k�Z�d�k�Z�d�k �Z�d�k �l�Z�d �k�l �Z �l�Z�l�Z�d �k�l�Z�d�f��d�„��ƒ��YZ�d�e�f�d�„��ƒ��YZ�d�e�f�d �„��ƒ��YZ�d�e�f�d�„��ƒ��YZ�e�Z�d�S(���s&�� ldapobject.py - wraps class _ldap.LDAPObject written by Michael Stroeder <michael@stroeder.com> See http://python-ldap.sourceforge.net for details. \$Id: ldapobject.py,v 1.92 2005/11/03 09:09:43 stroeder Exp $ Compability: - Tested with Python 2.0+ but should work with Python 1.5.x - LDAPObject class should be exactly the same like _ldap.LDAPObject Usage: Directly imported by ldap/__init__.py. The symbols of _ldap are overridden. Thread-lock: Basically calls into the LDAP lib are serialized by the module-wide lock self._ldap_object_lock. s���0.7.0t ���LDAPObjectt���SimpleLDAPObjectt���NonblockingLDAPObjectt���ReconnectLDAPObjectt���SmartLDAPObjectN(���s���SCHEMA_ATTRS(���s���LDAPControls���DecodeControlTupless���EncodeControlTuples(���s ���LDAPErrorc�����������B���s\��t��Z�d��Z�h��d�e�i�<d�e�i�<d�e�i�<d�e�i�<d�e�i�<d�e�i �<Z �d�e�d�d �„�Z�d �„��Z �d�„��Z�d�„��Z�d �„��Z�e�e�d�„�Z�d�„��Z�e�e�d�„�Z�e�e�d�„�Z�d�„��Z�d�„��Z�d�d�e�e�d�„�Z�d�d�e�e�d�„�Z�e�i�d�„�Z�e�i�d�„�Z�e�e�e�i�d�„�Z�e�e�d�„�Z�e�e�d�„�Z�d�„��Z �d�„��Z!�e�e�d�„�Z"�e�e�d�„�Z#�d �„��Z$�d!�„��Z%�d�d"�„�Z&�e�e�d#�„�Z'�e�e�d$�„�Z(�d%�„��Z)�d&�„��Z*�d'�d(�„�Z+�d'�d)�„�Z,�e�e�d*�„�Z-�e�e�d+�„�Z.�e�d'�e�e�d,�„�Z/�e�d'�d-�„�Z0�e�i1�d'�e�d.�„�Z2�e3�i1�d'�e�d/�„�Z4�e3�i1�d'�e�d0�„�Z5�d1�e�d�e�e�d2�d�d3�„�Z6�d1�e�d�e�e�d2�d�d4�„�Z7�d1�e�d�d5�„�Z8�d1�e�d�d6�„�Z9�d1�e�d�d2�d7�„�Z:�d8�„��Z;�d9�„��Z<�e�e�d:�„�Z=�e�e�d;�„�Z>�d<�„��Z?�d=�„��Z@�e�e�d>�„�ZA�d?�„��ZB�d@�„��ZC�d�dA�„�ZD�e�dB�„�ZE�RS(C���s3��� Drop-in wrapper class around _ldap.LDAPObject t���protocol_versiont���dereft ���referralst ���timelimitt ���sizelimitt���network_timeouti����i���c���������C���sq���|�|��_�|�p�t�i�|��_�|�|��_�|�|��_ �|��i�ƒ��|��_�t �i�i�t�i�|�ƒ�|��_�d�|��_�t �i�|��_�d��S(���Niÿÿÿÿ(���t���trace_levelt���selft���_trace_levelt ���trace_filet���syst���stdoutt���_trace_filet���trace_stack_limitt���_trace_stack_limitt���urit���_urit ���_ldap_lockt���_ldap_object_lockt���ldapt ���functionst���_ldap_function_callt���_ldapt ���initializet���_lt���timeoutt���VERSION3R���(���R���R���R���R���R���(����(����t3���/usr/lib/python2.4/site-packages/ldap/ldapobject.pyt���__init__:���s���� c���������C���s#���t��i�o�t��i�ƒ��Sn�t��i�Sd��S(���N(���R���t ���LIBLDAP_Rt���LDAPLockt���_ldap_module_lock(���R���(����(����R ���R���G���s���� c���������O���sw��t��oˆ�|��i�d�j�ot�|��i�i�d�|��i�|��i�i�d�|�i�t �|�ƒ�t �|�ƒ�f�ƒ�|��i�d�j�o �t�i �d�|��i�d�|��i�ƒ�q‹�q�n�|��i�i�ƒ��y(�z�|�|�|�Ž��}�Wd�|��i�i�ƒ��XWnY�t�j �oM�}�t��o:�|��i�d�j�o*�|��i�i�d �|�i�i�t�|�ƒ�f�ƒ�n�‚��n�Xt��oL�|��i�d�j�o<�|�d�j�o+�|�d�j�o�|��i�i�d �t �|�ƒ�ƒ�qsn�|�S(���s[��� Wrapper method mainly for serializing calls into OpenLDAP libs and trace logs i���s���*** %s - %s (%s,%s) t���.i���t���limitt���fileNi���s���=> LDAPError - %s: %s s���=> result: %s (���NN(���t ���__debug__R���R ���R���t���writeR���t ���__class__t���__name__t���funct���reprt���argst���kwargst ���tracebackt���print_stackR���R���t���acquiret���resultt���releaset ���LDAPErrort���et���strt���None(���R���R,���R.���R/���R6���R3���(����(����R ���t ���_ldap_callM���s(�����@( �*"c���������C���s?���|��i�i�|�ƒ�o�|��i�|��i�|�|�ƒ�n�|�|��i�|�<d��S(���N(���R���t���CLASSATTR_OPTION_MAPPINGt���has_keyt���namet ���set_optiont���valuet���__dict__(���R���R<���R>���(����(����R ���t���__setattr__j���s����c���������C���sp���|��i�i�|�ƒ�o�|��i�|��i�|�ƒ�SnB�|��i�i�|�ƒ�o�|��i�|�Sn �t�d�|��i�i�t �|�ƒ�f�‚�d��S(���Ns���%s has no attribute %s( ���R���R:���R;���R<���t ���get_optionR?���t���AttributeErrorR*���R+���R-���(���R���R<���(����(����R ���t���__getattr__p���s ����c���������C���s(���|��i�|��i�i�|�t�|�ƒ�t�|�ƒ�ƒ�S(���sÂ�� abandon_ext(msgid[,serverctrls=None[,clientctrls=None]]) -> None abandon(msgid) -> None Abandons or cancels an LDAP operation in progress. The msgid should be the message id of an outstanding LDAP operation as returned by the asynchronous methods search(), modify() etc. The caller can expect that the result of an abandoned operation will not be returned from a future call to result(). N(���R���R9���R���t���abandon_extt���msgidt���EncodeControlTuplest���serverctrlst���clientctrls(���R���RE���RG���RH���(����(����R ���RD���z���s���� �c���������C���s���|��i�|�d��d��ƒ�S(���N(���R���RD���RE���R8���(���R���RE���(����(����R ���t���abandon†���s����c���������C���s+���|��i�|��i�i�|�|�t�|�ƒ�t�|�ƒ�ƒ�S(���s\�� add_ext(dn, modlist[,serverctrls=None[,clientctrls=None]]) -> int This function adds a new entry with a distinguished name specified by dn which means it must not already exist. The parameter modlist is similar to the one passed to modify(), except that no operation integer need be included in the tuples. N( ���R���R9���R���t���add_extt���dnt���modlistRF���RG���RH���(���R���RK���RL���RG���RH���(����(����R ���RJ���‰���s�����c���������C���s4���|��i�|�|�|�|�ƒ�}�|��i�|�d�d�d�|��i�ƒS(���Nt���alli���R���( ���R���RJ���RK���RL���RG���RH���RE���R3���R���(���R���RK���RL���RG���RH���RE���(����(����R ���t ���add_ext_s“���s����c���������C���s���|��i�|�|�d�d�ƒ�S(���s2�� add(dn, modlist) -> int This function adds a new entry with a distinguished name specified by dn which means it must not already exist. The parameter modlist is similar to the one passed to modify(), except that no operation integer need be included in the tuples. N(���R���RJ���RK���RL���R8���(���R���RK���RL���(����(����R ���t���add—���s�����c���������C���s.���|��i�|�|�ƒ�}�|��i�|�d�d�d�|��i�ƒS(���NRM���i���R���(���R���RO���RK���RL���RE���R3���R���(���R���RK���RL���RE���(����(����R ���t���add_s¡���s����t����c���������C���s+���|��i�|��i�i�|�|�t�|�ƒ�t�|�ƒ�ƒ�S(���s1��� simple_bind([who='' [,cred='']]) -> int N( ���R���R9���R���t���simple_bindt���whot���credRF���RG���RH���(���R���RS���RT���RG���RH���(����(����R ���RR���¥���s�����c���������C���s4���|��i�|�|�|�|�ƒ�}�|��i�|�d�d�d�|��i�ƒS(���s4��� simple_bind_s([who='' [,cred='']]) -> None RM���i���R���N( ���R���RR���RS���RT���RG���RH���RE���R3���R���(���R���RS���RT���RG���RH���RE���(����(����R ���t ���simple_bind_s«���s�����c���������C���s*���|�t�i�j�p �t�d�‚�|��i�|�|�ƒ�S(���s(��� bind(who, cred, method) -> int s/���Only simple bind supported in LDAPObject.bind()N(���t���methodR���t���AUTH_SIMPLEt���AssertionErrorR���RR���RS���RT���(���R���RS���RT���RV���(����(����R ���t���bind²���s�����c���������C���s1���|��i�|�|�|�ƒ�}�|��i�|�d�d�d�|��i�ƒS(���s+��� bind_s(who, cred, method) -> None RM���i���R���N(���R���RY���RS���RT���RV���RE���R3���R���(���R���RS���RT���RV���RE���(����(����R ���t���bind_s¹���s�����c���������C���s.���|��i�|��i�i�|�|�t�|�ƒ�t�|�ƒ�|�ƒ�S(���s4��� sasl_interactive_bind_s(who, auth) -> None N( ���R���R9���R���t���sasl_interactive_bind_sRS���t���authRF���RG���RH���t ���sasl_flags(���R���RS���R\���RG���RH���R]���(����(����R ���R[���À���s�����c���������C���s.���|��i�|��i�i�|�|�|�t�|�ƒ�t�|�ƒ�ƒ�S(���s(�� compare_ext(dn, attr, value [,serverctrls=None[,clientctrls=None]]) -> int compare_ext_s(dn, attr, value [,serverctrls=None[,clientctrls=None]]) -> int compare(dn, attr, value) -> int compare_s(dn, attr, value) -> int Perform an LDAP comparison between the attribute named attr of entry dn, and the value value. The synchronous form returns 0 for false, or 1 for true. The asynchronous form returns the message id of the initiates request, and the result of the asynchronous compare can be obtained using result(). Note that this latter technique yields the answer by raising the exception objects COMPARE_TRUE or COMPARE_FALSE. A design bug in the library prevents value from containing nul characters. N( ���R���R9���R���t���compare_extRK���t���attrR>���RF���RG���RH���(���R���RK���R_���R>���RG���RH���(����(����R ���R^���Æ���s�����c���������C���su���|��i�|�|�|�|�|�ƒ�}�y �|��i�|�d�d�d�|��i �ƒWn3�t �i�j �o�d�Sn�t �i�j �o�d�Sn�Xd��S(���NRM���i���R���i����(���R���R^���RK���R_���R>���RG���RH���RE���R3���R���R���t���COMPARE_TRUEt ���COMPARE_FALSER8���(���R���RK���R_���R>���RG���RH���RE���(����(����R ���t ���compare_ext_sÚ���s���� c���������C���s���|��i�|�|�|�d��d��ƒ�S(���N(���R���R^���RK���R_���R>���R8���(���R���RK���R_���R>���(����(����R ���t���compareä���s����c���������C���s���|��i�|�|�|�d��d��ƒ�S(���N(���R���Rb���RK���R_���R>���R8���(���R���RK���R_���R>���(����(����R ���t ���compare_sç���s����c���������C���s(���|��i�|��i�i�|�t�|�ƒ�t�|�ƒ�ƒ�S(���s‚�� delete(dn) -> int delete_s(dn) -> None delete_ext(dn[,serverctrls=None[,clientctrls=None]]) -> int delete_ext_s(dn[,serverctrls=None[,clientctrls=None]]) -> None Performs an LDAP delete operation on dn. The asynchronous form returns the message id of the initiated request, and the result can be obtained from a subsequent call to result(). N(���R���R9���R���t ���delete_extRK���RF���RG���RH���(���R���RK���RG���RH���(����(����R ���Re���ê���s���� �c���������C���s1���|��i�|�|�|�ƒ�}�|��i�|�d�d�d�|��i�ƒS(���NRM���i���R���(���R���Re���RK���RG���RH���RE���R3���R���(���R���RK���RG���RH���RE���(����(����R ���t���delete_ext_sö���s����c���������C���s���|��i�|�d��d��ƒ�S(���N(���R���Re���RK���R8���(���R���RK���(����(����R ���t���deleteú���s����c���������C���s���|��i�|�d��d��ƒ�S(���N(���R���Rf���RK���R8���(���R���RK���(����(����R ���t���delete_sý���s����c���������C���sƒ���g��}�|��i�t�i�ƒ�p�g��D]!�}�|�i�d�j�o�|�|�q�q�~�}�|�o�|�i �t �d�|�d�ƒ�ƒ�n�|��i �t�i�|�ƒ�d�S(���sk��� manage_dsa_it() -> None Enable or disable manageDSAit mode (see draft-zeilenga-ldap-namedref) s���2.16.840.1.113730.3.4.2N(���t���_[1]R���RA���R���t���OPT_SERVER_CONTROLSt���ct���controlTypet���all_server_ctrlst���enablet���appendt���LDAPControlt���criticalR8���R=���(���R���Rn���Rq���Rm���Rk���Ri���(����(����R ���t ���manage_dsa_it���s �����Hc���������C���s+���|��i�|��i�i�|�|�t�|�ƒ�t�|�ƒ�ƒ�S(���sN��� modify_ext(dn, modlist[,serverctrls=None[,clientctrls=None]]) -> int N( ���R���R9���R���t ���modify_extRK���RL���RF���RG���RH���(���R���RK���RL���RG���RH���(����(����R ���Rs�����s�����c���������C���s4���|��i�|�|�|�|�ƒ�}�|��i�|�d�d�d�|��i�ƒS(���NRM���i���R���( ���R���Rs���RK���RL���RG���RH���RE���R3���R���(���R���RK���RL���RG���RH���RE���(����(����R ���t���modify_ext_s��s����c���������C���s���|��i�|�|�d�d�ƒ�S(���s×�� modify(dn, modlist) -> int modify_s(dn, modlist) -> None modify_ext(dn, modlist[,serverctrls=None[,clientctrls=None]]) -> int modify_ext_s(dn, modlist[,serverctrls=None[,clientctrls=None]]) -> None Performs an LDAP modify operation on an entry's attributes. dn is the DN of the entry to modify, and modlist is the list of modifications to make to the entry. Each element of the list modlist should be a tuple of the form (mod_op,mod_type,mod_vals), where mod_op is the operation (one of MOD_ADD, MOD_DELETE, or MOD_REPLACE), mod_type is a string indicating the attribute type name, and mod_vals is either a string value or a list of string values to add, delete or replace respectively. For the delete operation, mod_vals may be None indicating that all attributes are to be deleted. The asynchronous modify() returns the message id of the initiated request. N(���R���Rs���RK���RL���R8���(���R���RK���RL���(����(����R ���t���modify��s�����c���������C���s.���|��i�|�|�ƒ�}�|��i�|�d�d�d�|��i�ƒS(���NRM���i���R���(���R���Ru���RK���RL���RE���R3���R���(���R���RK���RL���RE���(����(����R ���t���modify_s/��s����i���c���������C���s���|��i�|�|�d�|�ƒ�S(���sg�� modrdn(dn, newrdn [,delold=1]) -> int modrdn_s(dn, newrdn [,delold=1]) -> None Perform a modify RDN operation. These routines take dn, the DN of the entry whose RDN is to be changed, and newrdn, the new RDN to give to the entry. The optional parameter delold is used to specify whether the old RDN should be kept as an attribute of the entry or not. The asynchronous version returns the initiated message id. This operation is emulated by rename() and rename_s() methods since the modrdn2* routines in the C library are deprecated. N(���R���t���renameRK���t���newrdnR8���t���delold(���R���RK���Rx���Ry���(����(����R ���t���modrdn3��s���� �c���������C���s���|��i�|�|�d��|�ƒ�S(���N(���R���t���rename_sRK���Rx���R8���Ry���(���R���RK���Rx���Ry���(����(����R ���t���modrdn_sC��s����c���������C���s.���|��i�|��i�i�|�|�|�t�|�ƒ�t�|�ƒ�ƒ�S(���N( ���R���R9���R���t���passwdt���usert���oldpwt���newpwRF���RG���RH���(���R���R~���R���R€���RG���RH���(����(����R ���R}���F��s����c���������C���s7���|��i�|�|�|�|�|�ƒ�}�|��i�|�d�d�d�|��i �ƒS(���NRM���i���R���( ���R���R}���R~���R���R€���RG���RH���RE���R3���R���(���R���R~���R���R€���RG���RH���RE���(����(����R ���t���passwd_sI��s����c������ ���C���s1���|��i�|��i�i�|�|�|�|�t�|�ƒ�t�|�ƒ�ƒ�S(���s�� rename(dn, newrdn [, newsuperior=None [,delold=1][,serverctrls=None[,clientctrls=None]]]) -> int rename_s(dn, newrdn [, newsuperior=None] [,delold=1][,serverctrls=None[,clientctrls=None]]) -> None Perform a rename entry operation. These routines take dn, the DN of the entry whose RDN is to be changed, newrdn, the new RDN, and newsuperior, the new parent DN, to give to the entry. If newsuperior is None then only the RDN is modified. The optional parameter delold is used to specify whether the old RDN should be kept as an attribute of the entry or not. The asynchronous version returns the initiated message id. This actually corresponds to the rename* routines in the LDAP-EXT C API library. N(���R���R9���R���Rw���RK���Rx���t���newsuperiorRy���RF���RG���RH���(���R���RK���Rx���R‚���Ry���RG���RH���(����(����R ���Rw���M��s�����c���������C���s4���|��i�|�|�|�|�ƒ�}�|��i�|�d�d�d�|��i�ƒS(���NRM���i���R���( ���R���Rw���RK���Rx���R‚���Ry���RE���R3���R���(���R���RK���Rx���R‚���Ry���RE���(����(����R ���R{���^��s����c���������C���s(���|��i�|�|�|�ƒ�\�}�}�}�|�|�f�S(���sß �� result([msgid=RES_ANY [,all=1 [,timeout=None]]]) -> (result_type, result_data) This method is used to wait for and return the result of an operation previously initiated by one of the LDAP asynchronous operation routines (eg search(), modify(), etc.) They all returned an invocation identifier (a message id) upon successful initiation of their operation. This id is guaranteed to be unique across an LDAP session, and can be used to request the result of a specific operation via the msgid parameter of the result() method. If the result of a specific operation is required, msgid should be set to the invocation message id returned when the operation was initiated; otherwise RES_ANY should be supplied. The all parameter only has meaning for search() responses and is used to select whether a single entry of the search response should be returned, or to wait for all the results of the search before returning. A search response is made up of zero or more search entries followed by a search result. If all is 0, search entries will be returned one at a time as they come in, via separate calls to result(). If all is 1, the search response will be returned in its entirety, i.e. after all entries and the final search result have been received. For all set to 0, result tuples trickle in (with the same message id), and with the result type RES_SEARCH_ENTRY, until the final result which has a result type of RES_SEARCH_RESULT and a (usually) empty data field. When all is set to 1, only one result is returned, with a result type of RES_SEARCH_RESULT, and all the result tuples listed in the data field. The method returns a tuple of the form (result_type, result_data). The result_type is one of the constants RES_*. See search() for a description of the search result's result_data, otherwise the result_data is normally meaningless. The result() method will block for timeout seconds, or indefinitely if timeout is negative. A timeout of 0 will effect a poll. The timeout can be expressed as a floating-point value. If timeout is None the default in self.timeout is used. If a timeout occurs, a TIMEOUT exception is raised, unless polling (timeout = 0), in which case (None, None) is returned. N(���R���t���result2RE���RM���R���t���res_typet���res_datat ���res_msgid(���R���RE���RM���R���R„���R…���R†���(����(����R ���R3���b��s����2�c���������C���s.���|��i�|�|�|�ƒ�\�}�}�}�}�|�|�|�f�S(���N( ���R���t���result3RE���RM���R���R„���R…���R†���t ���srv_ctrls(���R���RE���RM���R���R„���Rˆ���R…���R†���(����(����R ���Rƒ���˜��s����!c��� ������C���s`���|�d��j�o �|��i��}�n�|��i�|��i�i�|�|�|�ƒ�\�}�}�}�}�t�|�ƒ�}�|�|�|�|�f�S(���N(���R���R8���R���R9���R���R‡���RE���RM���t���rtypet���rdatat���rmsgidRG���t���DecodeControlTuplest���decoded_serverctrls( ���R���RE���RM���R���R‰���R���RŠ���RG���R‹���(����(����R ���R‡���œ��s ���� *s���(objectClass=*)iÿÿÿÿc ��� ������C���s:���|��i�|��i�i�|�|�|�|�|�t �|�ƒ�t �|�ƒ�|�| �ƒ �S(���s�� search(base, scope [,filterstr='(objectClass=*)' [,attrlist=None [,attrsonly=0]]]) -> int search_s(base, scope [,filterstr='(objectClass=*)' [,attrlist=None [,attrsonly=0]]]) search_st(base, scope [,filterstr='(objectClass=*)' [,attrlist=None [,attrsonly=0 [,timeout=-1]]]]) search_ext(base,scope,[,filterstr='(objectClass=*)' [,attrlist=None [,attrsonly=0 [,serverctrls=None [,clientctrls=None [,timeout=-1 [,sizelimit=0]]]]]]]) search_ext_s(base,scope,[,filterstr='(objectClass=*)' [,attrlist=None [,attrsonly=0 [,serverctrls=None [,clientctrls=None [,timeout=-1 [,sizelimit=0]]]]]]]) Perform an LDAP search operation, with base as the DN of the entry at which to start the search, scope being one of SCOPE_BASE (to search the object itself), SCOPE_ONELEVEL (to search the object's immediate children), or SCOPE_SUBTREE (to search the object and all its descendants). filter is a string representation of the filter to apply in the search (see RFC 2254). Each result tuple is of the form (dn,entry), where dn is a string containing the DN (distinguished name) of the entry, and entry is a dictionary containing the attributes. Attributes types are used as string dictionary keys and attribute values are stored in a list as dictionary value. The DN in dn is extracted using the underlying ldap_get_dn(), which may raise an exception of the DN is malformed. If attrsonly is non-zero, the values of attrs will be meaningless (they are not transmitted in the result). The retrieved attributes can be limited with the attrlist parameter. If attrlist is None, all the attributes of each entry are returned. serverctrls=None clientctrls=None The synchronous form with timeout, search_st() or search_ext_s(), will block for at most timeout seconds (or indefinitely if timeout is negative). A TIMEOUT exception is raised if no result is received within the time. The amount of search results retrieved can be limited with the sizelimit parameter if non-zero. N(���R���R9���R���t ���search_extt���baset���scopet ���filterstrt���attrlistt ���attrsonlyRF���RG���RH���R���R ���( ���R���R���R���R‘���R’���R“���RG���RH���R���R ���(����(����R ���RŽ���£��s����,� c ������ ���C���sD���|��i�|�|�|�|�|�|�|�|�| �ƒ �} �|��i�| �d�d�d�|�ƒd�S(���NRM���i���R���( ���R���RŽ���R���R���R‘���R’���R“���RG���RH���R���R ���RE���R3���(���R���R���R���R‘���R’���R“���RG���RH���R���R ���RE���(����(����R ���t���search_ext_sÙ��s����'c���������C���s���|��i�|�|�|�|�|�d��d��ƒ�S(���N(���R���RŽ���R���R���R‘���R’���R“���R8���(���R���R���R���R‘���R’���R“���(����(����R ���t���searchÝ��s����c������ ���C���s(���|��i�|�|�|�|�|�d��d��d�|��i�ƒS(���NR���( ���R���R”���R���R���R‘���R’���R“���R8���R���(���R���R���R���R‘���R’���R“���(����(����R ���t���search_sà��s����c������ ���C���s"���|��i�|�|�|�|�|�d��d��|�ƒ�S(���N( ���R���R”���R���R���R‘���R’���R“���R8���R���(���R���R���R���R‘���R’���R“���R���(����(����R ���t ���search_stã��s����c���������O���s���|��i�|��i�i�|�|�Ž�S(���sÊ�� set_cache_options(option) -> None Changes the caching behaviour. Currently supported options are CACHE_OPT_CACHENOERRS, which suppresses caching of requests that resulted in an error, and CACHE_OPT_CACHEALLERRS, which enables caching of all requests. The default behaviour is not to cache requests that result in errors, except those that result in a SIZELIMIT_EXCEEDED exception. N(���R���R9���R���t���set_cache_optionsR.���R/���(���R���R.���R/���(����(����R ���R˜���æ��s���� �c���������C���s���|��i�|��i�i�ƒ�S(���sÖ��� start_tls_s() -> None Negotiate TLS with server. The `version' attribute must have been set to VERSION3 before calling start_tls_s. If TLS could not be started an exception will be raised. N(���R���R9���R���t���start_tls_s(���R���(����(����R ���R™���ò��s�����c���������C���s%���|��i�|��i�i�t�|�ƒ�t�|�ƒ�ƒ�S(���sú�� unbind() -> int unbind_s() -> None unbind_ext() -> int unbind_ext_s() -> None This call is used to unbind from the directory, terminate the current association, and free resources. Once called, the connection to the LDAP server is closed and the LDAP object is invalid. Further invocation of methods on the object will yield an exception. The unbind and unbind_s methods are identical, and are synchronous in nature N(���R���R9���R���t ���unbind_extRF���RG���RH���(���R���RG���RH���(����(����R ���Rš���û��s�����c���������C���sC���|��i�|�|�ƒ�}�|�d��j�o �|��i�|�d�d�d�|��i�ƒSn�d��S(���NRM���i���R���(���R���Rš���RG���RH���RE���R8���R3���R���(���R���RG���RH���RE���(����(����R ���t���unbind_ext_s��s���� c���������C���s���|��i�d��d��ƒ�S(���N(���R���Rš���R8���(���R���(����(����R ���t���unbind��s����c���������C���s���|��i�d��d��ƒ�S(���N(���R���R›���R8���(���R���(����(����R ���t���unbind_s��s����c���������C���s���|��i�|��i�i�|�|�ƒ�S(���N(���R���R9���R���t���whoami_sRG���RH���(���R���RG���RH���(����(����R ���Rž�����s����c���������C���sL���|��i�|��i�i�|�ƒ�}�|�t�i�j�p�|�t�i�j�o�t �|�ƒ�}�n�|�S(���N( ���R���R9���R���RA���t���optionR3���R���Rj���t���OPT_CLIENT_CONTROLSRŒ���(���R���RŸ���R3���(����(����R ���RA�����s���� c���������C���sI���|�t�i�j�p�|�t�i�j�o�t�|�ƒ�}�n�|��i�|��i�i �|�|�ƒ�S(���N( ���RŸ���R���Rj���R ���RF���t���invalueR���R9���R���R=���(���R���RŸ���R¡���(����(����R ���R=��� ��s���� c���������C���sý���y"�|��i�|�t�i�d�d�g�ƒ�}�WnD�t�i�t�i�t�i�f�j �o �g��}�n�t�i �j �o�d�Sn�Xyv�|�ok�t�i�i�|�d�d�ƒ�}�|�i �d�d�g�ƒ�d�}�|�d�j�o#�|�o�|��i�d�d�ƒ�SqÚ�d�SqÞ�|�Sn�Wn�t�j �o�d�Sn�Xd�S(���sÐ��� Returns the distinguished name of the sub schema sub entry for a part of a DIT specified by dn. None as result indicates that the DN of the sub schema sub entry could not be determined. s���(objectClass=*)t���subschemaSubentryi����i���RK���RQ���N(���R���R–���RK���R���t ���SCOPE_BASEt���rt���NO_SUCH_OBJECTt���NO_SUCH_ATTRIBUTEt���INSUFFICIENT_ACCESSt���UNDEFINED_TYPER8���t���cidictR6���t���gett���search_subschemasubentry_dnt���search_subschemasubentry_st ���IndexError(���R���RK���R6���R«���R¤���(����(����R ���R¬���%��s$�����" c���������C���sh���|�p�t�}�y�|��i�|�t�i�d�|�ƒ�}�Wn�t�i�j �o�d�Sn�X|�o�|�d�d�Sn�d�Sd�S(���s1��� Returns the sub schema sub entry's data s���(objectClass=subschema)i����i���N( ���t���attrst���SCHEMA_ATTRSR���R–���t���subschemasubentry_dnR���R£���R¤���R¥���R8���(���R���R°���R®���R¤���(����(����R ���t���read_subschemasubentry_sE��s����� (F���R+���t ���__module__t���__doc__R���t���OPT_PROTOCOL_VERSIONt ���OPT_DEREFt ���OPT_REFERRALSt ���OPT_TIMELIMITt ���OPT_SIZELIMITt���OPT_NETWORK_TIMEOUTR:���R8���R!���R���R9���R@���RC���RD���RI���RJ���RN���RO���RP���RR���RU���RW���RY���RZ���t ���SASL_QUIETR[���R^���Rb���Rc���Rd���Re���Rf���Rg���Rh���Rr���Rs���Rt���Ru���Rv���Rz���R|���R}���R���Rw���R{���t���RES_ANYR3���R���Rƒ���R‡���RŽ���R”���R•���R–���R—���R˜���R™���Rš���R›���Rœ���R���Rž���RA���R=���R¬���R±���(����(����(����R ���R���+���sp����N 66 c�����������B���sD���t��Z�d�d��d�d�„�Z�e�i�d�d�d�„�Z�d�d��d�d�d�„�Z�RS(���Ni����iÿÿÿÿc���������C���s#���|�|��_�t�i�|��|�|�|�ƒ�d��S(���N(���t���result_timeoutR���t���_result_timeoutR���R!���R���R���R���(���R���R���R���R���R¼���(����(����R ���R!���[��s���� i���c���������C���s��|��i�|��i�i�|�d�|��i�ƒ�}�|�p�|�Sn�t�i�ƒ��}�g��}�xÑ�|�oÉ�x•�|�d�d�j�oƒ�|�d�j�oD�t�i�ƒ��|�|�j�o-�|��i�|��i�i �|�ƒ�t�i�d�|�ƒ�‚�n�t�i�d�ƒ�|��i�|��i�i�|�d�|��i�ƒ�}�qO�W|�d�d�j�o�Pn�|�i�|�d�ƒ�d�}�qE�W|�S(���s��� i����s#���LDAP time limit (%d secs) exceeded.f1.0000000000000001e-05i���N(���NN(���R���R9���R���R3���RE���R½���t���ldap_resultRM���t���timet ���start_timet���all_resultsR8���R���RI���R���t���TIMEOUTt���sleept���extend(���R���RE���RM���R���R¾���RÁ���RÀ���(����(����R ���R3���_��s(�����!��$ &s���(objectClass=*)c���������C���s4���|��i�|�|�|�|�|�ƒ�}�|��i�|�d�d�d�|�ƒS(���NRM���i���R���( ���R���R•���R���R���R‘���R’���R“���RE���R3���R���(���R���R���R���R‘���R’���R“���R���RE���(����(����R ���R—���v��s����(���R+���R²���R8���R!���R���R»���R3���R—���(����(����(����R ���R���Y��s���c�����������B���s×���t��Z�d��Z�h��d�e�<d�e�<d�e�<Z�d�e�d�d�d�d�„�Z�d �„��Z�d �„��Z�d�„��Z�d�„��Z �d �„��Z �d�„��Z�d�„��Z�d�„��Z �d�„��Z�d�„��Z�d�„��Z�d�„��Z�d�„��Z�d�„��Z�d�„��Z�d�„��Z�RS(���s¢�� In case of server failure (ldap.SERVER_DOWN) the implementations of all synchronous operation methods (search_s() etc.) are doing an automatic reconnect and rebind and will retry the very same operation. This is very handy for broken LDAP server implementations (e.g. in Lotus Domino) which drop connections very often making it impossible to have a long-lasting control flow in the application. R���R���R���i����i���i���f60.0c���������C���s\���|�|��_�h��|��_�d�|��_�t�i�|��|�|�|�|�ƒ�|�|��_�|�|��_�d�|��_�d�|��_�d�S(���sÚ��� Parameters like SimpleLDAPObject.__init__() with these additional arguments: retry_max Maximum count of reconnect trials retry_delay Time span to wait between two reconnect trials i����l����N(���R���R���R���t���_optionsR8���t ���_last_bindR���R!���R���R���R���t ���retry_maxt ���_retry_maxt���retry_delayt���_retry_delayt ���_start_tlst���_reconnects_done(���R���R���R���R���R���RÇ���RÉ���(����(����R ���R!���Ž��s���� � c���������C���sK���h��}�x>�|��i�i�ƒ��D]-�\�}�}�|��i�i�|�ƒ�p�|�|�|�<q�q�W|�S(���s-���return data representation for pickled objectN(���t���dR���R?���t���itemst���kt���vt���__transient_attrs__R;���(���R���RÏ���RÍ���RÐ���(����(����R ���t���__getstate__ª��s������c���������C���s?���|��i�i�|�ƒ�|��i�ƒ��|��_�t�i�|��_�|��i �|��i �ƒ�d�S(���s#���set up the object from pickled dataN(���R���R?���t���updateRÍ���R���R���R���R���R���t ���reconnectR���(���R���RÍ���(����(����R ���t���__setstate__²��s �����c���������C���s7���|��i�d��j�o#�|��i�\�}�}�}�|�|�|�Ž��n�d��S(���N(���R���RÆ���R8���R,���R.���R/���(���R���R.���R,���R/���(����(����R ���t���_apply_last_bind¹��s����c���������C���s7���x0�|��i�i�ƒ��D]�\�}�}�t�i�|��|�|�ƒ�q�Wd�S(���s���Restore all recorded optionsN(���R���RÅ���RÎ���RÏ���RÐ���R���R=���(���R���RÏ���RÐ���(����(����R ���t���_restore_options¾��s������c���������C���sœ��|��i�}�xŒ|�o„t�o9�|��i�d�j�o)�|��i�i�d�|��i�|�d�|�f�ƒ�n�yK�t�i �i �t�i�|�ƒ�|��_ �|��i�ƒ��|��i�o�|��i�ƒ��n�|��i�ƒ��Wn¡�t�o9�|��i�d�j�o)�|��i�i�d�|��i�|�d�|�f�ƒ�n�|�d�}�|�p�‚��n�t�o+�|��i�d�j�o�|��i�i�d�|��i�ƒ�n�t�i�|��i�ƒ�q�Xt�o9�|��i�d�j�o)�|��i�i�d�|��i�|�d�|�f�ƒ�n�|��i�d�|��_�Pq�Wd��S(���Ni���s���*** Try %d. reconnect to %s... s���*** %d. reconnect to %s failed s���=> delay %s... sD���*** %d. reconnect to %s successful, last operation will be repeated l����(���R���RÈ���t���reconnect_counterR(���R ���R���R)���R���R���R���R���R���R���R���R×���RË���R™���RÖ���RÊ���R¿���RÃ���RÌ���(���R���R���RØ���(����(����R ���RÔ���Ã��s0���� �) ) )c���������O���sQ���y�|�|��|�|�Ž�SWn6�t�i�j �o'�|��i�|��i�ƒ�|�|��|�|�Ž�Sn�Xd��S(���N(���R,���R���R.���R/���R���t���SERVER_DOWNRÔ���R���(���R���R,���R.���R/���(����(����R ���t���_apply_method_sè��s ����c���������C���s$���|�|��i�|�<t�i�|��|�|�ƒ�d��S(���N(���R¡���R���RÅ���RŸ���R���R=���(���R���RŸ���R¡���(����(����R ���R=���ñ��s���� c���������O���s(���|��i�|�|�f�|��_�t�i�|��|�|�Ž�S(���N(���R���RU���R.���R/���RÆ���R���(���R���R.���R/���(����(����R ���RU���õ��s����c���������C���s���t��i�|��ƒ�}�d�|��_�|�S(���Ni���(���R���R™���R���t���resRË���(���R���RÛ���(����(����R ���R™���ù��s���� c���������O���s(���|��i�|�|�f�|��_�t�i�|��|�|�Ž�S(���s4��� sasl_interactive_bind_s(who, auth) -> None N(���R���R[���R.���R/���RÆ���R���(���R���R.���R/���(����(����R ���R[���þ��s�����c���������O���s���|��i�t�i�|�|�Ž�S(���N(���R���RÚ���R���RN���R.���R/���(���R���R.���R/���(����(����R ���RN�����s����c���������O���s���|��i�t�i�|�|�Ž�S(���N(���R���RÚ���R���Rd���R.���R/���(���R���R.���R/���(����(����R ���Rd�����s����c���������O���s���|��i�t�i�|�|�Ž�S(���N(���R���RÚ���R���Rf���R.���R/���(���R���R.���R/���(����(����R ���Rf�����s����c���������O���s���|��i�t�i�|�|�Ž�S(���N(���R���RÚ���R���Rt���R.���R/���(���R���R.���R/���(����(����R ���Rt�����s����c���������O���s���|��i�t�i�|�|�Ž�S(���N(���R���RÚ���R���R{���R.���R/���(���R���R.���R/���(����(����R ���R{�����s����c���������O���s���|��i�t�i�|�|�Ž�S(���N(���R���RÚ���R���R”���R.���R/���(���R���R.���R/���(����(����R ���R”�����s����(���R+���R²���R³���R8���RÑ���R!���RÒ���RÕ���RÖ���R×���RÔ���RÚ���R=���RU���R™���R[���RN���Rd���Rf���Rt���R{���R”���(����(����(����R ���R���{��s&����! % c�������� ���B���s;���t��Z�d��Z�d�e�d�d�d�d�d�d�e�e�e�e�d�„�Z�RS(���s��� Mainly the __init__() method does some smarter things like negotiating the LDAP protocol version and calling LDAPObject.start_tls_s(). i����i���i���f60.0RQ���c������ ���C���s��t��i�|��|�d�|�d�|�d�|�d�|�d�|�ƒt �i �|��_�d�|��_�y�|��i �|�|�ƒ�Wn]�t �i�j �oN�|��i�ƒ��|��`�|��i�t�i�|��i�ƒ�|��_�t �i�|��_�|��i �|�|�ƒ�n�X| �d�j�o“�|�d� d�j�o‚�|��i�t �i �j�oQ�y�|��i�ƒ��Wn3�t �i�t �i�f�j �o�| �d �j�o�‚��q5qSXd �|��_�qW| �d �j�o �t�d�‚�qWn�|��i�t �i�j�p�|�o�|�o�|��i �|�|�ƒ�n�d�S( ���sí�� Return LDAPObject instance by opening LDAP connection to LDAP host specified by LDAP URL. Unlike ldap.initialize() this function also trys to bind explicitly with the bind DN and credential given as parameter, probe the supported LDAP version and trys to use StartTLS extended operation if this was specified. Parameters like ReconnectLDAPObject.__init__() with these additional arguments: who,cred The Bind-DN and credential to use for simple bind right after connecting. start_tls Determines if StartTLS extended operation is tried on a LDAPv3 server and if the LDAP URL scheme is ldap:. If LDAP URL scheme is not ldap: (e.g. ldaps: or ldapi:) this parameter is ignored. 0 Don't use StartTLS ext op 1 Try StartTLS ext op but proceed when unavailable 2 Try StartTLS ext op and re-raise exception if it fails tls_cacertfile tls_clcertfile tls_clkeyfile R���R���R���RÇ���RÉ���i����i���s���ldap:i���i���s<���StartTLS extended operation only possible on LDAPv3+ server!N(���R���R!���R���R���R���R���R���RÇ���RÉ���R���R���R���t���started_tlsRU���RS���RT���t���PROTOCOL_ERRORR���R���R9���R���R���R���t���VERSION2t ���start_tlsR™���t ���CONNECT_ERRORt ���ValueError(���R���R���R���R���R���RÇ���RÉ���RS���RT���Rß���t���tls_cacertfilet ���tls_cacertdirt���tls_clcertfilet ���tls_clkeyfile(����(����R ���R!�����s8����%� !(���R+���R²���R³���R8���R!���(����(����(����R ���R�����s����(���R³���t���__version__t���__all__R(���R0���R���R¿���R���R���t���ldap.functionst���ldap.schemaR¯���t ���ldap.controlsRp���RŒ���RF���R5���R���R���R���R���R����(���R���R¯���R���R���Rç���RF���R����R���R0���Rp���R���R���R5���R¿���R���Ræ���RŒ���(����(����R ���t���?���s��� - ÿ�ÿ�0"V