how to remove some character from end of user name

Mehdi Ravanbakhsh babakco at gmail.com
Sat Apr 27 20:27:26 CEST 2013


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 at freeradius.org> wrote:

>
> On 27 Apr 2013, at 12:11, Mehdi Ravanbakhsh <babakco at 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 at freeradius.org>
> FreeRADIUS Development Team
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20130427/bb18e371/attachment.html>


More information about the Freeradius-Users mailing list