start tls

Steffen Ries steffen.ries at sympatico.ca
Sat Oct 20 19:11:50 CEST 2001


Michael Ströder <michael at stroeder.com> writes:

> Michael Ströder wrote:
> > 
> > Steffen Ries wrote:
> > >
> > > attached is a small (experimental) patch, which enables
> > > 'start_tls_s()' in python-ldap. The patch requires OpenLDAP 2.0.x (I
> > > tested it only against 2.0.11 on Redhat 6.2).
> > 
> > Also doing a
> > >>> del l
> > crashs the interpreter no matter if unbind_s() was called before or
> > not.
> 
> Steffen, I wonder which Python version you're using. It seems to run
> stable under Python 2.0 but crashes under Python 2.1.x very often.
> Most times in the case when the LDAP connection object is
> deleted/cleaned up. Maybe there were significant changes in
> reference counting, garbage collection etc. introduced in Python
> 2.1?

I'm using both Python 2.0 (Solaris 8) and Python 2.1 (Linux [Redhat
7.1]). I have not seen stability problems and could not reproduce the
problems you had.

I have currently very little time, but I'll try to work on python-ldap
in the near future.

Can you give me more details what you do to crash the interpreter? A
simple bind+search works for me:

--8<--
Python 2.1.1 (#1, Jul 20 2001, 19:59:19) 
[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-85)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> import ldap
>>> s = ldap.open('localhost')
>>> s.version = ldap.VERSION3
>>> s.simple_bind_s(...)
>>> s.search_s(...)  
...
>>> del s
>>> 
--8<--

> Steffen, Konstantin, would you mind glancing over
> http://www.amk.ca/python/2.1/ ?

will do.

/steffen
-- 
steffen.ries at sympatico.ca	<> Gravity is a myth -- the Earth sucks!





More information about the python-ldap mailing list