diff options
author | ma0178@student.uni-lj.si <ma0178@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2015-01-05 10:55:43 +0000 |
---|---|---|
committer | ma0178@student.uni-lj.si <ma0178@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2015-01-05 10:55:43 +0000 |
commit | 53d97a076edae4f6eaa6f4d98183bdc0b48d63f2 (patch) | |
tree | b3ffb273b6fa77bf89caca76c55340885766e413 /kpov_judge/tasks/radius_mysql_pam | |
parent | 7adc4612b351622d1e4dfea4e3e0ccd9c1bf7355 (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.py | 5 |
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 |