User-Name containing a $

A.L.M.Buxey at A.L.M.Buxey at
Mon Jul 22 21:16:36 CEST 2013

>    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'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


More information about the Freeradius-Users mailing list