how to remove some character from end of user name
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 ? Best regrads
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
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
participants (3)
-
Alan DeKok -
Arran Cudbard-Bell -
Mehdi Ravanbakhsh