StrLen of an Attribute

Alan DeKok aland at
Wed May 8 17:18:56 CEST 2019

> On May 8, 2019, at 10:59 AM, Nicolas Breuer <Nicolas.Breuer at> wrote:
> Hello,
> Can you help how get the length of an attribute ?
> (%{#%{reply:Service-Type}} > 3)
> Returns "0"


  Because Service-Type isn't a string.  It's an attribute of type "integer".

  And why would you ever need to look at the string length of it?

  And why would you use "(%{#%{reply:Service-Type}}"   ? You're inventing syntax here.  Nothing in the the documentation says that you can use:


  Much less


  You can't just invent things and expect them to do what you want.  Computers don't work that way.

  Alan DeKok.

More information about the Freeradius-Users mailing list