Hi I'm trying to obtain the Group-Name for the requested user and use it with unlang in the Post-Auth section of my sites-available/default config.
This hasn't work thus far, and I have tried a number of other ideas, such as getting it whilst in the Authorize section and creating new variable to hold it there and then referencing that, but still with no success. Can someone tell me how I can accomplish this, below is a snippet of my config so you can see what I am trying to accomplish, any help would be greatly appreciated. post-auth { > switch "%{client:vendor}" { > > case adva { > switch "%{Group-Name}" { > > case net_ro { > update reply { > ADVA-UUM-User-Level := "Monitor" > } > } > > case net_rw { > update reply { > ADVA-UUM-User-Level := "Admin" > } > } > > case net_su { > update reply { > ADVA-UUM-User-Level := "Root" > } > } > } > } > > case cisco { > ... > } > > case netscreen { > ... > } > } > } > Cheers Cam. --
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html