freeradius 3.1 sqlcounter[41]: Attribute Daily-Session-Time already defined with different flags
    Alan DeKok 
    aland at deployingradius.com
       
    Thu Mar  2 14:07:00 CET 2017
    
    
  
On Mar 2, 2017, at 4:47 AM, mpajarin plexus <mpajarin.plexus at gmail.com> wrote:
> 
> I mean   i dont know how or where can and where can´t  to call
> %{sql_instance-SQL-Group}
  You can use it like SQL-Group.
> Making test , for example on accounting secction
> 
> if (1 ==1 ){
> update control {
> 
>    &Foo-Bar-Baz := "%{sql_instance:SELECT groupname FROM radusergroup
> WHERE username = '%{sql_instance-SQL-Group}' ORDER BY priority ;}"
> 
> }
> }
> 
> I suppose  that if account requests doesn´t include the group, o i must to
> calculate again by a sql sentence.
  The accounting requests don't include the group.
  And why are you SELECTing from the radusergroup table manually?  The SQL module already does that for you.
  I just don't understand what you're trying to do.
  Alan DeKok.
    
    
More information about the Freeradius-Users
mailing list