# HG changeset patch # User Marcin Kuzminski # Date 1301340496 -7200 # Node ID 597bc7077f183e9621c7a2cee8c00dea433ec555 # Parent d4ced3a7ee2a6a23884c8da6ac252581fa511d7e applied patch from issue #138 diff -r d4ced3a7ee2a -r 597bc7077f18 rhodecode/lib/auth_ldap.py --- 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)