changeset 1185:597bc7077f18 beta

applied patch from issue #138
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 28 Mar 2011 21:28:16 +0200
parents d4ced3a7ee2a
children b9ea10d3e419
files rhodecode/lib/auth_ldap.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/lib/auth_ldap.py	Mon Mar 28 20:44:49 2011 +0200
+++ b/rhodecode/lib/auth_ldap.py	Mon Mar 28 21:28:16 2011 +0200
@@ -116,10 +116,10 @@
                     log.debug("LDAP rejected password for user '%s' (%s): %s",
                               uid, username, dn)
 
-                else:
-                    log.debug("No matching LDAP objects for authentication "
-                              "of '%s' (%s)", uid, username)
-                    raise LdapPasswordError()
+            else:
+                log.debug("No matching LDAP objects for authentication "
+                          "of '%s' (%s)", uid, username)
+                raise LdapPasswordError()
 
         except ldap.NO_SUCH_OBJECT, e:
             log.debug("LDAP says no such user '%s' (%s)", uid, username)