KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21585/root/usr/lib64/python2.4/site-packages/ldap/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21585/root/usr/lib64/python2.4/site-packages/ldap/sasl.pyc
mò
ßM“Ac@sÒdZdZeo&dkZdklZlZlZndZdZ	dZ
dZdZd	Z
d
Zdfd„ƒYZd
efd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdS(su
sasl.py - support for SASL mechanism
written by Hans Aschauer <Hans.Aschauer@Physik.uni-muenchen.de>

See http://python-ldap.sourceforge.net for details.

\$Id: sasl.py,v 1.12 2004/11/09 00:15:55 stroeder Exp $

Description:
The ldap.sasl module provides SASL authentication classes.
Each class provides support for one SASL mechanism. This is done by
implementing a callback() - method, which will be called by the
LDAPObject's sasl_bind_s() method
Implementing support for new sasl mechanism is very easy --- see
the examples of digest_md5 and gssapi.

Compability:
- Tested with Python 2.0+ but should work with Python 1.5.x
s0.0.3N(s_trace_levels_trace_files_trace_stack_limiti@i@i@i@i@i@i@tsaslcBs tZdZd„Zd„ZRS(sThis class handles SASL interactions for authentication.
    If an instance of this class is passed to ldap's sasl_bind_s()
    method, the library will call its callback() method. For
    specific SASL authentication mechanisms, this method can be
    overriddencCs|ph|_||_dS(sò The (generic) base class takes a cb_value_dictionary of
        question-answer pairs. Questions are specified by the respective
        SASL callback id's. The mech argument is a string that specifies
        the SASL mechaninsm to be uesd.N(t
cb_value_dicttselftmech(RRR((t//usr/lib64/python2.4/site-packages/ldap/sasl.pyt__init__,sc	Cst|ii||ƒpd}toMtdjo<ti	d|||t|ƒt|ii|ƒƒfƒqpn|S(s— The callback method will be called by the sasl_bind_s()
        method several times. Each time it will provide the id, which
        tells us what kind of information is requested (the CB_ ...
        constants above). The challenge might be a short (english) text
        or some binary string, from which the return value is calculated.
        The prompt argument is always a human-readable description string;
        The defresult is a default value provided by the sasl library

        Currently, we do not use the challenge and prompt information, and
        return only information which is stored in the self.cb_value_dict
        cb_value_dictionary. Note that the current callback interface is not very
        useful for writing generic sasl GUIs, which would need to know all
        the questions to ask, before the answers are returned to the sasl
        lib (in contrast to one question at a time).tis7*** id=%d, challenge=%s, prompt=%s, defresult=%s
-> %s
N(
RRtgettcb_idt	defresultt	cb_resultt	__debug__t_trace_levelt_trace_filetwritet	challengetprompttrepr(RRRRR	R
((Rtcallback4s
@(t__name__t
__module__t__doc__RR(((RR%s	tcram_md5cBstZdZdd„ZRS(s0This class handles SASL CRAM-MD5 authentication.RcCs8ht|<t|<t|<}ti||dƒdS(NsCRAM-MD5(
tCB_AUTHNAMEtauthc_idtCB_PASStpasswordtCB_USERtauthz_idt	auth_dictRRR(RRRRR((RRRs!(RRRR(((RROst
digest_md5cBstZdZdd„ZRS(s2This class handles SASL DIGEST-MD5 authentication.RcCs8ht|<t|<t|<}ti||dƒdS(Ns
DIGEST-MD5(
RRRRRRRRRR(RRRRR((RR[s!(RRRR(((RRXstgssapicBstZdZdd„ZRS(sDThis class handles SASL GSSAPI (i.e. Kerberos V)
    authentication.RcCs ti|ht|<dƒdS(NtGSSAPI(RRRRR(RR((RRes(RRRR(((RRastexternalcBstZdZdd„ZRS(sSThis class handles SASL EXTERNAL authentication
    (i.e. X.509 client certificate)RcCs ti|ht|<dƒdS(NtEXTERNAL(RRRRR(RR((RRms(RRRR(((RR!is(Rt__version__Rt	tracebacktldapRR
t_trace_stack_limitRRtCB_LANGUAGERt
CB_ECHOPROMPTtCB_NOECHOPROMPTtCB_GETREALMRRRRR!(RRR!RRR$RRR(R*R'R&RR#R
RR)((Rt?s 	*		

Anon7 - 2021