steffen.ries at sympatico.ca
Sun Jul 15 19:46:58 CEST 2001
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).
I included Konstanin's patches and the memory leak fixes and have run
the diff against the current CVS version. David's CIDict patches
are not included, so I disabled CIDict to get it running with
To use it, you will need OpenLDAP 2.0.x with TLS support built in (see
A simple demonstration looks like this:
>>> server = ldap.open('localhost')
>>> server.version = ldap.VERSION3
If the ldap server supports startTLS and the Certificate maps to the
host, the call to start_tls_s() succeeds, otherwise an exception is
steffen.ries at sympatico.ca <> Gravity is a myth -- the Earth sucks!
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 16556 bytes
Desc: not available
More information about the python-ldap