On Mon, 2 Sep 2002, Yu Zhang wrote:

> I try to explain my questions clearly.
> I have setup freeradius successfully,and now I can
> receive accept packet by compiling configure
> files,such as users,clients....
> Later,I setup mysql successfully.I think
> successfully,because I can load the database schema
> and use sql commands.
> Later,I modified my radiusd.conf as
> "authorise {
>       preprocess
>       suffix
>       sql
> }
>
> authenticate {
>       sql
> }
>
> preacct {
>       suffix
>       preprocess
> }
>
> accounting {
>       detail
>       unix
>       sql
>       radutmp
> }
>
> session {
>       radutmp
> }
>
> ----------
>
> "
> what a pity.after I killed
> radiusd,and run again in debug mode,it comes such
> sentences:
> "Can't connect to local MYSQL server through socket
> '/var/lib/mysql/mysql.sock'
> .....
> radiusd.conf:"SQL" modules aren't allowed in
> 'authenticate' sections --they have no such method".
>
> what's wrong?and I still remember in /etc/my.cnf,the
> socket is defined as "tmp/mysql.sock".
> why does it happen,and how to solve it?
> Thanks anyway and bow

1. Check your my.cnf. Do you have a 'socket = /tmp/mysql.sock'
   in a [client] section? Having 'socket = /tmp/mysql.sock' in
   a [mysqld] section will just tell mysqld where to create the
   socket, not the mysql lib where to find it.

2. Remove sql from the authenticate section. The work can be done
   by the pap/chap/mschap modules.

--
Kostas Kalevras         Network Operations Center
[EMAIL PROTECTED]      National Technical University of Athens, Greece
Work Phone:             +30 10 7721861
'Go back to the shadow' Gandalf



- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to