Ńň /čęJc @sÝdZddklZddddddd gZdd kZdd kZdd kZdd klZdd klZl Z dd k l Z d„Z dei d d„Zddei d 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 OsÜtiiƒy(z|||Ž}WdtiiƒXWnMtj oA}to.tidjotiidt |ƒƒn‚nXtoLtidjo<|djo+|djotiidt |ƒƒqŘn|S(sQ Wrapper function which locks calls to func with via module-wide ldap_lock Nis=> LDAPError: %s s=> result: %s (NN( tldapt_ldap_module_locktacquiretreleaseRt __debug__t _trace_levelt _trace_filetwritetstrtNonetrepr(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(thosttportRRR((s4/usr/lib64/python2.6/site-packages/ldap/functions.pyRXscCstti|ƒS(sJ get_option(name) -> value Get the value of an LDAP global option. (Rt_ldapR(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(RR!R(R"tinvalue((s4/usr/lib64/python2.6/site-packages/ldap/functions.pyRvs(t__doc__R Rt__all__tsysR!Rtldap.dnRRtldap.ldapobjectR RtstdoutRRRRRR(((s4/usr/lib64/python2.6/site-packages/ldap/functions.pyts  $