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.initializeUse 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. -- http://mail.python.org/mailman/listinfo/python-list