Compare attrs entries with users file entries. Then read what do
operators := and += do.

I've read man unlang and I correct my configuration, and I finally succeed to do what I want but not as I thought.

I just notice the following :
In users file you can do

Attribute_A = foo
Attribute_A += bar


But I haven't found a way to do it in attrs file (syntax is ok, but the reply won't include both same attribute).

I've tried
Attribute_A = foo
Attribute_A += bar

and
Attribute_A: = foo
Attribute_A += bar

without success.

Finally I've used unlang in post-auth module to add the wanted attributes like that

post-auth {
       main_pool
       update reply {
               WiMAX-QoS-Id += 2
               WiMAX-Schedule-Type += 2
               WiMAX-Traffic-Priority += 0
               WiMAX-Maximum-Sustained-Traffic-Rate += 1024000
               WiMAX-Media-Flow-Type += 2
       }
       reply_log
#       sql
#       sql_log
       exec
       Post-Auth-Type REJECT {
               attr_filter.access_reject
       }

Any way to make things work is ok, just wanted to know if that one is "dirty" ?

Thanx again for your advise.

Thomas
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to