Using LDAP

Greg Lindstrom gslindstrom at gmail.com
Mon Oct 20 14:16:12 EDT 2008


I am attempting to use python-ldap to connect to our company ldap server.  I
have downloaded and installed python-ldap 2.3.2 on my Ubuntu system and have
been working through the "LDAP Programming with Python" documentation.  I am
confused because the documentation states that "After an LDAP object is
created and before any other operations can be attempted over the
connection, a bind operation must be performed" (p7), but in the example in
section 1.1.5, it shows using the ldap.initialize() statement then a
search_s() statement; with no bind().  I've keep getting a "Can't contact
LDAP server" error when running in iPython, but I can hit the LDAP server
using PHP.

Do I need to run a bind statement of some sort after initialize()?

Thanks,
--greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20081020/fe3e9834/attachment.html>


More information about the Python-list mailing list