Issue while installing free radius
Hi, 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@nusalxsl0983 ~]# find / -name rlm_always /tmp/freeradius-server-release_3_0_18/src/modules/rlm_always [root@nusalxsl0983 ~]# can any one has any idea how to fix it ? Thanks & Regards surya
On Apr 17, 2019, at 11:13 AM, Surya Teja <suryateja042@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@nusalxsl0983 ~]# find / -name rlm_always /tmp/freeradius-server-release_3_0_18/src/modules/rlm_always [root@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.
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@deployingradius.com> wrote:
On Apr 17, 2019, at 11:13 AM, Surya Teja <suryateja042@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@nusalxsl0983 ~]# find / -name rlm_always /tmp/freeradius-server-release_3_0_18/src/modules/rlm_always [root@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
./configure --prefix=/opt/freeradius make make install /opt/freeradius/sbin/radiusd -X On Wed, Apr 17, 2019 at 1:26 PM Surya Teja <suryateja042@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@deployingradius.com> > wrote: > > > On Apr 17, 2019, at 11:13 AM, Surya Teja <suryateja042@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@nusalxsl0983 ~]# find / -name rlm_always > > > /tmp/freeradius-server-release_3_0_18/src/modules/rlm_always > > > [root@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
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@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@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@deployingradius.com> > > wrote: > > > > > On Apr 17, 2019, at 11:13 AM, Surya Teja <suryateja042@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@nusalxsl0983 ~]# find / -name rlm_always > > > > /tmp/freeradius-server-release_3_0_18/src/modules/rlm_always > > > > [root@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
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@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@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@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@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@deployingradius.com>
>> > wrote:
>> >
>> > > On Apr 17, 2019, at 11:13 AM, Surya Teja <suryateja042@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@nusalxsl0983 ~]# find / -name rlm_always
>> > > > /tmp/freeradius-server-release_3_0_18/src/modules/rlm_always
>> > > > [root@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
>
>
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@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@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@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@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@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@deployingradius.com>
>>> > wrote:
>>> >
>>> > > On Apr 17, 2019, at 11:13 AM, Surya Teja <suryateja042@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@nusalxsl0983 ~]# find / -name rlm_always
>>> > > > /tmp/freeradius-server-release_3_0_18/src/modules/rlm_always
>>> > > > [root@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
>>
>>
On Apr 19, 2019, at 9:59 AM, Surya Teja <suryateja042@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 to 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
You're ignoring the documentation. Don't do that. This isn't difficult. You're making it difficult. Run the server in debug mode. The documentation says to do this. The more time you waste doing wrong things, the longer it will take to fix the probvlem.
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
Ignore that. It isn't relevant. And why are you searching for crappy third-party documentation, when the FreeRADIUS documentation tells you what to do? It just makes no sense. Alan DeKok.
Hi Alan , Thanks for suggestion and i have followed the steps as per documentation from freeradius.org installed free radius and the tested with same example given, its working fine. [root@nusalxsl0983 ~]# radtest testing password 127.0.0.1 0 testing123 Sent Access-Request Id 126 from 0.0.0.0:45388 to 127.0.0.1:1812 length 77 User-Name = "testing" User-Password = "password" NAS-IP-Address = 10.0.0.120 NAS-Port = 0 Message-Authenticator = 0x00 Cleartext-Password = "password" Received *Access-Accept* Id 126 from 127.0.0.1:1812 to 0.0.0.0:0 length 20 [root@nusalxsl0983 ~]# but i have few other integration which needs changes in few configuration files I am trying to configure the cova chilli with freeradius for captive portal as a result of it i need to integrate mysql with freeradius and need to change the secret key of freeradius default one(testing123) to that of mysql free radius user password as suggested in forum i have modified the secrekey on following config files *1)sudo vi /etc/raddb/mods-available/sql* Uncomment and or change the following parameters: driver = "rlm_sql_mysql" dialect = ”mysql” server = "localhost" port = 3306 login = "*FREERADIUS_DB_USER*" password = "*FREERADIUS_DB_PASS*" read_clients = yes *2)sudo vi /etc/raddb/clients.conf* Change the password to the password used above for FreeRadius MySQL database: *secret* = [*FREERADIUS_DB_PASS*] updated above and restarted freeradius server and tried the same above test case of with new password (secret key)now i am getting exception in radiusd.log as Sat Apr 20 11:37:20 2019 : Info: Dropping packet without response because of error:* Received packet from 127.0.0.1 with invalid Message-Authenticator! (Shared secret is incorrect.)* Sat Apr 20 11:37:25 2019 : Info: Dropping packet without response because of error: Received packet from 127.0.0.1 with invalid Message-Authenticator! (Shared secret is incorrect.) can i know is the this secret key needs to be updated in any other configuration files, any idea or suggestion will be more helpful Any help can be appreciated. Thanks surya On Fri, Apr 19, 2019 at 9:56 PM Alan DeKok <aland@deployingradius.com> wrote:
On Apr 19, 2019, at 9:59 AM, Surya Teja <suryateja042@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 to 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
You're ignoring the documentation. Don't do that.
This isn't difficult. You're making it difficult.
Run the server in debug mode. The documentation says to do this.
The more time you waste doing wrong things, the longer it will take to fix the probvlem.
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
Ignore that. It isn't relevant.
And why are you searching for crappy third-party documentation, when the FreeRADIUS documentation tells you what to do?
It just makes no sense.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Apr 20, 2019, at 8:53 AM, Surya Teja <suryateja042@gmail.com> wrote:
Thanks for suggestion and i have followed the steps as per documentation from freeradius.org installed free radius and the tested with same example given, its working fine.
That's good.
[root@nusalxsl0983 ~]# radtest testing password 127.0.0.1 0 testing123
We don't need to see that.
but i have few other integration which needs changes in few configuration files I am trying to configure the cova chilli with freeradius for captive portal as a result of it i need to integrate mysql with freeradius and need to change the secret key of freeradius default one(testing123) to that of mysql free radius user password as suggested in forum i have modified the secrekey on following config files *1)sudo vi /etc/raddb/mods-available/sql* Uncomment and or change the following parameters: driver = "rlm_sql_mysql" dialect = ”mysql” server = "localhost" port = 3306 login = "*FREERADIUS_DB_USER*" password = "*FREERADIUS_DB_PASS*" read_clients = yes
If you add that, you should also put client information into SQL.
*2)sudo vi /etc/raddb/clients.conf* Change the password to the password used above for FreeRadius MySQL database: *secret* = [*FREERADIUS_DB_PASS*]
That is 100% the wrong thing to do. Nothing in the documentation suggests that you put the database password into the "clients.conf" file. The secret here is for the RADIUS shared secret.
updated above and restarted freeradius server and tried the same above test case of with new password (secret key)now i am getting exception in radiusd.log
Stop wasting everyones time. You were told to look at the debug output. Why are you refusing to do that? If you run the server in debug mode, it will tell you which clients it's creating. You don't need to look at the log file.
can i know is the this secret key needs to be updated in any other configuration files, any idea or suggestion will be more helpful Any help can be appreciated.
Follow the documentation. Read the configuration files. It's all pretty clear if you *read* it. Alan DeKok.
Hi I have run the server in the debug mode and it keeps saying the error *1) pap: Comparing with "known-good" Crypt-password* *(1) pap: ERROR: Crypt digest does not match "known good" digest* I gave same credentials which i have in radcheck table mysql> select * from radcheck; +----+-----------+--------------------+----+------------+ | id | username | attribute | op | value | +----+-----------+--------------------+----+------------+ | 5 | *testuser2* | Cleartext-Password | := | *GeForce-23* | +----+-----------+--------------------+----+------------+ Here is the complete info (1) Received Access-Request Id 146 from 127.0.0.1:51406 to 127.0.0.1:1812 length 79 (1) User-Name = "testuser2" (1) User-Password = "GeForce-23" (1) NAS-IP-Address = 10.0.0.140 (1) NAS-Port = 0 (1) Message-Authenticator = 0x8d9aa944e7a240ed28d9bc5f112de505 (1) # Executing section authorize from file /etc/raddb/sites-enabled/default (1) authorize { (1) [preprocess] = ok (1) auth_log: EXPAND /var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d (1) auth_log: --> /var/log/radius/radacct/127.0.0.1/auth-detail-20190421 (1) auth_log: /var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d expands to /var/log/radius/radacct/127.0.0.1/auth-detail-20190421 (1) auth_log: EXPAND %t (1) auth_log: --> Sun Apr 21 10:24:18 2019 (1) [auth_log] = ok (1) [chap] = noop (1) [mschap] = noop (1) [digest] = noop (1) suffix: Checking for suffix after "@" (1) suffix: No '@' in User-Name = "testuser2", looking up realm NULL (1) suffix: No such realm "NULL" (1) [suffix] = noop (1) eap: No EAP-Message, not doing EAP (1) [eap] = noop (1) [unix] = updated (1) [files] = noop (1) sql: EXPAND %{User-Name} (1) sql: --> testuser2 (1) sql: SQL-User-Name set to 'testuser2' rlm_sql (sql): Closing connection (3): Hit idle_timeout, was idle for 2961 seconds rlm_sql_mysql: Socket destructor called, closing socket rlm_sql (sql): Closing connection (4): Hit idle_timeout, was idle for 2961 seconds rlm_sql_mysql: Socket destructor called, closing socket rlm_sql (sql): Closing connection (0): Hit idle_timeout, was idle for 2961 seconds rlm_sql_mysql: Socket destructor called, closing socket rlm_sql (sql): Closing connection (5): Hit idle_timeout, was idle for 2961 seconds rlm_sql_mysql: Socket destructor called, closing socket rlm_sql (sql): Closing connection (1): Hit idle_timeout, was idle for 2944 seconds rlm_sql (sql): You probably need to lower "min" rlm_sql_mysql: Socket destructor called, closing socket rlm_sql (sql): Closing connection (6): Hit idle_timeout, was idle for 2944 seconds rlm_sql (sql): You probably need to lower "min" rlm_sql_mysql: Socket destructor called, closing socket rlm_sql (sql): Closing connection (2): Hit idle_timeout, was idle for 2944 seconds rlm_sql (sql): You probably need to lower "min" rlm_sql_mysql: Socket destructor called, closing socket rlm_sql (sql): 0 of 0 connections in use. You may need to increase "spare" rlm_sql (sql): Opening additional connection (7), 1 of 32 pending slots used rlm_sql_mysql: Starting connect to MySQL server rlm_sql_mysql: Connected to database 'radius' on Localhost via UNIX socket, server version 8.0.15, protocol version 10 rlm_sql (sql): Reserved connection (7) (1) sql: EXPAND SELECT id, username, attribute, value, op FROM radcheck WHERE username = '%{SQL-User-Name}' ORDER BY id (1) sql: --> SELECT id, username, attribute, value, op FROM radcheck WHERE username = 'testuser2' ORDER BY id (1) sql: Executing select query: SELECT id, username, attribute, value, op FROM radcheck WHERE username = 'testuser2' ORDER BY id (1) sql: User found in radcheck table (1) sql: Conditional check items matched, merging assignment check items (1) sql: Cleartext-Password := "GeForce-23" (1) sql: EXPAND SELECT id, username, attribute, value, op FROM radreply WHERE username = '%{SQL-User-Name}' ORDER BY id (1) sql: --> SELECT id, username, attribute, value, op FROM radreply WHERE username = 'testuser2' ORDER BY id (1) sql: Executing select query: SELECT id, username, attribute, value, op FROM radreply WHERE username = 'testuser2' ORDER BY id (1) sql: EXPAND SELECT groupname FROM radusergroup WHERE username = '%{SQL-User-Name}' ORDER BY priority (1) sql: --> SELECT groupname FROM radusergroup WHERE username = 'testuser2' ORDER BY priority (1) sql: Executing select query: SELECT groupname FROM radusergroup WHERE username = 'testuser2' ORDER BY priority (1) sql: User not found in any groups rlm_sql (sql): Released connection (7) Need 2 more connections to reach min connections (3) rlm_sql (sql): Opening additional connection (8), 1 of 31 pending slots used rlm_sql_mysql: Starting connect to MySQL server rlm_sql_mysql: Connected to database 'radius' on Localhost via UNIX socket, server version 8.0.15, protocol version 10 (1) [sql] = ok (1) [expiration] = noop (1) [logintime] = noop (1) [pap] = updated (1) chillispot_max_bytes: WARNING: Couldn't find check attribute, control:ChilliSpot-Max-Total-Octets, doing nothing... (1) [chillispot_max_bytes] = noop (1) noresetcounter: WARNING: Couldn't find check attribute, control:Max-All-Session, doing nothing... (1) [noresetcounter] = noop (1) } # authorize = updated (1) Found Auth-Type = PAP (1) # Executing group from file /etc/raddb/sites-enabled/default (1) Auth-Type PAP { *(1) pap: Login attempt with password* *(1) pap: Comparing with "known-good" Crypt-password* *(1) pap: ERROR: Crypt digest does not match "known good" digest* *(1) pap: Passwords don't match* (1) [pap] = reject (1) } # Auth-Type PAP = reject (1) Failed to authenticate the user (1) Using Post-Auth-Type Reject (1) # Executing group from file /etc/raddb/sites-enabled/default (1) Post-Auth-Type REJECT { (1) sql: EXPAND .query (1) sql: --> .query (1) sql: Using query template 'query' rlm_sql (sql): Reserved connection (7) (1) sql: EXPAND %{User-Name} (1) sql: --> testuser2 (1) sql: SQL-User-Name set to 'testuser2' (1) sql: EXPAND INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( '%{SQL-User-Name}', '%{%{User-Password}:-%{Chap-Password}}', '%{reply:Packet-Type}', '%S') (1) sql: --> INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( 'testuser2', 'GeForce-23', 'Access-Reject', '2019-04-21 10:24:18.924630') (1) sql: Executing query: INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( 'testuser2', 'GeForce-23', 'Access-Reject', '2019-04-21 10:24:18.924630') (1) sql: SQL query returned: success (1) sql: 1 record(s) updated rlm_sql (sql): Released connection (7) (1) [sql] = ok (1) attr_filter.access_reject: EXPAND %{User-Name} (1) attr_filter.access_reject: --> testuser2 (1) attr_filter.access_reject: Matched entry DEFAULT at line 11 (1) [attr_filter.access_reject] = updated (1) [eap] = noop (1) policy remove_reply_message_if_eap { (1) if (&reply:EAP-Message && &reply:Reply-Message) { (1) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (1) else { (1) [noop] = noop (1) } # else = noop (1) } # policy remove_reply_message_if_eap = noop (1) } # Post-Auth-Type REJECT = updated (1) Delaying response for 1.000000 seconds Waking up in 0.3 seconds. Waking up in 0.6 seconds. (1) Sending delayed response (1) Sent Access-Reject Id 146 from 127.0.0.1:1812 to 127.0.0.1:51406 length 20 Waking up in 3.9 seconds. (1) Cleaning up request packet ID 146 with timestamp +2961 Ready to process requests The stored credentials and input credentials are same , I just don't get why it reject me? Thank you in advance. On Sat, Apr 20, 2019 at 7:10 PM Alan DeKok <aland@deployingradius.com> wrote:
On Apr 20, 2019, at 8:53 AM, Surya Teja <suryateja042@gmail.com> wrote:
Thanks for suggestion and i have followed the steps as per documentation from freeradius.org installed free radius and the tested with same example given, its working fine.
That's good.
[root@nusalxsl0983 ~]# radtest testing password 127.0.0.1 0 testing123
We don't need to see that.
but i have few other integration which needs changes in few configuration files I am trying to configure the cova chilli with freeradius for captive portal as a result of it i need to integrate mysql with freeradius and need to change the secret key of freeradius default one(testing123) to that of mysql free radius user password as suggested in forum i have modified the secrekey on following config files *1)sudo vi /etc/raddb/mods-available/sql* Uncomment and or change the following parameters: driver = "rlm_sql_mysql" dialect = ”mysql” server = "localhost" port = 3306 login = "*FREERADIUS_DB_USER*" password = "*FREERADIUS_DB_PASS*" read_clients = yes
If you add that, you should also put client information into SQL.
*2)sudo vi /etc/raddb/clients.conf* Change the password to the password used above for FreeRadius MySQL database: *secret* = [*FREERADIUS_DB_PASS*]
That is 100% the wrong thing to do. Nothing in the documentation suggests that you put the database password into the "clients.conf" file. The secret here is for the RADIUS shared secret.
updated above and restarted freeradius server and tried the same above test case of with new password (secret key)now i am getting exception in radiusd.log
Stop wasting everyones time. You were told to look at the debug output. Why are you refusing to do that?
If you run the server in debug mode, it will tell you which clients it's creating. You don't need to look at the log file.
can i know is the this secret key needs to be updated in any other configuration files, any idea or suggestion will be more helpful Any help can be appreciated.
Follow the documentation. Read the configuration files. It's all pretty clear if you *read* it.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Apr 21, 2019, at 6:39 AM, Surya Teja <suryateja042@gmail.com> wrote:
I have run the server in the debug mode
That's good.
and it keeps saying the error *1) pap: Comparing with "known-good" Crypt-password* *(1) pap: ERROR: Crypt digest does not match "known good" digest* I gave same credentials which i have in radcheck table
The server doesn't invent the Crypt-Password. The password is coming from somewhere. The default configuration doesn't have this issue. So it's something you changed in your local configuration. Alan DeKok.
Please, double check my answer on Github. On Wed, Apr 17, 2019 at 12:13 PM Surya Teja <suryateja042@gmail.com> wrote:
Hi,
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@nusalxsl0983 ~]# find / -name rlm_always /tmp/freeradius-server-release_3_0_18/src/modules/rlm_always [root@nusalxsl0983 ~]# can any one has any idea how to fix it ?
Thanks & Regards surya - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (3)
-
Alan DeKok -
Jorge Pereira -
Surya Teja