# Suse 12 sp3 Freeradius rlm\_rest module

**URL:** <https://forums.suse.com/t/suse-12-sp3-freeradius-rlm-rest-module/35161>\
**Category:** SUSE Linux Enterprise Server\
**Created:** [July 21, 2020, 3:34pm UTC](https://forums.suse.com/t/suse-12-sp3-freeradius-rlm-rest-module/35161 "2020-07-21T15:34:02Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sarika](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@Sarika](https://forums.suse.com/u/Sarika)\
**Post date:** [July 21, 2020, 3:34pm UTC](https://forums.suse.com/t/suse-12-sp3-freeradius-rlm-rest-module/35161/1 "2020-07-21T15:34:02Z")

</div>

I am attempting to setup a new RADIUS server in our environment and using 3.0.15(available in the SLES 12 sp3 repos). However, I cannot find the rlm\_rest module for FreeRADIUS after installation within the /etc/raddb/mods-available/ directory. Is there a different way that needs to be handled now?

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [July 21, 2020, 4:18pm UTC](https://forums.suse.com/t/suse-12-sp3-freeradius-rlm-rest-module/35161/2 "2020-07-21T16:18:16Z")

</div>

Hi and welcome to the Forum 🙂  
AFAIK the SLES (and openSUSE) versions of FreeRadius are built without rlm\_rest module.  
[https://build.opensuse.org/package/show/network/freeradius-server](https://build.opensuse.org/package/show/network/freeradius-server)

---

<div class="post-metadata">

**Author:** ![Sarika](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@Sarika](https://forums.suse.com/u/Sarika)\
**Post date:** [July 21, 2020, 6:32pm UTC](https://forums.suse.com/t/suse-12-sp3-freeradius-rlm-rest-module/35161/3 "2020-07-21T18:32:54Z")

</div>

Thank you.  
I guess openSUSE already support rlm\_rest in 3.0.21 version.  
[https://software.opensuse.org/package/freeradius-server](https://software.opensuse.org/package/freeradius-server)

---

<div class="post-metadata">

**Author:** ![Sarika](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@Sarika](https://forums.suse.com/u/Sarika)\
**Post date:** [July 21, 2020, 6:36pm UTC](https://forums.suse.com/t/suse-12-sp3-freeradius-rlm-rest-module/35161/4 "2020-07-21T18:36:26Z")

</div>

[https://build.opensuse.org/package/view\_file/network/freeradius-server/freeradius-server.changes?expand=1](https://build.opensuse.org/package/view_file/network/freeradius-server/freeradius-server.changes?expand=1)

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [July 21, 2020, 7:42pm UTC](https://forums.suse.com/t/suse-12-sp3-freeradius-rlm-rest-module/35161/5 "2020-07-21T19:42:06Z")

</div>

Hi  
AFAIK, no as I see this in the build logs “–without-rlm\_rest”

---

<div class="post-metadata">

**Author:** ![Sarika](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@Sarika](https://forums.suse.com/u/Sarika)\
**Post date:** [July 22, 2020, 3:59am UTC](https://forums.suse.com/t/suse-12-sp3-freeradius-rlm-rest-module/35161/6 "2020-07-22T03:59:27Z")

</div>

Thanks you so much.  
Last question. Is there a way to add rlm\_rest module in Sles 12 sp3?  
I am trying to build Auth module in Freeradius. As far as I know there are 3 options. rlm\_python , rlm\_rest and rlm\_perl.  
As per one of the stackoverflow thread

"It’s worth mentioning that embedded Python, and python in general is not suited to high performance parallel work loads because of the GiL (Global interpreter lock). You should consider using the native rlm\_rest module to post data to your API. "

Considering that I was looking for rlm\_rest support in suse 12 sp3.

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [July 22, 2020, 1:54pm UTC](https://forums.suse.com/t/suse-12-sp3-freeradius-rlm-rest-module/35161/7 "2020-07-22T13:54:26Z")

</div>

Hi  
You would need to grab the src rpm and rebuild it and enabling the --with-rlm\_rest. In saying that that would mean no json support (Is this an issue?). If you can raise a support request, that may be a better option to find out why it’s disabled…

---

<div class="post-metadata">

**Author:** ![Sarika](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@Sarika](https://forums.suse.com/u/Sarika)\
**Post date:** [July 23, 2020, 6:30am UTC](https://forums.suse.com/t/suse-12-sp3-freeradius-rlm-rest-module/35161/8 "2020-07-23T06:30:32Z")

</div>

I have tried to replace  
%if ! %{with json}  
–without-rlm\_rest \  
%endif  
\*\*with \*\*  
%if ! %{with json}  
–with-rlm\_rest \  
%endif

But it failed with error  
error: Installed (but unpackaged) file(s) found:  
/usr/lib64/freeradius/rlm\_rest.so  
RPM build errors:  
Installed (but unpackaged) file(s) found:  
/usr/lib64/freeradius/rlm\_rest.so

Please suggest.

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [July 23, 2020, 11:49am UTC](https://forums.suse.com/t/suse-12-sp3-freeradius-rlm-rest-module/35161/9 "2020-07-23T11:49:53Z")

</div>

Hi  
Down in the %file list section under # loadable modules you need to rem out and add an extra %;

```auto
#%%if %%{with json}
%{_libdir}/freeradius/rlm_rest.so
#%%endif

```

---

<div class="post-metadata">

**Author:** ![Sarika](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@Sarika](https://forums.suse.com/u/Sarika)\
**Post date:** [July 23, 2020, 4:18pm UTC](https://forums.suse.com/t/suse-12-sp3-freeradius-rlm-rest-module/35161/10 "2020-07-23T16:18:33Z")

</div>

Thanks for help.  
I will try to package again.

As in my product this module will be used for high authentication request (~1 million), I have few questions on available options.

1. Is that rlm\_test C based ?
2. Can you help me to understand performance wise if there is any preference between rlm\_python, rlm\_rest, C modules ?
3. Which option does FreeRadius/SUSE recommend us to use ?

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [July 24, 2020, 1:35pm UTC](https://forums.suse.com/t/suse-12-sp3-freeradius-rlm-rest-module/35161/11 "2020-07-24T13:35:59Z")

</div>

Hi  
I have zero experience with Freeradius, you might wish to talk with SUSE support about this as there must be a reason for it to be disabled in the build for both SUSE and openSUSE.

---

<div class="post-metadata">

**Author:** ![Sarika](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@Sarika](https://forums.suse.com/u/Sarika)\
**Post date:** [July 29, 2020, 4:34am UTC](https://forums.suse.com/t/suse-12-sp3-freeradius-rlm-rest-module/35161/12 "2020-07-29T04:34:23Z")

</div>

Hi,  
I was able to build src package and install it with rest enabled. There was no rest configuration file under mods-available folder after installation. So I had to copy from some other installation. After some configuration in rest and sites-enabled/default file , I am able to post auth request to my server. I am able to get response back from server but not able to process it. In the request body, I send json object. Similarly from server I get respnse as json object.  
So I have a question on json support for this module. As I have enabled REST with no json support. How it will affect my reqest and response ?
