summaryrefslogtreecommitdiff
path: root/kvmd/plugins/auth/radius.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/plugins/auth/radius.py')
-rw-r--r--kvmd/plugins/auth/radius.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/kvmd/plugins/auth/radius.py b/kvmd/plugins/auth/radius.py
index 92c4632d..f048a2e6 100644
--- a/kvmd/plugins/auth/radius.py
+++ b/kvmd/plugins/auth/radius.py
@@ -435,10 +435,10 @@ class Plugin(BaseAuthService):
timeout=self.__timeout,
dict=dct,
)
- request = client.CreateAuthPacket(code=pyrad.packet.AccessRequest, User_Name=user)
- request["User-Password"] = request.PwCrypt(passwd)
- response = client.SendPacket(request)
- return (response.code == pyrad.packet.AccessAccept)
+ req = client.CreateAuthPacket(code=pyrad.packet.AccessRequest, User_Name=user)
+ req["User-Password"] = req.PwCrypt(passwd)
+ resp = client.SendPacket(req)
+ return (resp.code == pyrad.packet.AccessAccept)
except Exception:
get_logger().exception("Failed RADIUS auth request for user %r", user)
return False