clients.conf file in MYSQL DB? [Virus checked]
Hi, I just set up freeradius1.1.1 with MySQL and startet some basic tests - first question I ran into was: Can I (I assume I can) "force" freeradius not to use the "clients.conf" file for checkinf for known clients, but put this information into MySQL? (I assume this would be in the "nas" table of the radius-db) I think it should be done in the radiusd.conf file in the "Clients configuration" section, that currently looks like that: # CLIENTS CONFIGURATION # # Client configuration is defined in "clients.conf". # # The 'clients.conf' file contains all of the information from the old # 'clients' and 'naslist' configuration files. We recommend that you # do NOT use 'client's or 'naslist', although they are still # supported. # # Anything listed in 'clients.conf' will take precedence over the # information from the old-style configuration files. # $INCLUDE ${confdir}/clients.conf what should I state here? thank you thomas
There is a nas table you can use. It's the last table db_mysql.sql creates; Then you have to enable it in sql.conf # Set to 'yes' to read radius clients from the database ('nas' table) #readclients = yes I haven't tried it but it should work. Bogdan. -----Original Message----- From: freeradius-users-bounces+helpdesk22=mycybernet.net@lists.freeradius.org [mailto:freeradius-users-bounces+helpdesk22=mycybernet.net@lists.freerad ius.org] On Behalf Of thomas.pudil@t-mobile.at Sent: May 10, 2006 5:57 AM To: FreeRadius users mailing list Subject: clients.conf file in MYSQL DB? [Virus checked] Hi, I just set up freeradius1.1.1 with MySQL and startet some basic tests - first question I ran into was: Can I (I assume I can) "force" freeradius not to use the "clients.conf" file for checkinf for known clients, but put this information into MySQL? (I assume this would be in the "nas" table of the radius-db) I think it should be done in the radiusd.conf file in the "Clients configuration" section, that currently looks like that: # CLIENTS CONFIGURATION # # Client configuration is defined in "clients.conf". # # The 'clients.conf' file contains all of the information from the old # 'clients' and 'naslist' configuration files. We recommend that you # do NOT use 'client's or 'naslist', although they are still # supported. # # Anything listed in 'clients.conf' will take precedence over the # information from the old-style configuration files. # $INCLUDE ${confdir}/clients.conf what should I state here? thank you thomas - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hi Bogdan,
Then you have to enable it in sql.conf
# Set to 'yes' to read radius clients from the database ('nas' table) #readclients = yes thanks for that the lines you provided weren't in my sql.conf file, but I added them
I haven't tried it but it should work. I am pleased to tell you, that in fact it works :-) thanks again
thomas
thomas.pudil@t-mobile.at wrote:
Can I (I assume I can) "force" freeradius not to use the "clients.conf" file for checkinf for known clients, but put this information into MySQL? (I assume this would be in the "nas" table of the radius-db)
Yes. You have to list at least one client in the "clients.conf" file, though. 127.0.0.1 should do it.
I think it should be done in the radiusd.conf file in the "Clients configuration" section, that currently looks like that:
No. See the SQL configuration. Alan DeKok.
participants (3)
-
Alan DeKok -
Bogdan Dumitriu - Technical Support Team -
thomas.pudil@t-mobile.at