<div dir="ltr"><div>I have been running FreeRADIUS 2.x using a custom Microsoft SQL Server database using UnixODBC.  I compiled version 3.0.0 on a new server, read the migration documentation, and configured freeTDS and UnixODBC. <br>
<br></div><div>I verified that UnixODBC was working using the iSQL tool, connecting to the freeradius datasource.<br></div><div><br></div><div>I copied mods-available/sql to mods-enabled/sql and configured it as such:<br>
<br></div><div>sql {<br></div><div>  driver="rlm_sql_unixodbc"<br></div><div>  dialect="mssql"<br></div><div>  server = "freeradius"<br></div><div>  login = "xxx"<br></div><div>  password = "xxx"<br>
</div><div>  radius_db = "radiusdb"<br>}<br><br></div><div>In addition, I specified the tables and left the other values as default.<br><br></div><div>I then configured my queries.conf file in the mssql directory.<br>
<br></div><div>When starting FreeRADIUS in debug, the following lines are output prior to the segmentation fault:<br><br></div><div>sql {<br></div><div>        driver = "rlm_sql_unixodbc"<br></div><div>        server = "freeradius"<br>
</div><div>        port = ""<br></div><div>        login = "xxx"<br></div><div>        password = "xxx"<br></div><div>        radius_db = "radiusdb"<br></div><div>        read_groups = yes<br>
</div><div>        read_clients = no<br></div><div>        delete_stale_sessions = yes<br>        .<br>        .<br>        .<br>}<br></div><div><br></div><div>(sql): Driver rlm_sql_unixodbc (module rlm_sql_unixodbc) loaded and linked.<br>
</div><div>(sql): Attempting to connect to database "radiusdb"<br></div><div>rlm_sql (sql): Initialising connection pool<br></div><div>  pool {<br></div><div>          start = 5<br></div><div>          min = 4<br>
</div><div>          max = 10<br></div><div>          spare = 3<br></div><div>          uses = 0<br></div><div>          lifetime = 0<br></div><div>          cleanup_delay = 5<br></div><div>          idle_timeout = 60<br>
</div><div>          spread = no<br>  }<br></div><div>(sql): Opening additional connection (0)<br></div><div>Segmentation fault<br><br></div><div>If I modify sql and set the driver = "rlm_sql_null" then FreeRADIUS starts up without error.<br>
<br>Any ideas?<br></div><div><br></div><div>Grant Spradling<br></div></div>