authentication - no errors

Michael Engelhart mengelhart at katahdinsoftware.com
Thu May 8 14:07:08 CEST 2003


Thanks.   I actually had tried that yesterday thinking that was the 
problem but then, as now, I get this error when I try to do any 
simple_bind_s() no matter what I pass as paramenters.

 >>> l.simple_bind_s("cn=Directory Manager,o=mydomain.com","secret")
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "/usr/lib/python2.2/site-packages/ldap/ldapobject.py", line 435, 
in simple_bind_s
     self.bind_s(who,passwd,_ldap.AUTH_SIMPLE)
   File "/usr/lib/python2.2/site-packages/ldap/ldapobject.py", line 154, 
in bind_s
     self.result(msgid,all=1,timeout=self.timeout)
   File "/usr/lib/python2.2/site-packages/ldap/ldapobject.py", line 334, 
in result
     return self._ldap_call(self._l.result,msgid,all,timeout)
   File "/usr/lib/python2.2/site-packages/ldap/ldapobject.py", line 90, 
in _ldap_call
     result = func(*args,**kwargs)
ldap.PROTOCOL_ERROR: {'info': 'requested protocol version not allowed', 
'desc': 'Protocol error'}


On Thursday, May 8, 2003, at 06:43  AM, Michael Ströder wrote:

> Michael Engelhart wrote:
> > OK - got my shiny new OpenLDAP 2.1.18 built and pre11 built and when 
> I
> > run the following test script with an invalid password like this
> > [..]
> >         l.simple_bind(dn, password)
>
> Well, the problem was so simple that I didn't notice it before.
>
>          l.simple_bind_s(dn, password)
>                       ^^^
> Use the synchronous method!
>
> Ciao, Michael.
>
>
>
> 


More information about the python-ldap mailing list