Hello!<br>I'm having some problems when wanting the database of SER to be the one FreeRADIUS will be checking on, instead of the radius database.<br>Like that I changed the file /etc/raddb/sql.conf<br>At the end is the output of the problems.
<br>Hope somebody can help,<br>Thanks in advance<br>Roberto<br><br>#----------------------------------------------------------------------------------------------------------------------------------------------#<br>#SQL.conf
<br><br>sql {
<br> driver = "rlm_sql_mysql"<br><br> server = "localhost"<br> login = "root"<br> password = "**********"<br><br> # Database table configuration<br> radius_db = "ser"
<br><br> # Allow for storing data after authentication<br> postauth_table = "authenticate"<br> authcheck_table = "subscriber"<br> authreply_table = "subscriber2"
<br>### postauth_table = "radpostauth"<br>### authcheck_table = "radcheck"<br>### authreply_table = "radreply"
<br><br>### groupcheck_table = "radgroupcheck"<br>### groupreply_table = "radgroupreply"<br>### usergroup_table = "usergroup"<br> # Table to keep radius client info<br>### nas_table = "nas"
<br><br>authorize_check_query = "SELECT phplib_id, username, password\<br> FROM ${authcheck_table} \<br> WHERE LOWER(username) = LOWER('%{SQL-User-Name}') \<br> ORDER BY phplib_id"<br>authorize_reply_query = "SELECT phplib_id, username, password\
<br> FROM ${authreply_table} \<br> WHERE LOWER(username) = LOWER('%{SQL-User-Name}') \<br> ORDER BY phplib_id"<br>
<br>authorize_check_query = "SELECT phplib_id, username, password\<br> FROM ${authcheck_table} \<br> WHERE username = '%{SQL-User-Name}' \<br> ORDER BY phplib_id"<br>authorize_reply_query = "SELECT phplib_id, username, password\
<br> FROM ${authreply_table} \<br> WHERE username = '%{SQL-User-Name}' \<br> ORDER BY phplib_id"<br><br>postauth_query = "INSERT into ${postauth_table} (phplib_id, user, pass, reply, date) values ('', '%{User-Name}',
<br>
'%{User-Password:-Chap-Password}', '%{reply:Packet-Type}', NOW())"<br><br>#SQL.conf<br>#----------------------------------------------------------------------------------------------------------------------------------------------#
<br><br><br>I thought that i neede to create some more tables so here they are<br>Subscriber2 will act like- authcheck_table<br>Authenticate will actlike - postauth_table<br><br>#----------------------------------------------------------------------------------------------------------------------------------------------#
<br>#Tables created in databaseSER<br><br>CREATE TABLE authenticate (<br> phplib_id varchar(32) not null default '',
<br> user varchar(64) not null default '',<br> pass varchar(25) not null default '',<br> reply varchar(25) not null default '',<br> date datetime NOT NULL default '0000-00-00 00:00:00', <br> PRIMARY KEY phplib_id(phplib_id));
<br><br>table subsciber had exactly the same structure of subscriber2<br><br>CREATE TABLE subscriber2 (<br> phplib_id varchar(32) NOT NULL default '',<br> $USERCOL varchar(64) NOT NULL default '',<br> domain varchar(128) NOT NULL default '',
<br> password varchar(25) NOT NULL default '',<br> first_name varchar(25) NOT NULL default '',
<br> last_name varchar(45) NOT NULL default '',<br> phone varchar(15) NOT NULL default '',<br> email_address varchar(50) NOT NULL default '',<br> datetime_created datetime NOT NULL default '0000-00-00 00:00:00',<br> datetime_modified datetime NOT NULL default '0000-00-00 00:00:00',
<br> confirmation varchar(64) NOT NULL default '',<br> flag char(1) NOT NULL default 'o',<br> sendnotification varchar(50) NOT NULL default '',<br> greeting varchar(50) NOT NULL default '',<br> ha1 varchar(128) NOT NULL default '',
<br> ha1b varchar(128) NOT NULL default '',<br> allow_find char(1) NOT NULL default '0',<br> timezone varchar(128) default NULL,<br> rpid varchar(128) default NULL,<br> domn int(10) default NULL,<br> uuid varchar(64) default NULL,
<br> UNIQUE KEY phplib_id (phplib_id),<br> PRIMARY KEY ($USERCOL, domain),<br> KEY user_2 ($USERCOL)<br>) ;<br>
#Tables created in databaseSER<br>#----------------------------------------------------------------------------------------------------------------------------------------------#<br><br><br><br>Output Problems<br><br>reread_config: reading
radiusd.conf<br>Config: including file: /etc/raddb/proxy.conf<br>Config: including file: /etc/raddb/clients.conf<br>Config: including file: /etc/raddb/snmp.conf<br>Config: including file: /etc/raddb/eap.conf<br>Config: including file: /etc/raddb/sql.conf
<br>/etc/raddb/sql.conf[243]: Line is not in 'attribute = value' format<br>Errors reading radiusd.conf<br>