opening a connection with more than a single server
Michael Ströder
michael at stroeder.com
Thu May 2 18:41:52 CEST 2002
Jens Vagelpohl wrote:
> ldap.open doesn't have anything to do with this as
> far as i know.
It has. Please think again.
> actually, it now even seems to be supporting two ways to
> get a connection:
>
> ldap.open( 'server:port' )
> ldap.open( 'server', port )
Note: The exact declaration is currently:
def open(host,port=389,trace_level=0,trace_file=sys.stdout):
> the only item (for this discussion) that i am looking it is the
> string 'host'. i know that under 1.10 i could do..
>
> ldap.open( 'host1 host2 host3' )
Which is not possible with separate key-word parameter _port_ in
function parameter list of ldap.open().
> assuming they all run on the default port. i'm not interested
> in non-default ports here.
Are you kidding?
> don't get me wrong, i am not trying to warm over some ldap.open
> declaration semantics.
If it's just an interesting thing go and use ldap.initialize() and
we'll close this thread.
Ciao, Michael.
More information about the python-ldap
mailing list