oh, sorry! my mystake!<br>the correct groupname is 27... I've used "office" just for example...<br><br>> *radusergroup*<br>
> idrevenda: 1<br>
> username: "john"<br>
> groupname: "27"<br>
> priority: 1<br><br>just replace groupname "office" by "27".<br><br>thanx!<br><br><div class="gmail_quote">On Sat, Aug 7, 2010 at 6:51 AM, Bjørn Mork <span dir="ltr"><<a href="mailto:bjorn@mork.no">bjorn@mork.no</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">"Erick de A. Fabbio" <<a href="mailto:erickfabbio@gmail.com">erickfabbio@gmail.com</a>> writes:<br>
<br>
> *radusergroup*<br>
<div class="im">> idrevenda: 1<br>
> username: "john"<br>
> groupname: "office"<br>
> priority: 1<br>
<br>
</div>Nope, I don't think so.<br>
<div class="im"><br>
> [sql] expand: SELECT ug.groupname FROM radusergroup ug<br>
> WHERE ug.username = '%{SQL-User-Name}' and ug.idrevenda =<br>
> (SELECT distinct n.idrevenda FROM nas n WHERE n.nasname =<br>
> '%{NAS-IP-Address}' LIMIT 0,1) ORDER BY ug.priority -> SELECT<br>
> ug.groupname FROM radusergroup ug WHERE ug.username =<br>
> 'john' and ug.idrevenda = (SELECT distinct n.idrevenda FROM nas<br>
> n WHERE n.nasname = '192.168.0.10' LIMIT 0,1) ORDER BY ug.priority<br>
> [sql] expand: SELECT <a href="http://gc.id" target="_blank">gc.id</a>, gc.groupname, gc.attribute,<br>
> gc.Value, gc.op FROM radgroupcheck gc WHERE<br>
> gc.groupname = '%{Sql-Group}' and gc.idrevenda = (SELECT distinct<br>
> n.idrevenda FROM nas n WHERE n.nasname = '%{NAS-IP-Address}' LIMIT<br>
> 0,1) ORDER BY <a href="http://gc.id" target="_blank">gc.id</a> -> SELECT <a href="http://gc.id" target="_blank">gc.id</a>, gc.groupname,<br>
> gc.attribute, gc.Value, gc.op FROM radgroupcheck<br>
> gc WHERE gc.groupname = '27' and gc.idrevenda =<br>
<br>
<br>
</div>This looks up groupname = '27', so I guess that's what you actually got<br>
in your radusergroup table.<br>
<br>
<br>
Bjørn<br>
<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></blockquote></div><br><br clear="all"><br>-- <br>Erick de A. Fabbio<br>
MSN/GTalk: <a href="mailto:erickfabbio@gmail.com">erickfabbio@gmail.com</a><br>Skype: erickfabbio<br>Cel: 19 - 9105 5028<br><br>