Hints File Question

Alan DeKok aland at deployingradius.com
Mon Dec 28 10:11:35 CET 2009


Bruce Nunn wrote:
> Is this valid syntax for the hints file in version 2.1.7? I intend it to match anything up to and including "\\" such as WINXP\\joeuser.
> 
> DEFAULT                Prefix =~ "^(.*[\\\\]+)", Strip-User-Name = Yes
> Hint = "CAMPUS"

  Use "unlang".  The prefix attribute does string comparisons only.

	if (User-Name =~ /.../) {
		update request {
			Stripped-User-Name = "%{1}"
		}
		update control {
			Hint = "Campus"
		}
	}

  Alan DeKok.



More information about the Freeradius-Users mailing list