NAS info + MySQL

Marcin Jessa lists at yazzy.org
Wed Jun 1 17:48:26 CEST 2005


Hi Edgars.


On Wed, 01 Jun 2005 16:41:15 +0300
Edgars <edzix19 at inbox.lv> wrote:

> in the slq conf file set readclients=yes and make sure that nas_table=nas.

In the first email I said I had that enabled.
So you mean nas table is properly used by freeradius and reads the hosts stored in it with the secret for the NAS?
What about the clients.conf file? What should I keep there? It needs at least one host definition or radius will not start.





> 
> Marcin Jessa wrote:
> 
> >Hi guys.
> >
> >I was wondering if the information read from the nas table is in any way used by freeradius or maybe I misread/misconfigured something?
> >The sql.conf file has set readclients = yes but freeradius is ignoring the information stored in sql using only the one from clients.conf.
> >The clients.conf itself has to be included in the radiusd.conf as well and the clients.conf needs at least one valid client info stored in it.
> >
> >Example of my nas table:
> >
> >mysql> select * from nas;
> >+----+-------------------+-----------+----------+-------+----------+-----------+----------------------------------+
> >| id | nasname           | shortname | type     | ports | secret   | community | description                      |
> >+----+-------------------+-----------+----------+-------+----------+-----------+----------------------------------+
> >|  1 | localhost         | Localhost | mikrotik |  1812 | xxxyyyzz | whatever  | Localhost Radius Server  |
> >|  4 | demo.domain.com | demo     | mikrotik |  1812 | xxxyyzz | whatever  | Demo Radius Server      |
> >+----+-------------------+-----------+----------+-------+----------+-----------+----------------------------------+
> >
> >The hosts in nasname have their corresponding IP's stored in /etc/hosts or a local DNS server.
> >
> >Regards,
> >Marcin Jessa.
> >- 
> >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