attr_rewrite help

ramesh p rock786143 at gmail.com
Wed Sep 9 14:56:22 CEST 2009


Hi,

i'm trying to replace username = '' with some username = "Usernamenull" in
my test radius server.

am using code as below:

attr_rewrite attr_rewrite_username {
                attribute = User-Name
                searchin = packet
                *searchfor = "''"*
                replacewith = "Usernamenull"
                new_attribute = no
                ignore_case = no
                max_matches = 1
                append = no
      }
placed   attr_rewrite_username in defualt server file under preprocess
section.
The above code is not working. Does any one help how to match for null
usernames and rewrite with some other names.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20090909/6330261c/attachment.html>


More information about the Freeradius-Users mailing list