ASSERT FAILED

Alan DeKok aland at deployingradius.com
Mon May 13 18:30:33 CEST 2013


Maja Wolniewicz wrote:
> update reply {
> Chargeable-User-Identity =
> "%{md5:${policy.cui_hash_key}%{tolower:%{User-Name}}%{%{Operator-Name}:-}}"
> }
> 
> produces
> (10) ERROR: %{md5:changeme%{tolower:%{User-Name}}%{%{Operator-Name}:-}}
> (10) ERROR:                                                         ^
> Empty expansion is invalid
> 
> is it right behaviour?

  I would say yes.

> It works in FR2.

  Hmm... a lot of things worked by accident in v2.  The v3 code has a
LOT of cleanups and fixes.

  You can work around this by doing:

%{md5:changeme%{tolower:%{User-Name}}%{%{Operator-Name}:-""}}

  Which also works in v2.

  Alan DeKok.


More information about the Freeradius-Devel mailing list