Author: tmckay Date: 2012-04-23 18:06:48 +0000 (Mon, 23 Apr 2012) New Revision: 5342
Modified: trunk/cumin/python/cumin/authenticator.py Log: Correctly handle non-existent user with no external authentication defined. BZ815316
Modified: trunk/cumin/python/cumin/authenticator.py =================================================================== --- trunk/cumin/python/cumin/authenticator.py 2012-04-23 16:34:12 UTC (rev 5341) +++ trunk/cumin/python/cumin/authenticator.py 2012-04-23 18:06:48 UTC (rev 5342) @@ -328,6 +328,7 @@ cls = self.app.model.com_redhat_cumin.User user = cls.get_object(cursor, name=username) if user is None or len(user.password) == 0: + res = False log.debug("Authenticator: authenticating external user") for authenticator in self.authenticators: log.debug("Authenticator: authenticate, try %s", authenticator)