<div>Hi,</div>
<div> </div>
<div>i'm trying to replace username = '' with some username = "Usernamenull" in my test radius server.</div>
<div> </div>
<div>am using code as below:</div>
<div> </div>
<div>attr_rewrite attr_rewrite_username {<br> attribute = User-Name<br> searchin = packet<br> <strong>searchfor = "''"</strong><br> replacewith = "Usernamenull"<br>
new_attribute = no<br> ignore_case = no<br> max_matches = 1<br> append = no<br> }<br></div>
<div>placed attr_rewrite_username in defualt server file under preprocess section.</div>
<div>The above code is not working. Does any one help how to match for null usernames and rewrite with some other names.</div>
<div> </div>
<div>Thanks.</div>