<div style="text-align: left;">Hi, (Salam)<br>I'm using last version of freeradius. when my users are going to connect, I see this message:<br><br><font size="1">[sql] expand: %{User-Name} -> myuser<br>[sql] sql_set_user escaped user --> 'myuser'<br>
rlm_sql (sql): Reserving sql socket id: 2<br>[sql] expand: SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = '%{Sql-Group}' ORDER BY id -> SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = '' ORDER BY id<br>
rlm_sql_mysql: query: SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE <span style="color: rgb(255, 102, 102);">groupname = ''</span> ORDER BY id<br>[sql] expand: SELECT groupname FROM usergroup WHERE username = '%{SQL-User-Name}' ORDER BY priority -> SELECT groupname FROM usergroup WHERE username = 'myuser' ORDER BY priority<br>
rlm_sql_mysql: query: SELECT groupname FROM usergroup WHERE username = 'myuser' ORDER BY priority<br>[sql] expand: SELECT id, username, attribute, value, op FROM radcheck WHERE username = BINARY '%{SQL-User-Name}' ORDER BY id -> SELECT id, username, attribute, value, op FROM radcheck WHERE username = BINARY 'myuser' ORDER BY id<br>
rlm_sql_mysql: query: SELECT id, username, attribute, value, op FROM radcheck WHERE username = BINARY 'myuser' ORDER BY id<br>[sql] User found in group test<br>[sql] expand: SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = '%{Sql-Group}' ORDER BY id -> SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = 'test' ORDER BY id<br>
rlm_sql_mysql: query: SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = 'test' ORDER BY id<br>rlm_sql (sql): Released sql socket id: 2<br>++[sql] returns ok<br>
rlm_sqlcounter: Entering module authorize code<br>rlm_sqlcounter: Could not find Check item value pair<br>++[dailycounter] returns noop<br>++[expiration] returns noop<br>++[logintime] returns noop<br></font><br>if you look at them carefully, you can see there is a bit problem! my freeradius is read radgroupcheck before usergroup table, so it can't recognize user's group name for radgroupcheck query! so it can't read radgroupcheck attributes! <br>
where is my fault? can I change it priority?<br><br>thanks<br>Ya Ali<br>Hamid Reza Hasani<br></div>