rlm_python,在配置中没有服从python_path

时间:2017-09-13 11:37:53

标签: freeradius

我尝试使用FreeRadius rlm_python FreeRadius版本是:3.0.15

首先我把'python_path = $ {modconfdir} / $ {:name}' 在/ etc / freeradius / mods-available / python

以调试模式运行。 部分调试信息显示:

Wed Sep 13 18:12:31 2017 : Debug: Loaded rlm_python, checking if it's valid
Wed Sep 13 18:12:31 2017 : Debug:   # Loaded module rlm_python
Wed Sep 13 18:12:31 2017 : Debug:   # Loading module "python" from file /etc/freeradius/mods-enabled/python
Wed Sep 13 18:12:31 2017 : Debug:   python {
Wed Sep 13 18:12:31 2017 : Debug:       mod_instantiate = "example"
Wed Sep 13 18:12:31 2017 : Debug:       mod_authorize = "example"
Wed Sep 13 18:12:31 2017 : Debug:       func_authorize = "authorize"
Wed Sep 13 18:12:31 2017 : Debug:       mod_authenticate = "example"
Wed Sep 13 18:12:31 2017 : Debug:       mod_preacct = "example"
Wed Sep 13 18:12:31 2017 : Debug:       mod_accounting = "example"
Wed Sep 13 18:12:31 2017 : Debug:       func_accounting = "accounting"
Wed Sep 13 18:12:31 2017 : Debug:       mod_checksimul = "example"
Wed Sep 13 18:12:31 2017 : Debug:       mod_pre_proxy = "example"
Wed Sep 13 18:12:31 2017 : Debug:       mod_post_proxy = "example"
Wed Sep 13 18:12:31 2017 : Debug:       mod_post_auth = "example"
Wed Sep 13 18:12:31 2017 : Debug:       mod_recv_coa = "example"
Wed Sep 13 18:12:31 2017 : Debug:       mod_send_coa = "example"
Wed Sep 13 18:12:31 2017 : Debug:       mod_detach = "example"
Wed Sep 13 18:12:31 2017 : Debug:       python_path = "/etc/freeradius/mods-config/python"
Wed Sep 13 18:12:31 2017 : Debug:       cext_compat = yes
Wed Sep 13 18:12:31 2017 : Debug:   }
 ...
Wed Sep 13 18:12:31 2017 : Debug:   # Instantiating module "python" from file /etc/freeradius/mods-enabled/python
Wed Sep 13 18:12:31 2017 : Info: Python version: 2.7.9 (default, Jun 29 2016, 13:11:10)  [GCC 4.9.2]
Segmentation fault

接下来我尝试评论python_path行, 从我发出的shell:

export PYTHONPATH=/etc/freeradius/mods-config/python

尝试在调试模式下,看起来运行良好

调试消息的一部分:

Wed Sep 13 18:20:03 2017 : Debug:   # Loading module "python" from file /etc/freeradius/mods-enabled/python
Wed Sep 13 18:20:03 2017 : Debug:   python {
Wed Sep 13 18:20:03 2017 : Debug:       mod_instantiate = "example"
Wed Sep 13 18:20:03 2017 : Debug:       mod_authorize = "example"
Wed Sep 13 18:20:03 2017 : Debug:       func_authorize = "authorize"
Wed Sep 13 18:20:03 2017 : Debug:       mod_authenticate = "example"
Wed Sep 13 18:20:03 2017 : Debug:       mod_preacct = "example"
Wed Sep 13 18:20:03 2017 : Debug:       mod_accounting = "example"
Wed Sep 13 18:20:03 2017 : Debug:       func_accounting = "accounting"
Wed Sep 13 18:20:03 2017 : Debug:       mod_checksimul = "example"
Wed Sep 13 18:20:03 2017 : Debug:       mod_pre_proxy = "example"
Wed Sep 13 18:20:03 2017 : Debug:       mod_post_proxy = "example"
Wed Sep 13 18:20:03 2017 : Debug:       mod_post_auth = "example"
Wed Sep 13 18:20:03 2017 : Debug:       mod_recv_coa = "example"
Wed Sep 13 18:20:03 2017 : Debug:       mod_send_coa = "example"
Wed Sep 13 18:20:03 2017 : Debug:       mod_detach = "example"
Wed Sep 13 18:20:03 2017 : Debug:       cext_compat = yes
Wed Sep 13 18:20:03 2017 : Debug:   }

我尝试将相同的导出行添加到freeradius init脚本,但它没有生效。

那么如何正确设置python_path?

此致

-bino -

0 个答案:

没有答案