22 Jul
2013
22 Jul
'13
3:16 p.m.
Hi,
Is there a way to tell radius to not do something based on the User-Name containing a "$" ? I am doing dynamic VLAN assignment and I'd like to skip that for computer logins. I looked at unlang and I didn't see a way to check for a character in a username.
use unlang regex check...you'll need to escape the "$" as thats end of line for regex. hosts should be matched with eg if (User-Name =~ /^host\/.*\\.YOUR\\.AD\\.REALM$/i) { stuff goes here } alan