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


Groups > comp.lang.python > #45969

Re: authentication with python-ldap

From dieter <dieter@handshake.de>
Subject Re: authentication with python-ldap
Date 2013-05-25 08:01 +0200
References <mailman.11673.1369347759.3113.python-list@python.org> <20130523163621.Horde.5xisTMkLBHdRnqf13O6lQRA@correo.grm.uci.cu>
Newsgroups comp.lang.python
Message-ID <mailman.2113.1369461674.3114.python-list@python.org> (permalink)

Show all headers | View raw


avazquezr@grm.uci.cu writes:

> 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'}


You are accessing a protected operation of the LDAP server
and it (the server) rejects it due to invalid credentials.
You may have forgotten to pass on credentials (e.g. a password)
or the credentials do not fit to the specified user
(maybe the user does not exist at all).

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: authentication with python-ldap dieter <dieter@handshake.de> - 2013-05-25 08:01 +0200

csiph-web