Installation Problem

Michael Ströder michael at stroeder.com
Fri Jan 4 20:03:41 CET 2002


Peeyush Garg wrote:
> 
> If I try to access LDAP server from Zope it says
> 'connection settings not ok....'.

I'd suggest that you write a small test script to figure out if it's
a python-ldap issue. You could open connection to your LDAP server
and simply read root DSE entry (if LDAPv3 server).

Something like

---------------------- snip ---------------------
import ldap

# Open LDAP connection
l=ldap.open('myldaphost:port')

# Read the root DSE
l.search_s('',ldap.SCOPE_BASE,'(objectClass=*)')

# Unbind and disconnect
l.unbind_s()
---------------------- snip ---------------------

Ciao, Michael.




More information about the python-ldap mailing list