[Zope] problem with python-ldap and ZLDAP in scripts

Dieter Maurer dieter at handshake.de
Sun Oct 19 14:01:16 EDT 2003


Adam Szpakowski wrote at 2003-10-19 14:20 +0200:
 > ...
 > def ldap_connection():
 >     try:
 >         import ldap
 >         l1 = ldap.initialize('ldap://ldapserver')
 >         l1.simple_bind('cn=user,dc=xxxxx','password')
 >         out = 1
 >     except:
 >         out = -1
 >     return out
 > 
 > Executing simple_bind hangs the Zope process. I supposed that there is a 
 > problem with Zope security.

This is highly unlikely.
Security issues do not lead to a hanging process.

Are you sure that the LDAP server is accessible as "ldapserver".
What you describe looks like what we saw with a bad configuration
to access the LDAP server.

 > Is there any way to use python-ldap under zope?

We use it successfully together with LDAPUserFolder.


Dieter



More information about the Zope mailing list