<br><br>
<div><span class="gmail_quote">On 8/28/07, <b class="gmail_sendername">Nhadie</b> <<a href="mailto:nhadie@tbgi.net.ph">nhadie@tbgi.net.ph</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>i'm testing ser with radius using mysql. at first without inserting the<br>Sip-Group on radgroupcheck, my x-lite can register.
<br>but when i add it i always get unauthorized. is there something wrong on<br>the values i inserted?<br><br>on my ser.cfg REGISTER part i only have this<br> if (method=="REGISTER") {<br> if (!radius_www_authorize("
<a href="http://mydomain.com">mydomain.com</a>")) {<br> if (isflagset(8)) {xlog("L_INFO",<br>"Authenticating\n");};<br> www_challenge("
<a href="http://mydomain.com">mydomain.com</a>", "0");<br> break;<br> };<br> if (!save("location")) {<br> sl_reply_error();
<br> };<br> break;<br> };<br><br><br><br>mysql> select * from radcheck;<br>+----+------------------------+-----------+----+---------+<br>| id | UserName | Attribute | op | Value |
<br>+----+------------------------+-----------+----+---------+<br>| 1 | <a href="mailto:1001@mydomain.com">1001@mydomain.com</a> | Password | == | TEST1001 |<br>+----+------------------------+-----------+----+---------+
<br>1 row in set (0.00 sec)<br><br>mysql> select * from radgroupcheck;<br>+----+-----------+-----------+----+----------------------+<br>| id | GroupName | Attribute | op | Value |<br>+----+-----------+-----------+----+----------------------+
<br>| 1 | intl-pstn | Sip-Group | == | world-pstn |<br>+----+-----------+-----------+----+----------------------+<br>2 rows in set (0.00 sec)<br><br>mysql> select * from usergroup;<br>+----+------------------------+-----------+
<br>| id | UserName | GroupName |<br>+----+------------------------+-----------+<br>| 1 | <a href="mailto:1001@mydomain.com">1001@mydomain.com</a> | intl-pstn |<br>+----+------------------------+-----------+
<br>1 row in set (0.00 sec)</blockquote>
<div> </div>
<div> </div>
<div>Hi</div>
<div> </div>
<div>post your ser.cfg and sql.conf, radiusd.conf</div>
<div> </div>
<div>and network trace with ngrep.</div>
<div> </div>
<div>ram</div></div><br>