Python LDAP

Juan okelet at gmail.com
Tue Aug 26 19:04:40 EDT 2008


On 26 ago, 13:42, Michael Ströder <mich... at stroeder.com> wrote:
> Juan wrote:
> >     self.conn = ldap.initialize(self.host, self.port)
>  > [..]
> > LDAPError: (2, 'No such file or directory')
>
> You have to pass in a LDAP URI as documented here:http://python-ldap.sourceforge.net/doc/html/ldap.html#ldap.initialize
>
> Use of compability function ldap.open() is deprecated and might vanish
> in future versions of python-ldap.
>
> See also Demo/initialize.py in python-ldap's source distribution.
>
> Ciao, Michael.

Perfect! Thank you very much.



More information about the Python-list mailing list