Unlang regular expression string expansion.

Phil Mayers p.mayers at imperial.ac.uk
Thu Aug 23 11:06:58 CEST 2007


On Wed, 2007-08-22 at 16:49 +0100, Arran Cudbard-Bell wrote:
> Hi,
> 
> HP access point with mac authentication.
> 
> Sends mac as User-Name in lower case,
> Sends mac as Calling-Station-ID in upper case.

Yeah, this is tedious; a general-purpose text transformation mechanisms
would be useful - something like the cli "tr" program but in-server.
Maybe an expansion:

update request {
  Calling-Station-Id = `%{tr:[:lower:] [:upper:] %{Calling-Station-Id}}`
}






More information about the Freeradius-Users mailing list