User-Name containing a $
A.L.M.Buxey at lboro.ac.uk
A.L.M.Buxey at lboro.ac.uk
Mon Jul 22 21:16:36 CEST 2013
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
More information about the Freeradius-Users
mailing list