Commit 0b08f096 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

ganeti-rapi: Use new function to verify passwords

This enables the use of hashed passwords in rapi_users.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent bf9bd8dd
......@@ -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,
valid_user = True
if not valid_user:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment