- 论坛徽章:
- 0
|
期望配置过FreeRadius的高人指点迷津~ 谢谢谢谢~~~~\r\n\r\n使用FreeRadius,并使用Oracle作为连接,\r\n安装好FreeRadius 后:\r\n\r\n1. 修改 radiusd.conf 将 所有的 files 注释了~\r\n将 所有 sql 的注释 去除了~\r\n并将 $INCLUDE ${confdir}/sql.conf 改为 $INCLUDE ${confdir}/oraclesql.conf\r\n\r\n2. 另在 oraclesql.conf 文件中设置 连接 oracle 数据库的 相关 数据库IP地址 用户名 密码 SID等配置!\r\n\r\n3. radiusd -X 启动出现 连接 .so 文件 出错~ 好象是找不到这个 .so文件~ \r\n于是 从安装文件里 找了这个 .so文件复制到 lib目录下~\r\n\r\n再次启动 radiusd -X 却总是提示:\r\n\r\n- [root@test004 raddb]# radiusd -X\r\nStarting - reading configuration files ...\r\nreread_config: reading radiusd.conf\r\nConfig: including file: /etc/raddb/proxy.conf\r\nConfig: including file: /etc/raddb/clients.conf\r\nConfig: including file: /etc/raddb/snmp.conf\r\nConfig: including file: /etc/raddb/eap.conf\r\nConfig: including file: /etc/raddb/oraclesql.conf\r\n…………\r\n…………\r\n preprocess: with_cisco_vsa_hack = no\r\nModule: Instantiated preprocess (preprocess) \r\nModule: Loaded realm \r\n realm: format = \"suffix\"\r\n realm: delimiter = \"@\"\r\n realm: ignore_default = no\r\n realm: ignore_null = no\r\nModule: Instantiated realm (suffix) \r\nERROR: Cannot find a configuration entry for module \"sql\".\r\n[root@test004 raddb]#
复制代码 \r\n\r\nradiusd.conf文件内容大致如下:\r\n\r\n- authorize {\r\n preprocess\r\n chap\r\n mschap\r\n #counter\r\n #attr_filter\r\n #eap\r\n suffix \r\n sql\r\n #files\r\n #etc_smbpasswd\r\n}\r\n \r\nauthenticate {\r\n authtype PAP {\r\n pap\r\n }\r\n authtype CHAP {\r\n chap\r\n }\r\n authtype MS-CHAP{\r\n mschap\r\n }\r\n #pam\r\n #unix\r\n #authtype LDAP {\r\n # ldap\r\n #}\r\n}\r\n \r\npreacct { \r\n preprocess\r\n suffix\r\n #files\r\n}\r\n \r\naccounting {\r\n acct_unique\r\n detail\r\n #counter\r\n unix\r\n sql\r\n radutmp\r\n #sradutmp\r\n}\r\n \r\nsession {\r\n radutmp\r\n}
复制代码 |
|