Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45854 > unrolled thread

authentication with python-ldap

Started byavazquezr@grm.uci.cu
First post2013-05-23 16:36 -0700
Last post2013-05-23 16:36 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  authentication with python-ldap avazquezr@grm.uci.cu - 2013-05-23 16:36 -0700

#45854 — authentication with python-ldap

Fromavazquezr@grm.uci.cu
Date2013-05-23 16:36 -0700
Subjectauthentication with python-ldap
Message-ID<mailman.2045.1369352205.3114.python-list@python.org>
import ldap
conn = ldap.initialize("ldap://ldap.uci.cu")
conn.protocol_version = ldap.VERSION3
conn.simple_bind_s( "uid=xxx,dc=uci,dc=cu", "xxx" )

Result:

Traceback (most recent call last):
   File "<console>", line 1, in <module>
   File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line  
207, in simple_bind_s
     return self.result(msgid,all=1,timeout=self.timeout)
   File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line  
422, in result
     res_type,res_data,res_msgid = self.result2(msgid,all,timeout)
   File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line  
426, in result2
     res_type, res_data, res_msgid, srv_ctrls = self.result3(msgid,all,timeout)
   File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line  
432, in result3
     ldap_result = self._ldap_call(self._l.result3,msgid,all,timeout)
   File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line  
96, in _ldap_call
     result = func(*args,**kwargs)
INVALID_CREDENTIALS: {'desc': 'Invalid credentials'}



     what is my mistake ????



[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web