This enables the use of hashed passwords in rapi_users.
---
 daemons/ganeti-rapi |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/daemons/ganeti-rapi b/daemons/ganeti-rapi
index fc5bf12..5928537 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:
-- 
1.6.4.3

Reply via email to