problem configuring FreeRadius to use LDAP as backend
I am trying to setup FreeRadius 3.0.17 to use LDAP as backend. My FreeRadius is running on an OpenSuse server. I have configured /etc/raddb/mods-available/ldap with the LDAP service account information. After I uncommented the line "Auth-Type LDAP {ldap}" in /etc/raddb/sites-available/default, I tried to start the radius service with "./radiusd -X", but got the following error message: " server default { # from file /etc/raddb/sites-enabled/default # Loading authenticate {...} /etc/raddb/sites-enabled/default[528]: Failed to find "ldap" as a module or policy. /etc/raddb/sites-enabled/default[528]: Please verify that the configuration exists in /etc/raddb/mods-enabled/ldap. /etc/raddb/sites-enabled/default[528]: Failed to parse "ldap" entry. I searched on the Internet, but couldn't find freeradius-ldap for OpenSuse. I found lrm-ldap for FreeRadius 3.0.15, but not 3.0.17. Could anyone do me a favor help me out? Thank you! Rong Wang
On 2/21/19 9:45 AM, Rong Wang wrote:
I searched on the Internet, but couldn't find freeradius-ldap for OpenSuse. I found lrm-ldap for FreeRadius 3.0.15, but not 3.0.17. Could anyone do me a favor help me out? On CentOS, the actual file that you need is /usr/lib64/freeradius/rlm_ldap.so. Presumably OpenSuse's package gives you a way to search for the package that provides a file, so you might try that.
-- ======================================================================== Ian Pilcher arequipeno@gmail.com -------- "I grew up before Mark Zuckerberg invented friendship" -------- ========================================================================
Thank you Ian. You are right. My error message says " …. /usr/lib/rlm_ldap.so: cannot open shared object file: No such file or directory". When I searched for rpm rlm_ldap.so, I could only find the rpm for freeradius 3.0.15. I thought the ldap module should be included in the installation of the server. I will try to uninstall FreeRadius 3.0.17 and install it again to see if I had missed something during the installation. Thank you very much for your help. Rong
On Feb 21, 2019, at 11:59 AM, Rong Wang <rzwang@scu.edu> wrote:
Thank you Ian. You are right. My error message says " …. /usr/lib/rlm_ldap.so: cannot open shared object file: No such file or directory". When I searched for rpm rlm_ldap.so, I could only find the rpm for freeradius 3.0.15. I thought the ldap module should be included in the installation of the server. I will try to uninstall FreeRadius 3.0.17 and install it again to see if I had missed something during the installation.
If Suse doesn't supply the module, you can always built the whole server yourself from scratch. There are instructions on the Wiki. Alan DeKok.
Thank you Alan. I am planning to rebuild the server using the WiKi instructions. Rong
When I re-built the FreeRadius server, I found out that I missed ldap-devel. After installing openldap2-devel, and build the server again, LDAP module is there. Thank you Ian and Alan for your help. Rong
participants (3)
-
Alan DeKok -
Ian Pilcher -
Rong Wang