freeradius 3.1 sqlcounter[41]: Attribute Daily-Session-Time already defined with different flags

mpajarin plexus mpajarin.plexus at gmail.com
Thu Mar 2 17:33:43 CET 2017


The pourpose of this is inject an attribute from any list, from one ( auth
 pe ) section to another  ( accounting )without doing a database query.

I will reread the documentation again.

Thank you for your patience

Miguel

2017-03-02 14:07 GMT+01:00 Alan DeKok <aland at deployingradius.com>:

> 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.
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/
> list/users.html


More information about the Freeradius-Users mailing list