| 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 : |
Ñò
•òÔGc
@ sÍ d Z d Z d d d d d d d g Z d d
k Z d d
k Z d d k l Z l Z d d k l Z l
Z
d d
k l Z d „ Z
d e i d
d „ Z d d e i d
d „ Z e Z d „ Z d „ Z d
S( sã
functions.py - wraps functions of module _ldap
See http://python-ldap.sourceforge.net for details.
\$Id: functions.py,v 1.21 2008/03/10 08:34: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.
s 0.1.2t opent
initializet initt
explode_dnt explode_rdnt
get_optiont
set_optioniÿÿÿÿN( t _ldap_module_lockt LDAPError( R R ( t
LDAPObjectc
O sÊ t i ƒ y% z | | | Ž } Wd t i ƒ XWnG t j
o; } t o( t d j o t i d t | ƒ ƒ n ‚ n Xt oF t d j o9 | d j o( | d j o t i d t
| ƒ ƒ qÆ n | S( sQ
Wrapper function which locks calls to func with via
module-wide ldap_lock
Ni s => LDAPError: %s
s => result: %s
( NN( R t acquiret releaseR t __debug__t _trace_levelt _trace_filet writet strt Nonet repr( t funct argst kwargst resultt e( ( s2 /usr/lib/python2.6/site-packages/ldap/functions.pyt _ldap_function_call* s
i c C s t | | | | ƒ 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 ( t urit trace_levelt
trace_filet trace_stack_limit( ( s2 /usr/lib/python2.6/site-packages/ldap/functions.pyR G s i… c C s t d | | 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 ( t hostt portR R R ( ( s2 /usr/lib/python2.6/site-packages/ldap/functions.pyR Y s c C s t t i | ƒ S( sJ
get_option(name) -> value
Get the value of an LDAP global option.
( R t _ldapR ( t option( ( s2 /usr/lib/python2.6/site-packages/ldap/functions.pyR n s c C s t t i | | ƒ d S( sJ
set_option(name, value)
Set the value of an LDAP global option.
N( R R R ( R t invalue( ( s2 /usr/lib/python2.6/site-packages/ldap/functions.pyR w s ( t __doc__t __version__t __all__t sysR t ldapR R t ldap.dnR R t ldap.ldapobjectR R t stdoutR R R R R R ( ( ( s2 /usr/lib/python2.6/site-packages/ldap/functions.pyt <module> s