summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorDaniel Ehlers <danielehlers@mindeye.net>2016-08-14 13:32:24 +0200
committerDaniel Ehlers <danielehlers@mindeye.net>2016-08-14 16:49:05 +0200
commitdfaf0fee317d54131f96e6f7b43ecbcab8b0a687 (patch)
treea3f8e67d29739338e1d83acfec9ee759384bb522 /synapse
parentFix AttributeError when bind_dn is not defined. (diff)
downloadsynapse-dfaf0fee317d54131f96e6f7b43ecbcab8b0a687.tar.xz
Log the value which is observed in the first place.
The name 'result' is of bool type and has no len property,
resulting in a TypeError. Futhermore in the flow control
conn.response is observed and hence should be reported.

Signed-off-by: Daniel Ehlers <sargon@toppoint.de>
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py
index c9307bd440..a582d6334b 100644
--- a/synapse/handlers/auth.py
+++ b/synapse/handlers/auth.py
@@ -660,7 +660,7 @@ class AuthHandler(BaseHandler):
                 else:
                     logger.warn(
                         "ldap registration failed: unexpected (%d!=1) amount of results",
-                        len(result)
+                        len(conn.response)
                     )
                     defer.returnValue(False)