Closed Bug 674260 Opened 12 years ago Closed 12 years ago

LDAP connection failure incorrectly reported as "BackendError: None"

Categories

(Cloud Services :: Server: Core, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 674640

People

(Reporter: Atoll, Unassigned)

Details

After failing to connect to the LDAP server, the core library incorrectly reports the issue as "BackendError: None".  Please correct this to report an actual useful error message.


2011-07-26 09:58:06,008 ERROR [syncserver] cb8a8f65adb1de34fda339cf889c4203
2011-07-26 09:58:06,009 ERROR [syncserver] Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/services/baseapp.py", line 262, in __call__
    result = function(request, **params)
  File "/usr/lib/python2.6/site-packages/syncreg/controllers/user.py", line 82, in user_exists
    exists = self._user_exists(user_name)
  File "/usr/lib/python2.6/site-packages/syncreg/controllers/user.py", line 180, in _user_exists
    user_id = self.auth.get_user_id(user_name)
  File "/usr/lib/python2.6/site-packages/services/auth/ldapsql.py", line 193, in get_user_id
    with self._conn() as conn:
  File "/usr/lib64/python2.6/contextlib.py", line 16, in __enter__
    return self.gen.next()
  File "/usr/lib/python2.6/site-packages/services/auth/ldapconnection.py", line 243, in connection
    conn = self._get_connection(bind, passwd)
  File "/usr/lib/python2.6/site-packages/services/auth/ldapconnection.py", line 201, in _get_connection
    conn = self._create_connector(bind, passwd)
  File "/usr/lib/python2.6/site-packages/services/auth/ldapconnection.py", line 181, in _create_connector
    self._bind(conn, bind, passwd)
  File "/usr/lib/python2.6/site-packages/services/auth/ldapconnection.py", line 166, in _bind
    raise BackendError(str(e))
BackendError: None
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.