Ñò /èêJc @sédZddklZddddddd gZdd kZdd kZdd kZdd klZdd klZl Z dd k l Z dd k Z d„Z deid d„Zddeid d„ZeZd„Zd„Zd S(sÜ functions.py - wraps functions of module _ldap See http://www.python-ldap.org/ for details. \$Id: functions.py,v 1.24 2009/09/15 13:31:29 stroeder Exp $ Compability: - Tested with Python 2.0+ but should work with Python 1.5.x - functions should behave exactly the same like in _ldap 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 _ldapmodule_lock. iÿÿÿÿ(t __version__topent initializetinitt explode_dnt explode_rdnt get_optiont set_optionN(t LDAPError(RR(t LDAPObjectc OsRtidjoftiiddt|ƒt|ƒt|ƒfƒtidjo tidtidtiƒqvntii ƒy(z|||Ž}Wdtii ƒXWnMt j oA}t o.tidjotiid t |ƒƒn‚nXt oLtidjo<|djo+|d jotiid t|ƒƒqNn|S( sQ Wrapper function which locks calls to func with via module-wide ldap_lock is*** %s.%s (%s,%s) t_ldapitlimittfileNis=> LDAPError: %s s=> result: %s (NN(tldapt _trace_levelt _trace_filetwritetreprt tracebackt print_stackt_trace_stack_limitt_ldap_module_locktacquiretreleaseRt __debug__tstrtNone(tfunctargstkwargstresultte((s4/usr/lib64/python2.6/site-packages/ldap/functions.pyt_ldap_function_call)s&  $ "icCst||||ƒS(s’ Return LDAPObject instance by opening LDAP connection to LDAP host specified by LDAP URL Parameters: uri LDAP URL containing at least connection scheme and hostport, e.g. ldap://localhost:389 trace_level If non-zero a trace output of LDAP calls is generated. trace_file File object where to write the trace output to. Default is to use stdout. (R (turit trace_levelt trace_filettrace_stack_limit((s4/usr/lib64/python2.6/site-packages/ldap/functions.pyRFsi…cCstd||f|||ƒS(sŽ Return LDAPObject instance by opening LDAP connection to specified LDAP host Parameters: host LDAP host and port, e.g. localhost port integer specifying the port number to use, e.g. 389 trace_level If non-zero a trace output of LDAP calls is generated. trace_file File object where to write the trace output to. Default is to use stdout. s ldap://%s:%d(R(thosttportR"R#R$((s4/usr/lib64/python2.6/site-packages/ldap/functions.pyRXscCstti|ƒS(sJ get_option(name) -> value Get the value of an LDAP global option. (R R R(toption((s4/usr/lib64/python2.6/site-packages/ldap/functions.pyRmscCstti||ƒdS(sJ set_option(name, value) Set the value of an LDAP global option. N(R R R(R'tinvalue((s4/usr/lib64/python2.6/site-packages/ldap/functions.pyRvs(t__doc__R Rt__all__tsysR Rtldap.dnRRtldap.ldapobjectR RR tstdoutRRRRRR(((s4/usr/lib64/python2.6/site-packages/ldap/functions.pyts  $