From 58f42afd36c324a36a8b64f7c53d949059ab9378 Mon Sep 17 00:00:00 2001 From: "ma0178@student.uni-lj.si" Date: Tue, 13 Jan 2015 07:54:33 +0000 Subject: git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@171 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- kpov_judge/tasks/radius_mysql_pam/task.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'kpov_judge/tasks') diff --git a/kpov_judge/tasks/radius_mysql_pam/task.py b/kpov_judge/tasks/radius_mysql_pam/task.py index 95c6626..8cb6159 100644 --- a/kpov_judge/tasks/radius_mysql_pam/task.py +++ b/kpov_judge/tasks/radius_mysql_pam/task.py @@ -77,9 +77,13 @@ def task(IP_RS, RADIUS_SECRET, RADIUS_USERNAME, RADIUS_PASSWORD, MYSQL_ADMIN_USE sR = pxssh.pxssh() sR.login(IP_RS, peer_user, peer_passwd) + # Testiranje radius strtežnika results['Test_RadiusServer'] = sR.run('radtest {0} {1} {3} 1812 {4}'.format( RADIUS_USERNAME, RADIUS_USERNAME, RADIUS_PASSWORD, IP_RS, RADIUS_SECRET)) + + # Testiranje podatkovne base mysql + results['Test_PB_mysql'] = sR.run() return results def gen_params(user_id, params_meta): -- cgit v1.2.1