summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks/radius_mysql_pam
diff options
context:
space:
mode:
authorma0178@student.uni-lj.si <ma0178@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2015-01-05 10:55:43 +0000
committerma0178@student.uni-lj.si <ma0178@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2015-01-05 10:55:43 +0000
commit53d97a076edae4f6eaa6f4d98183bdc0b48d63f2 (patch)
treeb3ffb273b6fa77bf89caca76c55340885766e413 /kpov_judge/tasks/radius_mysql_pam
parent7adc4612b351622d1e4dfea4e3e0ccd9c1bf7355 (diff)
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@147 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge/tasks/radius_mysql_pam')
-rw-r--r--kpov_judge/tasks/radius_mysql_pam/task.py5
1 files changed, 4 insertions, 1 deletions
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