I am trying to rewrite the username (sql_user_name) to always add the realm
to the username. I am getting different 'User-Name' and 'Realm' from
different NAS units.
My db storage format is: [EMAIL PROTECTED]
One unit is sending it in this way already ([EMAIL PROTECTED]), the other unit
from a
different vendor can send the domain in the 'Realm' part:
User-Name = user
Realm = domain
How can I rewrite the User-Name that I always get it in my preferred db
format?
I tried:
sql_user_name = "%{%{Realm:[EMAIL PROTECTED]:-%{User-Name}}"
But it seems that the conditional sh syntax :+ does not work, only :-
And I do not exactly know if this nested approach could work anyhow.
Any hints?
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html