diff options
author | gasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2015-01-20 07:12:43 +0000 |
---|---|---|
committer | gasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2015-01-20 07:12:43 +0000 |
commit | 3708797802d23d8dbe8eb0183f7080b88b8f7227 (patch) | |
tree | 472a5cf2157e611ed908c947588084a52b086713 /kpov_judge/tasks | |
parent | 0c8f41f02553a420cf6f2824bb31573ef0f9ac1b (diff) |
Fixed missing param in gen_params
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@221 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge/tasks')
-rw-r--r-- | kpov_judge/tasks/radius_mysql_pam/task.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kpov_judge/tasks/radius_mysql_pam/task.py b/kpov_judge/tasks/radius_mysql_pam/task.py index 3c89bd4..36a5dee 100644 --- a/kpov_judge/tasks/radius_mysql_pam/task.py +++ b/kpov_judge/tasks/radius_mysql_pam/task.py @@ -103,7 +103,7 @@ def gen_params(user_id, params_meta): params['RADIUS_SECRET'] = kpov_random_helpers.alnum_gen(r, 8)
params['RADIUS_PASSWORD'] = kpov_random_helpers.alnum_gen(r, 4)
params['MYSQL_ADMIN_PASSWORD'] = kpov_random_helpers.alnum_gen(r, 4)
- net = kpov_random_helpers.IPv4_subnet_gen(r)
+ net = kpov_random_helpers.IPv4_subnet_gen(r, 32)
ip_radius_server = kpov_random_helpers.IPv4_addr_gen(r, net, 1)[0]
params['IP_RS'] = ip_radius_server
return params
|