[python-ldap] ldap + tls + ssf

paulo bruck paulobruck1 at gmail.com
Mon Mar 5 14:19:33 EST 2018


Hi Linux

Thanks for observe my mistake , commented line

# conn.simple_bind_s(cn,password)

but unfortunatelly it is still not working...80(

Is there an options that I must use TLS + ssf  ?

thanks again for your time

2018-03-05 15:35 GMT-03:00 Linus van Geuns <linus at vangeuns.name>:

> Hi,
>
> On Mon, Mar 5, 2018 at 6:36 PM, paulo bruck <paulobruck1 at gmail.com> wrote:
> > Hi
> >
> [..]
> >
> > Nowadays I use python 2.7 + TLS for all search, add, delete and I would
> like
> > to implement SSF.
> >
> [..]
> >
> > But when I use it I receive this error:
> >
> > Traceback (most recent call last):
> >   File "./ldap_contato.py", line 447, in <module>
> >     l = Ldap_Contato()
> >   File "./ldap_contato.py", line 85, in __init__
> >     conn.simple_bind_s(cn,password)
> [..]
> > ldap.CONFIDENTIALITY_REQUIRED: {'info': 'confidentiality required',
> 'desc':
> > 'Confidentiality required'}
> >
> >
> > and part of my connections userd:
> >
> >         global conn
> >         conn = ldap.initialize('ldap://' + hostnamef)
> >
> >         # nao coloquei o simple_bind_s por causa do ssf
> >         conn.simple_bind_s(cn,password)
> [..]
> >
> >         try:
> >             conn.start_tls_s()
> [..]
> >
> > any directions about what is missing?
>
> looks like you are calling simple_bind_s before start_tls_s. :)
>
> Gruß, Linus
>



-- 
Paulo Ricardo Bruck consultor
tel 011 3596-4881/4882  011 98140-9184 (TIM)
http://www.contatogs.com.br
http://www.protejasuarede.com.br
gpg AAA59989 at wwwkeys.us.pgp.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20180305/be5fdd29/attachment-0001.html>


More information about the python-ldap mailing list