Ldap.initialize vs. ldap.open [was: Re: Segmention fault on redhat 9 on ldap_simple_bind_s]

Michael Ströder michael at stroeder.com
Wed Oct 1 12:23:42 CEST 2003


Mauro Cicognini wrote:
> Michael Ströder wrote:
> 
>> Mauro Cicognini wrote:
>>
>>> May I say that I don't really care for ldap.initialize()? I must have 
>>> missed something, but I really can't understand why the older style 
>>> should be deprecated. What's the real win over using ldap.open()? :-\
>>
>> ldaps:// and ldapi://
> 
> You mean there's no way to open a secure LDAP connection other than 
> using initialize()?

To use LDAP over SSL on a separate server port you need ldap.initialize().
Using StartTLS extended operation is a different story.

Anyway use ldap.initialize() when developing apps to be more flexible in the
long run.

> Anyway, thanks for the explanation.
> 
> BTW, what's "ldapi://"?

LDAP over Unix domain socket, no TCP (supported by OpenLDAP).

Ciao, Michael.







More information about the python-ldap mailing list