From 996b429f859941ac4dfc030b761d060c7b08e493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez?= Date: Fri, 21 Sep 2012 10:33:42 +0000 Subject: [PATCH] * Fixed internal DB not validating groups of user at login (so user has no valid group, and can't log in) --- server/src/uds/auths/InternalDB/Authenticator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/uds/auths/InternalDB/Authenticator.py b/server/src/uds/auths/InternalDB/Authenticator.py index ce5a6cb19..08c1355d1 100644 --- a/server/src/uds/auths/InternalDB/Authenticator.py +++ b/server/src/uds/auths/InternalDB/Authenticator.py @@ -85,6 +85,7 @@ class InternalDBAuth(Authenticator): usr = usr[0] # Internal Db Auth has its own groups, and if it active it is valid if usr.password == hashlib.sha1(credentials).hexdigest(): + groupsManager.validate([g.name for g in usr.groups.all()]) return True return False except dbAuthenticator.DoesNotExist: