Freeradius:Open Directory 的问题,没有 rlm_opendirectory.* 存在

Freeradius: problems with Open Directory, no rlm_opendirectory.* existing

我正在尝试从 macOS 服务器传递到 FreeRADIUS,我正在关注 Apple 的 macOS 服务器—服务迁移指南 | 2018 年 3 月

在尝试配置 FreeRadius 时,我必须验证一些与 Open Directory 相关的文件是否存在

$ ls /usr/local/lib/rlm_opendirectory.

You should see the following in the output:

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