From 0b08f096709bedf3ac7a771986c4c7cc55a56837 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Wed, 28 Oct 2009 18:08:28 +0100 Subject: [PATCH] ganeti-rapi: Use new function to verify passwords This enables the use of hashed passwords in rapi_users. Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- daemons/ganeti-rapi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemons/ganeti-rapi b/daemons/ganeti-rapi index fc5bf12a9..592853709 100755 --- a/daemons/ganeti-rapi +++ b/daemons/ganeti-rapi @@ -139,7 +139,8 @@ class RemoteApiHttpServer(http.auth.HttpServerRequestAuthentication, valid_user = False if self._users: user = self._users.get(username, None) - if user and user.password == password: + if user and self.VerifyBasicAuthPassword(req, username, password, + user.password): valid_user = True if not valid_user: -- GitLab