<div dir="ltr">i have solved the problem....this is my sql-hotspot.conf<br> # Set to 'yes' to read radius clients from the database ('nas' table)<br> readclients = yes<br> ## Table to keep radius client info<br>
nas_table = "nas_10"<br> #######################################################################<br> # NAS Query<br> #######################################################################<br> # This query retrieves the radius clients<br>
#<br> # 0. Row ID (currently unused)<br> # 1. Name (or IP address)<br> # 2. Shortname<br> # 3. Type<br> # 4. Secret<br> #######################################################################<br>
nas_query = "SELECT id, nasip, shortname, secret FROM ${nas_table}"<br><br>i just do the stupid trial and error....avrakadavra.....<br>mysql> desc nas_10;<br>+-------------+--------------+------+-----+---------------+----------------+<br>
| Field | Type | Null | Key | Default | Extra |<br>+-------------+--------------+------+-----+---------------+----------------+<br>| id | int(10) | NO | PRI | NULL | auto_increment |<br>
| nasip | varchar(128) | NO | MUL | NULL | |<br>| shortname | varchar(32) | YES | | NULL | |<br>| community | varchar(50) | YES | | NULL | |<br>
| description | varchar(200) | YES | | RADIUS Client | |<br>| <b>secret</b> | varchar(60) | NO | | secret | |<br>| tgl_pasang | date | NO | | NULL | |<br>
+-------------+--------------+------+-----+---------------+----------------+<br>7 rows in set (0.00 sec)<br>i place 'secret' on 6th field. and the query works......<br>but i still confuse .......WHY ???<br><br><br>
<br><div class="gmail_quote">2008/9/17 Alan DeKok <span dir="ltr"><<a href="mailto:aland@deployingradius.com">aland@deployingradius.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">fibie roosadhy wrote:<br>
> dear all,<br>
> i use command 'radiusd -X' to debug.i found this :<br>
> rlm_sql (hotspot): - generate_sql_clients<br>
> rlm_sql (hotspot): Query: SELECT * FROM nas_10<br>
<br>
</div> You edited the default queries, and broke the server.<br>
<br>
Don't do that unless you understand the queries, and understand what<br>
they're doing.<br>
<font color="#888888"><br>
Alan DeKok.<br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
</font></blockquote></div><br></div>