<div dir="ltr">Hi Linux<div><br></div><div>Thanks for observe my mistake , commented line </div><div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"># conn.simple_bind_s(cn,</span><wbr style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">password)</span></div><div><br></div><div>but unfortunatelly it is still not working...80(</div><div><br></div><div>Is there an options that I must use TLS + ssf  ?</div><div><br></div><div>thanks again for your time </div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-03-05 15:35 GMT-03:00 Linus van Geuns <span dir="ltr"><<a href="mailto:linus@vangeuns.name" target="_blank">linus@vangeuns.name</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
On Mon, Mar 5, 2018 at 6:36 PM, paulo bruck <<a href="mailto:paulobruck1@gmail.com">paulobruck1@gmail.com</a>> wrote:<br>
> Hi<br>
><br>
[..]<br>
<span class="">><br>
> Nowadays I use python 2.7 + TLS for all search, add, delete and I would like<br>
> to implement SSF.<br>
><br>
</span>[..]<br>
<span class="">><br>
> But when I use it I receive this error:<br>
><br>
> Traceback (most recent call last):<br>
>   File "./ldap_contato.py", line 447, in <module><br>
>     l = Ldap_Contato()<br>
>   File "./ldap_contato.py", line 85, in __init__<br>
>     conn.simple_bind_s(cn,<wbr>password)<br>
</span>[..]<br>
<span class="">> ldap.CONFIDENTIALITY_REQUIRED: {'info': 'confidentiality required', 'desc':<br>
> 'Confidentiality required'}<br>
><br>
><br>
> and part of my connections userd:<br>
><br>
>         global conn<br>
>         conn = ldap.initialize('ldap://' + hostnamef)<br>
><br>
>         # nao coloquei o simple_bind_s por causa do ssf<br>
>         conn.simple_bind_s(cn,<wbr>password)<br>
</span>[..]<br>
><br>
>         try:<br>
>             conn.start_tls_s()<br>
[..]<br>
<span class="">><br>
> any directions about what is missing?<br>
<br>
</span>looks like you are calling simple_bind_s before start_tls_s. :)<br>
<br>
Gruß, Linus<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span style="color:rgb(0,0,0);font-family:'times new roman','new york',times,serif;background-color:rgb(253,253,253)">Paulo Ricardo Bruck consultor</span><br style="color:rgb(0,0,0);font-family:'times new roman','new york',times,serif;background-color:rgb(253,253,253)"><span style="color:rgb(0,0,0);font-family:'times new roman','new york',times,serif;background-color:rgb(253,253,253)">tel</span><span style="color:rgb(0,0,0);font-family:'times new roman','new york',times,serif;background-color:rgb(253,253,253)"> </span><span style="color:rgb(51,102,153);font-family:'times new roman','new york',times,serif;background-color:rgb(253,253,253)"><a style="color:rgb(51,102,153);text-decoration:none">011 3596-4881</a></span><span style="color:rgb(0,0,0);font-family:'times new roman','new york',times,serif;background-color:rgb(253,253,253)">/</span><span style="color:rgb(51,102,153);font-family:'times new roman','new york',times,serif;background-color:rgb(253,253,253)"><a style="color:rgb(51,102,153);text-decoration:none">4882  011 98140-9184</a></span><span style="color:rgb(0,0,0);font-family:'times new roman','new york',times,serif;background-color:rgb(253,253,253)"> </span><span style="color:rgb(0,0,0);font-family:'times new roman','new york',times,serif;background-color:rgb(253,253,253)">(TIM)</span><br style="color:rgb(0,0,0);font-family:'times new roman','new york',times,serif;background-color:rgb(253,253,253)"><span style="color:rgb(51,102,153);font-family:'times new roman','new york',times,serif;background-color:rgb(253,253,253)"><span><a href="http://www.contatogs.com.br/" style="color:rgb(51,102,153);text-decoration:none" target="_blank">http://www.contatogs.com.br</a></span></span><br style="color:rgb(0,0,0);font-family:'times new roman','new york',times,serif;background-color:rgb(253,253,253)"><span style="color:rgb(51,102,153);font-family:'times new roman','new york',times,serif;background-color:rgb(253,253,253)"><span><a href="http://www.protejasuarede.com.br/" style="color:rgb(51,102,153);text-decoration:none" target="_blank">http://www.protejasuarede.com.br</a></span></span><br><div><span style="background-color:rgb(253,253,253)"><font color="#336699" face="times new roman, new york, times, serif">gpg AAA59989 at <a href="http://wwwkeys.us.pgp.net" target="_blank">wwwkeys.us.pgp.net</a> </font><br></span></div></div></div>
</div>