[Suppress Attribute in Access Accept]

Thomas Fagart tfagart at brozs.net
Wed Jan 27 12:16:45 CET 2010


Oups sorry for the previsous non terminated mail

As I was saying, I would like to supppress attributes in post auth phase,
I know I can do this with attrs, but I was wondering wether this is
possible in users file.

Here's my postauth_users file

DEFAULT Suffix == "init.test.fr"
#       User-Name -= *,
#       Termination-Action=radius-request,
#       Service-Type=Framed-User,
#3GPP2 Attribute
        3GPP2-Service-Option-Profile=0x000000010104B001,
# WiMAX Attribute
#WiMAX-Packet-Flow-Descriptor
        WiMAX-Packet-Data-Flow-Id=1,
        WiMAX-Service-Data-Flow-Id=1,
        WiMAX-Direction=3,
        WiMAX-Activation-Trigger=4,
        WiMAX-Transport-Type=1,
        WiMAX-Uplink-QOS-Id=1,
        WiMAX-Downlink-QOS-Id=2,
#WiMAX-QoS-Descriptor 1
        WiMAX-QoS-Id= 1,
        WiMAX-Schedule-Type= 2,
        WiMAX-Traffic-Priority=0,
        WiMAX-Maximum-Sustained-Traffic-Rate=128000,
        WiMAX-Media-Flow-Type= 2,
#WiMAX-QoS-Descriptor 2
        WiMAX-QoS-Id+= 2,
        WiMAX-Schedule-Type+= 2,
        WiMAX-Traffic-Priority+=0,
        WiMAX-Maximum-Sustained-Traffic-Rate+=1024000,
        WiMAX-Media-Flow-Type+= 2


By reading man unlang, I should be able to do this with

              -=     Remove all matching attributes from the list.   Both 
the
                     attribute  name  and value have to match in order for
the
                     attribute to be removed from the list.


             !*     Delete  all  occurances of the named attribute, no
matter
                     what the value.


So if I want to remove the attribute User-Name, the following line should
match
User-Name -= *,
or
User-Name !*,

Am I wrong ?

Thanks

Thomas




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



More information about the Freeradius-Users mailing list