LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Freeradius with Mysql not working on Fedora 10 (https://www.linuxquestions.org/questions/linux-networking-3/freeradius-with-mysql-not-working-on-fedora-10-a-714284/)

cezaronne 03-25-2009 04:47 AM

Freeradius with Mysql not working on Fedora 10
 
Hi,


I have installed Freeradius (yum) 2.1.3-1.fc10.i386.With local users (users file)everythings is fine:
[root@localhost]# radtest test testing localhost 1812 testing123
Sending Access-Request of id 75 to 127.0.0.1 port 1812
User-Name = "test"
User-Password = "testing"
NAS-IP-Address = 127.0.0.1
NAS-Port = 1812
rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=75, length=20

I have configured mysql to work with Radius:
-modified /etc/raddb/sql.conf with the login details and database name
-uncomment in /etc/raddb/sites-enabled/default the sql line in the authorize{} section.


After radiusd -X I get the following output:

/etc/raddb/sites-enabled/default[152]: Failed to find module "sql".
/etc/raddb/sites-enabled/default[62]: Errors parsing authorize section.
}
Errors initializing modules



Can you please help me ?


Thank you.

Japie 03-25-2009 06:06 AM

try installing mysql-devel

rgrds
Japie

cezaronne 03-25-2009 06:54 AM

Hi,

It is installed


Package mysql-devel-5.0.67-2.fc10.i386 already installed and latest version

Japie 03-26-2009 02:44 AM

Did you compile Freeradius ? Or did you use a package ?

Maybe you forgot to compile it with the mysql options, or you forgot to install the module ?

I'm using mostly debian and you can then apt-get freeradius-mysql, on top of freeradius..

What OS are you using ?

Japie 03-26-2009 03:41 AM

Just saw the topic title. So it's fedora 10.

Did jou install freeradius-mysql ?

You can find it here :

http://rpmfind.net/linux/rpm2html/se...eeradius-mysql


All times are GMT -5. The time now is 02:47 PM.