[python-ldap] stop tls without ldap unbind

Michael Ströder michael at stroeder.com
Tue May 23 03:16:59 EDT 2017


dipti Burli wrote:
> I do
> conn = ldap.initialize('ldap://localhost:16611')
> conn.start_tls_s()
>   print '\nBinding\n'
>   conn.simple_bind_s("cn=sdfrun", "sdfrun1")
> 
> At this point i want to do something like
> 
>   #conn.stop_tls_s()
> 
> so that the messages on this connection go as plain ldap messgaes ( search/modify
> etc) and not encrypted.
> 
> How can I do that?

You can't without opening a new connection (see RFC 2830).

Why do you want that?

Ciao, Michael.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3829 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20170523/c4c68e25/attachment.bin>


More information about the python-ldap mailing list