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

北战南征 提交于 2019-12-11 16:58:26

问题


Im trying to pass from macOS Server to FreeRADIUS and I am following Apple's macOS Server— Service Migration Guide | March 2018

When trying to configure FreeRadius I have to verify the existence of some files related to 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

But nothing is there!

Later in "Set up users" When Testing the setting through:

$ sudo /usr/local/Cellar/freeradius-server/3.0.17/bin/radiusd -XC

I get:

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 

Where do I find these files? Where do I find the Open Directory library?

Thanks's in advance!!!


回答1:


I solved it. The problem was that I tried to install through brew, which in its default setting does not use --enable-developer=yes option.

I had to edit the formula and reinstall in order to get the openDirectory driver.

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


来源:https://stackoverflow.com/questions/54617087/freeradius-problems-with-open-directory-no-rlm-opendirectory-existing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!