首页 > 解决方案 > 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 库?

提前谢谢!!!

标签: macosmacos-mojavefreeradiusosx-server

解决方案


我解决了。问题是我试图通过 brew 安装,它的默认设置不使用--enable-developer=yes选项。

我必须编辑公式并重新安装才能获得 openDirectory 驱动程序。

$ brew edit freeradius-server
add: --enable-developer=yes
save the formula
$ brew reinstall -s freeradius-server

推荐阅读