Python LDAP
Michael Ströder
michael at stroeder.com
Tue Aug 26 07:42:35 EDT 2008
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.
More information about the Python-list
mailing list