macos - Freeradius:Open Directory 的问题,没有 rlm_opendirectory.* 存在
问题描述
我正在尝试从 macOS 服务器传递到 FreeRADIUS,并且我正在关注 Apple 的macOS 服务器—服务迁移指南 | 2018 年 3 月
尝试配置 FreeRadius 时,我必须验证一些与 Open Directory 相关的文件是否存在
$ ls /usr/local/lib/rlm_open 目录。
您应该在输出中看到以下内容:
rlm_opendirectory.a
rlm_opendirectory.dylib
rlm_opendirectory.la
但是什么都没有!
稍后在“设置用户”中通过以下方式测试设置时:
$ sudo /usr/local/Cellar/freeradius-server/3.0.17/bin/radiusd -XC
我得到:
FreeRADIUS Version 3.0.17
Copyright (C) 1999-2017 The FreeRADIUS server project and contributors
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License
For more information about these matters, see the file named COPYRIGHT
Starting - reading configuration files ...
/usr/local/Cellar/freeradius-server/3.0.17/etc/raddb/mods-enabled/opendirectory[20]: Failed to link to module 'rlm_opendirectory': dlopen(/usr/local/Cellar/freeradius-server/3.0.17/lib/rlm_opendirectory.dylib, 6): image not found
我在哪里可以找到这些文件?在哪里可以找到 Open Directory 库?
提前谢谢!!!
解决方案
我解决了。问题是我试图通过 brew 安装,它的默认设置不使用--enable-developer=yes
选项。
我必须编辑公式并重新安装才能获得 openDirectory 驱动程序。
$ brew edit freeradius-server
add: --enable-developer=yes
save the formula
$ brew reinstall -s freeradius-server
推荐阅读
- sql - 如何在 sum(case) 语句中排除一个值与不同行中不同属性中的值匹配的值
- bootstrap-4 - Bootstrap 4 网格系统不匹配
- superset - Superset 是否支持后台异步数据源刷新?
- javascript - 无法将 x 解析为 Date 对象
- regex - 跳过字典中的短字母/单词组合
- javascript - 如何在 ReactJS 上渲染代码生成的 SVG?
- linux - 如何使用命令行脚本动态配置 haproxy?
- android - 仅从 SD 卡中读取名称中包含特定字符串的文件
- r - 如何遍历由 data.table 中的数字索引的变量?
- ruby-on-rails - Rails 生产控制台中没有控制台颜色