Dear  Arran Cudbard-Bell

thanks for your reply

can i use it in hint file ?

best regards


On Sat, Apr 27, 2013 at 10:03 PM, Arran Cudbard-Bell <a.cudbardb@freeradius.org> wrote:

On 27 Apr 2013, at 12:11, Mehdi Ravanbakhsh <babakco@gmail.com> wrote:

> Dear  All
>
>
> I need to remove "m" character in end of all username
>
> i think i should use hint but i can not find how ?

authorize {
        if (User-Name =~ /^(.*)m$/) {
                update request {
                        User-Name := "%{1}"
                }
        }
}

Arran Cudbard-Bell <a.cudbardb@freeradius.org>
FreeRADIUS Development Team

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html