Changing the User-Name value from a request

Phil Mayers p.mayers at imperial.ac.uk
Tue Jun 28 17:47:08 CEST 2011


On 28/06/11 16:22, Tiberiu Breana wrote:
> Hello.
> I'm using freeRADIUS to authenticate SIP requests and I'm having
> problems processing the users.
> In a request I receive a User-Name that isn't useful, and a Sip-URI-User
> value which contains the real User-Name that I need.
>
> I've tried
> if(Sip-URI-User) {
> update request {
> User-Name = Sip-URI-User
> }
> }
>

Try ":=" instead of "=". See "man unlang" for details.

Beware that changing the username can cause things to break e.g. digest 
auth.



More information about the Freeradius-Users mailing list