From: Michael <mi...@st...> - 2002-01-04 19:02:33
|
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. |