19 Oct
2003
19 Oct
'03
6:01 p.m.
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