395: using ldap for authentication, if a user doesn't exist, I get an error 500

tim****@gmai***** (Google Code) (Is this you? Claim this profile.)
Feb. 24, 2008
I'm using the LDAP backend, with BUILTIN_AUTH set to False.  If a user
mistypes their username, I get an error page entitled "NO_SUCH_OBJECT at
/account/login/"

This also happens if you try to login to the admin account.

This is the full traceback:

Traceback:
File "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py"
in get_response
  82.                 response = callback(request, *callback_args,
**callback_kwargs)
File "/home/foo/reviewboard-read-only/reviewboard/djblets/auth/views.py" in
login
  57.                                request.POST.get('password'))
File "/home/foo/reviewboard-read-only/reviewboard/djblets/auth/util.py" in
internal_login
  58.     user = auth.authenticate(username=username, password=password)
File
"/usr/local/lib/python2.4/site-packages/django/contrib/auth/__init__.py" in
authenticate
  36.             user = backend.authenticate(**credentials)
File "/home/foo/reviewboard-read-only/reviewboard/accounts/backends.py" in
authenticate
  67.             ldapo.simple_bind_s(settings.LDAP_UID_MASK % username,
password)
File "/usr/local/lib/python2.4/site-packages/ldap/ldapobject.py" in
simple_bind_s
  199.     return self.result(msgid,all=1,timeout=self.timeout)
File "/usr/local/lib/python2.4/site-packages/ldap/ldapobject.py" in result
  428.     res_type,res_data,res_msgid = self.result2(msgid,all,timeout)
File "/usr/local/lib/python2.4/site-packages/ldap/ldapobject.py" in result2
  432.     res_type, res_data, res_msgid, srv_ctrls =
self.result3(msgid,all,timeout)
File "/usr/local/lib/python2.4/site-packages/ldap/ldapobject.py" in result3
  438.     rtype, rdata, rmsgid, serverctrls =
self._ldap_call(self._l.result3,msgid,all,timeout)
File "/usr/local/lib/python2.4/site-packages/ldap/ldapobject.py" in _ldap_call
  97.         result = func(*args,**kwargs)

Exception Type: NO_SUCH_OBJECT at /account/login/
Exception Value: {'info': '', 'matched': 'ou=people,dc=corp,dc=foo,dc=com',
'desc': 'No such object'}
chipx86
#1 chipx86
  • +Component-Accounts
    +Milestone-Release1.0
david
#2 david
Fixed in SVN.  Thanks!
  • +Fixed