From: Michael E. <men...@ka...> - 2003-05-08 12:07:36
|
Thanks. I actually had tried that yesterday thinking that was the=20 problem but then, as now, I get this error when I try to do any=20 simple_bind_s() no matter what I pass as paramenters. >>> l.simple_bind_s("cn=3DDirectory Manager,o=3Dmydomain.com","secret") Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.2/site-packages/ldap/ldapobject.py", line 435,=20= in simple_bind_s self.bind_s(who,passwd,_ldap.AUTH_SIMPLE) File "/usr/lib/python2.2/site-packages/ldap/ldapobject.py", line 154,=20= in bind_s self.result(msgid,all=3D1,timeout=3Dself.timeout) File "/usr/lib/python2.2/site-packages/ldap/ldapobject.py", line 334,=20= in result return self._ldap_call(self._l.result,msgid,all,timeout) File "/usr/lib/python2.2/site-packages/ldap/ldapobject.py", line 90,=20= in _ldap_call result =3D func(*args,**kwargs) ldap.PROTOCOL_ERROR: {'info': 'requested protocol version not allowed',=20= 'desc': 'Protocol error'} On Thursday, May 8, 2003, at 06:43 AM, Michael Str=F6der wrote: > Michael Engelhart wrote: > > OK - got my shiny new OpenLDAP 2.1.18 built and pre11 built and when=20= > 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. > > > > ------------------------------------------------------- > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara > The only event dedicated to issues related to Linux enterprise=20 > solutions > www.enterpriselinuxforum.com > > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev > |