From 53d97a076edae4f6eaa6f4d98183bdc0b48d63f2 Mon Sep 17 00:00:00 2001 From: "ma0178@student.uni-lj.si" Date: Mon, 5 Jan 2015 10:55:43 +0000 Subject: git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@147 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- kpov_judge/tasks/radius_mysql_pam/task.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'kpov_judge/tasks/radius_mysql_pam') diff --git a/kpov_judge/tasks/radius_mysql_pam/task.py b/kpov_judge/tasks/radius_mysql_pam/task.py index 58463cb..0bbf6ad 100644 --- a/kpov_judge/tasks/radius_mysql_pam/task.py +++ b/kpov_judge/tasks/radius_mysql_pam/task.py @@ -69,9 +69,12 @@ def task(IP_RS, RADIUS_SECRET, RADIUS_USERNAME, RADIUS_PASSWORD, MYSQL_ADMIN_USE results = dict() peer_user = 'student' peer_passwd = 'vaje' - sR = pxssh.pxssh() + + sR = pxssh.pxssh() sR.login(IP_RS, peer_user, peer_passwd) + results['Test_RadiusServer'] = sA.run('radtest RADIUS_USERNAME RADIUS_PASSWORD IP_RS 1812 RADIUS_SECRET') + return results -- cgit v1.2.1