Issue while installing free radius

Surya Teja suryateja042 at gmail.com
Fri Apr 19 16:00:57 CEST 2019


sorry missed a point to be added continuation of above reply
I cannot see any parameter as idle_timeout in /etc/raddb/radius.conf file.
to set it to 0.


On Fri, Apr 19, 2019 at 7:29 PM Surya Teja <suryateja042 at gmail.com> wrote:

> Hi i have installed freeradius successfully and radiusd-x status is ok
>  to test my installation setup is all ok, I have inserted an entry
> manually into table with below  information as
>   INSERT INTO radcheck (UserName, Attribute, Value, Op) VALUES
> ('testuser', 'testing!23', 'testing!23', ':=');
>   and when i execute the command
>   radtest testuser 'testing!23' 127.0.0.1 0 'testing!23'
>   i am getting as below
>     Sent Access-Request Id 38 from 0.0.0.0:50157 to 127.0.0.1:1812 length
> 75
>         User-Name = "testuser"
>         User-Password = "testing!23"
>         NAS-IP-Address = 192.168.2.172
>         NAS-Port = 0
>         Message-Authenticator = 0x00
>         Cleartext-Password = "testing!23"
> *Received Access-Reject Id 38 from 127.0.0.1:1812 <http://127.0.0.1:1812>
> to 0.0.0.0:0 <http://0.0.0.0:0> length 20*
> (0) -: *Expected Access-Accept got Access-Reject*
> *In  tail -f /var/log/radius/radius.log* i can see as below
>  Info: Need 0 more connections to reach min connections (3)
>  Info: Need 0 more connections to reach min connections (3)
>
> ----> Researched in Google and  one of forum it suggest as
>   If you are on a systemd-based system (e.g. CentOS 7, Ubuntu 16.04),
>   another option is to get systemd to restart freeradius for you.
>
> *systemctl edit radiusd   # or systemctl edit freeradius *
>
> * This will throw you into an editor. Type: *
>
> * [Service] *
> * Restart=always *
> * RestartSec=3 *
>
> * and exit and save. (Note: exact capitalisation is important) *
>
> I followed the above steps with RestartSec = 1 as value and restarted the
> radiusd
>
> *now i am getting more errors*
>  [root at nusalxsl0983 ~]#  tail -f /var/log/radius/radius.log
> Fri Apr 19 13:09:16 2019 : Info: rlm_sql (sql): Closing connection (0):
> Hit idle_timeout, was idle for 64 seconds
> Fri Apr 19 13:09:16 2019 : Info: rlm_sql (sql): Closing connection (5):
> Hit idle_timeout, was idle for 64 seconds
> Fri Apr 19 13:09:16 2019 : Info: rlm_sql (sql): Opening additional
> connection (6), 1 of 32 pending slots used
> Fri Apr 19 13:09:16 2019 : Info: Need 2 more connections to reach min
> connections (3)
> Fri Apr 19 13:09:16 2019 : Info: rlm_sql (sql): Opening additional
> connection (7), 1 of 31 pending slots used
> Fri Apr 19 13:34:37 2019 : Info: rlm_sql (sql): Closing connection (7):
> Hit idle_timeout, was idle for 1521 seconds
> Fri Apr 19 13:34:37 2019 : Info: rlm_sql (sql): Closing connection (6):
> Hit idle_timeout, was idle for 1521 seconds
> Any help would be appreciated.
>
> Thanks,
> surya
>
> On Wed, Apr 17, 2019 at 10:07 PM Surya Teja <suryateja042 at gmail.com>
> wrote:
>
>> Hi Jorge Pereira,
>> Thanks for steps, will delete all old entries and  retry with new version
>> with given steps
>>
>> On Wed, 17 Apr 2019, 10:04 p.m. Jorge Pereira, <jpereira at freeradius.org>
>> wrote:
>>
>>> ./configure --prefix=/opt/freeradius
>>> make
>>> make install
>>> /opt/freeradius/sbin/radiusd -X
>>>
>>>
>>>
>>> On Wed, Apr 17, 2019 at 1:26 PM Surya Teja <suryateja042 at gmail.com>
>>> wrote:
>>>
>>> > Yes the same question is posted in git hub and there it suggested to
>>> check
>>> > the files whether it have any multiple such files , yes i checked it
>>> and
>>> > find only one file and still getting issue it was blocked unable to
>>> reply
>>> > So,i have posted my status of checking files here
>>> >
>>> > On Wed, 17 Apr 2019, 8:46 p.m. Alan DeKok, <aland at deployingradius.com>
>>> > wrote:
>>> >
>>> > > On Apr 17, 2019, at 11:13 AM, Surya Teja <suryateja042 at gmail.com>
>>> wrote:
>>> > > >
>>> > > > I am facing the below error while i am executing the command
>>> > > > sudo /usr/sbin/radiusd -X
>>> > > > */etc/raddb/mods-enabled/always[35]: Failed loading module
>>> rlm_always
>>> > > from
>>> > > > file /usr/lib64/freeradius/rlm_always.so*
>>> > > > */etc/raddb/mods-enabled/always[35]: Application and rlm_always
>>> magic
>>> > > > number (prefix) mismatch.  application: 0 module: f4*
>>> > > >  I have installed the free radius of version (3.0.18).Due to some
>>> > issue I
>>> > > > have again installed 3.0.19 but now i am facing the above new
>>> issue and
>>> > > > even when i grep with the *rlm_always*
>>> > > > I can see only one folder which contains
>>> > > > -rw-r--r-- 1 root root   49 Feb 25 21:41 all.mk
>>> > > > -rw-r--r-- 1 root root 4360 Feb 25 21:41 rlm_always.c
>>> > > >
>>> > > > [root at nusalxsl0983 ~]# find / -name rlm_always
>>> > > > /tmp/freeradius-server-release_3_0_18/src/modules/rlm_always
>>> > > > [root at nusalxsl0983 ~]#
>>> > > > can any one has any idea how to fix it ?
>>> > >
>>> > >   You asked this question on GitHub, and were told the answer there.
>>> > >
>>> > >   Why ask questions and ignore the answer?
>>> > >
>>> > >   For other readers, you've installed two different versions of
>>> > FreeRADIUS
>>> > > at the same time.  Don't do that.  Delete both, and install only one.
>>> > >
>>> > >   Alan DeKok.
>>> > >
>>> > >
>>> > > -
>>> > > List info/subscribe/unsubscribe? See
>>> > > http://www.freeradius.org/list/users.html
>>> > -
>>> > List info/subscribe/unsubscribe? See
>>> > http://www.freeradius.org/list/users.html
>>> -
>>> List info/subscribe/unsubscribe? See
>>> http://www.freeradius.org/list/users.html
>>
>>


More information about the Freeradius-Users mailing list