hi,<br> I am using free radius 2 with MS Sql 2000. I want to make a
database schema of my own to store only username and password in MS
Sql. I would like to modify the query so that the radius server reads
only this information from my customized table.I've tryied modyfying sql queries from dialup.conf to read from my table but it doesn't work. Please help.<br>Here is the piece of output of the radius server after rejecting the username and the password.<br>
<br><br>rad_recv: Access-Request packet from host <a href="http://127.0.0.1">127.0.0.1</a> port 32835, id=208, length=56<br> User-Name = "John"<br> User-Password = "1"<br> NAS-IP-Address = <a href="http://192.168.2.227">192.168.2.227</a><br>
NAS-Port = 0<br>+- entering group authorize<br>++[preprocess] returns ok<br>++[chap] returns noop<br>++[mschap] returns noop<br> rlm_realm: No '@' in User-Name = "John", looking up realm NULL<br>
rlm_realm: No such realm "NULL"<br>++[suffix] returns noop<br> rlm_eap: No EAP-Message, not doing EAP<br>++[eap] returns noop<br>++[unix] returns notfound<br>++[files] returns noop<br> expand: %{User-Name} -> John<br>
rlm_sql (sql): sql_set_user escaped user --> 'John'<br>rlm_sql (sql): Reserving sql socket id: 4<br> expand: SELECT name,value FROM checking WHERE name = '%{SQL-User-Name}' -> SELECT name,value FROM checking WHERE name = 'John'<br>
query: SELECT name,value FROM checking WHERE name = 'John'<br>rlm_sql: The 'Attribute' field is empty or NULL, skipping the entire row.<br>rlm_sql (sql): Error getting data from database<br>rlm_sql (sql): SQL query error; rejecting user<br>
rlm_sql (sql): Released sql socket id: 4<br>++[sql] returns fail<br>Invalid user: [John/1] (from client localhost port 0)<br> Found Post-Auth-Type Reject<br>+- entering group REJECT<br> expand: %{User-Name} -> John<br>
attr_filter: Matched entry DEFAULT at line 11<br>++[attr_filter.access_reject] returns updated<br>Delaying reject of request 0 for 1 seconds<br>Going to the next request<br>Waking up in 0.9 seconds.<br>Sending delayed reject for request 0<br>
Sending Access-Reject of id 208 to <a href="http://127.0.0.1">127.0.0.1</a> port 32835<br>Waking up in 4.9 seconds.<br>Cleaning up request 0 ID 208 with timestamp +17<br>Ready to process requests.<br><br><br>With Regards<br>
Elangbam Johnson<br>