diff options
author | ma0178@student.uni-lj.si <ma0178@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2015-01-13 11:01:26 +0000 |
---|---|---|
committer | ma0178@student.uni-lj.si <ma0178@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2015-01-13 11:01:26 +0000 |
commit | 2ae2676eb3392e292400da9ff19afe1f780aaa17 (patch) | |
tree | 39f2c11b2c4c2953ded45be84a5c019d414cdb20 /kpov_judge/tasks/radius_mysql_pam | |
parent | 56075367e9df6198121f2b7ed1737d00e7f9c837 (diff) |
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@175 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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kpov_judge/tasks/radius_mysql_pam/task.py b/kpov_judge/tasks/radius_mysql_pam/task.py index db8af8d..621c53b 100644 --- a/kpov_judge/tasks/radius_mysql_pam/task.py +++ b/kpov_judge/tasks/radius_mysql_pam/task.py @@ -109,6 +109,9 @@ def gen_params(user_id, params_meta): SQLpassword+=crke[randint(0,25)]
params['RADIUS_PASSWORD'] = password
params['MYSQL_ADMIN_PASSWORD'] = SQLpassword
+
+ ip_radius_server = ['10.0.2.7', '192.168.11.21', '192.168.0.47', '10.0.16.134', '10.0.16.17', '172.19.7.16']
+ params['IP_RS'] = r.choice(ip_radius_server);
return params
def task_check(results, params):
|